From 340a4beb4a05a8c0dd6df16d1eef30704a618dce Mon Sep 17 00:00:00 2001 From: tmushayahama Date: Mon, 29 Apr 2024 12:43:57 -0700 Subject: [PATCH 1/2] refined the part of from hs part --- src/@noctua.form/data/shapes-nsa.json | 1126 +++++++++++++++++ src/@noctua.form/data/shapes.json | 4 +- .../models/forms/annotation-form.ts | 1 + src/@noctua.form/noctua-form-config.ts | 18 +- .../services/annotation-form.service.ts | 12 + src/@noctua.form/services/cam.service.ts | 4 +- .../config/noctua-form-config.service.ts | 28 +- src/@noctua.form/services/lookup.service.ts | 21 +- src/@noctua/scss/partials/_material.scss | 4 + .../annotation-form.component.html | 3 +- .../annotation-form.component.scss | 6 + .../entity-form/entity-form.component.html | 2 +- .../public/inject.tmpl | 6 +- ...a9aef948b9.js => main.b6beb68e913c1597.js} | 2 +- ...dd4f23.css => styles.e388f38efd2d7114.css} | 2 +- 15 files changed, 1186 insertions(+), 53 deletions(-) create mode 100644 src/@noctua.form/data/shapes-nsa.json rename workbenches/noctua-standard-annotations/public/{main.645beca9aef948b9.js => main.b6beb68e913c1597.js} (53%) rename workbenches/noctua-standard-annotations/public/{styles.70b9dbade0dd4f23.css => styles.e388f38efd2d7114.css} (95%) diff --git a/src/@noctua.form/data/shapes-nsa.json b/src/@noctua.form/data/shapes-nsa.json new file mode 100644 index 0000000..935284c --- /dev/null +++ b/src/@noctua.form/data/shapes-nsa.json @@ -0,0 +1,1126 @@ +{ + "goshapes": [ + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CHEBI:24431", + "CARO:0000000", + "GO:0032991", + "NCBITaxon:1" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002233", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CHEBI:24431", + "CARO:0000000", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002234", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CHEBI:24431", + "CARO:0000000", + "GO:0032991", + "NCBITaxon:1" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004009", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CHEBI:24431", + "CARO:0000000", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004008", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000066", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CHEBI:33695", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002313", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002339", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002338", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150", + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002411", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150", + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002305", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150", + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002304", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002211", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002212", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002213", + "exclude_from_extensions": true + }, + { + "subject": "GO:0008150", + "root_subject": null, + "object": [ + "CARO:0000000", + "NCBITaxon:1" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0012003", + "exclude_from_extensions": false + }, + { + "subject": "GO:0048856", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002296", + "exclude_from_extensions": false + }, + { + "subject": "GO:0048646", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002297", + "exclude_from_extensions": false + }, + { + "subject": "GO:0009653", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002298", + "exclude_from_extensions": false + }, + { + "subject": "GO:0030154", + "root_subject": "GO:0008150", + "object": [ + "CL:0000003" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002315", + "exclude_from_extensions": false + }, + { + "subject": "GO:0051301", + "root_subject": "GO:0008150", + "object": [ + "CL:0000003" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002233", + "exclude_from_extensions": false + }, + { + "subject": "GO:0045165", + "root_subject": "GO:0008150", + "object": [ + "CL:0000003" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002348", + "exclude_from_extensions": false + }, + { + "subject": "GO:0001709", + "root_subject": "GO:0008150", + "object": [ + "CL:0000003" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002349", + "exclude_from_extensions": false + }, + { + "subject": "GO:0001708", + "root_subject": "GO:0008150", + "object": [ + "CL:0000003" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002356", + "exclude_from_extensions": false + }, + { + "subject": "GO:0022607", + "root_subject": "GO:0008150", + "object": [ + "GO:0005575" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002588", + "exclude_from_extensions": false + }, + { + "subject": "GO:0022411", + "root_subject": "GO:0008150", + "object": [ + "GO:0005575" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002590", + "exclude_from_extensions": false + }, + { + "subject": "GO:0016043", + "root_subject": "GO:0008150", + "object": [ + "GO:0005575" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002592", + "exclude_from_extensions": false + }, + { + "subject": "GO:0021700", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002299", + "exclude_from_extensions": false + }, + { + "subject": "GO:0040007", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002343", + "exclude_from_extensions": false + }, + { + "subject": "GO:0051179", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000", + "CHEBI:24431", + "CHEBI:33695", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002313", + "exclude_from_extensions": false + }, + { + "subject": "GO:0051179", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002339", + "exclude_from_extensions": false + }, + { + "subject": "GO:0051179", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002338", + "exclude_from_extensions": false + }, + { + "subject": "GO:0040011", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002565", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008152", + "root_subject": "GO:0008150", + "object": [ + "CHEBI:24431" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004009", + "exclude_from_extensions": false + }, + { + "subject": "GO:0008152", + "root_subject": "GO:0008150", + "object": [ + "CHEBI:24431" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004008", + "exclude_from_extensions": false + }, + { + "subject": "GO:0034367", + "root_subject": "GO:0008150", + "object": [ + "GO:0032991" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002591", + "exclude_from_extensions": false + }, + { + "subject": "GO:0007389", + "root_subject": "GO:0008150", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002356", + "exclude_from_extensions": false + }, + { + "subject": "GO:0006810", + "root_subject": "GO:0008150", + "object": [ + "CHEBI:24431", + "CARO:0000000", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004009", + "exclude_from_extensions": false + }, + { + "subject": "GO:0006810", + "root_subject": "GO:0008150", + "object": [ + "CHEBI:24431", + "CARO:0000000", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004008", + "exclude_from_extensions": false + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "CHEBI:33695", + "GO:0032991" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002333", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "BFO:0000051", + "exclude_from_extensions": false + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000066", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "CHEBI:24431", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002234", + "exclude_from_extensions": false + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "CHEBI:24431", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002233", + "exclude_from_extensions": false + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002413", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002211", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002212", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002213", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002578", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002630", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002629", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0012012", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002407", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002409", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0012009", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0012010", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent", + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002418", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004046", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0008150" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0004047", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0008150", + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002411", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0008150", + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002305", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0008150", + "GO:0003674", + "http://purl.obolibrary.org/obo/go/shapes/MolecularEvent" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002304", + "exclude_from_extensions": true + }, + { + "subject": "GO:0003674", + "root_subject": null, + "object": [ + "GO:0044848", + "UBERON:0000105", + "PO:0009012" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002092", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005215", + "root_subject": "GO:0003674", + "object": [ + "CHEBI:24431", + "CHEBI:33695", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002313", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005215", + "root_subject": "GO:0003674", + "object": [ + "GO:0005575" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002339", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005215", + "root_subject": "GO:0003674", + "object": [ + "GO:0005575" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002338", + "exclude_from_extensions": false + }, + { + "subject": "CARO:0000000", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": false + }, + { + "subject": "CARO:0000000", + "root_subject": null, + "object": [ + "CHEBI:33695", + "GO:0032991" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0001015", + "exclude_from_extensions": false + }, + { + "subject": "CL:0000003", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005575", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005575", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002220", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005575", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002131", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005575", + "root_subject": null, + "object": [ + "GO:0008150", + "UBERON:0000105", + "PO:0009012" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002490", + "exclude_from_extensions": false + }, + { + "subject": "GO:0005575", + "root_subject": null, + "object": [ + "GO:0008150", + "UBERON:0000105", + "PO:0009012" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002491", + "exclude_from_extensions": false + }, + { + "subject": "GO:0032991", + "root_subject": null, + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0001025", + "exclude_from_extensions": false + }, + { + "subject": "GO:0032991", + "root_subject": null, + "object": [ + "CARO:0000000", + "GO:0005575" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002432", + "exclude_from_extensions": false + }, + { + "subject": "GO:0032991", + "root_subject": null, + "object": [ + "CHEBI:33695", + "GO:0032991" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "BFO:0000051", + "exclude_from_extensions": false + }, + { + "subject": "GO:0032991", + "root_subject": null, + "object": [ + "GO:0008150", + "UBERON:0000105", + "PO:0009012" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002490", + "exclude_from_extensions": false + }, + { + "subject": "GO:0032991", + "root_subject": null, + "object": [ + "GO:0008150", + "UBERON:0000105", + "PO:0009012" + ], + "is_multivalued": true, + "is_required": false, + "context": "", + "predicate": "RO:0002491", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:36080", + "root_subject": "CHEBI:24431", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0001025", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:36080", + "root_subject": "CHEBI:24431", + "object": [ + "CARO:0000000", + "GO:0005575" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002432", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:36080", + "root_subject": "CHEBI:24431", + "object": [ + "GO:0032991" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:36080", + "root_subject": "CHEBI:24431", + "object": [ + "GO:0003674" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002326", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:33695", + "root_subject": "CHEBI:24431", + "object": [ + "CARO:0000000" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0001025", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:33695", + "root_subject": "CHEBI:24431", + "object": [ + "CARO:0000000", + "GO:0005575" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002432", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:33695", + "root_subject": "CHEBI:24431", + "object": [ + "GO:0032991" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "BFO:0000050", + "exclude_from_extensions": false + }, + { + "subject": "CHEBI:33695", + "root_subject": "CHEBI:24431", + "object": [ + "GO:0003674" + ], + "is_multivalued": false, + "is_required": false, + "context": "", + "predicate": "RO:0002326", + "exclude_from_extensions": false + } + ], + "@type": "AssociationCollection" +} \ No newline at end of file diff --git a/src/@noctua.form/data/shapes.json b/src/@noctua.form/data/shapes.json index 935284c..f60592b 100644 --- a/src/@noctua.form/data/shapes.json +++ b/src/@noctua.form/data/shapes.json @@ -1076,7 +1076,7 @@ "subject": "CHEBI:33695", "root_subject": "CHEBI:24431", "object": [ - "CARO:0000000" + "GO:0110165" ], "is_multivalued": false, "is_required": false, @@ -1088,7 +1088,7 @@ "subject": "CHEBI:33695", "root_subject": "CHEBI:24431", "object": [ - "CARO:0000000", + "GO:0110165", "GO:0005575" ], "is_multivalued": false, diff --git a/src/@noctua.form/models/forms/annotation-form.ts b/src/@noctua.form/models/forms/annotation-form.ts index d5f6dc0..1d007ac 100644 --- a/src/@noctua.form/models/forms/annotation-form.ts +++ b/src/@noctua.form/models/forms/annotation-form.ts @@ -9,6 +9,7 @@ import { AnnotationActivity } from '../activity/annotation-activity'; export class AnnotationForm { gp: FormGroup; + isComplement = new FormControl();; goterm: FormGroup; extension: FormGroup; gpToTermEdge = new FormControl(); diff --git a/src/@noctua.form/noctua-form-config.ts b/src/@noctua.form/noctua-form-config.ts index 4aa7bb0..9ad7859 100644 --- a/src/@noctua.form/noctua-form-config.ts +++ b/src/@noctua.form/noctua-form-config.ts @@ -257,9 +257,9 @@ const simpleAnnotationEdgeConfig: SAConfigEdgeMap = { gpToTermReverse: false }, [edge.partOf.id]: { - gpToTermPredicate: edge.hasPart.id, + gpToTermPredicate: edge.partOf.id, mfNodeRequired: false, - gpToTermReverse: true + gpToTermReverse: false } }; @@ -271,21 +271,9 @@ export const noctuaFormConfig = { 'id': 'gp', 'label': 'Gene Product (default)' }, - 'mf': { - 'id': 'mf', - 'label': 'Molecular Function' - }, - 'bp': { - 'id': 'bp', - 'label': 'Biological Process' - }, - 'cc': { - 'id': 'cc', - 'label': 'Cellular Component' - }, 'date': { 'id': 'date', - 'label': 'Activity Date' + 'label': 'Annotation Date' } } }, diff --git a/src/@noctua.form/services/annotation-form.service.ts b/src/@noctua.form/services/annotation-form.service.ts index 4eb15aa..c090ed4 100644 --- a/src/@noctua.form/services/annotation-form.service.ts +++ b/src/@noctua.form/services/annotation-form.service.ts @@ -14,6 +14,8 @@ import { cloneDeep, each } from 'lodash'; import { Cam } from '../models/activity/cam'; import { AnnotationForm } from '@noctua.form/models/forms/annotation-form'; import { AnnotationActivity } from '../models/activity/annotation-activity'; +import * as EntityDefinition from './../data/config/entity-definition'; +import { noctuaFormConfig } from './../noctua-form-config'; @Injectable({ providedIn: 'root' @@ -92,6 +94,8 @@ export class NoctuaAnnotationFormService { activityFormToActivity() { this.annotationForm.populateActivity(this.annotationActivity); + + this.annotationActivity.goterm.isComplement = this.annotationForm.isComplement.value; } private _onActivityFormChanges(): void { @@ -136,6 +140,12 @@ export class NoctuaAnnotationFormService { const exists = edges.some(e => e.id === this.annotationActivity.gpToTermEdge?.id); if (!exists) { this.annotationForm.gpToTermEdge.setValue(edges[0]); + + if (this.annotationActivity.goterm.hasRootType(EntityDefinition.GoProteinContainingComplex)) { + const partOfEdge = edges.find(e => e.id === noctuaFormConfig.edge.partOf.id); + this.annotationForm.gpToTermEdge.setValue(partOfEdge); + + } this.previousGotermRelation = this.annotationActivity.gpToTermEdge?.id; } @@ -183,6 +193,8 @@ export class NoctuaAnnotationFormService { saveAnnotation() { const self = this; self.activityFormToActivity(); + + console.log(self.activity) self.annotationActivity.activityToAnnotation(self.activity); const saveData = self.annotationActivity.createSave(); return forkJoin(self.bbopGraphService.addActivity(self.cam, saveData.nodes, saveData.triples, saveData.title)); diff --git a/src/@noctua.form/services/cam.service.ts b/src/@noctua.form/services/cam.service.ts index b3383de..0d91e94 100644 --- a/src/@noctua.form/services/cam.service.ts +++ b/src/@noctua.form/services/cam.service.ts @@ -200,8 +200,8 @@ export class CamService { // For data generation purposes e2e testing - const data = DataGeneratorUtils.getCreateAnnotationsData(cam.annotationActivities); - DataGeneratorUtils.getDataJSON(data); + // const data = DataGeneratorUtils.getCreateAnnotationsData(cam.annotationActivities); + // DataGeneratorUtils.getDataJSON(data); } getStoredModel(cam: Cam): Observable { diff --git a/src/@noctua.form/services/config/noctua-form-config.service.ts b/src/@noctua.form/services/config/noctua-form-config.service.ts index 4ef8c36..cd63190 100644 --- a/src/@noctua.form/services/config/noctua-form-config.service.ts +++ b/src/@noctua.form/services/config/noctua-form-config.service.ts @@ -110,10 +110,7 @@ export class NoctuaFormConfigService { get activitySortField() { const options = [ noctuaFormConfig.activitySortField.options.gp, - noctuaFormConfig.activitySortField.options.date, - noctuaFormConfig.activitySortField.options.mf, - noctuaFormConfig.activitySortField.options.bp, - noctuaFormConfig.activitySortField.options.cc, + noctuaFormConfig.activitySortField.options.date ]; return { @@ -351,28 +348,13 @@ export class NoctuaFormConfigService { annotationActivity.goterm = edge.object; annotationActivity.gp.predicate = edge.predicate; } + }); } else { - if (activity.gpNode?.term.id === noctuaFormConfig.rootNode.complex.id) { - criteria.gpToTermPredicate = noctuaFormConfig.edge.hasPart.id; - criteria.mfToTermPredicate = noctuaFormConfig.edge.enabledBy.id; - criteria.root = RootTypes.COMPLEX; - criteria.mfToTermReverse = true - criteria.mfNodeRequired = true; - - activity.getEdges(activity.gpNode.id).forEach((edge) => { - if (edge.predicate.edge.id === noctuaFormConfig.edge.hasPart.id) { - annotationActivity.gp = edge.object; - annotationActivity.goterm = activity.mfNode; - } - }); - - } else { - criteria.gpToTermPredicate = noctuaFormConfig.edge.enabledBy.id; - annotationActivity.gp = activity.gpNode; - annotationActivity.goterm = activity.mfNode; - } + criteria.gpToTermPredicate = noctuaFormConfig.edge.enabledBy.id; + annotationActivity.gp = activity.gpNode; + annotationActivity.goterm = activity.mfNode; if (activity.mfNode?.term.id === noctuaFormConfig.rootNode.mf.id) { criteria.mfNodeRequired = true; diff --git a/src/@noctua.form/services/lookup.service.ts b/src/@noctua.form/services/lookup.service.ts index 295f7d8..814fb79 100644 --- a/src/@noctua.form/services/lookup.service.ts +++ b/src/@noctua.form/services/lookup.service.ts @@ -26,6 +26,18 @@ const golr_response = require('bbop-response-golr'); const engine = new impl_engine(golr_response); engine.use_jsonp(true) +interface GOlrResponse { + id: string; + label: string; + link: string; + description: string; + isObsolete: boolean; + replacedBy: string; + rootTypes: any[]; + xref: string; + notAnnotatable: boolean; +} + @Injectable({ providedIn: 'root' @@ -462,10 +474,10 @@ export class NoctuaLookupService { return article; } - private _lookupMap(response) { + private _lookupMap(response): GOlrResponse[] { const self = this; const data = response.response.docs; - const result = data.map((item) => { + const result: GOlrResponse[] = data.map((item) => { let xref; if (item.database_xref && item.database_xref.length > 0) { const xrefDB = item.database_xref[0].split(':'); @@ -480,8 +492,9 @@ export class NoctuaLookupService { isObsolete: item.is_obsolete, replacedBy: item.replaced_by, rootTypes: self._makeEntitiesArray(item.isa_closure, item.isa_closure_label), - xref: xref - }; + xref: xref, + notAnnotatable: !item.subset?.includes('gocheck_do_not_annotate') + } as GOlrResponse; }); return result; diff --git a/src/@noctua/scss/partials/_material.scss b/src/@noctua/scss/partials/_material.scss index f65f4ef..59726a2 100644 --- a/src/@noctua/scss/partials/_material.scss +++ b/src/@noctua/scss/partials/_material.scss @@ -126,6 +126,10 @@ mat-radio-button { padding: 0 8px; @include deep-width(50px); } + + &.mat-option-disabled { + background-color: #f8cccc; + } } .scard-more-info { diff --git a/src/app/main/apps/noctua-annotations/forms/annotation-form/annotation-form.component.html b/src/app/main/apps/noctua-annotations/forms/annotation-form/annotation-form.component.html index 8157621..12deb49 100644 --- a/src/app/main/apps/noctua-annotations/forms/annotation-form/annotation-form.component.html +++ b/src/app/main/apps/noctua-annotations/forms/annotation-form/annotation-form.component.html @@ -11,7 +11,8 @@ fxLayoutAlign="start center" class="w-100-p"> -
+
+ NOT GP to Term Relation
- +
{{ item.label }} diff --git a/workbenches/noctua-standard-annotations/public/inject.tmpl b/workbenches/noctua-standard-annotations/public/inject.tmpl index d5de702..45fd177 100644 --- a/workbenches/noctua-standard-annotations/public/inject.tmpl +++ b/workbenches/noctua-standard-annotations/public/inject.tmpl @@ -9,7 +9,7 @@ - + @@ -190,7 +190,7 @@ } } - + @@ -214,6 +214,6 @@
- + \ No newline at end of file diff --git a/workbenches/noctua-standard-annotations/public/main.645beca9aef948b9.js b/workbenches/noctua-standard-annotations/public/main.b6beb68e913c1597.js similarity index 53% rename from workbenches/noctua-standard-annotations/public/main.645beca9aef948b9.js rename to workbenches/noctua-standard-annotations/public/main.b6beb68e913c1597.js index b7fb4e9..dddf60c 100644 --- a/workbenches/noctua-standard-annotations/public/main.645beca9aef948b9.js +++ b/workbenches/noctua-standard-annotations/public/main.b6beb68e913c1597.js @@ -1 +1 @@ -var vJt=Object.defineProperty,bJt=Object.defineProperties,xJt=Object.getOwnPropertyDescriptors,xT=Object.getOwnPropertySymbols,$fe=Object.prototype.hasOwnProperty,Xfe=Object.prototype.propertyIsEnumerable,qfe=(z,F,C)=>F in z?vJt(z,F,{enumerable:!0,configurable:!0,writable:!0,value:C}):z[F]=C,ap=(z,F)=>{for(var C in F||(F={}))$fe.call(F,C)&&qfe(z,C,F[C]);if(xT)for(var C of xT(F))Xfe.call(F,C)&&qfe(z,C,F[C]);return z},pV=(z,F)=>bJt(z,xJt(F)),Qfe=(z,F)=>{var C={};for(var y in z)$fe.call(z,y)&&F.indexOf(y)<0&&(C[y]=z[y]);if(null!=z&&xT)for(var y of xT(z))F.indexOf(y)<0&&Xfe.call(z,y)&&(C[y]=z[y]);return C};(self.webpackChunknoctua=self.webpackChunknoctua||[]).push([[179],{66713:(z,F,C)=>{var y=C(68680);function m(){this.mapDirect=new Map,this.mapInverse=new Map}function E(_){for(var x of(this.trie=new y,this.curieMap=_,_.values()))this.trie.insert(x)}m.prototype.set=function(_,x){this.mapDirect.set(_,x),this.mapInverse.set(x,_)},m.prototype.get=function(_){return this.mapDirect.get(_)},m.prototype.getInverse=function(_){return this.mapInverse.get(_)},m.prototype.has=function(_){return this.mapDirect.has(_)},m.prototype.keys=function(){return this.mapDirect.keys()},m.prototype.values=function(){return this.mapDirect.values()},E.prototype.getPrefixes=function(){return this.curieMap.keys()},E.prototype.getExpansion=function(_){return this.curieMap.get(_)},E.prototype.getCurie=function(_){var x=this.trie.getMatchingPrefix(_);return x&&""!=x?this.curieMap.getInverse(x)+":"+_.substring(x.length,_.length):null},E.prototype.getIri=function(_){if(!_)return null;var x=_.split(":");if(0==x.length)return null;var S=x[0];return this.curieMap.has(S)?this.curieMap.get(S)+_.substring(_.indexOf(":")+1):null},E.prototype.getCurieMap=function(){return this.curieMap},z.exports.q=function h(_){try{var x=_["@context"],S=new m;return Object.keys(x).forEach(v=>{S.set(v,x[v])}),S}catch(v){return null}},z.exports.T=E},38437:z=>{function F(C){this.value=C,this.children=new Map,this.leaf=!1}F.prototype.getChildren=function(){return this.children},F.prototype.getValue=function(){return this.value},F.prototype.setIsLeaf=function(C){this.leaf=C},F.prototype.isLeaf=function(){return this.leaf},z.exports=F},68680:(z,F,C)=>{var y=C(38437);function m(){this.root=new y(String.fromCharCode(0))}m.prototype.insert=function(E){for(var h=E.length,_=this.root,x=0;x{"use strict";var y={};C.r(y),C.d(y,{forceCenter:()=>yNe,forceCollide:()=>wK,forceLink:()=>TK,forceManyBody:()=>zK,forceRadial:()=>iRe,forceSimulation:()=>RK,forceX:()=>oRe,forceY:()=>rRe});var m={};C.r(m),C.d(m,{dispatch:()=>zZ});var E={};C.r(E),C.d(E,{interval:()=>sRe,now:()=>Y6,timeout:()=>PI,timer:()=>OI,timerFlush:()=>VZ});var h={};C.r(h),C.d(h,{ellipseWithEllipse:()=>Rre,ellipseWithLine:()=>Bz,exists:()=>Nre,lineWithLine:()=>Fm,pathWithEllipse:()=>jre,pathWithLine:()=>Ure,pathWithPath:()=>qre,pathWithPolygon:()=>dP,pathWithPolyline:()=>jz,pathWithRect:()=>Wre,polygonWithEllipse:()=>lP,polygonWithLine:()=>Uz,polygonWithPolygon:()=>Yre,polygonWithPolyline:()=>Gre,polygonWithRect:()=>Bre,polylineWithEllipse:()=>Yz,polylineWithLine:()=>cP,polylineWithPolyline:()=>Vre,polylineWithRect:()=>Hre,rectWithEllipse:()=>Fre,rectWithLine:()=>zre,rectWithRect:()=>Gz});var _={};C.r(_),C.d(_,{Curve:()=>Ls,Ellipse:()=>d2,Line:()=>Ho,Path:()=>_r,Point:()=>wn,Polygon:()=>V2,Polyline:()=>cc,Rect:()=>Po,bezier:()=>xct,ellipse:()=>fct,intersection:()=>wct,line:()=>Nm,normalizeAngle:()=>K0,point:()=>Bv,random:()=>Lz,rect:()=>Cct,scale:()=>lct,snapToGrid:()=>Im,toDeg:()=>nP,toRad:()=>H2,types:()=>Aa});var x={};C.r(x),C.d(x,{absolute:()=>Uct,bottom:()=>Qct,ellipse:()=>Kct,ellipseSpread:()=>Zct,fn:()=>jct,left:()=>qct,line:()=>Wct,right:()=>$ct,top:()=>Xct});var S={};C.r(S),C.d(S,{bottom:()=>ilt,inside:()=>slt,insideOriented:()=>alt,left:()=>elt,manual:()=>Jct,outside:()=>rlt,outsideOriented:()=>olt,radial:()=>clt,radialOriented:()=>llt,right:()=>tlt,top:()=>nlt});var v={};C.r(v),C.d(v,{Circle:()=>oF,Ellipse:()=>glt,Generic:()=>ws,Image:()=>Clt,Path:()=>Pae,Polygon:()=>mlt,Polyline:()=>_lt,Rect:()=>hlt,Rhombus:()=>vlt,Text:()=>flt,TextBlock:()=>blt,TextBlockView:()=>xlt,TextView:()=>plt});var O={};C.r(O),C.d(O,{BorderedImage:()=>Elt,Circle:()=>wlt,Cylinder:()=>klt,DoubleLink:()=>Hlt,Ellipse:()=>Mlt,EmbeddedImage:()=>Alt,HeaderedRectangle:()=>Dlt,Image:()=>Tlt,InscribedImage:()=>Llt,Link:()=>Flt,Path:()=>Olt,Polygon:()=>Slt,Polyline:()=>Plt,Rectangle:()=>ylt,ShadowLink:()=>Vlt,TextBlock:()=>zlt});var A={};C.r(A),C.d(A,{Atomic:()=>Blt,Coupled:()=>Glt,Link:()=>Tae,Model:()=>aF});var D={};C.r(D),C.d(D,{And:()=>$lt,Gate:()=>CP,Gate11:()=>cF,Gate21:()=>Vm,IO:()=>sF,Input:()=>Ylt,Nand:()=>Qlt,Nor:()=>Xlt,Not:()=>Wlt,Or:()=>qlt,Output:()=>Ult,Repeater:()=>jlt,Wire:()=>Jlt,Xnor:()=>Klt,Xor:()=>Zlt});var L={};C.r(L),C.d(L,{BishopBlack:()=>s1t,BishopWhite:()=>a1t,KingBlack:()=>t1t,KingWhite:()=>e1t,KnightBlack:()=>l1t,KnightWhite:()=>c1t,PawnBlack:()=>u1t,PawnWhite:()=>d1t,QueenBlack:()=>i1t,QueenWhite:()=>n1t,RookBlack:()=>r1t,RookWhite:()=>o1t});var q={};C.r(q),C.d(q,{Attribute:()=>Xv,Derived:()=>g1t,Entity:()=>Eae,ISA:()=>C1t,IdentifyingRelationship:()=>p1t,Key:()=>m1t,Line:()=>v1t,Multivalued:()=>f1t,Normal:()=>_1t,Relationship:()=>Aae,WeakEntity:()=>h1t});var Q={};C.r(Q),C.d(Q,{Arrow:()=>w1t,EndState:()=>y1t,StartState:()=>x1t,State:()=>b1t});var k={};C.r(k),C.d(k,{Arrow:()=>O1t,Member:()=>M1t});var c={};C.r(c),C.d(c,{Link:()=>E1t,Place:()=>S1t,PlaceView:()=>P1t,Transition:()=>T1t});var X={};C.r(X),C.d(X,{Abstract:()=>A1t,AbstractView:()=>L1t,Aggregation:()=>R1t,Association:()=>F1t,Class:()=>lF,ClassView:()=>dF,Composition:()=>z1t,EndState:()=>B1t,Generalization:()=>I1t,Implementation:()=>N1t,Interface:()=>D1t,InterfaceView:()=>k1t,StartState:()=>V1t,State:()=>H1t,Transition:()=>G1t});var te={};C.r(te),C.d(te,{basic:()=>v,chess:()=>L,devs:()=>A,erd:()=>q,fsa:()=>Q,logic:()=>D,org:()=>k,pn:()=>c,standard:()=>O,uml:()=>X});var ge={};C.r(ge),C.d(ge,{manhattan:()=>yF,metro:()=>Mdt,normal:()=>adt,oneSide:()=>sdt,orthogonal:()=>CF});var Ce={};C.r(Ce),C.d(Ce,{curve:()=>MF,jumpover:()=>kdt,normal:()=>Idt,rounded:()=>Ndt,smooth:()=>Rdt});var De={};C.r(De),C.d(De,{addClass:()=>Zdt,mask:()=>Xdt,opacity:()=>Qdt,stroke:()=>qdt});var Pe={};C.r(Pe),C.d(Pe,{connectionClosest:()=>lse,connectionLength:()=>Jdt,connectionPerpendicular:()=>n2t,connectionRatio:()=>Kdt,resolveRef:()=>eb});var ee={};C.r(ee),C.d(ee,{anchor:()=>c2t,bbox:()=>l2t,boundary:()=>u2t,rectangle:()=>d2t});var K={};function _e(t){return"function"==typeof t}function Ne(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}C.r(K),C.d(K,{bottom:()=>_2t,bottomLeft:()=>y2t,bottomRight:()=>w2t,center:()=>g2t,left:()=>C2t,midSide:()=>O2t,modelCenter:()=>S2t,perpendicular:()=>M2t,right:()=>v2t,top:()=>m2t,topLeft:()=>b2t,topRight:()=>x2t});const Ve=Ne(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Oe(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Se{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(_e(i))try{i()}catch(r){n=r instanceof Ve?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Ke(r)}catch(a){n=null!=n?n:[],a instanceof Ve?n=[...n,...a.errors]:n.push(a)}}if(n)throw new Ve(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Ke(n);else{if(n instanceof Se){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Oe(e,n)}remove(n){const{_finalizers:e}=this;e&&Oe(e,n),n instanceof Se&&n._removeParent(this)}}Se.EMPTY=(()=>{const t=new Se;return t.closed=!0,t})();const Ge=Se.EMPTY;function st(t){return t instanceof Se||t&&"closed"in t&&_e(t.remove)&&_e(t.add)&&_e(t.unsubscribe)}function Ke(t){_e(t)?t():t.unsubscribe()}const Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Et(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Je;if(!n)throw t;n(t)})}function wt(){}const At=Tt("C",void 0,void 0);function Tt(t,n,e){return{kind:t,value:n,error:e}}let Mt=null;function Xt(t){if(Je.useDeprecatedSynchronousErrorHandling){const n=!Mt;if(n&&(Mt={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Mt;if(Mt=null,e)throw i}}else t()}class s extends Se{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,st(n)&&n.add(this)):this.destination=ae}static create(n,e,i){return new P(n,e,i)}next(n){this.isStopped?fe(function bt(t){return Tt("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?fe(function Vt(t){return Tt("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?fe(At,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const d=Function.prototype.bind;function p(t,n){return d.call(t,n)}class g{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){b(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){b(i)}else b(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){b(e)}}}class P extends s{constructor(n,e,i){let o;if(super(),_e(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&Je.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&p(n.next,r),error:n.error&&p(n.error,r),complete:n.complete&&p(n.complete,r)}):o=n}this.destination=new g(o)}}function b(t){Je.useDeprecatedSynchronousErrorHandling?function Gt(t){Je.useDeprecatedSynchronousErrorHandling&&Mt&&(Mt.errorThrown=!0,Mt.error=t)}(t):Et(t)}function fe(t,n){const{onStoppedNotification:e}=Je;e&&pt.setTimeout(()=>e(t,n))}const ae={closed:!0,next:wt,error:function B(t){throw t},complete:wt},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ie(t){return t}let Wt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function M(t){return t&&t instanceof s||function di(t){return t&&_e(t.next)&&_e(t.error)&&_e(t.complete)}(t)&&st(t)}(e)?e:new P(e,i,o);return Xt(()=>{const{operator:a,source:l}=this;r.add(a?a.call(r,l):l?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Fn(i))((o,r)=>{const a=new P({next:l=>{try{e(l)}catch(u){r(u),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[pe](){return this}pipe(...e){return function Yt(t){return 0===t.length?Ie:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=Fn(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function Fn(t){var n;return null!==(n=null!=t?t:Je.Promise)&&void 0!==n?n:Promise}const I=Ne(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let N=(()=>{class t extends Wt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new re(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new I}next(e){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?Ge:(this.currentObservers=null,r.push(e),new Se(()=>{this.currentObservers=null,Oe(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new Wt;return e.source=this,e}}return t.create=(n,e)=>new re(n,e),t})();class re extends N{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Ge}}function he(t){return _e(null==t?void 0:t.lift)}function ve(t){return n=>{if(he(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(t,n,e,i,o){return new at(t,n,e,i,o)}class at extends s{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(l){try{e(l)}catch(u){n.error(u)}}:super._next,this._error=o?function(l){try{o(l)}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function it(t,n){return ve((e,i)=>{let o=0;e.subscribe($e(i,r=>{i.next(t.call(n,r,o++))}))})}function An(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r}function Lr(t){return this instanceof Lr?(this.v=t,this):new Lr(t)}function ba(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(U){i[U]&&(o[U]=function(ie){return new Promise(function(se,Me){r.push([U,ie,se,Me])>1||l(U,ie)})})}function l(U,ie){try{!function u(U){U.value instanceof Lr?Promise.resolve(U.value.v).then(f,w):T(r[0][2],U)}(i[U](ie))}catch(se){T(r[0][3],se)}}function f(U){l("next",U)}function w(U){l("throw",U)}function T(U,ie){U(ie),r.shift(),r.length&&l(r[0][0],r[0][1])}}function La(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Qi(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(l,u){!function o(r,a,l,u){Promise.resolve(u).then(function(f){r({value:f,done:l})},a)}(l,u,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const xc=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Gs(t){return _e(null==t?void 0:t.then)}function Jr(t){return _e(t[pe])}function Ns(t){return Symbol.asyncIterator&&_e(null==t?void 0:t[Symbol.asyncIterator])}function Ga(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Lc=function zl(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function yc(t){return _e(null==t?void 0:t[Lc])}function ec(t){return ba(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Lr(e.read());if(o)return yield Lr(void 0);yield yield Lr(i)}}finally{e.releaseLock()}})}function ea(t){return _e(null==t?void 0:t.getReader)}function Ur(t){if(t instanceof Wt)return t;if(null!=t){if(Jr(t))return function Ys(t){return new Wt(n=>{const e=t[pe]();if(_e(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(xc(t))return function Fl(t){return new Wt(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Et)})}(t);if(Ns(t))return G1(t);if(yc(t))return function B1(t){return new Wt(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ea(t))return function ks(t){return G1(ec(t))}(t)}throw Ga(t)}function G1(t){return new Wt(n=>{(function Dc(t,n){var e,i,o,r;return function vi(t,n,e,i){return new(e||(e=Promise))(function(r,a){function l(w){try{f(i.next(w))}catch(T){a(T)}}function u(w){try{f(i.throw(w))}catch(T){a(T)}}function f(w){w.done?r(w.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(w.value).then(l,u)}f((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=La(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Rs(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function da(t,n,e=1/0){return _e(n)?da((i,o)=>it((r,a)=>n(i,r,o,a))(Ur(t(i,o))),e):("number"==typeof n&&(e=n),ve((i,o)=>function Hl(t,n,e,i,o,r,a,l){const u=[];let f=0,w=0,T=!1;const U=()=>{T&&!u.length&&!f&&n.complete()},ie=Me=>f{r&&n.next(Me),f++;let we=!1;Ur(e(Me,w++)).subscribe($e(n,He=>{null==o||o(He),r?ie(He):n.next(He)},()=>{we=!0},void 0,()=>{if(we)try{for(f--;u.length&&fse(He)):se(He)}U()}catch(He){n.error(He)}}))};return t.subscribe($e(n,ie,()=>{T=!0,U()})),()=>{null==l||l()}}(i,o,t,e)))}function wc(t=1/0){return da(Ie,t)}const Na=new Wt(t=>t.complete());function C1(t){return t&&_e(t.schedule)}function Vl(t){return t[t.length-1]}function Da(t){return _e(Vl(t))?t.pop():void 0}function Us(t){return C1(Vl(t))?t.pop():void 0}function gl(t,n=0){return ve((e,i)=>{e.subscribe($e(i,o=>Rs(i,t,()=>i.next(o),n),()=>Rs(i,t,()=>i.complete(),n),o=>Rs(i,t,()=>i.error(o),n)))})}function js(t,n=0){return ve((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function uc(t,n){if(!t)throw new Error("Iterable cannot be null");return new Wt(e=>{Rs(e,n,()=>{const i=t[Symbol.asyncIterator]();Rs(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Ra(t,n){return n?function r1(t,n){if(null!=t){if(Jr(t))return function Bs(t,n){return Ur(t).pipe(js(n),gl(n))}(t,n);if(xc(t))return function ml(t,n){return new Wt(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Gs(t))return function Ic(t,n){return Ur(t).pipe(js(n),gl(n))}(t,n);if(Ns(t))return uc(t,n);if(yc(t))return function v1(t,n){return new Wt(e=>{let i;return Rs(e,n,()=>{i=t[Lc](),Rs(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>_e(null==i?void 0:i.return)&&i.return()})}(t,n);if(ea(t))return function b1(t,n){return uc(ec(t),n)}(t,n)}throw Ga(t)}(t,n):Ur(t)}function kr(...t){const n=Us(t),e=function dc(t,n){return"number"==typeof Vl(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Ur(i[0]):wc(e)(Ra(i,n)):Na}function _l(t={}){const{connector:n=(()=>new N),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,l,u,f=0,w=!1,T=!1;const U=()=>{null==l||l.unsubscribe(),l=void 0},ie=()=>{U(),a=u=void 0,w=T=!1},se=()=>{const Me=a;ie(),null==Me||Me.unsubscribe()};return ve((Me,we)=>{f++,!T&&!w&&U();const He=u=null!=u?u:n();we.add(()=>{f--,0===f&&!T&&!w&&(l=Y1(se,o))}),He.subscribe(we),!a&&f>0&&(a=new P({next:Be=>He.next(Be),error:Be=>{T=!0,U(),l=Y1(ie,e,Be),He.error(Be)},complete:()=>{w=!0,U(),l=Y1(ie,i),He.complete()}}),Ur(Me).subscribe(a))})(r)}}function Y1(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new P({next:()=>{i.unsubscribe(),t()}});return Ur(n(...e)).subscribe(i)}function Pa(t){for(let n in t)if(t[n]===Pa)return n;throw Error("Could not find renamed property on target object.")}function le(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Le(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Le).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Fe(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const We=Pa({__forward_ref__:Pa});function nt(t){return t.__forward_ref__=nt,t.toString=function(){return Le(this())},t}function lt(t){return It(t)?t():t}function It(t){return"function"==typeof t&&t.hasOwnProperty(We)&&t.__forward_ref__===nt}class sn extends Error{constructor(n,e){super(function Hn(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function On(t){return"string"==typeof t?t:null==t?"":String(t)}function xi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():On(t)}function Bo(t,n){const e=n?` in ${n}`:"";throw new sn(-201,`No provider for ${xi(t)} found${e}`)}function Ye(t,n){null==t&&function je(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function gt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cn(t){return Kn(t,Sr)||Kn(t,ra)}function Kn(t,n){return t.hasOwnProperty(n)?t[n]:null}function Gi(t){return t&&(t.hasOwnProperty(Go)||t.hasOwnProperty(tc))?t[Go]:null}const Sr=Pa({\u0275prov:Pa}),Go=Pa({\u0275inj:Pa}),ra=Pa({ngInjectableDef:Pa}),tc=Pa({ngInjectorDef:Pa});var qi=(()=>((qi=qi||{})[qi.Default=0]="Default",qi[qi.Host=1]="Host",qi[qi.Self=2]="Self",qi[qi.SkipSelf=4]="SkipSelf",qi[qi.Optional=8]="Optional",qi))();let Ya;function Fr(t){const n=Ya;return Ya=t,n}function Ha(t,n,e){const i=Cn(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&qi.Optional?null:void 0!==n?n:void Bo(Le(t),"Injector")}function qr(t){return{toString:t}.toString()}var Ua=(()=>((Ua=Ua||{})[Ua.OnPush=0]="OnPush",Ua[Ua.Default=1]="Default",Ua))(),pa=(()=>{return(t=pa||(pa={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",pa;var t})();const Ko="undefined"!=typeof globalThis&&globalThis,al="undefined"!=typeof window&&window,Hr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,tt=Ko||"undefined"!=typeof global&&global||al||Hr,en={},gn=[],bn=Pa({\u0275cmp:Pa}),si=Pa({\u0275dir:Pa}),ji=Pa({\u0275pipe:Pa}),ur=Pa({\u0275mod:Pa}),Ao=Pa({\u0275fac:Pa}),wa=Pa({__NG_ELEMENT_ID__:Pa});let os=0;function vn(t){return qr(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ua.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||gn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||pa.Emulated,id:"c",styles:t.styles||gn,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,r=t.features,a=t.pipes;return i.id+=os++,i.inputs=Pn(t.inputs,e),i.outputs=Pn(t.outputs),r&&r.forEach(l=>l(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(rs):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map($s):null,i})}function rs(t){return ci(t)||function mi(t){return t[si]||null}(t)}function $s(t){return function $i(t){return t[ji]||null}(t)}const U1={};function ht(t){return qr(()=>{const n={type:t.type,bootstrap:t.bootstrap||gn,declarations:t.declarations||gn,imports:t.imports||gn,exports:t.exports||gn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(U1[t.id]=t.type),n})}function Pn(t,n){if(null==t)return en;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}const St=vn;function zn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ci(t){return t[bn]||null}function zt(t,n){const e=t[ur]||null;if(!e&&!0===n)throw new Error(`Type ${Le(t)} does not have '\u0275mod' property.`);return e}function Ms(t){return Array.isArray(t)&&"object"==typeof t[1]}function ms(t){return Array.isArray(t)&&!0===t[1]}function as(t){return 0!=(8&t.flags)}function zd(t){return 2==(2&t.flags)}function x1(t){return 1==(1&t.flags)}function ss(t){return null!==t.template}function G3(t){return 0!=(512&t[2])}function g2(t,n){return t.hasOwnProperty(Ao)?t[Ao]:null}class s0{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yo(){return Zm}function Zm(t){return t.type.prototype.ngOnChanges&&(t.setInput=M8),w8}function w8(){const t=lp(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===en)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function M8(t,n,e,i){const o=lp(t)||function dp(t,n){return t[Km]=n}(t,{previous:en,current:null}),r=o.current||(o.current={}),a=o.previous,l=this.declaredInputs[e],u=a[l];r[l]=new s0(u&&u.currentValue,n,a===en),t[i]=n}Yo.ngInherit=!0;const Km="__ngSimpleChanges__";function lp(t){return t[Km]||null}let up;function j4(){return void 0!==up?up:"undefined"!=typeof document?document:void 0}function fc(t){return!!t.listen}const Jm={createRenderer:(t,n)=>j4()};function Os(t){for(;Array.isArray(t);)t=t[0];return t}function $3(t,n){return Os(n[t])}function j1(t,n){return Os(n[t.index])}function Fd(t,n){return t.data[n]}function l0(t,n){return t[n]}function Rc(t,n){const e=n[t];return Ms(e)?e:e[0]}function W4(t){return 4==(4&t[2])}function q4(t){return 128==(128&t[2])}function w1(t,n){return null==n?null:t[n]}function Xi(t){t[18]=0}function $4(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const xr={lFrame:J3(null),bindingsEnabled:!0};function Z4(){return xr.bindingsEnabled}function Fi(){return xr.lFrame.lView}function ka(){return xr.lFrame.tView}function Dt(t){return xr.lFrame.contextLView=t,t[8]}function gc(){let t=K4();for(;null!==t&&64===t.type;)t=t.parent;return t}function K4(){return xr.lFrame.currentTNode}function _2(t,n){const e=xr.lFrame;e.currentTNode=t,e.isParent=n}function fd(){return xr.lFrame.isParent}function hp(){xr.lFrame.isParent=!1}function Qs(){const t=xr.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function ph(){return xr.lFrame.bindingIndex++}function U2(t){const n=xr.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function r5(t,n){const e=xr.lFrame;e.bindingIndex=e.bindingRootIndex=t,fp(n)}function fp(t){xr.lFrame.currentDirectiveIndex=t}function Z3(t){const n=xr.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Hd(){return xr.lFrame.currentQueryIndex}function Vd(t){xr.lFrame.currentQueryIndex=t}function K3(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Su(t,n,e){if(e&qi.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&qi.Host||(o=K3(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,t=r}const i=xr.lFrame=Gl();return i.currentTNode=n,i.lView=t,!0}function gp(t){const n=Gl(),e=t[1];xr.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Gl(){const t=xr.lFrame,n=null===t?null:t.child;return null===n?J3(t):n}function J3(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function a5(){const t=xr.lFrame;return xr.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const s5=a5;function ef(){const t=a5();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Qc(){return xr.lFrame.selectedIndex}function j2(t){xr.lFrame.selectedIndex=t}function mc(){const t=xr.lFrame;return Fd(t.tView,t.selectedIndex)}function bi(){xr.lFrame.currentNamespace="svg"}function gd(){!function h0(){xr.lFrame.currentNamespace=null}()}function ce(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[u]<0&&(t[18]+=65536),(l>11>16&&(3&t[2])===n){t[2]+=2048;try{r.call(l)}finally{}}}else try{r.call(l)}finally{}}class or{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function c5(t,n,e){const i=fc(t);let o=0;for(;on){a=r-1;break}}}for(;r>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let _p=!0;function J4(t){const n=_p;return _p=t,n}let MT=0;function Cp(t,n){const e=f5(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,p5(i.data,t),p5(n,null),p5(i.blueprint,null));const o=O1(t,n),r=t.injectorIndex;if(u5(o)){const a=aa(o),l=nf(o,n),u=l[1].data;for(let f=0;f<8;f++)n[r+f]=l[a+f]|u[a+f]}return n[r+8]=o,r}function p5(t,n){t.push(0,0,0,0,0,0,0,0,n)}function f5(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function O1(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){const r=o[1],a=r.type;if(i=2===a?r.declTNode:1===a?o[6]:null,null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function q2(t,n,e){!function h5(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(wa)&&(i=e[wa]),null==i&&(i=e[wa]=MT++);const o=255&i;n.data[t+(o>>5)]|=1<=0?255&n:Mb:n}(e);if("function"==typeof r){if(!Su(n,t,i))return i&qi.Host?D8(o,e,i):eg(n,e,i,o);try{const a=r(i);if(null!=a||i&qi.Optional)return a;Bo(e)}finally{s5()}}else if("number"==typeof r){let a=null,l=f5(t,n),u=-1,f=i&qi.Host?n[16][6]:null;for((-1===l||i&qi.SkipSelf)&&(u=-1===l?O1(t,n):n[l+8],-1!==u&&N8(i,!1)?(a=n[1],l=aa(u),n=nf(u,n)):l=-1);-1!==l;){const w=n[1];if(fh(r,l,w.data)){const T=I8(l,n,e,a,i,f);if(T!==g5)return T}u=n[l+8],-1!==u&&N8(i,n[1].data[l+8]===f)&&fh(r,l,n)?(a=w,l=aa(u),n=nf(u,n)):l=-1}}}return eg(n,e,i,o)}const g5={};function Mb(){return new vp(gc(),Fi())}function I8(t,n,e,i,o,r){const a=n[1],l=a.data[t+8],w=rf(l,a,e,null==i?zd(l)&&_p:i!=a&&0!=(3&l.type),o&qi.Host&&r===l);return null!==w?C2(n,a,w,l):g5}function rf(t,n,e,i,o){const r=t.providerIndexes,a=n.data,l=1048575&r,u=t.directiveStart,w=r>>20,U=o?l+w:t.directiveEnd;for(let ie=i?l:l+w;ie=u&&se.type===e)return ie}if(o){const ie=a[u];if(ie&&ss(ie)&&ie.type===e)return u}return null}function C2(t,n,e,i){let o=t[e];const r=n.data;if(function ua(t){return t instanceof or}(o)){const a=o;a.resolving&&function Ni(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new sn(-200,`Circular dependency in DI detected for ${t}${e}`)}(xi(r[e]));const l=J4(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?Fr(a.injectImpl):null;Su(t,i,qi.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function za(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Zm(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,a)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==u&&Fr(u),J4(l),a.resolving=!1,s5()}}return o}function fh(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[Ao]||R8(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Ao]||R8(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function R8(t){return It(t)?()=>{const n=R8(lt(t));return n&&n()}:g2(t)}function Yl(t){return function L8(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{const i=function m5(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return l.annotation=a,l;function l(u,f,w){const T=u.hasOwnProperty(bp)?u[bp]:Object.defineProperty(u,bp,{value:[]})[bp];for(;T.length<=w;)T.push(null);return(T[w]=T[w]||[]).push(a),u}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class ui{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=gt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ST=new ui("AnalyzeForEntryComponents");function q1(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?v2(e,n):n(e))}function ng(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function v5(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function cf(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function H8(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function b5(t,n){const e=lf(t,n);if(e>=0)return t[1|e]}function lf(t,n){return function Tb(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<({token:t})),-1),a1=xl(yp("Optional"),8),jd=xl(yp("SkipSelf"),4);let Lu,P5;function Sp(t){var n;return(null===(n=function $8(){if(void 0===Lu&&(Lu=null,tt.trustedTypes))try{Lu=tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Lu}())||void 0===n?void 0:n.createHTML(t))||t}function Gb(t){var n;return(null===(n=function X8(){if(void 0===P5&&(P5=null,tt.trustedTypes))try{P5=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return P5}())||void 0===n?void 0:n.createHTML(t))||t}class Pp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class FT extends Pp{getTypeName(){return"HTML"}}class HT extends Pp{getTypeName(){return"Style"}}class jb extends Pp{getTypeName(){return"Script"}}class Wb extends Pp{getTypeName(){return"URL"}}class qb extends Pp{getTypeName(){return"ResourceURL"}}function Wd(t){return t instanceof Pp?t.changingThisBreaksApplicationSecurity:t}function Du(t,n){const e=$b(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function $b(t){return t instanceof Pp&&t.getTypeName()||null}class UT{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Sp(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class b2{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Sp(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Sp(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let o=e.length-1;0rg(n.trim())).join(", ")}function ku(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function ag(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const T5=ku("area,br,col,hr,img,wbr"),Jb=ku("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ex=ku("rp,rt"),Q8=ag(T5,ag(Jb,ku("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ag(ex,ku("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ag(ex,Jb)),Z8=ku("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),K8=ku("srcset"),tx=ag(Z8,K8,ku("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ku("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),qT=ku("script,style,template");class $T{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Q8.hasOwnProperty(e))return this.sanitizedSomething=!0,!qT.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Q8.hasOwnProperty(e)&&!T5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(nx(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const XT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,QT=/([^\#-~ |!])/g;function nx(t){return t.replace(/&/g,"&").replace(XT,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(QT,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let E5;function ix(t,n){let e=null;try{E5=E5||function Qb(t){const n=new b2(t);return function jT(){try{return!!(new window.DOMParser).parseFromString(Sp(""),"text/html")}catch(t){return!1}}()?new UT(n):n}(t);let i=n?String(n):"";e=E5.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=E5.getInertBodyElement(i)}while(i!==r);return Sp((new $T).sanitizeChildren(J8(e)||e))}finally{if(e){const i=J8(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function J8(t){return"content"in t&&function ZT(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Za=(()=>((Za=Za||{})[Za.NONE=0]="NONE",Za[Za.HTML=1]="HTML",Za[Za.STYLE=2]="STYLE",Za[Za.SCRIPT=3]="SCRIPT",Za[Za.URL=4]="URL",Za[Za.RESOURCE_URL=5]="RESOURCE_URL",Za))();function A5(t){const n=g0();return n?Gb(n.sanitize(Za.HTML,t)||""):Du(t,"HTML")?Gb(Wd(t)):ix(j4(),On(t))}function ao(t){const n=g0();return n?n.sanitize(Za.URL,t)||"":Du(t,"URL")?Wd(t):rg(On(t))}function g0(){const t=Fi();return t&&t[12]}const ax="__ngContext__";function P1(t,n){t[ax]=n}function t7(t){const n=function sg(t){return t[ax]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function n7(t){return t.ngOriginalError}function pE(t,...n){t.error(...n)}class X2{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function hE(t){return t&&t.ngErrorLogger||pE}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&n7(n);for(;e&&n7(e);)e=n7(e);return e||null}}const wE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(tt))();function Tp(t){return t.ownerDocument.defaultView}function Ep(t){return t.ownerDocument}function D5(t){return t.ownerDocument.body}function x2(t){return t instanceof Function?t():t}var qd=(()=>((qd=qd||{})[qd.Important=1]="Important",qd[qd.DashCase=2]="DashCase",qd))();function a7(t,n){return undefined(t,n)}function lg(t){const n=t[3];return ms(n)?n[3]:n}function N5(t){return fx(t[13])}function s7(t){return fx(t[4])}function fx(t){for(;null!==t&&!ms(t);)t=t[4];return t}function pf(t,n,e,i,o){if(null!=i){let r,a=!1;ms(i)?r=i:Ms(i)&&(a=!0,i=i[0]);const l=Os(i);0===t&&null!==e?null==o?Cx(n,e,l):Lp(n,e,l,o||null,!0):1===t&&null!==e?Lp(n,e,l,o||null,!0):2===t?function yx(t,n,e){const i=R5(t,n);i&&function kE(t,n,e,i){fc(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,l,a):3===t&&n.destroyNode(l),null!=r&&function hg(t,n,e,i,o){const r=e[7];r!==Os(e)&&pf(n,t,i,r,o);for(let l=10;l0&&(t[e-1][4]=i[4]);const r=v5(t,10+n);!function TE(t,n){ug(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const a=r[19];null!==a&&a.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function sa(t,n){if(!(256&n[2])){const e=n[11];fc(e)&&e.destroyNode&&ug(t,n,e,3,null,null),function LE(t){let n=t[13];if(!n)return d7(t[1],t);for(;n;){let e=null;if(Ms(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Ms(n)&&d7(n[1],n),n=n[3];null===n&&(n=t),Ms(n)&&d7(n[1],n),e=n&&n[4]}n=e}}(n)}}function d7(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function Zc(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[o=f]():i[o=-f].unsubscribe(),r+=2}else{const a=i[o=e[r+1]];e[r].call(a)}if(null!==i){for(let r=o+1;rr?"":o[T+1].toLowerCase();const ie=8&i?U:null;if(ie&&-1!==pg(ie,f,0)||2&i&&f!==U){if(Z2(i))return!1;a=!0}}}}else{if(!a&&!Z2(i)&&!Z2(u))return!1;if(a&&Z2(u))continue;a=!1,i=u|1&i}}return Z2(i)||a}function Z2(t){return 0==(1&t)}function Ox(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+l+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Z2(a)&&(n+=Tx(r,o),o=""),i=a,r=r||!Z2(i);e++}return""!==o&&(n+=Tx(r,o)),n}const $r={};function W(t){Ax(ka(),Fi(),Qc()+t,!1)}function Ax(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Te(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Ze(n,r,0,e)}j2(e)}function F5(t,n){return t<<17|n<<2}function K2(t){return t>>17&32767}function _7(t){return 2|t}function vh(t){return(131068&t)>>2}function C7(t,n){return-131069&t|n<<2}function v7(t){return 1|t}function Gx(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i20&&Ax(t,n,20,!1),e(i,o)}finally{j2(r)}}function Ux(t,n,e){if(as(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(l)!=u&&l.push(u),l.push(i,o,a)}}function L7(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Jx(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function D7(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&I7(e)}}function I7(t){for(let i=N5(t);null!==i;i=s7(i))for(let o=10;o0&&I7(r)}const e=t[1].components;if(null!==e)for(let i=0;i0&&I7(o)}}function fA(t,n){const e=Rc(n,t),i=e[1];(function gA(t,n){for(let e=n.length;ePromise.resolve(null))();function mt(t){return t[7]||(t[7]=[])}function $t(t){return t.cleanup||(t.cleanup=[])}function hn(t,n,e){return(null===t||ss(t))&&(e=function e5(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function Sn(t,n){const e=t[9],i=e?e.get(X2,null):null;i&&i.handleError(n)}function Bn(t,n,e,i,o){for(let r=0;rthis.processProvider(l,n,e)),v2([n],l=>this.processInjectorType(l,[],r)),this.records.set(Pr,j5(void 0,this));const a=this.records.get(Tr);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof n?null:Le(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=wp,i=qi.Default){this.assertNotDestroyed();const o=Lb(this),r=Fr(void 0);try{if(!(i&qi.SkipSelf)){let l=this.records.get(n);if(void 0===l){const u=function i4e(t){return"function"==typeof t||"object"==typeof t&&t instanceof ui}(n)&&Cn(n);l=u&&this.injectableDefInScope(u)?j5(eu(n),Ca):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&qi.Self?T1():this.parent).get(n,e=i&qi.Optional&&e===wp?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[x5]=a[x5]||[]).unshift(Le(n)),o)throw a;return function IT(t,n,e,i){const o=t[x5];throw n[Ab]&&o.unshift(n[Ab]),t.message=function W8(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=Le(n);if(Array.isArray(n))o=n.map(Le).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let l=n[a];r.push(a+":"+("string"==typeof l?JSON.stringify(l):Le(l)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(Eb,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[x5]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{Fr(r),Lb(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,o)=>n.push(Le(o))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new sn(205,!1)}processInjectorType(n,e,i){if(!(n=lt(n)))return!1;let o=Gi(n);const r=null==o&&n.ngModule||void 0,a=void 0===r?n:r,l=-1!==i.indexOf(a);if(void 0!==r&&(o=Gi(r)),null==o)return!1;if(null!=o.imports&&!l){let w;i.push(a);try{v2(o.imports,T=>{this.processInjectorType(T,e,i)&&(void 0===w&&(w=[]),w.push(T))})}finally{}if(void 0!==w)for(let T=0;Tthis.processProvider(se,U,ie||gn))}}this.injectorDefTypes.add(a);const u=g2(a)||(()=>new a);this.records.set(a,j5(u,Ca));const f=o.providers;if(null!=f&&!l){const w=n;v2(f,T=>this.processProvider(T,w,f))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let o=W5(n=lt(n))?n:lt(n&&n.provide);const r=function Zfe(t,n,e){return UV(t)?j5(void 0,t.useValue):j5(YV(t),Ca)}(n);if(W5(n)||!0!==n.multi)this.records.get(o);else{let a=this.records.get(o);a||(a=j5(void 0,Ca,!0),a.factory=()=>$2(a.multi),this.records.set(o,a)),o=n,a.multi.push(n)}this.records.set(o,r)}hydrate(n,e){return e.value===Ca&&(e.value=ja,e.value=e.factory()),"object"==typeof e.value&&e.value&&function n4e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=lt(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function eu(t){const n=Cn(t),e=null!==n?n.factory:g2(t);if(null!==e)return e;if(t instanceof ui)throw new sn(204,!1);if(t instanceof Function)return function iy(t){const n=t.length;if(n>0)throw cf(n,"?"),new sn(204,!1);const e=function bo(t){const n=t&&(t[Sr]||t[ra]);if(n){const e=function xo(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new sn(204,!1)}function YV(t,n,e){let i;if(W5(t)){const o=lt(t);return g2(o)||eu(o)}if(UV(t))i=()=>lt(t.useValue);else if(function Jfe(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...$2(t.deps||[]));else if(function Kfe(t){return!(!t||!t.useExisting)}(t))i=()=>qt(lt(t.useExisting));else{const o=lt(t&&(t.useClass||t.provide));if(!function t4e(t){return!!t.deps}(t))return g2(o)||eu(o);i=()=>new o(...$2(t.deps))}return i}function j5(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function UV(t){return null!==t&&"object"==typeof t&&kT in t}function W5(t){return"function"==typeof t}let zs=(()=>{class t{static create(e,i){var o;if(Array.isArray(e))return Cd({name:""},i,e,"");{const r=null!==(o=e.name)&&void 0!==o?o:"";return Cd({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=wp,t.NULL=new _a,t.\u0275prov=gt({token:t,providedIn:"any",factory:()=>qt(Pr)}),t.__NG_ELEMENT_ID__=-1,t})();function u4e(t,n){ce(t7(t)[1],gc())}function ei(t){let n=function nB(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if(ss(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new sn(903,"");o=n.\u0275dir}if(o){if(e){i.push(o);const a=t;a.inputs=vA(t.inputs),a.declaredInputs=vA(t.declaredInputs),a.outputs=vA(t.outputs);const l=o.hostBindings;l&&g4e(t,l);const u=o.viewQuery,f=o.contentQueries;if(u&&p4e(t,u),f&&f4e(t,f),le(t.inputs,o.inputs),le(t.declaredInputs,o.declaredInputs),le(t.outputs,o.outputs),ss(o)&&o.data.animation){const w=t.data;w.animation=(w.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let a=0;a=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=tf(o.hostAttrs,e=tf(e,o.hostAttrs))}}(i)}function vA(t){return t===en?{}:t===gn?[]:t}function p4e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function f4e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function g4e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}let oy=null;function q5(){if(!oy){const t=tt.Symbol;if(t&&t.iterator)oy=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;el(Os(ze[i.index])):i.index;if(fc(e)){let ze=null;if(!l&&u&&(ze=function j4e(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;ru?l[u]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==ze)(ze.__ngLastListenerFn__||ze).__ngNextListenerFn__=r,ze.__ngLastListenerFn__=r,ie=!1;else{r=PA(i,n,T,r,!1);const qe=e.listen(He,o,r);U.push(r,qe),w&&w.push(o,me,Be,Be+1)}}else r=PA(i,n,T,r,!0),He.addEventListener(o,r,a),U.push(r),w&&w.push(o,me,Be,a)}else r=PA(i,n,T,r,!1);const se=i.outputs;let Me;if(ie&&null!==se&&(Me=se[o])){const we=Me.length;if(we)for(let He=0;He0;)n=n[15],t--;return n}(t,xr.lFrame.contextLView))[8]}(t)}function W4e(t,n){let e=null;const i=function ma(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let o=0;o=0}const s1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kB(t){return t.substring(s1.key,s1.keyEnd)}function IB(t,n){const e=s1.textEnd;return e===n?-1:(n=s1.keyEnd=function J4e(t,n,e){for(;n32;)n++;return n}(t,s1.key=n,e),r6(t,n,e))}function r6(t,n,e){for(;n=0;e=IB(n,e))md(t,kB(n),!0)}function xh(t,n,e,i){const o=Fi(),r=ka(),a=U2(2);r.firstUpdatePass&&VB(r,t,a,i),n!==$r&&vd(o,a,n)&&GB(r,r.data[Qc()],o,o[11],t,o[a+1]=function lge(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Le(Wd(t)))),t}(n,e),i,a)}function yh(t,n,e,i){const o=ka(),r=U2(2);o.firstUpdatePass&&VB(o,null,r,i);const a=Fi();if(e!==$r&&vd(a,r,e)){const l=o.data[Qc()];if(UB(l,i)&&!HB(o,r)){let u=i?l.classesWithoutHost:l.stylesWithoutHost;null!==u&&(e=Fe(u,e||"")),OA(o,l,a,e,i)}else!function cge(t,n,e,i,o,r,a,l){o===$r&&(o=gn);let u=0,f=0,w=0=t.expandoStartIndex}function VB(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Qc()],a=HB(t,e);UB(r,i)&&null===n&&!a&&(n=!1),n=function ige(t,n,e,i){const o=Z3(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=B7(e=EA(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=EA(o,t,n,e,i),null===r){let u=function oge(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==vh(i))return t[K2(i)]}(t,n,i);void 0!==u&&Array.isArray(u)&&(u=EA(null,t,n,u[1],i),u=B7(u,n.attrs,i),function rge(t,n,e,i){t[K2(e?n.classBindings:n.styleBindings)]=i}(t,n,i,u))}else r=function age(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(f=!0)}else w=e;if(o)if(0!==u){const U=K2(t[l+1]);t[i+1]=F5(U,l),0!==U&&(t[U+1]=C7(t[U+1],i)),t[l+1]=function HE(t,n){return 131071&t|n<<17}(t[l+1],i)}else t[i+1]=F5(l,0),0!==l&&(t[l+1]=C7(t[l+1],i)),l=i;else t[i+1]=F5(u,0),0===l?l=i:t[u+1]=C7(t[u+1],i),u=i;f&&(t[i+1]=_7(t[i+1])),DB(t,w,i,!0),DB(t,w,i,!1),function $4e(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&lf(r,n)>=0&&(e[i+1]=v7(e[i+1]))}(n,w,t,i,r),a=F5(l,u),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function EA(t,n,e,i,o){let r=null;const a=e.directiveEnd;let l=e.directiveStylingLast;for(-1===l?l=e.directiveStart:l++;l0;){const u=t[o],f=Array.isArray(u),w=f?u[1]:u,T=null===w;let U=e[o+1];U===$r&&(U=T?gn:void 0);let ie=T?b5(U,i):w===i?U:void 0;if(f&&!sy(ie)&&(ie=b5(u,i)),sy(ie)&&(l=ie,a))return l;const se=t[o+1];o=a?K2(se):vh(se)}if(null!==n){let u=r?n.residualClasses:n.residualStyles;null!=u&&(l=b5(u,i))}return l}function sy(t){return void 0!==t}function UB(t,n){return 0!=(t.flags&(n?16:32))}function ue(t,n=""){const e=Fi(),i=ka(),o=t+20,r=i.firstCreatePass?mf(i,o,1,n,null):i.data[o],a=e[o]=function c7(t,n){return fc(t)?t.createText(n):t.createTextNode(n)}(e[11],n);ic(i,e,a,r),_2(r,!1)}function qo(t){return Nt("",t,""),qo}function Nt(t,n,e){const i=Fi(),o=X5(i,t,n,e);return o!==$r&&Si(i,Qc(),o),Nt}function cy(t,n,e,i,o){const r=Fi(),a=Q5(r,t,n,e,i,o);return a!==$r&&Si(r,Qc(),a),cy}function xf(t,n,e){yh(md,b0,X5(Fi(),t,n,e),!0)}function Fu(t,n,e){const i=Fi();return vd(i,ph(),n)&&Zs(ka(),mc(),i,t,n,i[11],e,!0),Fu}function a6(t,n,e){const i=Fi();if(vd(i,ph(),n)){const r=ka(),a=mc();Zs(r,a,i,t,n,hn(Z3(r.data),a,i),e,!0)}return a6}const vg=void 0;var Tge=["en",[["a","p"],["AM","PM"],vg],[["AM","PM"],vg,vg],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vg,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vg,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vg,"{1} 'at' {0}",vg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Pge(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let s6={};function Xd(t){const n=function Ege(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=cG(n);if(e)return e;const i=n.split("-")[0];if(e=cG(i),e)return e;if("en"===i)return Tge;throw new Error(`Missing locale data for the locale "${t}".`)}function cG(t){return t in s6||(s6[t]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[t]),s6[t]}var zo=(()=>((zo=zo||{})[zo.LocaleId=0]="LocaleId",zo[zo.DayPeriodsFormat=1]="DayPeriodsFormat",zo[zo.DayPeriodsStandalone=2]="DayPeriodsStandalone",zo[zo.DaysFormat=3]="DaysFormat",zo[zo.DaysStandalone=4]="DaysStandalone",zo[zo.MonthsFormat=5]="MonthsFormat",zo[zo.MonthsStandalone=6]="MonthsStandalone",zo[zo.Eras=7]="Eras",zo[zo.FirstDayOfWeek=8]="FirstDayOfWeek",zo[zo.WeekendRange=9]="WeekendRange",zo[zo.DateFormat=10]="DateFormat",zo[zo.TimeFormat=11]="TimeFormat",zo[zo.DateTimeFormat=12]="DateTimeFormat",zo[zo.NumberSymbols=13]="NumberSymbols",zo[zo.NumberFormats=14]="NumberFormats",zo[zo.CurrencyCode=15]="CurrencyCode",zo[zo.CurrencySymbol=16]="CurrencySymbol",zo[zo.CurrencyName=17]="CurrencyName",zo[zo.Currencies=18]="Currencies",zo[zo.Directionality=19]="Directionality",zo[zo.PluralCase=20]="PluralCase",zo[zo.ExtraData=21]="ExtraData",zo))();const ly="en-US";let lG=ly;function DA(t,n,e,i,o){if(t=lt(t),Array.isArray(t))for(let r=0;r>20;if(W5(t)||!t.multi){const ie=new or(u,o,de),se=IA(l,n,o?w:w+U,T);-1===se?(q2(Cp(f,a),r,l),kA(r,t,n.length),n.push(l),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),e.push(ie),a.push(ie)):(e[se]=ie,a[se]=ie)}else{const ie=IA(l,n,w+U,T),se=IA(l,n,w,w+U),Me=ie>=0&&e[ie],we=se>=0&&e[se];if(o&&!we||!o&&!Me){q2(Cp(f,a),r,l);const He=function Pme(t,n,e,i,o){const r=new or(t,e,de);return r.multi=[],r.index=n,r.componentProviders=0,kG(r,o,i&&!e),r}(o?Sme:Ome,e.length,o,i,u);!o&&we&&(e[se].providerFactory=He),kA(r,t,n.length,0),n.push(l),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),e.push(He),a.push(He)}else kA(r,t,ie>-1?ie:se,kG(e[o?se:ie],u,!o&&i));!o&&i&&we&&e[se].componentProviders++}}}function kA(t,n,e,i){const o=W5(n),r=function e4e(t){return!!t.useClass}(n);if(o||r){const u=(r?lt(n.useClass):n).prototype.ngOnDestroy;if(u){const f=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const w=f.indexOf(e);-1===w?f.push(e,[i,u]):f[w+1].push(i,u)}else f.push(e,u)}}}function kG(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function IA(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function Mme(t,n,e){const i=ka();if(i.firstCreatePass){const o=ss(t);DA(e,i.data,i.blueprint,o,!0),DA(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class IG{}class Ame{resolveComponentFactory(n){throw function Eme(t){const n=Error(`No component factory found for ${Le(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let yf=(()=>{class t{}return t.NULL=new Ame,t})();function Lme(){return l6(gc(),Fi())}function l6(t,n){return new Ti(j1(t,n))}let Ti=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=Lme,t})();function Dme(t){return t instanceof Ti?t.nativeElement:t}class W7{}let yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Ime(){const t=Fi(),e=Rc(gc().index,t);return function kme(t){return t[11]}(Ms(e)?e:t)}(),t})(),Nme=(()=>{class t{}return t.\u0275prov=gt({token:t,providedIn:"root",factory:()=>null}),t})();class wf{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Rme=new wf("13.3.11"),RA={};function fy(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Os(r)),ms(r))for(let l=10;l-1&&(_h(n,i),v5(e,i))}this._attachedToViewContainer=!1}sa(this._lView[1],this._lView)}onDestroy(n){$x(this._lView[1],this._lView,null,n)}markForCheck(){N7(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function z7(t,n,e){const i=n[10];i.begin&&i.begin();try{Cf(t,n,t.template,e)}catch(o){throw Sn(n,o),o}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new sn(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function AE(t,n){ug(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new sn(902,"");this._appRef=n}}class zme extends q7{constructor(n){super(n),this._view=n}detectChanges(){ny(this._view)}checkNoChanges(){}get context(){return null}}class RG extends yf{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ci(n);return new zA(e,this.ngModule)}}function zG(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class zA extends IG{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function FE(t){return t.map(Ss).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return zG(this.componentDef.inputs)}get outputs(){return zG(this.componentDef.outputs)}create(n,e,i,o){const r=(o=o||this.ngModule)?function Hme(t,n){return{get:(e,i,o)=>{const r=t.get(e,RA,o);return r!==RA||i===RA?r:n.get(e,i,o)}}}(n,o.injector):n,a=r.get(W7,Jm),l=r.get(Nme,null),u=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",w=i?function qx(t,n,e){if(fc(t))return t.selectRootElement(n,e===pa.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(u,i,this.componentDef.encapsulation):l7(a.createRenderer(null,this.componentDef),f,function Fme(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),T=this.componentDef.onPush?576:528,U=function tB(t,n){return{components:[],scheduler:t||wE,clean:Xe,playerHandler:n||null,flags:0}}(),ie=vf(0,null,null,1,0,null,null,null,null,null),se=gg(null,ie,U,T,null,null,a,u,l,r);let Me,we;gp(se);try{const He=function JV(t,n,e,i,o,r){const a=e[1];e[20]=t;const u=mf(a,20,2,"#host",null),f=u.mergedAttrs=n.hostAttrs;null!==f&&(Li(u,f,!0),null!==t&&(c5(o,t,f),null!==u.classes&&z5(o,t,u.classes),null!==u.styles&&wx(o,t,u.styles)));const w=i.createRenderer(t,n),T=gg(e,jx(n),null,n.onPush?64:16,e[20],u,i,w,r||null,null);return a.firstCreatePass&&(q2(Cp(u,e),a,n.type),Jx(a,u),Y5(u,e.length,1)),U5(e,T),e[20]=T}(w,this.componentDef,se,a,u);if(w)if(i)c5(u,w,["ng-version",Rme.full]);else{const{attrs:Be,classes:me}=function Ex(t){const n=[],e=[];let i=1,o=2;for(;i0&&z5(u,w,me.join(" "))}if(we=Fd(ie,20),void 0!==e){const Be=we.projection=[];for(let me=0;meu(a,n)),n.contentQueries){const u=gc();n.contentQueries(1,a,u.directiveStart)}const l=gc();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(j2(l.index),Kx(e[1],l,0,l.directiveStart,l.directiveEnd,n),L7(n,a)),a}(He,this.componentDef,se,U,[u4e]),mg(ie,se,null)}finally{ef()}return new Bme(this.componentType,Me,l6(we,se),se,we)}}class Bme extends class Tme{}{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new zme(o),this.componentType=n}get injector(){return new vp(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Np{}class FG{}const d6=new Map;class BG extends Np{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new RG(this);const i=zt(n);this._bootstrapComponents=x2(i.bootstrap),this._r3Injector=zc(n,e,[{provide:Np,useValue:this},{provide:yf,useValue:this.componentFactoryResolver}],Le(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=zs.THROW_IF_NOT_FOUND,i=qi.Default){return n===zs||n===Np||n===Pr?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class FA extends FG{constructor(n){super(),this.moduleType=n,null!==zt(n)&&function Yme(t){const n=new Set;!function e(i){const o=zt(i,!0),r=o.id;null!==r&&(function HG(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Le(n)} vs ${Le(n.name)}`)}(r,d6.get(r),i),d6.set(r,i));const a=x2(o.imports);for(const l of a)n.has(l)||(n.add(l),e(l))}(t)}(n)}create(n){return new BG(this.moduleType,n)}}function _i(t,n,e){const i=Qs()+t,o=Fi();return o[i]===$r?C0(o,i,e?n.call(e):n()):function H7(t,n){return t[n]}(o,i)}function wo(t,n,e,i){return GG(Fi(),Qs(),t,n,e,i)}function x0(t,n,e,i,o){return YG(Fi(),Qs(),t,n,e,i,o)}function M2(t,n,e,i,o,r){return function UG(t,n,e,i,o,r,a,l){const u=n+e;return function ry(t,n,e,i,o){const r=Cg(t,n,e,i);return vd(t,n+2,o)||r}(t,u,o,r,a)?C0(t,u+3,l?i.call(l,o,r,a):i(o,r,a)):$7(t,u+3)}(Fi(),Qs(),t,n,e,i,o,r)}function gy(t,n,e,i,o,r,a){return function jG(t,n,e,i,o,r,a,l,u){const f=n+e;return function zu(t,n,e,i,o,r){const a=Cg(t,n,e,i);return Cg(t,n+2,o,r)||a}(t,f,o,r,a,l)?C0(t,f+4,u?i.call(u,o,r,a,l):i(o,r,a,l)):$7(t,f+4)}(Fi(),Qs(),t,n,e,i,o,r,a)}function $7(t,n){const e=t[n];return e===$r?void 0:e}function GG(t,n,e,i,o,r){const a=n+e;return vd(t,a,o)?C0(t,a+1,r?i.call(r,o):i(o)):$7(t,a+1)}function YG(t,n,e,i,o,r,a){const l=n+e;return Cg(t,l,o,r)?C0(t,l+2,a?i.call(a,o,r):i(o,r)):$7(t,l+2)}function y0(t,n){const e=ka();let i;const o=t+20;e.firstCreatePass?(i=function Xme(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=g2(i.type)),a=Fr(de);try{const l=J4(!1),u=r();return J4(l),function w4e(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Fi(),o,u),u}finally{Fr(a)}}function bg(t,n,e){const i=t+20,o=Fi(),r=l0(o,i);return X7(o,i)?GG(o,Qs(),n,r.transform,e,r):r.transform(e)}function my(t,n,e,i){const o=t+20,r=Fi(),a=l0(r,o);return X7(r,o)?YG(r,Qs(),n,a.transform,e,i,a):a.transform(e,i)}function X7(t,n){return t[1].data[n].pure}function HA(t){return n=>{setTimeout(t,void 0,n)}}const In=class Jme extends N{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var o,r,a;let l=n,u=e||(()=>null),f=i;if(n&&"object"==typeof n){const T=n;l=null===(o=T.next)||void 0===o?void 0:o.bind(T),u=null===(r=T.error)||void 0===r?void 0:r.bind(T),f=null===(a=T.complete)||void 0===a?void 0:a.bind(T)}this.__isAsync&&(u=HA(u),l&&(l=HA(l)),f&&(f=HA(f)));const w=super.subscribe({next:l,error:u,complete:f});return n instanceof Se&&n.add(w),w}};function e5e(){return this._results[q5()]()}class xg{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=q5(),i=xg.prototype;i[e]||(i[e]=e5e)}get changes(){return this._changes||(this._changes=new In)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const o=q1(n);(this._changesDetected=!function Sb(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=i5e,t})();const t5e=Oc,n5e=class extends t5e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=gg(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),mg(e,i,n),new q7(i)}};function i5e(){return _y(gc(),Fi())}function _y(t,n){return 4&t.type?new n5e(n,t,l6(t,n)):null}let oc=(()=>{class t{}return t.__NG_ELEMENT_ID__=o5e,t})();function o5e(){return XG(gc(),Fi())}const r5e=oc,qG=class extends r5e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return l6(this._hostTNode,this._hostLView)}get injector(){return new vp(this._hostTNode,this._hostLView)}get parentInjector(){const n=O1(this._hostTNode,this._hostLView);if(u5(n)){const e=nf(n,this._hostLView),i=aa(n);return new vp(e[1].data[i+8],e)}return new vp(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=$G(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const o=n.createEmbeddedView(e||{});return this.insert(o,i),o}createComponent(n,e,i,o,r){const a=n&&!function sf(t){return"function"==typeof t}(n);let l;if(a)l=e;else{const T=e||{};l=T.index,i=T.injector,o=T.projectableNodes,r=T.ngModuleRef}const u=a?n:new zA(ci(n)),f=i||this.parentInjector;if(!r&&null==u.ngModule){const U=(a?f:this.parentInjector).get(Np,null);U&&(r=U)}const w=u.create(f,o,void 0,r);return this.insert(w.hostView,l),w}insert(n,e){const i=n._lView,o=i[1];if(function E8(t){return ms(t[3])}(i)){const w=this.indexOf(n);if(-1!==w)this.detach(w);else{const T=i[3],U=new qG(T,T[6],T[3]);U.detach(U.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;!function Q2(t,n,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=n),i0)i.push(a[l/2]);else{const f=r[l+1],w=n[-u];for(let T=10;T{class t{constructor(e){this.appInits=e,this.resolve=by,this.reject=by,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:l,error:u})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(xy,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Z7=new ui("AppId",{providedIn:"root",factory:function _Y(){return`${KA()}${KA()}${KA()}`}});function KA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const CY=new ui("Platform Initializer"),Hc=new ui("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),JA=new ui("appBootstrapListener");let A5e=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Rp=new ui("LocaleId",{providedIn:"root",factory:()=>Mp(Rp,qi.Optional|qi.SkipSelf)||function L5e(){return"undefined"!=typeof $localize&&$localize.locale||ly}()});class k5e{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let vY=(()=>{class t{compileModuleSync(e){return new FA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=x2(zt(e).declarations).reduce((a,l)=>{const u=ci(l);return u&&a.push(new zA(u)),a},[]);return new k5e(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const N5e=(()=>Promise.resolve(0))();function eL(t){"undefined"==typeof Zone?N5e.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class oo{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new In(!1),this.onMicrotaskEmpty=new In(!1),this.onStable=new In(!1),this.onError=new In(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function R5e(){let t=tt.requestAnimationFrame,n=tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function H5e(t){const n=()=>{!function F5e(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,nL(t),t.isCheckStableRunning=!0,tL(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),nL(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,l)=>{try{return bY(t),e.invokeTask(o,r,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),xY(t)}},onInvoke:(e,i,o,r,a,l,u)=>{try{return bY(t),e.invoke(o,r,a,l,u)}finally{t.shouldCoalesceRunChangeDetection&&n(),xY(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,nL(t),tL(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,z5e,by,by);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const z5e={};function tL(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function nL(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function bY(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xY(t){t._nesting--,tL(t)}class V5e{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new In,this.onMicrotaskEmpty=new In,this.onStable=new In,this.onError=new In}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}let iL=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oo.assertNotInAngularZone(),eL(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())eL(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),B5e=(()=>{class t{constructor(){this._applications=new Map,oL.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return oL.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class G5e{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let oL=new G5e,yg=null;const yY=new ui("AllowMultipleToken"),wY=new ui("PlatformOnDestroy");class MY{constructor(n,e){this.name=n,this.token=e}}function OY(t,n,e=[]){const i=`Platform: ${n}`,o=new ui(i);return(r=[])=>{let a=rL();if(!a||a.injector.get(yY,!1)){const l=[...e,...r,{provide:o,useValue:!0}];t?t(l):function W5e(t){if(yg&&!yg.get(yY,!1))throw new sn(400,"");yg=t;const n=t.get(SY),e=t.get(CY,null);e&&e.forEach(i=>i())}(function $5e(t=[],n){return zs.create({name:n,providers:[{provide:Tr,useValue:"platform"},{provide:wY,useValue:()=>yg=null},...t]})}(l,i))}return function q5e(t){const n=rL();if(!n)throw new sn(401,"");return n}()}}function rL(){var t;return null!==(t=null==yg?void 0:yg.get(SY))&&void 0!==t?t:null}let SY=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const l=function X5e(t,n){let e;return e="noop"===t?new V5e:("zone.js"===t?void 0:t)||new oo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),u=[{provide:oo,useValue:l}];return l.run(()=>{const f=zs.create({providers:u,parent:this.injector,name:e.moduleType.name}),w=e.create(f),T=w.injector.get(X2,null);if(!T)throw new sn(402,"");return l.runOutsideAngular(()=>{const U=l.onError.subscribe({next:ie=>{T.handleError(ie)}});w.onDestroy(()=>{aL(this._modules,w),U.unsubscribe()})}),function Q5e(t,n,e){try{const i=e();return V7(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(T,l,()=>{const U=w.injector.get(ZA);return U.runInitializers(),U.donePromise.then(()=>(function kge(t){Ye(t,"Expected localeId to be defined"),"string"==typeof t&&(lG=t.toLowerCase().replace(/_/g,"-"))}(w.injector.get(Rp,ly)||ly),this._moduleDoBootstrap(w),w))})})}bootstrapModule(e,i=[]){const o=PY({},i);return function U5e(t,n,e){const i=new FA(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(K7);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new sn(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new sn(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(wY,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function PY(t,n){return Array.isArray(n)?n.reduce(PY,t):Object.assign(Object.assign({},t),n)}let K7=(()=>{class t{constructor(e,i,o,r){this._zone=e,this._injector=i,this._exceptionHandler=o,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Wt(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new Wt(u=>{let f;this._zone.runOutsideAngular(()=>{f=this._zone.onStable.subscribe(()=>{oo.assertNotInAngularZone(),eL(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const w=this._zone.onUnstable.subscribe(()=>{oo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{f.unsubscribe(),w.unsubscribe()}});this.isStable=kr(a,l.pipe(_l()))}bootstrap(e,i){if(!this._initStatus.done)throw new sn(405,"");let o;o=e instanceof IG?e:this._injector.get(yf).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const r=function j5e(t){return t.isBoundToModule}(o)?void 0:this._injector.get(Np),l=o.create(zs.NULL,[],i||o.selector,r),u=l.location.nativeElement,f=l.injector.get(iL,null),w=f&&l.injector.get(B5e);return f&&w&&w.registerApplication(u,f),l.onDestroy(()=>{this.detachView(l.hostView),aL(this.components,l),w&&w.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new sn(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;aL(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(JA,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(zs),qt(X2),qt(ZA))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function aL(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let EY=!0,Xr=(()=>{class t{}return t.__NG_ELEMENT_ID__=J5e,t})();function J5e(t){return function e6e(t,n,e){if(zd(t)&&!e){const i=Rc(t.index,n);return new q7(i,i)}return 47&t.type?new q7(n[16],n):null}(gc(),Fi(),16==(16&t))}class IY{constructor(){}supports(n){return F7(n)}create(n){return new a6e(n)}}const r6e=(t,n)=>n;class a6e{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||r6e}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,l),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,l,a,o)),Object.is(e.item,l)||this._addIdentityChange(e,l)):(e=this._mismatch(e,l,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new s6e(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new NY),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NY),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class s6e{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class c6e{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class NY{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new c6e,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function RY(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new d6e(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class d6e{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function FY(){return new nu([new IY])}let nu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||FY()),deps:[[t,new jd,new a1]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new sn(901,"")}}return t.\u0275prov=gt({token:t,providedIn:"root",factory:FY}),t})();function HY(){return new Mf([new zY])}let Mf=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||HY()),deps:[[t,new jd,new a1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new sn(901,"")}}return t.\u0275prov=gt({token:t,providedIn:"root",factory:HY}),t})();const p6e=OY(null,"core",[]);let f6e=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(qt(K7))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),My=null;function w0(){return My}const vr=new ui("DocumentToken");let Mg=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:function(){return function C6e(){return qt(VY)}()},providedIn:"platform"}),t})();const v6e=new ui("Location Initialized");let VY=(()=>{class t extends Mg{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w0().getBaseHref(this._doc)}onPopState(e){const i=w0().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=w0().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,o){BY()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){BY()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:function(){return function b6e(){return new VY(qt(vr))}()},providedIn:"platform"}),t})();function BY(){return!!window.history.pushState}function uL(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function GY(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function zp(t){return t&&"?"!==t[0]?"?"+t:t}let h6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:function(){return function x6e(t){const n=qt(vr).location;return new YY(qt(Mg),n&&n.origin||"")}()},providedIn:"root"}),t})();const hL=new ui("appBaseHref");let YY=(()=>{class t extends h6{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return uL(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+zp(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+zp(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+zp(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(qt(Mg),qt(hL,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),y6e=(()=>{class t extends h6{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=uL(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+zp(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+zp(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(qt(Mg),qt(hL,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),J7=(()=>{class t{constructor(e,i){this._subject=new In,this._urlChangeListeners=[],this._platformStrategy=e;const o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=GY(UY(o)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+zp(i))}normalize(e){return t.stripTrailingSlash(function M6e(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,UY(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._platformStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zp(i)),o)}replaceState(e,i="",o=null){this._platformStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zp(i)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return t.normalizeQueryParams=zp,t.joinWithSlash=uL,t.stripTrailingSlash=GY,t.\u0275fac=function(e){return new(e||t)(qt(h6),qt(Mg))},t.\u0275prov=gt({token:t,factory:function(){return function w6e(){return new J7(qt(h6),qt(Mg))}()},providedIn:"root"}),t})();function UY(t){return t.replace(/\/index.html$/,"")}var wl=(()=>((wl=wl||{})[wl.Format=0]="Format",wl[wl.Standalone=1]="Standalone",wl))(),Wa=(()=>((Wa=Wa||{})[Wa.Narrow=0]="Narrow",Wa[Wa.Abbreviated=1]="Abbreviated",Wa[Wa.Wide=2]="Wide",Wa[Wa.Short=3]="Short",Wa))(),Kc=(()=>((Kc=Kc||{})[Kc.Short=0]="Short",Kc[Kc.Medium=1]="Medium",Kc[Kc.Long=2]="Long",Kc[Kc.Full=3]="Full",Kc))(),Gr=(()=>((Gr=Gr||{})[Gr.Decimal=0]="Decimal",Gr[Gr.Group=1]="Group",Gr[Gr.List=2]="List",Gr[Gr.PercentSign=3]="PercentSign",Gr[Gr.PlusSign=4]="PlusSign",Gr[Gr.MinusSign=5]="MinusSign",Gr[Gr.Exponential=6]="Exponential",Gr[Gr.SuperscriptingExponent=7]="SuperscriptingExponent",Gr[Gr.PerMille=8]="PerMille",Gr[Gr.Infinity=9]="Infinity",Gr[Gr.NaN=10]="NaN",Gr[Gr.TimeSeparator=11]="TimeSeparator",Gr[Gr.CurrencyDecimal=12]="CurrencyDecimal",Gr[Gr.CurrencyGroup=13]="CurrencyGroup",Gr))();function Oy(t,n){return Vu(Xd(t)[zo.DateFormat],n)}function Sy(t,n){return Vu(Xd(t)[zo.TimeFormat],n)}function Py(t,n){return Vu(Xd(t)[zo.DateTimeFormat],n)}function Hu(t,n){const e=Xd(t),i=e[zo.NumberSymbols][n];if(void 0===i){if(n===Gr.CurrencyDecimal)return e[zo.NumberSymbols][Gr.Decimal];if(n===Gr.CurrencyGroup)return e[zo.NumberSymbols][Gr.Group]}return i}function WY(t){if(!t[zo.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[zo.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Vu(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function fL(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const z6e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,e9={},F6e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var c1=(()=>((c1=c1||{})[c1.Short=0]="Short",c1[c1.ShortGMT=1]="ShortGMT",c1[c1.Long=2]="Long",c1[c1.Extended=3]="Extended",c1))(),Qr=(()=>((Qr=Qr||{})[Qr.FullYear=0]="FullYear",Qr[Qr.Month=1]="Month",Qr[Qr.Date=2]="Date",Qr[Qr.Hours=3]="Hours",Qr[Qr.Minutes=4]="Minutes",Qr[Qr.Seconds=5]="Seconds",Qr[Qr.FractionalSeconds=6]="FractionalSeconds",Qr[Qr.Day=7]="Day",Qr))(),Ta=(()=>((Ta=Ta||{})[Ta.DayPeriods=0]="DayPeriods",Ta[Ta.Days=1]="Days",Ta[Ta.Months=2]="Months",Ta[Ta.Eras=3]="Eras",Ta))();function H6e(t,n,e,i){let o=function $6e(t){if(XY(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,r=1,a=1]=t.split("-").map(l=>+l);return Ty(o,r-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(z6e))return function X6e(t){const n=new Date(0);let e=0,i=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,l=Number(t[5]||0)-i,u=Number(t[6]||0),f=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,a,l,u,f),n}(i)}const n=new Date(t);if(!XY(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Fp(e,n)||n;let l,a=[];for(;n;){if(l=F6e.exec(n),!l){a.push(n);break}{a=a.concat(l.slice(1));const w=a.pop();if(!w)break;n=w}}let u=o.getTimezoneOffset();i&&(u=$Y(i,u),o=function q6e(t,n,e){const i=e?-1:1,o=t.getTimezoneOffset();return function W6e(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*($Y(n,o)-o))}(o,i,!0));let f="";return a.forEach(w=>{const T=function j6e(t){if(mL[t])return mL[t];let n;switch(t){case"G":case"GG":case"GGG":n=vc(Ta.Eras,Wa.Abbreviated);break;case"GGGG":n=vc(Ta.Eras,Wa.Wide);break;case"GGGGG":n=vc(Ta.Eras,Wa.Narrow);break;case"y":n=jl(Qr.FullYear,1,0,!1,!0);break;case"yy":n=jl(Qr.FullYear,2,0,!0,!0);break;case"yyy":n=jl(Qr.FullYear,3,0,!1,!0);break;case"yyyy":n=jl(Qr.FullYear,4,0,!1,!0);break;case"Y":n=Dy(1);break;case"YY":n=Dy(2,!0);break;case"YYY":n=Dy(3);break;case"YYYY":n=Dy(4);break;case"M":case"L":n=jl(Qr.Month,1,1);break;case"MM":case"LL":n=jl(Qr.Month,2,1);break;case"MMM":n=vc(Ta.Months,Wa.Abbreviated);break;case"MMMM":n=vc(Ta.Months,Wa.Wide);break;case"MMMMM":n=vc(Ta.Months,Wa.Narrow);break;case"LLL":n=vc(Ta.Months,Wa.Abbreviated,wl.Standalone);break;case"LLLL":n=vc(Ta.Months,Wa.Wide,wl.Standalone);break;case"LLLLL":n=vc(Ta.Months,Wa.Narrow,wl.Standalone);break;case"w":n=gL(1);break;case"ww":n=gL(2);break;case"W":n=gL(1,!0);break;case"d":n=jl(Qr.Date,1);break;case"dd":n=jl(Qr.Date,2);break;case"c":case"cc":n=jl(Qr.Day,1);break;case"ccc":n=vc(Ta.Days,Wa.Abbreviated,wl.Standalone);break;case"cccc":n=vc(Ta.Days,Wa.Wide,wl.Standalone);break;case"ccccc":n=vc(Ta.Days,Wa.Narrow,wl.Standalone);break;case"cccccc":n=vc(Ta.Days,Wa.Short,wl.Standalone);break;case"E":case"EE":case"EEE":n=vc(Ta.Days,Wa.Abbreviated);break;case"EEEE":n=vc(Ta.Days,Wa.Wide);break;case"EEEEE":n=vc(Ta.Days,Wa.Narrow);break;case"EEEEEE":n=vc(Ta.Days,Wa.Short);break;case"a":case"aa":case"aaa":n=vc(Ta.DayPeriods,Wa.Abbreviated);break;case"aaaa":n=vc(Ta.DayPeriods,Wa.Wide);break;case"aaaaa":n=vc(Ta.DayPeriods,Wa.Narrow);break;case"b":case"bb":case"bbb":n=vc(Ta.DayPeriods,Wa.Abbreviated,wl.Standalone,!0);break;case"bbbb":n=vc(Ta.DayPeriods,Wa.Wide,wl.Standalone,!0);break;case"bbbbb":n=vc(Ta.DayPeriods,Wa.Narrow,wl.Standalone,!0);break;case"B":case"BB":case"BBB":n=vc(Ta.DayPeriods,Wa.Abbreviated,wl.Format,!0);break;case"BBBB":n=vc(Ta.DayPeriods,Wa.Wide,wl.Format,!0);break;case"BBBBB":n=vc(Ta.DayPeriods,Wa.Narrow,wl.Format,!0);break;case"h":n=jl(Qr.Hours,1,-12);break;case"hh":n=jl(Qr.Hours,2,-12);break;case"H":n=jl(Qr.Hours,1);break;case"HH":n=jl(Qr.Hours,2);break;case"m":n=jl(Qr.Minutes,1);break;case"mm":n=jl(Qr.Minutes,2);break;case"s":n=jl(Qr.Seconds,1);break;case"ss":n=jl(Qr.Seconds,2);break;case"S":n=jl(Qr.FractionalSeconds,1);break;case"SS":n=jl(Qr.FractionalSeconds,2);break;case"SSS":n=jl(Qr.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Ay(c1.Short);break;case"ZZZZZ":n=Ay(c1.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ay(c1.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ay(c1.Long);break;default:return null}return mL[t]=n,n}(w);f+=T?T(o,e,u):"''"===w?"'":w.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function Ty(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Fp(t,n){const e=function O6e(t){return Xd(t)[zo.LocaleId]}(t);if(e9[e]=e9[e]||{},e9[e][n])return e9[e][n];let i="";switch(n){case"shortDate":i=Oy(t,Kc.Short);break;case"mediumDate":i=Oy(t,Kc.Medium);break;case"longDate":i=Oy(t,Kc.Long);break;case"fullDate":i=Oy(t,Kc.Full);break;case"shortTime":i=Sy(t,Kc.Short);break;case"mediumTime":i=Sy(t,Kc.Medium);break;case"longTime":i=Sy(t,Kc.Long);break;case"fullTime":i=Sy(t,Kc.Full);break;case"short":const o=Fp(t,"shortTime"),r=Fp(t,"shortDate");i=Ey(Py(t,Kc.Short),[o,r]);break;case"medium":const a=Fp(t,"mediumTime"),l=Fp(t,"mediumDate");i=Ey(Py(t,Kc.Medium),[a,l]);break;case"long":const u=Fp(t,"longTime"),f=Fp(t,"longDate");i=Ey(Py(t,Kc.Long),[u,f]);break;case"full":const w=Fp(t,"fullTime"),T=Fp(t,"fullDate");i=Ey(Py(t,Kc.Full),[w,T])}return i&&(e9[e][n]=i),i}function Ey(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function wh(t,n,e="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=e));let a=String(t);for(;a.length0||l>-e)&&(l+=e),t===Qr.Hours)0===l&&-12===e&&(l=12);else if(t===Qr.FractionalSeconds)return function V6e(t,n){return wh(t,3).substr(0,n)}(l,n);const u=Hu(a,Gr.MinusSign);return wh(l,n,u,i,o)}}function vc(t,n,e=wl.Format,i=!1){return function(o,r){return function G6e(t,n,e,i,o,r){switch(e){case Ta.Months:return function T6e(t,n,e){const i=Xd(t),r=Vu([i[zo.MonthsFormat],i[zo.MonthsStandalone]],n);return Vu(r,e)}(n,o,i)[t.getMonth()];case Ta.Days:return function P6e(t,n,e){const i=Xd(t),r=Vu([i[zo.DaysFormat],i[zo.DaysStandalone]],n);return Vu(r,e)}(n,o,i)[t.getDay()];case Ta.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(r){const f=function D6e(t){const n=Xd(t);return WY(n),(n[zo.ExtraData][2]||[]).map(i=>"string"==typeof i?fL(i):[fL(i[0]),fL(i[1])])}(n),w=function k6e(t,n,e){const i=Xd(t);WY(i);const r=Vu([i[zo.ExtraData][0],i[zo.ExtraData][1]],n)||[];return Vu(r,e)||[]}(n,o,i),T=f.findIndex(U=>{if(Array.isArray(U)){const[ie,se]=U,Me=a>=ie.hours&&l>=ie.minutes,we=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case c1.Short:return(o>=0?"+":"")+wh(a,2,r)+wh(Math.abs(o%60),2,r);case c1.ShortGMT:return"GMT"+(o>=0?"+":"")+wh(a,1,r);case c1.Long:return"GMT"+(o>=0?"+":"")+wh(a,2,r)+":"+wh(Math.abs(o%60),2,r);case c1.Extended:return 0===i?"Z":(o>=0?"+":"")+wh(a,2,r)+":"+wh(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function qY(t){return Ty(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function gL(t,n=!1){return function(e,i){let o;if(n){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+r)/7)}else{const r=qY(e),a=function U6e(t){const n=Ty(t,0,1).getDay();return Ty(t,0,1+(n<=4?4:11)-n)}(r.getFullYear()),l=r.getTime()-a.getTime();o=1+Math.round(l/6048e5)}return wh(o,t,Hu(i,Gr.MinusSign))}}function Dy(t,n=!1){return function(e,i){return wh(qY(e).getFullYear(),t,Hu(i,Gr.MinusSign),n)}}const mL={};function $Y(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function XY(t){return t instanceof Date&&!isNaN(t.valueOf())}function JY(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}let ds=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(F7(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Le(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(de(nu),de(Mf),de(Ti),de(yl))},t.\u0275dir=St({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class c_e{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $o=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new c_e(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const l=i.get(r);i.move(l,a),eU(l,o)}});for(let o=0,r=i.length;o{eU(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Oc),de(nu))},t.\u0275dir=St({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function eU(t,n){t.context.$implicit=n.item}let Yi=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new l_e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){tU("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){tU("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Oc))},t.\u0275dir=St({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class l_e{constructor(){this.$implicit=null,this.ngIf=null}}function tU(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Le(n)}'.`)}class yL{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let bd=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new yL(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Oc),de(bd,9))},t.\u0275dir=St({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),nU=(()=>{class t{constructor(e,i,o){o._addDefault(new yL(e,i))}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Oc),de(bd,9))},t.\u0275dir=St({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Og=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,o,i):this._renderer.removeStyle(this._ngEl.nativeElement,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Mf),de(yl))},t.\u0275dir=St({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Sg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(de(oc))},t.\u0275dir=St({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Yo]}),t})();function Mh(t,n){return new sn(2100,"")}class u_e{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class h_e{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const p_e=new h_e,f_e=new u_e;let Iy=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(V7(e))return p_e;if(yB(e))return f_e;throw Mh()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(de(Xr,16))},t.\u0275pipe=zn({name:"async",type:t,pure:!1}),t})();const v_e=new ui("DATE_PIPE_DEFAULT_TIMEZONE");let oU=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,r){var a;if(null==e||""===e||e!=e)return null;try{return H6e(e,i,r||this.locale,null!==(a=null!=o?o:this.defaultTimezone)&&void 0!==a?a:void 0)}catch(l){throw Mh()}}}return t.\u0275fac=function(e){return new(e||t)(de(Rp,16),de(v_e,24))},t.\u0275pipe=zn({name:"date",type:t,pure:!0}),t})(),va=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const aU="browser";function ll(t){return t===aU}function ou(t){return"server"===t}let k_e=(()=>{class t{}return t.\u0275prov=gt({token:t,providedIn:"root",factory:()=>new I_e(qt(vr),window)}),t})();class I_e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function N_e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=sU(this.window.history)||sU(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function sU(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class cU{}class OL extends class R_e extends class _6e{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function m6e(t){My||(My=t)}(new OL)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function z_e(){return n9=n9||document.querySelector("base"),n9?n9.getAttribute("href"):null}();return null==e?null:function F_e(t){Ny=Ny||document.createElement("a"),Ny.setAttribute("href",t);const n=Ny.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){n9=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return JY(document.cookie,n)}}let Ny,n9=null;const lU=new ui("TRANSITION_ID"),V_e=[{provide:xy,useFactory:function H_e(t,n,e){return()=>{e.get(ZA).donePromise.then(()=>{const i=w0(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},tt.getAllAngularTestabilities=()=>n.getAllTestabilities(),tt.getAllAngularRootElements=()=>n.getAllRootElements(),tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(i=>{const o=tt.getAllAngularTestabilities();let r=o.length,a=!1;const l=function(u){a=a||u,r--,0==r&&i(a)};o.forEach(function(u){u.whenStable(l)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:i?w0().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let B_e=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const Ry=new ui("EventManagerPlugins");let zy=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),o9=(()=>{class t extends uU{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const a=this._doc.createElement("style");a.textContent=r,o.push(i.appendChild(a))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(hU),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(hU))}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function hU(t){w0().remove(t)}const PL={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},TL=/%COMP%/g;function Fy(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Hy=(()=>{class t{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new EL(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case pa.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new q_e(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case pa.ShadowDom:return new $_e(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=Fy(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(qt(zy),qt(o9),qt(Z7))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class EL{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(PL[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=PL[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=PL[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(qd.DashCase|qd.Important)?n.style.setProperty(e,i,o&qd.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&qd.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,gU(i)):this.eventManager.addEventListener(n,e,gU(i))}}class q_e extends EL{constructor(n,e,i,o){super(n),this.component=i;const r=Fy(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function U_e(t){return"_ngcontent-%COMP%".replace(TL,t)}(o+"-"+i.id),this.hostAttr=function j_e(t){return"_nghost-%COMP%".replace(TL,t)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class $_e extends EL{constructor(n,e,i,o){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Fy(o.id,o.styles,[]);for(let a=0;a{class t extends dU{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const _U=["alt","control","meta","shift"],Z_e={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CU={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},K_e={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let J_e=(()=>{class t extends dU{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>w0().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="";if(_U.forEach(u=>{const f=i.indexOf(u);f>-1&&(i.splice(f,1),a+=u+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static getEventFullKey(e){let i="",o=function e8e(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&CU.hasOwnProperty(n)&&(n=CU[n]))}return Z_e[n]||n}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),_U.forEach(r=>{r!=o&&K_e[r](e)&&(i+=r+".")}),i+=o,i}static eventCallback(e,i,o){return r=>{t.getEventFullKey(r)===e&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const o8e=OY(p6e,"browser",[{provide:Hc,useValue:aU},{provide:CY,useValue:function t8e(){OL.makeCurrent(),SL.init()},multi:!0},{provide:vr,useFactory:function i8e(){return function m2(t){up=t}(document),document},deps:[]}]),r8e=[{provide:Tr,useValue:"root"},{provide:X2,useFactory:function n8e(){return new X2},deps:[]},{provide:Ry,useClass:X_e,multi:!0,deps:[vr,oo,Hc]},{provide:Ry,useClass:J_e,multi:!0,deps:[vr]},{provide:Hy,useClass:Hy,deps:[zy,o9,Z7]},{provide:W7,useExisting:Hy},{provide:uU,useExisting:o9},{provide:o9,useClass:o9,deps:[vr]},{provide:iL,useClass:iL,deps:[oo]},{provide:zy,useClass:zy,deps:[Ry,oo]},{provide:cU,useClass:B_e,deps:[]}];let AL=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Z7,useValue:e.appId},{provide:lU,useExisting:Z7},V_e]}}}return t.\u0275fac=function(e){return new(e||t)(qt(t,12))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:r8e,imports:[va,f6e]}),t})();"undefined"!=typeof window&&window;let r9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:function(e){let i=null;return i=e?new(e||t):qt(xU),i},providedIn:"root"}),t})(),xU=(()=>{class t extends r9{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Za.NONE:return i;case Za.HTML:return Du(i,"HTML")?Wd(i):ix(this._doc,String(i)).toString();case Za.STYLE:return Du(i,"Style")?Wd(i):i;case Za.SCRIPT:if(Du(i,"Script"))return Wd(i);throw new Error("unsafe value used in a script context");case Za.URL:return $b(i),Du(i,"URL")?Wd(i):rg(String(i));case Za.RESOURCE_URL:if(Du(i,"ResourceURL"))return Wd(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function Xb(t){return new FT(t)}(e)}bypassSecurityTrustStyle(e){return function VT(t){return new HT(t)}(e)}bypassSecurityTrustScript(e){return function BT(t){return new jb(t)}(e)}bypassSecurityTrustUrl(e){return function GT(t){return new Wb(t)}(e)}bypassSecurityTrustResourceUrl(e){return function YT(t){return new qb(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:function(e){let i=null;return i=e?new e:function g8e(t){return new xU(t.get(vr))}(qt(zs)),i},providedIn:"root"}),t})();function rr(...t){return Ra(t,Us(t))}function Sf(t,n){return _e(n)?da(t,n,1):da(t,1)}function ca(t,n){return ve((e,i)=>{let o=0;e.subscribe($e(i,r=>t.call(n,r,o++)&&i.next(r)))})}class yU{}class wU{}class M0{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof M0?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new M0;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof M0?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(l=>-1===r.indexOf(l)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class m8e{encodeKey(n){return MU(n)}encodeValue(n){return MU(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const C8e=/%(\d[a-f0-9])/gi,v8e={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function MU(t){return encodeURIComponent(t).replace(C8e,(n,e)=>{var i;return null!==(i=v8e[e])&&void 0!==i?i:n})}function OU(t){return`${t}`}class Zd{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new m8e,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _8e(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,l]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],u=e.get(a)||[];u.push(l),e.set(a,u)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Zd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(OU(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(OU(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class b8e{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function SU(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function PU(t){return"undefined"!=typeof Blob&&t instanceof Blob}function TU(t){return"undefined"!=typeof FormData&&t instanceof FormData}class a9{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function x8e(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new M0),this.context||(this.context=new b8e),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":lU.set(ie,n.setHeaders[ie]),f)),n.setParams&&(w=Object.keys(n.setParams).reduce((U,ie)=>U.set(ie,n.setParams[ie]),w)),new a9(i,o,a,{params:w,headers:f,context:T,reportProgress:u,responseType:r,withCredentials:l})}}var Ml=(()=>((Ml=Ml||{})[Ml.Sent=0]="Sent",Ml[Ml.UploadProgress=1]="UploadProgress",Ml[Ml.ResponseHeader=2]="ResponseHeader",Ml[Ml.DownloadProgress=3]="DownloadProgress",Ml[Ml.Response=4]="Response",Ml[Ml.User=5]="User",Ml))();class DL{constructor(n,e=200,i="OK"){this.headers=n.headers||new M0,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class kL extends DL{constructor(n={}){super(n),this.type=Ml.ResponseHeader}clone(n={}){return new kL({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class s9 extends DL{constructor(n={}){super(n),this.type=Ml.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new s9({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Vy extends DL{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function IL(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let ru=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof a9)r=e;else{let u,f;u=o.headers instanceof M0?o.headers:new M0(o.headers),o.params&&(f=o.params instanceof Zd?o.params:new Zd({fromObject:o.params})),r=new a9(e,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=rr(r).pipe(Sf(u=>this.handler.handle(u)));if(e instanceof a9||"events"===o.observe)return a;const l=a.pipe(ca(u=>u instanceof s9));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(it(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return l.pipe(it(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return l.pipe(it(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return l.pipe(it(u=>u.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Zd).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,IL(o,i))}post(e,i,o={}){return this.request("POST",e,IL(o,i))}put(e,i,o={}){return this.request("PUT",e,IL(o,i))}}return t.\u0275fac=function(e){return new(e||t)(qt(yU))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class EU{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const NL=new ui("HTTP_INTERCEPTORS");let RL,w8e=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),M8e=0;class AU{}let LU=(()=>{class t{constructor(e,i){this.callbackMap=e,this.document=i,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+M8e++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new Wt(i=>{const o=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${o}$1`),a=this.document.createElement("script");a.src=r;let l=null,u=!1;this.callbackMap[o]=U=>{delete this.callbackMap[o],l=U,u=!0};const f=()=>{a.parentNode&&a.parentNode.removeChild(a),delete this.callbackMap[o]};return a.addEventListener("load",U=>{this.resolvedPromise.then(()=>{f(),u?(i.next(new s9({body:l,status:200,statusText:"OK",url:r})),i.complete()):i.error(new Vy({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),a.addEventListener("error",U=>{f(),i.error(new Vy({error:U,status:0,statusText:"JSONP Error",url:r}))}),this.document.body.appendChild(a),i.next({type:Ml.Sent}),()=>{u||this.removeListeners(a),f()}})}removeListeners(e){RL||(RL=this.document.implementation.createHTMLDocument()),RL.adoptNode(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(AU),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),T8e=(()=>{class t{constructor(e){this.jsonp=e}intercept(e,i){return"JSONP"===e.method?this.jsonp.handle(e):i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(LU))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const E8e=/^\)\]\}',?\n/;let DU=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Wt(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ie,se)=>o.setRequestHeader(ie,se.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const ie=e.detectContentTypeHeader();null!==ie&&o.setRequestHeader("Content-Type",ie)}if(e.responseType){const ie=e.responseType.toLowerCase();o.responseType="json"!==ie?ie:"text"}const r=e.serializeBody();let a=null;const l=()=>{if(null!==a)return a;const ie=o.statusText||"OK",se=new M0(o.getAllResponseHeaders()),Me=function A8e(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return a=new kL({headers:se,status:o.status,statusText:ie,url:Me}),a},u=()=>{let{headers:ie,status:se,statusText:Me,url:we}=l(),He=null;204!==se&&(He=void 0===o.response?o.responseText:o.response),0===se&&(se=He?200:0);let Be=se>=200&&se<300;if("json"===e.responseType&&"string"==typeof He){const me=He;He=He.replace(E8e,"");try{He=""!==He?JSON.parse(He):null}catch(ze){He=me,Be&&(Be=!1,He={error:ze,text:He})}}Be?(i.next(new s9({body:He,headers:ie,status:se,statusText:Me,url:we||void 0})),i.complete()):i.error(new Vy({error:He,headers:ie,status:se,statusText:Me,url:we||void 0}))},f=ie=>{const{url:se}=l(),Me=new Vy({error:ie,status:o.status||0,statusText:o.statusText||"Unknown Error",url:se||void 0});i.error(Me)};let w=!1;const T=ie=>{w||(i.next(l()),w=!0);let se={type:Ml.DownloadProgress,loaded:ie.loaded};ie.lengthComputable&&(se.total=ie.total),"text"===e.responseType&&!!o.responseText&&(se.partialText=o.responseText),i.next(se)},U=ie=>{let se={type:Ml.UploadProgress,loaded:ie.loaded};ie.lengthComputable&&(se.total=ie.total),i.next(se)};return o.addEventListener("load",u),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",T),null!==r&&o.upload&&o.upload.addEventListener("progress",U)),o.send(r),i.next({type:Ml.Sent}),()=>{o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",u),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",T),null!==r&&o.upload&&o.upload.removeEventListener("progress",U)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(qt(cU))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const zL=new ui("XSRF_COOKIE_NAME"),FL=new ui("XSRF_HEADER_NAME");class kU{}let L8e=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=JY(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(Hc),qt(zL))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),HL=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(kU),qt(FL))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),D8e=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(NL,[]);this.chain=i.reduceRight((o,r)=>new EU(o,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(wU),qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function k8e(){return"object"==typeof window?window:{}}let I8e=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:HL,useClass:w8e}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:zL,useValue:e.cookieName}:[],e.headerName?{provide:FL,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[HL,{provide:NL,useExisting:HL,multi:!0},{provide:kU,useClass:L8e},{provide:zL,useValue:"XSRF-TOKEN"},{provide:FL,useValue:"X-XSRF-TOKEN"}]}),t})(),N8e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[ru,{provide:yU,useClass:D8e},DU,{provide:wU,useExisting:DU}],imports:[[I8e.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),R8e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[LU,{provide:AU,useFactory:k8e},{provide:NL,useClass:T8e,multi:!0}]}),t})();class VL{}const Hp="*";function na(t,n){return{type:7,name:t,definitions:n,options:{}}}function Mo(t,n=null){return{type:4,styles:n,timings:t}}function Pg(t,n=null){return{type:3,steps:t,options:n}}function c9(t,n=null){return{type:2,steps:t,options:n}}function ti(t){return{type:6,styles:t,offset:null}}function cr(t,n,e){return{type:0,name:t,styles:n,options:e}}function Tg(t){return{type:5,steps:t}}function Lo(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Q1(t=null){return{type:9,options:t}}function qa(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function BL(t,n){return{type:12,timings:t,animation:n}}function IU(t){Promise.resolve(null).then(t)}class l9{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){IU(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NU{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?IU(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,l)=>Math.max(a,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ka=!1;function RU(t){return new sn(3e3,Ka)}function v7e(){return"undefined"!=typeof window&&void 0!==window.document}function YL(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pf(t){switch(t.length){case 0:return new l9;case 1:return t[0];default:return new NU(t)}}function zU(t,n,e,i,o={},r={}){const a=[],l=[];let u=-1,f=null;if(i.forEach(w=>{const T=w.offset,U=T==u,ie=U&&f||{};Object.keys(w).forEach(se=>{let Me=se,we=w[se];if("offset"!==se)switch(Me=n.normalizePropertyName(Me,a),we){case"!":we=o[se];break;case Hp:we=r[se];break;default:we=n.normalizeStyleValue(se,Me,we,a)}ie[Me]=we}),U||l.push(ie),f=ie,u=T}),a.length)throw function c7e(t){return new sn(3502,Ka)}();return l}function UL(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&jL(e,"start",t)));break;case"done":t.onDone(()=>i(e&&jL(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&jL(e,"destroy",t)))}}function jL(t,n,e){const i=e.totalTime,r=WL(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function WL(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function au(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function FU(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let qL=(t,n)=>!1,HU=(t,n,e)=>[],VU=null;function $L(t){const n=t.parentNode||t.host;return n===VU?null:n}(YL()||"undefined"!=typeof Element)&&(v7e()?(VU=(()=>document.documentElement)(),qL=(t,n)=>{for(;n;){if(n===t)return!0;n=$L(n)}return!1}):qL=(t,n)=>t.contains(n),HU=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Eg=null,BU=!1;function GU(t){Eg||(Eg=function x7e(){return"undefined"!=typeof document?document.body:null}()||{},BU=!!Eg.style&&"WebkitAppearance"in Eg.style);let n=!0;return Eg.style&&!function b7e(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Eg.style,!n&&BU&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Eg.style)),n}const YU=qL,UU=HU;let jU=(()=>{class t{validateStyleProperty(e){return GU(e)}matchesElement(e,i){return!1}containsElement(e,i){return YU(e,i)}getParentElement(e){return $L(e)}query(e,i,o){return UU(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,l=[],u){return new l9(o,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),XL=(()=>{class t{}return t.NOOP=new jU,t})();const QL="ng-enter",Gy="ng-leave",Yy="ng-trigger",Uy=".ng-trigger",qU="ng-animating",ZL=".ng-animating";function Ag(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:KL(parseFloat(n[1]),n[2])}function KL(t,n){return"s"===n?1e3*t:t}function jy(t,n,e){return t.hasOwnProperty("duration")?t:function M7e(t,n,e){let o,r=0,a="";if("string"==typeof t){const l=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return n.push(RU()),{duration:0,delay:0,easing:""};o=KL(parseFloat(l[1]),l[2]);const u=l[3];null!=u&&(r=KL(parseFloat(u),l[4]));const f=l[5];f&&(a=f)}else o=t;if(!e){let l=!1,u=n.length;o<0&&(n.push(function V8e(){return new sn(3100,Ka)}()),l=!0),r<0&&(n.push(function B8e(){return new sn(3101,Ka)}()),l=!0),l&&n.splice(u,0,RU())}return{duration:o,delay:r,easing:a}}(t,n,e)}function p6(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Tf(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else p6(t,e);return e}function XU(t,n,e){return e?n+":"+e+";":""}function QU(t){let n="";for(let e=0;e{const o=eD(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[o]),t.style[o]=n[i]}),YL()&&QU(t))}function Lg(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=eD(e);t.style[i]=""}),YL()&&QU(t))}function d9(t){return Array.isArray(t)?1==t.length?t[0]:c9(t):t}const JL=new RegExp("{{\\s*(.+?)\\s*}}","g");function ZU(t){let n=[];if("string"==typeof t){let e;for(;e=JL.exec(t);)n.push(e[1]);JL.lastIndex=0}return n}function Wy(t,n,e){const i=t.toString(),o=i.replace(JL,(r,a)=>{let l=n[a];return n.hasOwnProperty(a)||(e.push(function Y8e(t){return new sn(3003,Ka)}()),l=""),l.toString()});return o==i?t:o}function qy(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const S7e=/-+([a-z0-9])/g;function eD(t){return t.replace(S7e,(...n)=>n[1].toUpperCase())}function P7e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cu(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function U8e(t){return new sn(3004,Ka)}()}}function KU(t,n){return window.getComputedStyle(t)[n]}function k7e(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function I7e(t,n,e){if(":"==t[0]){const u=function N7e(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof u)return void n.push(u);t=u}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function i7e(t){return new sn(3015,Ka)}()),n;const o=i[1],r=i[2],a=i[3];n.push(JU(o,a));"<"==r[0]&&!("*"==o&&"*"==a)&&n.push(JU(a,o))}(i,e,n)):e.push(t),e}const Zy=new Set(["true","1"]),Ky=new Set(["false","0"]);function JU(t,n){const e=Zy.has(t)||Ky.has(t),i=Zy.has(n)||Ky.has(n);return(o,r)=>{let a="*"==t||t==o,l="*"==n||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?Zy.has(t):Ky.has(t)),!l&&i&&"boolean"==typeof r&&(l=r?Zy.has(n):Ky.has(n)),a&&l}}const R7e=new RegExp("s*:selfs*,?","g");function tD(t,n,e,i){return new z7e(t).build(n,e,i)}class z7e{constructor(n){this._driver=n}build(n,e,i){const o=new V7e(e);this._resetContextStyleTimingState(o);const r=cu(this,d9(n),o);return o.unsupportedCSSPropertiesFound.size&&o.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function W8e(){return new sn(3006,Ka)}()),n.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const u=l,f=u.name;f.toString().split(/\s*,\s*/).forEach(w=>{u.name=w,r.push(this.visitState(u,e))}),u.name=f}else if(1==l.type){const u=this.visitTransition(l,e);i+=u.queryCount,o+=u.depCount,a.push(u)}else e.errors.push(function q8e(){return new sn(3007,Ka)}())}),{type:7,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(l=>{if(Jy(l)){const u=l;Object.keys(u).forEach(f=>{ZU(u[f]).forEach(w=>{a.hasOwnProperty(w)||r.add(w)})})}}),r.size&&(qy(r.values()),e.errors.push(function $8e(t,n){return new sn(3008,Ka)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=cu(this,d9(n.animation),e);return{type:1,matchers:k7e(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Dg(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>cu(this,i,e)),options:Dg(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const l=cu(this,a,e);return o=Math.max(o,e.currentTime),l});return e.currentTime=o,{type:3,steps:r,options:Dg(n.options)}}visitAnimate(n,e){const i=function G7e(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return nD(jy(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=nD(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=jy(e,n);return nD(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:ti({});if(5==r.type)o=this.visitKeyframes(r,e);else{let a=n.styles,l=!1;if(!a){l=!0;const f={};i.easing&&(f.easing=i.easing),a=ti(f)}e.currentTime+=i.duration+i.delay;const u=this.visitStyle(a,e);u.isEmptyStep=l,o=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(a=>{"string"==typeof a?a==Hp?i.push(a):e.errors.push(function X8e(t){return new sn(3002,Ka)}()):i.push(a)}):i.push(n.styles);let o=!1,r=null;return i.forEach(a=>{if(Jy(a)){const l=a,u=l.easing;if(u&&(r=u,delete l.easing),!o)for(let f in l)if(l[f].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&Object.keys(a).forEach(l=>{if(!this._driver.validateStyleProperty(l))return delete a[l],void e.unsupportedCSSPropertiesFound.add(l);const u=e.collectedStyles[e.currentQuerySelector],f=u[l];let w=!0;f&&(r!=o&&r>=f.startTime&&o<=f.endTime&&(e.errors.push(function Q8e(t,n,e,i,o){return new sn(3010,Ka)}()),w=!1),r=f.startTime),w&&(u[l]={startTime:r,endTime:o}),e.options&&function O7e(t,n,e){const i=n.params||{},o=ZU(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function G8e(t){return new sn(3001,Ka)}())})}(a[l],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Z8e(){return new sn(3011,Ka)}()),i;let r=0;const a=[];let l=!1,u=!1,f=0;const w=n.steps.map(He=>{const Be=this._makeStyleAst(He,e);let me=null!=Be.offset?Be.offset:function B7e(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Jy(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Jy(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(Be.styles),ze=0;return null!=me&&(r++,ze=Be.offset=me),u=u||ze<0||ze>1,l=l||ze0&&r{const me=U>0?Be==ie?1:U*Be:a[Be],ze=me*we;e.currentTime=se+Me.delay+ze,Me.duration=ze,this._validateStyleAst(He,e),He.offset=me,i.styles.push(He)}),i}visitReference(n,e){return{type:8,animation:cu(this,d9(n.animation),e),options:Dg(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Dg(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Dg(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function F7e(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(R7e,"")),t=t.replace(/@\*/g,Uy).replace(/@\w+/g,e=>Uy+"-"+e.substr(1)).replace(/:animating/g,ZL),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,au(e.collectedStyles,e.currentQuerySelector,{});const l=cu(this,d9(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:l,originalSelector:n.selector,options:Dg(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function t7e(){return new sn(3013,Ka)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:jy(n.timings,e.errors,!0);return{type:12,animation:cu(this,d9(n.animation),e),timings:i,options:null}}}class V7e{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Jy(t){return!Array.isArray(t)&&"object"==typeof t}function Dg(t){return t?(t=p6(t)).params&&(t.params=function H7e(t){return t?p6(t):null}(t.params)):t={},t}function nD(t,n,e){return{duration:t,delay:n,easing:e}}function iD(t,n,e,i,o,r,a=null,l=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:l}}class ew{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const j7e=new RegExp(":enter","g"),q7e=new RegExp(":leave","g");function oD(t,n,e,i,o,r={},a={},l,u,f=[]){return(new $7e).buildKeyframes(t,n,e,i,o,r,a,l,u,f)}class $7e{buildKeyframes(n,e,i,o,r,a,l,u,f,w=[]){f=f||new ew;const T=new rD(n,e,f,o,r,w,[]);T.options=u,T.currentTimeline.setStyles([a],null,T.errors,u),cu(this,i,T);const U=T.timelines.filter(ie=>ie.containsAnimation());if(Object.keys(l).length){let ie;for(let se=U.length-1;se>=0;se--){const Me=U[se];if(Me.element===e){ie=Me;break}}ie&&!ie.allowOnlyTimelineStyles()&&ie.setStyles([l],null,T.errors,u)}return U.length?U.map(ie=>ie.buildKeyframes()):[iD(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ag(i.duration):null,l=null!=i.delay?Ag(i.delay):null;return 0!==a&&n.forEach(u=>{const f=e.appendInstructionToTimeline(u,a,l);r=Math.max(r,f.duration+f.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),cu(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=tw);const a=Ag(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>cu(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ag(n.options.delay):0;n.steps.forEach(a=>{const l=e.createSubContext(n.options);r&&l.delayNextStep(r),cu(this,a,l),o=Math.max(o,l.currentTimeline.currentTime),i.push(l.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return jy(e.params?Wy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,l=e.createSubContext().currentTimeline;l.easing=i.easing,n.styles.forEach(u=>{l.forwardTime((u.offset||0)*r),l.setStyles(u.styles,u.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ag(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tw);let a=i;const l=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=l.length;let u=null;l.forEach((f,w)=>{e.currentQueryIndex=w;const T=e.createSubContext(n.options,f);r&&T.delayNextStep(r),f===e.element&&(u=T.currentTimeline),cu(this,n.animation,T),T.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,T.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),l=a*(e.currentQueryTotal-1);let u=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":u=l-u;break;case"full":u=i.currentStaggerTime}const w=e.currentTimeline;u&&w.delayNextStep(u);const T=w.currentTime;cu(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-T+(o.startTime-i.currentTimeline.startTime)}}const tw={};class rD{constructor(n,e,i,o,r,a,l,u){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new nw(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ag(i.duration)),null!=i.delay&&(o.delay=Ag(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(l=>{(!e||!a.hasOwnProperty(l))&&(a[l]=Wy(r[l],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new rD(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=tw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new X7e(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let l=[];if(o&&l.push(this.element),n.length>0){n=(n=n.replace(j7e,"."+this._enterClassName)).replace(q7e,"."+this._leaveClassName);let f=this._driver.query(this.element,n,1!=i);0!==i&&(f=i<0?f.slice(f.length+i,f.length):f.slice(0,i)),l.push(...f)}return!r&&0==l.length&&a.push(function n7e(t){return new sn(3014,Ka)}()),l}}class nw{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new nw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Hp,this._currentKeyframe[e]=Hp}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&(this._previousKeyframe.easing=e);const r=o&&o.params||{},a=function Q7e(t,n){const e={};let i;return t.forEach(o=>{"*"===o?(i=i||Object.keys(n),i.forEach(r=>{e[r]=Hp})):Tf(o,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(a).forEach(l=>{const u=Wy(a[l],r,i);this._pendingStyles[l]=u,this._localTimelineStyles.hasOwnProperty(l)||(this._backFill[l]=this._globalTimelineStyles.hasOwnProperty(l)?this._globalTimelineStyles[l]:Hp),this._updateStyle(l,u)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],o=n._styleSummary[e];(!i||o.time>i.time)&&this._updateStyle(e,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((l,u)=>{const f=Tf(l,!0);Object.keys(f).forEach(w=>{const T=f[w];"!"==T?n.add(w):T==Hp&&e.add(w)}),i||(f.offset=u/this.duration),o.push(f)});const r=n.size?qy(n.values()):[],a=e.size?qy(e.values()):[];if(i){const l=o[0],u=p6(l);l.offset=0,u.offset=1,o=[l,u]}return iD(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class X7e extends nw{constructor(n,e,i,o,r,a,l=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=l,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,l=e/a,u=Tf(n[0],!1);u.offset=0,r.push(u);const f=Tf(n[0],!1);f.offset=nj(l),r.push(f);const w=n.length-1;for(let T=1;T<=w;T++){let U=Tf(n[T],!1);U.offset=nj((e+U.offset*i)/a),r.push(U)}i=a,e=0,o="",n=r}return iD(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function nj(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class aD{}class Z7e extends aD{normalizePropertyName(n,e){return eD(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(K7e[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const l=i.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&o.push(function j8e(t,n){return new sn(3005,Ka)}())}return a+r}}const K7e=(()=>function J7e(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ij(t,n,e,i,o,r,a,l,u,f,w,T,U){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:l,queriedElements:u,preStyleProps:f,postStyleProps:w,totalTime:T,errors:U}}const sD={};class oj{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function e9e(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){const o=this._stateStyles["*"],r=this._stateStyles[n],a=o?o.buildStyles(e,i):{};return r?r.buildStyles(e,i):a}build(n,e,i,o,r,a,l,u,f,w){const T=[],U=this.ast.options&&this.ast.options.params||sD,se=this.buildStyles(i,l&&l.params||sD,T),Me=u&&u.params||sD,we=this.buildStyles(o,Me,T),He=new Set,Be=new Map,me=new Map,ze="void"===o,qe={params:Object.assign(Object.assign({},U),Me)},rt=w?[]:oD(n,e,this.ast.animation,r,a,se,we,qe,f,T);let xt=0;if(rt.forEach(jt=>{xt=Math.max(jt.duration+jt.delay,xt)}),T.length)return ij(e,this._triggerName,i,o,ze,se,we,[],[],Be,me,xt,T);rt.forEach(jt=>{const an=jt.element,pn=au(Be,an,{});jt.preStyleProps.forEach(Kt=>pn[Kt]=!0);const yn=au(me,an,{});jt.postStyleProps.forEach(Kt=>yn[Kt]=!0),an!==e&&He.add(an)});const Ut=qy(He.values());return ij(e,this._triggerName,i,o,ze,se,we,rt,Ut,Be,me,xt)}}class t9e{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},o=p6(this.defaultParams);return Object.keys(n).forEach(r=>{const a=n[r];null!=a&&(o[r]=a)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const a=r;Object.keys(a).forEach(l=>{let u=a[l];u.length>1&&(u=Wy(u,o,e));const f=this.normalizer.normalizePropertyName(l,e);u=this.normalizer.normalizeStyleValue(l,f,u,e),i[f]=u})}}),i}}class i9e{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(o=>{this.states[o.name]=new t9e(o.style,o.options&&o.options.params||{},i)}),rj(this.states,"true","1"),rj(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new oj(n,o,this.states))}),this.fallbackTransition=function o9e(t,n,e){return new oj(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,l)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function rj(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const r9e=new ew;class a9e{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=tD(this._driver,e,i,[]);if(i.length)throw function l7e(t){return new sn(3503,Ka)}();this._animations[n]=r}_buildPlayer(n,e,i){const o=n.element,r=zU(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations[n];let a;const l=new Map;if(r?(a=oD(this._driver,e,r,QL,Gy,{},{},i,r9e,o),a.forEach(w=>{const T=au(l,w.element,{});w.postStyleProps.forEach(U=>T[U]=null)})):(o.push(function d7e(){return new sn(3300,Ka)}()),a=[]),o.length)throw function u7e(t){return new sn(3504,Ka)}();l.forEach((w,T)=>{Object.keys(w).forEach(U=>{w[U]=this._driver.computeStyle(T,U,Hp)})});const f=Pf(a.map(w=>{const T=l.get(w.element);return this._buildPlayer(w,{},T)}));return this._playersById[n]=f,f.onDestroy(()=>this.destroy(n)),this.players.push(f),f}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function h7e(t){return new sn(3301,Ka)}();return e}listen(n,e,i,o){const r=WL(e,"","","");return UL(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const aj="ng-animate-queued",cD="ng-animate-disabled",u9e=[],sj={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},h9e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bu="__ng_removed";class lD{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function m9e(t){return null!=t?t:null}(i?n.value:n),i){const r=p6(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const u9="void",dD=new lD(u9);class p9e{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Gu(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.hasOwnProperty(e))throw function p7e(t,n){return new sn(3302,Ka)}();if(null==i||0==i.length)throw function f7e(t){return new sn(3303,Ka)}();if(!function _9e(t){return"start"==t||"done"==t}(i))throw function g7e(t,n){return new sn(3400,Ka)}();const r=au(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const l=au(this._engine.statesByElement,n,{});return l.hasOwnProperty(e)||(Gu(n,Yy),Gu(n,Yy+"-"+e),l[e]=dD),()=>{this._engine.afterFlush(()=>{const u=r.indexOf(a);u>=0&&r.splice(u,1),this._triggers[e]||delete l[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function m7e(t){return new sn(3401,Ka)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new uD(this.id,e,n);let l=this._engine.statesByElement.get(n);l||(Gu(n,Yy),Gu(n,Yy+"-"+e),this._engine.statesByElement.set(n,l={}));let u=l[e];const f=new lD(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&f.absorbOptions(u.options),l[e]=f,u||(u=dD),f.value!==u9&&u.value===f.value){if(!function b9e(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Lg(n,we),O0(n,He)})}return}const U=au(this._engine.playersByElement,n,[]);U.forEach(Me=>{Me.namespaceId==this.id&&Me.triggerName==e&&Me.queued&&Me.destroy()});let ie=r.matchTransition(u.value,f.value,n,f.params),se=!1;if(!ie){if(!o)return;ie=r.fallbackTransition,se=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:ie,fromState:u,toState:f,player:a,isFallbackTransition:se}),se||(Gu(n,aj),a.onStart(()=>{f6(n,aj)})),a.onDone(()=>{let Me=this.players.indexOf(a);Me>=0&&this.players.splice(Me,1);const we=this._engine.playersByElement.get(n);if(we){let He=we.indexOf(a);He>=0&&we.splice(He,1)}}),this.players.push(a),U.push(a),a}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Uy,!0);i.forEach(o=>{if(o[Bu])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const l=[];if(Object.keys(r).forEach(u=>{if(a.set(u,r[u].value),this._triggers[u]){const f=this.trigger(n,u,u9,o);f&&l.push(f)}}),l.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Pf(l).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const u=this._triggers[a].fallbackTransition,f=i[a]||dD,w=new lD(u9),T=new uD(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:u,fromState:f,toState:w,player:T,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Bu];(!r||r===sj)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Gu(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(l=>{if(l.name==i.triggerName){const u=WL(r,i.triggerName,i.fromState.value,i.toState.value);u._data=n,UL(i.player,l.phase,u,l.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class f9e{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new p9e(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement,r=i.length-1;if(r>=0){let a=!1;if(void 0!==this.driver.getParentElement){let l=this.driver.getParentElement(e);for(;l;){const u=o.get(l);if(u){const f=i.indexOf(u);i.splice(f+1,0,n),a=!0;break}l=this.driver.getParentElement(l)}}else for(let l=r;l>=0;l--)if(this.driver.containsElement(i[l].hostElement,e)){i.splice(l+1,0,n),a=!0;break}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const o=Object.keys(i);for(let r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Gu(n,cD)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),f6(n,cD))}removeNode(n,e,i,o){if(iw(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==n&&a.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Bu]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return iw(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Uy,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,ZL,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Pf(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Bu];if(i&&i.setForRemoval){if(n[Bu]=sj,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(cD))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Pf(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function _7e(t){return new sn(3402,Ka)}()}_flushAnimations(n,e){const i=new ew,o=[],r=new Map,a=[],l=new Map,u=new Map,f=new Map,w=new Set;this.disabledNodes.forEach(Rn=>{w.add(Rn);const ni=this.driver.query(Rn,".ng-animate-queued",!0);for(let Jn=0;Jn{const Jn=QL+Me++;se.set(ni,Jn),Rn.forEach(Oi=>Gu(Oi,Jn))});const we=[],He=new Set,Be=new Set;for(let Rn=0;RnHe.add(Oi)):Be.add(ni))}const me=new Map,ze=dj(U,Array.from(He));ze.forEach((Rn,ni)=>{const Jn=Gy+Me++;me.set(ni,Jn),Rn.forEach(Oi=>Gu(Oi,Jn))}),n.push(()=>{ie.forEach((Rn,ni)=>{const Jn=se.get(ni);Rn.forEach(Oi=>f6(Oi,Jn))}),ze.forEach((Rn,ni)=>{const Jn=me.get(ni);Rn.forEach(Oi=>f6(Oi,Jn))}),we.forEach(Rn=>{this.processLeaveNode(Rn)})});const qe=[],rt=[];for(let Rn=this._namespaceList.length-1;Rn>=0;Rn--)this._namespaceList[Rn].drainQueuedTransitions(e).forEach(Jn=>{const Oi=Jn.player,qn=Jn.element;if(qe.push(Oi),this.collectedEnterElements.length){const ro=qn[Bu];if(ro&&ro.setForMove){if(ro.previousTriggersValues&&ro.previousTriggersValues.has(Jn.triggerName)){const ki=ro.previousTriggersValues.get(Jn.triggerName),jn=this.statesByElement.get(Jn.element);jn&&jn[Jn.triggerName]&&(jn[Jn.triggerName].value=ki)}return void Oi.destroy()}}const Wi=!T||!this.driver.containsElement(T,qn),Ai=me.get(qn),Bi=se.get(qn),lo=this._buildInstruction(Jn,i,Bi,Ai,Wi);if(lo.errors&&lo.errors.length)return void rt.push(lo);if(Wi)return Oi.onStart(()=>Lg(qn,lo.fromStyles)),Oi.onDestroy(()=>O0(qn,lo.toStyles)),void o.push(Oi);if(Jn.isFallbackTransition)return Oi.onStart(()=>Lg(qn,lo.fromStyles)),Oi.onDestroy(()=>O0(qn,lo.toStyles)),void o.push(Oi);const nr=[];lo.timelines.forEach(ro=>{ro.stretchStartingKeyframe=!0,this.disabledNodes.has(ro.element)||nr.push(ro)}),lo.timelines=nr,i.append(qn,lo.timelines),a.push({instruction:lo,player:Oi,element:qn}),lo.queriedElements.forEach(ro=>au(l,ro,[]).push(Oi)),lo.preStyleProps.forEach((ro,ki)=>{const jn=Object.keys(ro);if(jn.length){let yi=u.get(ki);yi||u.set(ki,yi=new Set),jn.forEach(Ii=>yi.add(Ii))}}),lo.postStyleProps.forEach((ro,ki)=>{const jn=Object.keys(ro);let yi=f.get(ki);yi||f.set(ki,yi=new Set),jn.forEach(Ii=>yi.add(Ii))})});if(rt.length){const Rn=[];rt.forEach(ni=>{Rn.push(function C7e(t,n){return new sn(3505,Ka)}())}),qe.forEach(ni=>ni.destroy()),this.reportError(Rn)}const xt=new Map,Ut=new Map;a.forEach(Rn=>{const ni=Rn.element;i.has(ni)&&(Ut.set(ni,ni),this._beforeAnimationBuild(Rn.player.namespaceId,Rn.instruction,xt))}),o.forEach(Rn=>{const ni=Rn.element;this._getPreviousPlayers(ni,!1,Rn.namespaceId,Rn.triggerName,null).forEach(Oi=>{au(xt,ni,[]).push(Oi),Oi.destroy()})});const jt=we.filter(Rn=>hj(Rn,u,f)),an=new Map;lj(an,this.driver,Be,f,Hp).forEach(Rn=>{hj(Rn,u,f)&&jt.push(Rn)});const yn=new Map;ie.forEach((Rn,ni)=>{lj(yn,this.driver,new Set(Rn),u,"!")}),jt.forEach(Rn=>{const ni=an.get(Rn),Jn=yn.get(Rn);an.set(Rn,Object.assign(Object.assign({},ni),Jn))});const Kt=[],kn=[],ri={};a.forEach(Rn=>{const{element:ni,player:Jn,instruction:Oi}=Rn;if(i.has(ni)){if(w.has(ni))return Jn.onDestroy(()=>O0(ni,Oi.toStyles)),Jn.disabled=!0,Jn.overrideTotalTime(Oi.totalTime),void o.push(Jn);let qn=ri;if(Ut.size>1){let Ai=ni;const Bi=[];for(;Ai=Ai.parentNode;){const lo=Ut.get(Ai);if(lo){qn=lo;break}Bi.push(Ai)}Bi.forEach(lo=>Ut.set(lo,qn))}const Wi=this._buildAnimation(Jn.namespaceId,Oi,xt,r,yn,an);if(Jn.setRealPlayer(Wi),qn===ri)Kt.push(Jn);else{const Ai=this.playersByElement.get(qn);Ai&&Ai.length&&(Jn.parentPlayer=Pf(Ai)),o.push(Jn)}}else Lg(ni,Oi.fromStyles),Jn.onDestroy(()=>O0(ni,Oi.toStyles)),kn.push(Jn),w.has(ni)&&o.push(Jn)}),kn.forEach(Rn=>{const ni=r.get(Rn.element);if(ni&&ni.length){const Jn=Pf(ni);Rn.setRealPlayer(Jn)}}),o.forEach(Rn=>{Rn.parentPlayer?Rn.syncPlayerEvents(Rn.parentPlayer):Rn.destroy()});for(let Rn=0;Rn!Wi.destroyed);qn.length?C9e(this,ni,qn):this.processLeaveNode(ni)}return we.length=0,Kt.forEach(Rn=>{this.players.push(Rn),Rn.onDone(()=>{Rn.destroy();const ni=this.players.indexOf(Rn);this.players.splice(ni,1)}),Rn.play()}),Kt}elementContainsData(n,e){let i=!1;const o=e[Bu];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const l=this.playersByQueriedElement.get(n);l&&(a=l)}else{const l=this.playersByElement.get(n);if(l){const u=!r||r==u9;l.forEach(f=>{f.queued||!u&&f.triggerName!=o||a.push(f)})}}return(i||o)&&(a=a.filter(l=>!(i&&i!=l.namespaceId||o&&o!=l.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,l=e.isRemovalTransition?void 0:e.triggerName;for(const u of e.timelines){const f=u.element,w=f!==r,T=au(i,f,[]);this._getPreviousPlayers(f,w,a,l,e.toState).forEach(ie=>{const se=ie.getRealPlayer();se.beforeDestroy&&se.beforeDestroy(),ie.destroy(),T.push(ie)})}Lg(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const l=e.triggerName,u=e.element,f=[],w=new Set,T=new Set,U=e.timelines.map(se=>{const Me=se.element;w.add(Me);const we=Me[Bu];if(we&&we.removedBeforeQueried)return new l9(se.duration,se.delay);const He=Me!==u,Be=function v9e(t){const n=[];return uj(t,n),n}((i.get(Me)||u9e).map(xt=>xt.getRealPlayer())).filter(xt=>!!xt.element&&xt.element===Me),me=r.get(Me),ze=a.get(Me),qe=zU(0,this._normalizer,0,se.keyframes,me,ze),rt=this._buildPlayer(se,qe,Be);if(se.subTimeline&&o&&T.add(Me),He){const xt=new uD(n,l,Me);xt.setRealPlayer(rt),f.push(xt)}return rt});f.forEach(se=>{au(this.playersByQueriedElement,se.element,[]).push(se),se.onDone(()=>function g9e(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,se.element,se))}),w.forEach(se=>Gu(se,qU));const ie=Pf(U);return ie.onDestroy(()=>{w.forEach(se=>f6(se,qU)),O0(u,e.toStyles)}),T.forEach(se=>{au(o,se,[]).push(ie)}),ie}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new l9(n.duration,n.delay)}}class uD{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new l9,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>UL(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){au(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function iw(t){return t&&1===t.nodeType}function cj(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function lj(t,n,e,i,o){const r=[];e.forEach(u=>r.push(cj(u)));const a=[];i.forEach((u,f)=>{const w={};u.forEach(T=>{const U=w[T]=n.computeStyle(f,T,o);(!U||0==U.length)&&(f[Bu]=h9e,a.push(f))}),t.set(f,w)});let l=0;return e.forEach(u=>cj(u,r[l++])),a}function dj(t,n){const e=new Map;if(t.forEach(l=>e.set(l,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(l){if(!l)return 1;let u=r.get(l);if(u)return u;const f=l.parentNode;return u=e.has(f)?f:o.has(f)?1:a(f),r.set(l,u),u}return n.forEach(l=>{const u=a(l);1!==u&&e.get(u).push(l)}),e}function Gu(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function f6(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function C9e(t,n,e){Pf(e).onDone(()=>t.processLeaveNode(n))}function uj(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class ow{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new f9e(n,e,i),this._timelineEngine=new a9e(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let l=this._triggerCache[a];if(!l){const u=[],w=tD(this._driver,r,u,[]);if(u.length)throw function s7e(t,n){return new sn(3404,Ka)}();l=function n9e(t,n,e){return new i9e(t,n,e)}(o,w,this._normalizer),this._triggerCache[a]=l}this._transitionEngine.registerTrigger(e,o,l)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i,o){this._transitionEngine.removeNode(n,e,o||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=FU(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,l]=FU(i);return this._timelineEngine.listen(a,e,l,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let y9e=(()=>{class t{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&O0(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(O0(this._element,this._initialStyles),this._endStyles&&(O0(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Lg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lg(this._element,this._endStyles),this._endStyles=null),O0(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function hD(t){let n=null;const e=Object.keys(t);for(let i=0;in()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:KU(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class M9e{validateStyleProperty(n){return GU(n)}matchesElement(n,e){return!1}containsElement(n,e){return YU(n,e)}getParentElement(n){return $L(n)}query(n,e,i){return UU(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,a=[]){const u={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(u.easing=r);const f={},w=a.filter(U=>U instanceof pj);(function T7e(t,n){return 0===t||0===n})(i,o)&&w.forEach(U=>{let ie=U.currentSnapshot;Object.keys(ie).forEach(se=>f[se]=ie[se])}),e=function E7e(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],a=[];if(i.forEach(l=>{r.hasOwnProperty(l)||a.push(l),r[l]=e[l]}),a.length)for(var o=1;oTf(U,!1)),f);const T=function x9e(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=hD(n[0]),n.length>1&&(i=hD(n[n.length-1]))):n&&(e=hD(n)),e||i?new y9e(t,e,i):null}(n,e);return new pj(n,e,u,T)}}let O9e=(()=>{class t extends VL{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:pa.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?c9(e):e;return fj(this._renderer,null,i,"register",[o]),new S9e(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(qt(W7),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class S9e extends class z8e{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new P9e(this._id,n,e||{},this._renderer)}}class P9e{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return fj(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function fj(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const gj="@.disabled";let T9e=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,a)=>{const l=null==a?void 0:a.parentNode(r);l&&a.removeChild(l,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let w=this._rendererCache.get(r);return w||(w=new mj("",r,this.engine),this._rendererCache.set(r,w)),w}const a=i.id,l=i.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const u=w=>{Array.isArray(w)?w.forEach(u):this.engine.registerTrigger(a,l,e,w.name,w)};return i.data.animation.forEach(u),new E9e(this,l,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&ei(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[a,l]=r;a(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(qt(W7),qt(ow),qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class mj{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==gj?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class E9e extends mj{constructor(n,e,i,o){super(e,i,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==gj?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function A9e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),a="";return"@"!=r.charAt(0)&&([r,a]=function L9e(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,l=>{this.factory.scheduleListenerCallback(l._data||-1,i,l)})}return this.delegate.listen(n,e,i)}}let D9e=(()=>{class t extends ow{constructor(e,i,o){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(XL),qt(aD))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const E1=new ui("AnimationModuleType"),_j=[{provide:VL,useClass:O9e},{provide:aD,useFactory:function k9e(){return new Z7e}},{provide:ow,useClass:D9e},{provide:W7,useFactory:function I9e(t,n,e){return new T9e(t,n,e)},deps:[Hy,ow,oo]}],Cj=[{provide:XL,useFactory:()=>new M9e},{provide:E1,useValue:"BrowserAnimations"},..._j],N9e=[{provide:XL,useClass:jU},{provide:E1,useValue:"NoopAnimations"},..._j];let R9e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?N9e:Cj}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:Cj,imports:[AL]}),t})();class Io extends N{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const{isArray:z9e}=Array,{getPrototypeOf:F9e,prototype:H9e,keys:V9e}=Object;function vj(t){if(1===t.length){const n=t[0];if(z9e(n))return{args:n,keys:null};if(function B9e(t){return t&&"object"==typeof t&&F9e(t)===H9e}(n)){const e=V9e(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:G9e}=Array;function pD(t){return it(n=>function Y9e(t,n){return G9e(n)?t(...n):t(n)}(t,n))}function bj(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function h9(...t){const n=Us(t),e=Da(t),{args:i,keys:o}=vj(t);if(0===i.length)return Ra([],n);const r=new Wt(function U9e(t,n,e=Ie){return i=>{xj(n,()=>{const{length:o}=t,r=new Array(o);let a=o,l=o;for(let u=0;u{const f=Ra(t[u],n);let w=!1;f.subscribe($e(i,T=>{r[u]=T,w||(w=!0,l--),l||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>bj(o,a):Ie));return e?r.pipe(pD(e)):r}function xj(t,n,e){t?Rs(e,t,n):n()}function p9(t,n){const e=_e(t)?t:()=>t,i=o=>o.error(e());return new Wt(n?o=>n.schedule(i,0,o):i)}const aw=Ne(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function f9(...t){return function j9e(){return wc(1)}()(Ra(t,Us(t)))}function g9(t){return new Wt(n=>{Ur(t()).subscribe(n)})}function yj(){return ve((t,n)=>{let e=null;t._refCount++;const i=$e(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class W9e extends Wt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,he(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Se;const e=this.getSubject();n.add(this.source.subscribe($e(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Se.EMPTY)}return n}refCount(){return yj()(this)}}function Z1(t,n){return ve((e,i)=>{let o=null,r=0,a=!1;const l=()=>a&&!o&&i.complete();e.subscribe($e(i,u=>{null==o||o.unsubscribe();let f=0;const w=r++;Ur(t(u,w)).subscribe(o=$e(i,T=>i.next(n?n(u,T,w,f++):T),()=>{o=null,l()}))},()=>{a=!0,l()}))})}function Ja(t){return t<=0?()=>Na:ve((n,e)=>{let i=0;n.subscribe($e(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function Sc(...t){const n=Us(t);return ve((e,i)=>{(n?f9(t,e,n):f9(t,e)).subscribe(i)})}function q9e(t,n,e,i,o){return(r,a)=>{let l=e,u=n,f=0;r.subscribe($e(a,w=>{const T=f++;u=l?t(u,w,T):(l=!0,w),i&&a.next(u)},o&&(()=>{l&&a.next(u),a.complete()})))}}function wj(t,n){return ve(q9e(t,n,arguments.length>=2,!0))}function Vp(t){return ve((n,e)=>{let r,i=null,o=!1;i=n.subscribe($e(e,void 0,void 0,a=>{r=Ur(t(a,Vp(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function fD(t){return t<=0?()=>Na:ve((n,e)=>{let i=[];n.subscribe($e(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function Mj(t=$9e){return ve((n,e)=>{let i=!1;n.subscribe($e(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function $9e(){return new aw}function Oj(t){return ve((n,e)=>{let i=!1;n.subscribe($e(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function kg(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ca((o,r)=>t(o,r,i)):Ie,Ja(1),e?Oj(n):Mj(()=>new aw))}function Ps(t,n,e){const i=_e(t)||n||e?{next:t,error:n,complete:e}:t;return i?ve((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let l=!0;o.subscribe($e(r,u=>{var f;null===(f=i.next)||void 0===f||f.call(i,u),r.next(u)},()=>{var u;l=!1,null===(u=i.complete)||void 0===u||u.call(i),r.complete()},u=>{var f;l=!1,null===(f=i.error)||void 0===f||f.call(i,u),r.error(u)},()=>{var u,f;l&&(null===(u=i.unsubscribe)||void 0===u||u.call(i)),null===(f=i.finalize)||void 0===f||f.call(i)}))}):Ie}function Yu(t){return ve((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}class Bp{constructor(n,e){this.id=n,this.url=e}}class g6 extends Bp{constructor(n,e,i="imperative",o=null){super(n,e),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gp extends Bp{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sj extends Bp{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Q9e extends Bp{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z9e extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K9e extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class J9e extends Bp{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class eCe extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tCe extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pj{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Tj{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nCe{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iCe{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oCe{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rCe{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ej{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Va="primary";class aCe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function m6(t){return new aCe(t)}const Aj="ngNavigationCancelingError";function gD(t){const n=Error("NavigationCancelingError: "+t);return n[Aj]=!0,n}function cCe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function Dj(t){return Array.prototype.concat.apply([],t)}function kj(t){return t.length>0?t[t.length-1]:null}function K1(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function P0(t){return SA(t)?t:V7(t)?Ra(Promise.resolve(t)):rr(t)}const uCe={exact:function Rj(t,n,e){if(!Ng(t.segments,n.segments)||!sw(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Rj(t.children[i],n.children[i],e))return!1;return!0},subset:zj},Ij={exact:function hCe(t,n){return S0(t,n)},subset:function pCe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Lj(t[e],n[e]))},ignored:()=>!0};function Nj(t,n,e){return uCe[e.paths](t.root,n.root,e.matrixParams)&&Ij[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function zj(t,n,e){return Fj(t,n,n.segments,e)}function Fj(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Ng(o,e)||n.hasChildren()||!sw(o,e,i))}if(t.segments.length===e.length){if(!Ng(t.segments,e)||!sw(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!zj(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ng(t.segments,o)&&sw(t.segments,o,i)&&t.children[Va])&&Fj(t.children[Va],n,r,i)}}function sw(t,n,e){return n.every((i,o)=>Ij[e](t[o].parameters,i.parameters))}class Ig{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=m6(this.queryParams)),this._queryParamMap}toString(){return mCe.serialize(this)}}class es{constructor(n,e){this.segments=n,this.children=e,this.parent=null,K1(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cw(this)}}class m9{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=m6(this.parameters)),this._parameterMap}toString(){return Yj(this)}}function Ng(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class Hj{}class Vj{parse(n){const e=new OCe(n);return new Ig(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${_9(n.root,!0)}`,i=function vCe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${lw(e)}=${lw(o)}`).join("&"):`${lw(e)}=${lw(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function _Ce(t){return encodeURI(t)}(n.fragment)}`:""}`}}const mCe=new Vj;function cw(t){return t.segments.map(n=>Yj(n)).join("/")}function _9(t,n){if(!t.hasChildren())return cw(t);if(n){const e=t.children[Va]?_9(t.children[Va],!1):"",i=[];return K1(t.children,(o,r)=>{r!==Va&&i.push(`${r}:${_9(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function gCe(t,n){let e=[];return K1(t.children,(i,o)=>{o===Va&&(e=e.concat(n(i,o)))}),K1(t.children,(i,o)=>{o!==Va&&(e=e.concat(n(i,o)))}),e}(t,(i,o)=>o===Va?[_9(t.children[Va],!1)]:[`${o}:${_9(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Va]?`${cw(t)}/${e[0]}`:`${cw(t)}/(${e.join("//")})`}}function Bj(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lw(t){return Bj(t).replace(/%3B/gi,";")}function mD(t){return Bj(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dw(t){return decodeURIComponent(t)}function Gj(t){return dw(t.replace(/\+/g,"%20"))}function Yj(t){return`${mD(t.path)}${function CCe(t){return Object.keys(t).map(n=>`;${mD(n)}=${mD(t[n])}`).join("")}(t.parameters)}`}const bCe=/^[^\/()?;=#]+/;function uw(t){const n=t.match(bCe);return n?n[0]:""}const xCe=/^[^=?&#]+/,wCe=/^[^&#]+/;class OCe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new es([],{}):new es([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Va]=new es(n,e)),i}parseSegment(){const n=uw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new m9(dw(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=uw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=uw(this.remaining);o&&(i=o,this.capture(i))}n[dw(e)]=dw(i)}parseQueryParam(n){const e=function yCe(t){const n=t.match(xCe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function MCe(t){const n=t.match(wCe);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=Gj(e),r=Gj(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uw(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Va);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Va]:new es([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class Uj{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=_D(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=_D(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=CD(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return CD(n,this._root).map(e=>e.value)}}function _D(t,n){if(t===n.value)return n;for(const e of n.children){const i=_D(t,e);if(i)return i}return null}function CD(t,n){if(t===n.value)return[n];for(const e of n.children){const i=CD(t,e);if(i.length)return i.unshift(n),i}return[]}class Yp{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function _6(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class jj extends Uj{constructor(n,e){super(n),this.snapshot=e,vD(this,n)}toString(){return this.snapshot.toString()}}function Wj(t,n){const e=function SCe(t,n){const a=new hw([],{},{},"",{},Va,n,null,t.root,-1,{});return new $j("",new Yp(a,[]))}(t,n),i=new Io([new m9("",{})]),o=new Io({}),r=new Io({}),a=new Io({}),l=new Io(""),u=new lu(i,o,a,l,r,Va,n,e.root);return u.snapshot=e.root,new jj(new Yp(u,[]),e)}class lu{constructor(n,e,i,o,r,a,l,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=l,this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(it(n=>m6(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(it(n=>m6(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qj(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function PCe(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class hw{constructor(n,e,i,o,r,a,l,u,f,w,T){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=l,this.routeConfig=u,this._urlSegment=f,this._lastPathIndex=w,this._resolve=T}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=m6(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=m6(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $j extends Uj{constructor(n,e){super(e),this.url=n,vD(this,e)}toString(){return Xj(this._root)}}function vD(t,n){n.value._routerState=t,n.children.forEach(e=>vD(t,e))}function Xj(t){const n=t.children.length>0?` { ${t.children.map(Xj).join(", ")} } `:"";return`${t.value}${n}`}function bD(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,S0(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),S0(n.params,e.params)||t.params.next(e.params),function lCe(t,n){if(t.length!==n.length)return!1;for(let e=0;eS0(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||xD(t.parent,n.parent))}function C9(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function ECe(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return C9(t,i,o);return C9(t,i)})}(t,n,e);return new Yp(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(l=>C9(t,l)),a}}const i=function ACe(t){return new lu(new Io(t.url),new Io(t.params),new Io(t.queryParams),new Io(t.fragment),new Io(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>C9(t,r));return new Yp(i,o)}}function pw(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function v9(t){return"object"==typeof t&&null!=t&&t.outlets}function yD(t,n,e,i,o){let r={};if(i&&K1(i,(l,u)=>{r[u]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),t===n)return new Ig(e,r,o);const a=Qj(t,n,e);return new Ig(a,r,o)}function Qj(t,n,e){const i={};return K1(t.children,(o,r)=>{i[r]=o===n?e:Qj(o,n,e)}),new es(t.segments,i)}class Zj{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&pw(i[0]))throw new Error("Root segment cannot have matrix parameters");const o=i.find(v9);if(o&&o!==kj(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wD{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Kj(t,n,e){if(t||(t=new es([],{})),0===t.segments.length&&t.hasChildren())return fw(t,n,e);const i=function RCe(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],l=e[i];if(v9(l))break;const u=`${l}`,f=i0&&void 0===u)break;if(u&&f&&"object"==typeof f&&void 0===f.outlets){if(!eW(u,f,a))return r;i+=2}else{if(!eW(u,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[a]=Kj(t.children[a],n,r))}),K1(t.children,(r,a)=>{void 0===i[a]&&(o[a]=r)}),new es(t.segments,o)}}function MD(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=MD(new es([],{}),0,e))}),n}function Jj(t){const n={};return K1(t,(e,i)=>n[i]=`${e}`),n}function eW(t,n,e){return t==e.path&&S0(n,e.parameters)}class HCe{constructor(n,e,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),bD(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=_6(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),K1(o,(r,a)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=_6(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);if(i&&i.outlet){const a=i.outlet.detach(),l=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:l})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=_6(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const o=_6(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new rCe(r.value.snapshot))}),n.children.length&&this.forwardEvent(new iCe(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(bD(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const l=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),bD(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=function VCe(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(o.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=o,a.resolver=u,a.outlet&&a.outlet.activateWith(o,u),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class OD{constructor(n,e){this.routes=n,this.module=e}}function Ef(t){return"function"==typeof t}function Rg(t){return t instanceof Ig}const b9=Symbol("INITIAL_VALUE");function x9(){return Z1(t=>h9(t.map(n=>n.pipe(Ja(1),Sc(b9)))).pipe(wj((n,e)=>{let i=!1;return e.reduce((o,r,a)=>o!==b9?o:(r===b9&&(i=!0),i||!1!==r&&a!==e.length-1&&!Rg(r)?o:r),n)},b9),ca(n=>n!==b9),it(n=>Rg(n)?n:!0===n),Ja(1)))}class WCe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new y9,this.attachRef=null}}class y9{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new WCe,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let SD=(()=>{class t{constructor(e,i,o,r,a){this.parentContexts=e,this.location=i,this.resolver=o,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new In,this.deactivateEvents=new In,this.attachEvents=new In,this.detachEvents=new In,this.name=r||Va,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const a=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),l=this.parentContexts.getOrCreateContext(this.name).children,u=new qCe(e,l,this.location.injector);this.activated=this.location.createComponent(a,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(de(y9),de(oc),de(yf),Yl("name"),de(Xr))},t.\u0275dir=St({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class qCe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===lu?this.route:n===y9?this.childContexts:this.parent.get(n,e)}}let tW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&Qe(0,"router-outlet")},directives:[SD],encapsulation:2}),t})();function nW(t,n=""){for(let e=0;eUu(i)===n);return e.push(...t.filter(i=>Uu(i)!==n)),e}const oW={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gw(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},oW):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||cCe)(e,t,n);if(!r)return Object.assign({},oW);const a={};K1(r.posParams,(u,f)=>{a[f]=u.path});const l=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:l,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function mw(t,n,e,i,o="corrected"){if(e.length>0&&function KCe(t,n,e){return e.some(i=>_w(t,n,i)&&Uu(i)!==Va)}(t,e,i)){const a=new es(n,function ZCe(t,n,e,i){const o={};o[Va]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&Uu(r)!==Va){const a=new es([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Uu(r)]=a}return o}(t,n,i,new es(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&function JCe(t,n,e){return e.some(i=>_w(t,n,i))}(t,e,i)){const a=new es(t.segments,function QCe(t,n,e,i,o,r){const a={};for(const l of i)if(_w(t,e,l)&&!o[Uu(l)]){const u=new es([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===r?t.segments.length:n.length,a[Uu(l)]=u}return Object.assign(Object.assign({},o),a)}(t,n,e,i,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:e}}const r=new es(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function _w(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function rW(t,n,e,i){return!!(Uu(t)===i||i!==Va&&_w(n,e,t))&&("**"===t.path||gw(n,t,e).matched)}function aW(t,n,e){return 0===n.length&&!t.children[e]}class Cw{constructor(n){this.segmentGroup=n||null}}class sW{constructor(n){this.urlTree=n}}function w9(t){return p9(new Cw(t))}function cW(t){return p9(new sW(t))}class ive{constructor(n,e,i,o,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(Np)}apply(){const n=mw(this.urlTree.root,[],[],this.config).segmentGroup,e=new es(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Va).pipe(it(r=>this.createUrlTree(TD(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Vp(r=>{if(r instanceof sW)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof Cw?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,Va).pipe(it(o=>this.createUrlTree(TD(o),n.queryParams,n.fragment))).pipe(Vp(o=>{throw o instanceof Cw?this.noMatchError(o):o}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const o=n.segments.length>0?new es([],{[Va]:n}):n;return new Ig(o,e,i)}expandSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(it(r=>new es([],r))):this.expandSegment(n,i,e,i.segments,o,!0)}expandChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Ra(o).pipe(Sf(r=>{const a=i.children[r],l=iW(e,r);return this.expandSegmentGroup(n,l,a,r).pipe(it(u=>({segment:u,outlet:r})))}),wj((r,a)=>(r[a.outlet]=a.segment,r),{}),function X9e(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ca((o,r)=>t(o,r,i)):Ie,fD(1),e?Oj(n):Mj(()=>new aw))}())}expandSegment(n,e,i,o,r,a){return Ra(i).pipe(Sf(l=>this.expandSegmentAgainstRoute(n,e,i,l,o,r,a).pipe(Vp(f=>{if(f instanceof Cw)return rr(null);throw f}))),kg(l=>!!l),Vp((l,u)=>{if(l instanceof aw||"EmptyError"===l.name)return aW(e,o,r)?rr(new es([],{})):w9(e);throw l}))}expandSegmentAgainstRoute(n,e,i,o,r,a,l){return rW(o,e,r,a)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,r,a):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a):w9(e):w9(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,a):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?cW(r):this.lineralizeSegments(i,r).pipe(da(a=>{const l=new es(a,{});return this.expandSegment(n,l,e,a,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:l,consumedSegments:u,remainingSegments:f,positionalParamSegments:w}=gw(e,o,r);if(!l)return w9(e);const T=this.applyRedirectCommands(u,o.redirectTo,w);return o.redirectTo.startsWith("/")?cW(T):this.lineralizeSegments(o,T).pipe(da(U=>this.expandSegment(n,e,i,U.concat(f),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?rr(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(it(T=>(i._loadedConfig=T,new es(o,{})))):rr(new es(o,{}));const{matched:a,consumedSegments:l,remainingSegments:u}=gw(e,i,o);return a?this.getChildConfig(n,i,o).pipe(da(w=>{const T=w.module,U=w.routes,{segmentGroup:ie,slicedSegments:se}=mw(e,l,u,U),Me=new es(ie.segments,ie.children);if(0===se.length&&Me.hasChildren())return this.expandChildren(T,U,Me).pipe(it(me=>new es(l,me)));if(0===U.length&&0===se.length)return rr(new es(l,{}));const we=Uu(i)===r;return this.expandSegment(T,Me,U,se,we?Va:r,!0).pipe(it(Be=>new es(l.concat(Be.segments),Be.children)))})):w9(e)}getChildConfig(n,e,i){return e.children?rr(new OD(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?rr(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(da(o=>o?this.configLoader.load(n.injector,e).pipe(it(r=>(e._loadedConfig=r,r))):function tve(t){return p9(gD(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):rr(new OD([],n))}runCanLoadGuards(n,e,i){const o=e.canLoad;return o&&0!==o.length?rr(o.map(a=>{const l=n.get(a);let u;if(function GCe(t){return t&&Ef(t.canLoad)}(l))u=l.canLoad(e,i);else{if(!Ef(l))throw new Error("Invalid CanLoad guard");u=l(e,i)}return P0(u)})).pipe(x9(),Ps(a=>{if(!Rg(a))return;const l=gD(`Redirecting to "${this.urlSerializer.serialize(a)}"`);throw l.url=a,l}),it(a=>!0===a)):rr(!0)}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return rr(i);if(o.numberOfChildren>1||!o.children[Va])return p9(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));o=o.children[Va]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new Ig(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return K1(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const l=o.substring(1);i[r]=e[l]}else i[r]=o}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return K1(e.children,(l,u)=>{a[u]=this.createSegmentGroup(n,l,i,o)}),new es(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}function TD(t){const n={};for(const i of Object.keys(t.children)){const r=TD(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function ove(t){if(1===t.numberOfChildren&&t.children[Va]){const n=t.children[Va];return new es(t.segments.concat(n.segments),n.children)}return t}(new es(t.segments,n))}class lW{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class vw{constructor(n,e){this.component=n,this.route=e}}function ave(t,n,e){const i=t._root;return M9(i,n?n._root:null,e,[i.value])}function bw(t,n,e){const i=function cve(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function M9(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=_6(n);return t.children.forEach(a=>{(function lve(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,l=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const u=function dve(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Ng(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ng(t.url,n.url)||!S0(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xD(t,n)||!S0(t.queryParams,n.queryParams);default:return!xD(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new lW(i)):(r.data=a.data,r._resolvedData=a._resolvedData),M9(t,n,r.component?l?l.children:null:e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new vw(l.outlet.component,a))}else a&&O9(n,l,o),o.canActivateChecks.push(new lW(i)),M9(t,null,r.component?l?l.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),K1(r,(a,l)=>O9(a,e.getContext(l),o)),o}function O9(t,n,e){const i=_6(t),o=t.value;K1(i,(r,a)=>{O9(r,o.component?n?n.children.getContext(a):null:n,e)}),e.canDeactivateChecks.push(new vw(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}class vve{}function dW(t){return new Wt(n=>n.error(t))}class xve{constructor(n,e,i,o,r,a){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=a}recognize(){const n=mw(this.urlTree.root,[],[],this.config.filter(a=>void 0===a.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,Va);if(null===e)return null;const i=new hw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Va,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Yp(i,e),r=new $j(this.url,o);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=qj(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const a=e.children[r],l=iW(n,r),u=this.processSegmentGroup(l,a,r);if(null===u)return null;i.push(...u)}const o=uW(i);return function yve(t){t.sort((n,e)=>n.value.outlet===Va?-1:e.value.outlet===Va?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}processSegment(n,e,i,o){for(const r of n){const a=this.processSegmentAgainstRoute(r,e,i,o);if(null!==a)return a}return aW(e,i,o)?[]:null}processSegmentAgainstRoute(n,e,i,o){if(n.redirectTo||!rW(n,e,i,o))return null;let r,a=[],l=[];if("**"===n.path){const ie=i.length>0?kj(i).parameters:{};r=new hw(i,ie,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fW(n),Uu(n),n.component,n,hW(e),pW(e)+i.length,gW(n))}else{const ie=gw(e,n,i);if(!ie.matched)return null;a=ie.consumedSegments,l=ie.remainingSegments,r=new hw(a,ie.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fW(n),Uu(n),n.component,n,hW(e),pW(e)+a.length,gW(n))}const u=function wve(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:f,slicedSegments:w}=mw(e,a,l,u.filter(ie=>void 0===ie.redirectTo),this.relativeLinkResolution);if(0===w.length&&f.hasChildren()){const ie=this.processChildren(u,f);return null===ie?null:[new Yp(r,ie)]}if(0===u.length&&0===w.length)return[new Yp(r,[])];const T=Uu(n)===o,U=this.processSegment(u,f,w,T?Va:o);return null===U?null:[new Yp(r,U)]}}function Mve(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function uW(t){const n=[],e=new Set;for(const i of t){if(!Mve(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=uW(i.children);n.push(new Yp(i.value,o))}return n.filter(i=>!e.has(i))}function hW(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function pW(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function fW(t){return t.data||{}}function gW(t){return t.resolve||{}}function mW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ED(t){return Z1(n=>{const e=t(n);return e?Ra(e).pipe(it(()=>n)):rr(n)})}class Dve extends class Lve{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const AD=new ui("ROUTES");class _W{constructor(n,e,i,o){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const o=this.loadModuleFactory(e.loadChildren).pipe(it(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const a=r.create(n);return new OD(Dj(a.injector.get(AD,void 0,qi.Self|qi.Optional)).map(PD),a)}),Vp(r=>{throw e._loader$=void 0,r}));return e._loader$=new W9e(o,()=>new N).pipe(yj()),e._loader$}loadModuleFactory(n){return P0(n()).pipe(da(e=>e instanceof FG?rr(e):Ra(this.compiler.compileModuleAsync(e))))}}class Ive{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function Nve(t){throw t}function Rve(t,n,e){return n.parse("/")}function CW(t,n){return rr(null)}const zve={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fve={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let A1=(()=>{class t{constructor(e,i,o,r,a,l,u){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new N,this.errorHandler=Nve,this.malformedUriErrorHandler=Rve,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:CW,afterPreactivation:CW},this.urlHandlingStrategy=new Ive,this.routeReuseStrategy=new Dve,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(Np),this.console=a.get(A5e);const T=a.get(oo);this.isNgZoneEnabled=T instanceof oo&&oo.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function dCe(){return new Ig(new es([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _W(a,l,U=>this.triggerEvent(new Pj(U)),U=>this.triggerEvent(new Tj(U))),this.routerState=Wj(this.currentUrlTree,this.rootComponentType),this.transitions=new Io({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ca(o=>0!==o.id),it(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Z1(o=>{let r=!1,a=!1;return rr(o).pipe(Ps(l=>{this.currentNavigation={id:l.id,initialUrl:l.currentRawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Z1(l=>{const u=this.browserUrlTree.toString(),f=!this.navigated||l.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||f)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return vW(l.source)&&(this.browserUrlTree=l.extractedUrl),rr(l).pipe(Z1(T=>{const U=this.transitions.getValue();return i.next(new g6(T.id,this.serializeUrl(T.extractedUrl),T.source,T.restoredState)),U!==this.transitions.getValue()?Na:Promise.resolve(T)}),function rve(t,n,e,i){return Z1(o=>function nve(t,n,e,i,o){return new ive(t,n,e,i,o).apply()}(t,n,e,o.extractedUrl,i).pipe(it(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ps(T=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:T.urlAfterRedirects})}),function Ove(t,n,e,i,o){return da(r=>function bve(t,n,e,i,o="emptyOnly",r="legacy"){try{const a=new xve(t,n,e,i,o,r).recognize();return null===a?dW(new vve):rr(a)}catch(a){return dW(a)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,o).pipe(it(a=>Object.assign(Object.assign({},r),{targetSnapshot:a}))))}(this.rootComponentType,this.config,T=>this.serializeUrl(T),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ps(T=>{if("eager"===this.urlUpdateStrategy){if(!T.extras.skipLocationChange){const ie=this.urlHandlingStrategy.merge(T.urlAfterRedirects,T.rawUrl);this.setBrowserUrl(ie,T)}this.browserUrlTree=T.urlAfterRedirects}const U=new Z9e(T.id,this.serializeUrl(T.extractedUrl),this.serializeUrl(T.urlAfterRedirects),T.targetSnapshot);i.next(U)}));if(f&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:U,extractedUrl:ie,source:se,restoredState:Me,extras:we}=l,He=new g6(U,this.serializeUrl(ie),se,Me);i.next(He);const Be=Wj(ie,this.rootComponentType).snapshot;return rr(Object.assign(Object.assign({},l),{targetSnapshot:Be,urlAfterRedirects:ie,extras:Object.assign(Object.assign({},we),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=l.rawUrl,l.resolve(null),Na}),ED(l=>{const{targetSnapshot:u,id:f,extractedUrl:w,rawUrl:T,extras:{skipLocationChange:U,replaceUrl:ie}}=l;return this.hooks.beforePreactivation(u,{navigationId:f,appliedUrlTree:w,rawUrlTree:T,skipLocationChange:!!U,replaceUrl:!!ie})}),Ps(l=>{const u=new K9e(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),it(l=>Object.assign(Object.assign({},l),{guards:ave(l.targetSnapshot,l.currentSnapshot,this.rootContexts)})),function uve(t,n){return da(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?rr(Object.assign(Object.assign({},e),{guardsResult:!0})):function hve(t,n,e,i){return Ra(t).pipe(da(o=>function Cve(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?rr(r.map(l=>{const u=bw(l,n,o);let f;if(function jCe(t){return t&&Ef(t.canDeactivate)}(u))f=P0(u.canDeactivate(t,n,e,i));else{if(!Ef(u))throw new Error("Invalid CanDeactivate guard");f=P0(u(t,n,e,i))}return f.pipe(kg())})).pipe(x9()):rr(!0)}(o.component,o.route,e,n,i)),kg(o=>!0!==o,!0))}(a,i,o,t).pipe(da(l=>l&&function BCe(t){return"boolean"==typeof t}(l)?function pve(t,n,e,i){return Ra(n).pipe(Sf(o=>f9(function gve(t,n){return null!==t&&n&&n(new nCe(t)),rr(!0)}(o.route.parent,i),function fve(t,n){return null!==t&&n&&n(new oCe(t)),rr(!0)}(o.route,i),function _ve(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function sve(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>g9(()=>rr(a.guards.map(u=>{const f=bw(u,a.node,e);let w;if(function UCe(t){return t&&Ef(t.canActivateChild)}(f))w=P0(f.canActivateChild(i,t));else{if(!Ef(f))throw new Error("Invalid CanActivateChild guard");w=P0(f(i,t))}return w.pipe(kg())})).pipe(x9())));return rr(r).pipe(x9())}(t,o.path,e),function mve(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return rr(!0);const o=i.map(r=>g9(()=>{const a=bw(r,n,e);let l;if(function YCe(t){return t&&Ef(t.canActivate)}(a))l=P0(a.canActivate(n,t));else{if(!Ef(a))throw new Error("Invalid CanActivate guard");l=P0(a(n,t))}return l.pipe(kg())}));return rr(o).pipe(x9())}(t,o.route,e))),kg(o=>!0!==o,!0))}(i,r,t,n):rr(l)),it(l=>Object.assign(Object.assign({},e),{guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),Ps(l=>{if(Rg(l.guardsResult)){const f=gD(`Redirecting to "${this.serializeUrl(l.guardsResult)}"`);throw f.url=l.guardsResult,f}const u=new J9e(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(u)}),ca(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,""),!1)),ED(l=>{if(l.guards.canActivateChecks.length)return rr(l).pipe(Ps(u=>{const f=new eCe(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(f)}),Z1(u=>{let f=!1;return rr(u).pipe(function Sve(t,n){return da(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return rr(e);let r=0;return Ra(o).pipe(Sf(a=>function Pve(t,n,e,i){return function Tve(t,n,e,i){const o=mW(t);if(0===o.length)return rr({});const r={};return Ra(o).pipe(da(a=>function Eve(t,n,e,i){const o=bw(t,n,i);return P0(o.resolve?o.resolve(n,e):o(n,e))}(t[a],n,e,i).pipe(Ps(l=>{r[a]=l}))),fD(1),da(()=>mW(r).length===o.length?rr(r):Na))}(t._resolve,t,n,i).pipe(it(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),qj(t,e).resolve),null)))}(a.route,i,t,n)),Ps(()=>r++),fD(1),da(a=>r===o.length?rr(e):Na))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ps({next:()=>f=!0,complete:()=>{f||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),Ps(u=>{const f=new tCe(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(f)}))}),ED(l=>{const{targetSnapshot:u,id:f,extractedUrl:w,rawUrl:T,extras:{skipLocationChange:U,replaceUrl:ie}}=l;return this.hooks.afterPreactivation(u,{navigationId:f,appliedUrlTree:w,rawUrlTree:T,skipLocationChange:!!U,replaceUrl:!!ie})}),it(l=>{const u=function TCe(t,n,e){const i=C9(t,n._root,e?e._root:void 0);return new jj(i,n)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return Object.assign(Object.assign({},l),{targetRouterState:u})}),Ps(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((t,n,e)=>it(i=>(new HCe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),Ps({next(){r=!0},complete(){r=!0}}),Yu(()=>{var l;r||a||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(l=this.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(this.currentNavigation=null)}),Vp(l=>{if(a=!0,function sCe(t){return t&&t[Aj]}(l)){const u=Rg(l.url);u||(this.navigated=!0,this.restoreHistory(o,!0));const f=new Sj(o.id,this.serializeUrl(o.extractedUrl),l.message);i.next(f),u?setTimeout(()=>{const w=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),T={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||vW(o.source)};this.scheduleNavigation(w,"imperative",null,T,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new Q9e(o.id,this.serializeUrl(o.extractedUrl),l);i.next(u);try{o.resolve(this.errorHandler(l))}catch(f){o.reject(f)}}return Na}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},a=(null===(o=e.state)||void 0===o?void 0:o.navigationId)?e.state:null;if(a){const u=Object.assign({},a);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(r.state=u)}const l=this.parseUrl(e.url);this.scheduleNavigation(l,i,a,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){nW(e),this.config=e.map(PD),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:l,preserveFragment:u}=i,f=o||this.routerState.root,w=u?this.currentUrlTree.fragment:a;let T=null;switch(l){case"merge":T=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":T=this.currentUrlTree.queryParams;break;default:T=r||null}return null!==T&&(T=this.removeEmptyProps(T)),function LCe(t,n,e,i,o){if(0===e.length)return yD(n.root,n.root,n.root,i,o);const r=function DCe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Zj(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const l={};return K1(r.outlets,(u,f)=>{l[f]="string"==typeof u?u.split("/"):u}),[...o,{outlets:l}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((l,u)=>{0==u&&"."===l||(0==u&&""===l?e=!0:".."===l?n++:""!=l&&o.push(l))}),o):[...o,r]},[]);return new Zj(e,n,i)}(e);if(r.toRoot())return yD(n.root,n.root,new es([],{}),i,o);const a=function kCe(t,n,e){if(t.isAbsolute)return new wD(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new wD(r,r===n.root,0)}const i=pw(t.commands[0])?0:1;return function ICe(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new wD(i,!1,o-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),l=a.processChildren?fw(a.segmentGroup,a.index,r.commands):Kj(a.segmentGroup,a.index,r.commands);return yD(n.root,a.segmentGroup,l,i,o)}(f,this.currentUrlTree,e,T,null!=w?w:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Rg(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function Hve(t){for(let n=0;n{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Gp(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,a){var l,u;if(this.disposed)return Promise.resolve(!1);let f,w,T;a?(f=a.resolve,w=a.reject,T=a.promise):T=new Promise((se,Me)=>{f=se,w=Me});const U=++this.navigationId;let ie;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),ie=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):ie=0,this.setTransition({id:U,targetPageId:ie,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:f,reject:w,promise:T,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),T.catch(se=>Promise.reject(se))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===a?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const o=new Sj(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){kp()},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function vW(t){return"imperative"!==t}class bW{}class xW{preload(n,e){return rr(null)}}let yW=(()=>{class t{constructor(e,i,o,r){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=new _W(o,i,u=>e.triggerEvent(new Pj(u)),u=>e.triggerEvent(new Tj(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(ca(e=>e instanceof Gp),Sf(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Np);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const a=r._loadedConfig;o.push(this.processRoutes(a.module,a.routes))}else r.loadChildren&&!r.canLoad?o.push(this.preloadConfig(e,r)):r.children&&o.push(this.processRoutes(e,r.children));return Ra(o).pipe(wc(),it(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?rr(i._loadedConfig):this.loader.load(e.injector,i)).pipe(da(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(qt(A1),qt(vY),qt(zs),qt(bW))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),kD=(()=>{class t{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof g6?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gp&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ej&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new Ej(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){kp()},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const zg=new ui("ROUTER_CONFIGURATION"),wW=new ui("ROUTER_FORROOT_GUARD"),Yve=[J7,{provide:Hj,useClass:Vj},{provide:A1,useFactory:function $ve(t,n,e,i,o,r,a={},l,u){const f=new A1(null,t,n,e,i,o,Dj(r));return l&&(f.urlHandlingStrategy=l),u&&(f.routeReuseStrategy=u),function Xve(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(a,f),a.enableTracing&&f.events.subscribe(w=>{var T,U;null===(T=console.group)||void 0===T||T.call(console,`Router Event: ${w.constructor.name}`),console.log(w.toString()),console.log(w),null===(U=console.groupEnd)||void 0===U||U.call(console)}),f},deps:[Hj,y9,J7,zs,vY,AD,zg,[class kve{},new a1],[class Ave{},new a1]]},y9,{provide:lu,useFactory:function Qve(t){return t.routerState.root},deps:[A1]},yW,xW,class Gve{preload(n,e){return e().pipe(Vp(()=>rr(null)))}},{provide:zg,useValue:{enableTracing:!1}}];function Uve(){return new MY("Router",A1)}let xd=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[Yve,MW(e),{provide:wW,useFactory:qve,deps:[[A1,new a1,new jd]]},{provide:zg,useValue:i||{}},{provide:h6,useFactory:Wve,deps:[Mg,[new y5(hL),new a1],zg]},{provide:kD,useFactory:jve,deps:[A1,k_e,zg]},{provide:bW,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:xW},{provide:MY,multi:!0,useFactory:Uve},[ID,{provide:xy,multi:!0,useFactory:Zve,deps:[ID]},{provide:OW,useFactory:Kve,deps:[ID]},{provide:JA,multi:!0,useExisting:OW}]]}}static forChild(e){return{ngModule:t,providers:[MW(e)]}}}return t.\u0275fac=function(e){return new(e||t)(qt(wW,8),qt(A1,8))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();function jve(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new kD(t,n,e)}function Wve(t,n,e={}){return e.useHash?new y6e(t,n):new YY(t,n)}function qve(t){return"guarded"}function MW(t){return[{provide:ST,multi:!0,useValue:t},{provide:AD,multi:!0,useValue:t}]}let ID=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new N}appInitializer(){return this.injector.get(v6e,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const o=new Promise(l=>i=l),r=this.injector.get(A1),a=this.injector.get(zg);return"disabled"===a.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===a.initialNavigation||"enabledBlocking"===a.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?rr(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),o})}bootstrapListener(e){const i=this.injector.get(zg),o=this.injector.get(yW),r=this.injector.get(kD),a=this.injector.get(A1),l=this.injector.get(K7);e===l.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&a.initialNavigation(),o.setUpPreloading(),r.init(),a.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function Zve(t){return t.appInitializer.bind(t)}function Kve(t){return t.bootstrapListener.bind(t)}const OW=new ui("Router Initializer");function no(t){return null!=t&&"false"!=`${t}`}function Vc(t,n=0){return SW(t)?Number(t):n}function SW(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function xw(t){return Array.isArray(t)?t:[t]}function Wl(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ol(t){return t instanceof Ti?t.nativeElement:t}function PW(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const o of i){const r=`${o}`.trim();r&&e.push(r)}}return e}const ebe=["addListener","removeListener"],tbe=["addEventListener","removeEventListener"],nbe=["on","off"];function Jc(t,n,e,i){if(_e(e)&&(i=e,e=void 0),i)return Jc(t,n,e).pipe(pD(i));const[o,r]=function rbe(t){return _e(t.addEventListener)&&_e(t.removeEventListener)}(t)?tbe.map(a=>l=>t[a](n,l,e)):function ibe(t){return _e(t.addListener)&&_e(t.removeListener)}(t)?ebe.map(TW(t,n)):function obe(t){return _e(t.on)&&_e(t.off)}(t)?nbe.map(TW(t,n)):[];if(!o&&xc(t))return da(a=>Jc(a,n,e))(Ur(t));if(!o)throw new TypeError("Invalid event target");return new Wt(a=>{const l=(...u)=>a.next(1r(l)})}function TW(t,n){return e=>i=>t[e](n,i)}class abe extends Se{constructor(n,e){super()}schedule(n,e=0){return this}}const yw={setInterval(t,n,...e){const{delegate:i}=yw;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=yw;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class ND extends abe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return yw.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&yw.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Oe(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const S9={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=S9;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new Se(()=>null==e?void 0:e(o))},requestAnimationFrame(...t){const{delegate:n}=S9;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=S9;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},EW={now:()=>(EW.delegate||Date).now(),delegate:void 0};class P9{constructor(n,e=P9.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}P9.now=EW.now;class RD extends P9{constructor(n,e=P9.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const AW=new class cbe extends RD{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class sbe extends ND{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=S9.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(S9.cancelAnimationFrame(e),n._scheduled=void 0)}});let zD,lbe=1;const ww={};function LW(t){return t in ww&&(delete ww[t],!0)}const dbe={setImmediate(t){const n=lbe++;return ww[n]=!0,zD||(zD=Promise.resolve()),zD.then(()=>LW(n)&&t()),n},clearImmediate(t){LW(t)}},{setImmediate:ube,clearImmediate:hbe}=dbe,Mw={setImmediate(...t){const{delegate:n}=Mw;return((null==n?void 0:n.setImmediate)||ube)(...t)},clearImmediate(t){const{delegate:n}=Mw;return((null==n?void 0:n.clearImmediate)||hbe)(t)},delegate:void 0},Ow=new class fbe extends RD{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class pbe extends ND{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Mw.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Mw.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}}),T9=new RD(ND),gbe=T9;function FD(t=0,n,e=gbe){let i=-1;return null!=n&&(C1(n)?e=n:i=n),new Wt(o=>{let r=function _be(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function HD(t,n=T9){return function mbe(t){return ve((n,e)=>{let i=!1,o=null,r=null,a=!1;const l=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const f=o;o=null,e.next(f)}a&&e.complete()},u=()=>{r=null,a&&e.complete()};n.subscribe($e(e,f=>{i=!0,o=f,r||Ur(t(f)).subscribe(r=$e(e,l,u))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>FD(t,n))}function Yn(t){return ve((n,e)=>{Ur(t).subscribe($e(e,()=>e.complete(),wt)),!e.closed&&n.subscribe(e)})}let VD;try{VD="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){VD=!1}let v6,rc=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ll(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!VD)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(qt(Hc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const DW=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function kW(){if(v6)return v6;if("object"!=typeof document||!document)return v6=new Set(DW),v6;let t=document.createElement("input");return v6=new Set(DW.filter(n=>(t.setAttribute("type",n),t.type===n))),v6}let E9,Sw,Fg,BD;function Oh(t){return function vbe(){if(null==E9&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>E9=!0}))}finally{E9=E9||!1}return E9}()?t:!!t.capture}function IW(){if(null==Fg){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fg=!1,Fg;if("scrollBehavior"in document.documentElement.style)Fg=!0;else{const t=Element.prototype.scrollTo;Fg=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Fg}function A9(){if("object"!=typeof document||!document)return 0;if(null==Sw){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Sw=0,0===t.scrollLeft&&(t.scrollLeft=1,Sw=0===t.scrollLeft?1:2),t.remove()}return Sw}function Pw(t){if(function bbe(){if(null==BD){const t="undefined"!=typeof document?document.head:null;BD=!(!t||!t.createShadowRoot&&!t.attachShadow)}return BD}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function L9(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ju(t){return t.composedPath?t.composedPath()[0]:t.target}function GD(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const xbe=new ui("cdk-dir-doc",{providedIn:"root",factory:function ybe(){return Mp(vr)}}),wbe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Sl=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new In,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Mbe(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wbe.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(qt(xbe,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Af=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),D9=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new N,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Wt(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(HD(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):rr()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ca(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Ol(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(rc),qt(vr,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k9=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new N,this._elementScrolled=new Wt(a=>this.ngZone.runOutsideAngular(()=>Jc(this.elementRef.nativeElement,"scroll").pipe(Yn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=A9()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==A9()?e.left=e.right:1==A9()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;IW()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==A9()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==A9()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(D9),de(oo),de(Sl,8))},t.\u0275dir=St({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Lf=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new N,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(HD(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(oo),qt(vr,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),I9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Af,T0],Af,T0]}),t})();function ql(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ks(t,n=T9){return ve((e,i)=>{let o=null,r=null,a=null;const l=()=>{if(o){o.unsubscribe(),o=null;const f=r;r=null,i.next(f)}};function u(){const f=a+t,w=n.now();if(w{r=f,a=n.now(),o||(o=n.schedule(u,t),i.add(o))},()=>{l(),i.complete()},void 0,()=>{r=o=null}))})}function RW(t){return ca((n,e)=>t<=e)}function Cs(t,n=Ie){return t=null!=t?t:zbe,ve((e,i)=>{let o,r=!0;e.subscribe($e(i,a=>{const l=n(a);(r||!t(o,l))&&(r=!1,o=l,i.next(a))}))})}function zbe(t,n){return t===n}let zW=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fbe=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ol(e);return new Wt(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new N,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(qt(zW))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WD=(()=>{class t{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new In,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=no(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Vc(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ks(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(Fbe),de(Ti),de(oo))},t.\u0275dir=St({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),z9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[zW]}),t})();function Aw(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const HW="cdk-describedby-message",Lw="cdk-describedby-host";let VW=0,Bbe=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+VW++,this._document=e}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=qD(i,o);"string"!=typeof i?(BW(i),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){var r;if(!i||!this._isElementNode(e))return;const a=qD(i,o);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),"string"==typeof i){const l=this._messageRegistry.get(a);l&&0===l.referenceCount&&this._deleteMessageElement(a)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${Lw}="${this._id}"]`);for(let o=0;o0!=o.indexOf(HW));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function Hbe(t,n,e){const i=Aw(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(Lw,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function Vbe(t,n,e){const o=Aw(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Lw)}_isElementDescribedByMessage(e,i){const o=Aw(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function qD(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function BW(t){t.id||(t.id=`${HW}-${VW++}`)}class GW{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new N,this._typeaheadSubscription=Se.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new N,this.change=new N,n instanceof xg&&n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ps(e=>this._pressedLetters.push(e)),Ks(n),ca(()=>this._pressedLetters.length>0),it(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||ql(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof xg?this._items.toArray():this._items}}class YW extends GW{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class $D extends GW{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let XD=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ybe(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Gbe(t){try{return t.frameElement}catch(n){return null}}(function Zbe(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===jW(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=jW(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function Xbe(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function Qbe(t){return!function jbe(t){return function qbe(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Ube(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function Wbe(t){return function $be(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||UW(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function UW(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function jW(t){if(!UW(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class Kbe{constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Ja(1)).subscribe(n)}}let QD=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new Kbe(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(qt(XD),qt(oo),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Jbe=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=no(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=no(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=L9(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(QD),de(vr))},t.\u0275dir=St({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Yo]}),t})();function Dw(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function kw(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const exe=new ui("cdk-input-modality-detector-options"),txe={ignoreKeys:[18,17,224,91,16]},b6=Oh({passive:!0,capture:!0});let nxe=(()=>{class t{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new Io(null),this._lastTouchMs=0,this._onKeydown=a=>{var l,u;(null===(u=null===(l=this._options)||void 0===l?void 0:l.ignoreKeys)||void 0===u?void 0:u.some(f=>f===a.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ju(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Dw(a)?"keyboard":"mouse"),this._mostRecentTarget=ju(a))},this._onTouchstart=a=>{kw(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ju(a))},this._options=Object.assign(Object.assign({},txe),r),this.modalityDetected=this._modality.pipe(RW(1)),this.modalityChanged=this.modalityDetected.pipe(Cs()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,b6),o.addEventListener("mousedown",this._onMousedown,b6),o.addEventListener("touchstart",this._onTouchstart,b6)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,b6),document.removeEventListener("mousedown",this._onMousedown,b6),document.removeEventListener("touchstart",this._onTouchstart,b6))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(oo),qt(vr),qt(exe,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ixe=new ui("liveAnnouncerElement",{providedIn:"root",factory:function oxe(){return null}}),rxe=new ui("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ZD=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new N,this._rootNodeFocusAndBlurListener=l=>{const u=ju(l),f="focus"===l.type?this._onFocus:this._onBlur;for(let w=u;w;w=w.parentElement)f.call(this,l,w)},this._document=r,this._detectionMode=(null==a?void 0:a.detectionMode)||0}monitor(e,i=!1){const o=Ol(e);if(!this._platform.isBrowser||1!==o.nodeType)return rr(null);const r=Pw(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const l={checkChildren:i,subject:new N,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const i=Ol(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ol(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([l,u])=>this._originChanged(l,i,u)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=ju(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Iw),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Iw)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Yn(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Iw),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Iw),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(rc),qt(nxe),qt(vr,8),qt(axe,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sxe=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new In}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(P2))},t.\u0275dir=St({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const qW="cdk-high-contrast-black-on-white",$W="cdk-high-contrast-white-on-black",KD="cdk-high-contrast-active";let XW=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(KD),e.remove(qW),e.remove($W),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(KD),e.add(qW)):2===i&&(e.add(KD),e.add($W))}}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nw=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(qt(XW))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[z9]]}),t})();function cxe(t,n){if(1&t&&Qe(0,"mat-pseudo-checkbox",4),2&t){const e=Ae();J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function lxe(t,n){if(1&t&&(H(0,"span",5),ue(1),G()),2&t){const e=Ae();W(1),Nt("(",e.group.label,")")}}const dxe=["*"],fxe=new ui("mat-sanity-checks",{providedIn:"root",factory:function pxe(){return!0}});let Xo=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!GD()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(qt(XW),qt(fxe,8),qt(vr))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Af],Af]}),t})();function E0(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=no(n)}}}function Ph(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function $u(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=no(n)}}}function Hg(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Vc(e):this.defaultTabIndex}}}function JD(t){return class extends t{constructor(...n){super(...n),this.stateChanges=new N,this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}function ZW(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Wt(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}const ek=new ui("MAT_DATE_LOCALE",{providedIn:"root",factory:function gxe(){return Mp(Rp)}});class l1{constructor(){this._localeChanges=new N,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return null==n||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),o=this.isValid(e);return i&&o?!this.compareDate(n,e):i==o}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}}const If=new ui("mat-date-formats"),mxe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function tk(t,n){const e=Array(t);for(let i=0;i{class t extends l1{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return tk(12,o=>this._format(i,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return tk(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return tk(7,o=>this._format(i,new Date(2017,0,o+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,o){let r=this._createDateWithOverflow(e,i,o);return r.getMonth(),r}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},i),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+i)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(mxe.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,o){const r=new Date;return r.setFullYear(e,i,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const o=new Date;return o.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),o.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(o)}}return t.\u0275fac=function(e){return new(e||t)(qt(ek,8),qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const Cxe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let vxe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[{provide:l1,useClass:_xe}]}),t})(),KW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[{provide:If,useValue:Cxe}],imports:[[vxe]]}),t})(),x6=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();class yxe{constructor(n,e,i){this._renderer=n,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const JW={enterDuration:225,exitDuration:150},nk=Oh({passive:!0}),eq=["mousedown","touchstart"],tq=["mouseup","mouseleave","touchend","touchcancel"];class nq{constructor(n,e,i,o){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ol(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},JW),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function Oxe(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),l=n-o.left,u=e-o.top,f=r.enterDuration,w=document.createElement("div");w.classList.add("mat-ripple-element"),w.style.left=l-a+"px",w.style.top=u-a+"px",w.style.height=2*a+"px",w.style.width=2*a+"px",null!=i.color&&(w.style.backgroundColor=i.color),w.style.transitionDuration=`${f}ms`,this._containerElement.appendChild(w),function Mxe(t){window.getComputedStyle(t).getPropertyValue("opacity")}(w),w.style.transform="scale(1)";const T=new yxe(this,w,i);return T.state=0,this._activeRipples.add(T),i.persistent||(this._mostRecentTransientRipple=T),this._runTimeoutOutsideZone(()=>{const U=T===this._mostRecentTransientRipple;T.state=1,!i.persistent&&(!U||!this._isPointerDown)&&T.fadeOut()},f),T}fadeOutRipple(n){const e=this._activeRipples.delete(n);if(n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=n.element,o=Object.assign(Object.assign({},JW),n.config.animation);i.style.transitionDuration=`${o.exitDuration}ms`,i.style.opacity="0",n.state=2,this._runTimeoutOutsideZone(()=>{n.state=3,i.remove()},o.exitDuration)}fadeOutAll(){this._activeRipples.forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ol(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(eq))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tq),this._pointerUpEventsRegistered=!0)}_onMousedown(n){const e=Dw(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_runTimeoutOutsideZone(n,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(n,e))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,nk)})})}_removeTriggerEvents(){this._triggerElement&&(eq.forEach(n=>{this._triggerElement.removeEventListener(n,this,nk)}),this._pointerUpEventsRegistered&&tq.forEach(n=>{this._triggerElement.removeEventListener(n,this,nk)}))}}const iq=new ui("mat-ripple-global-options");let Th=(()=>{class t{constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new nq(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(rc),de(iq,8),de(E1,8))},t.\u0275dir=St({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Kd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})(),oq=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(de(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&po("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),ik=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo]]}),t})();const ok=new ui("MAT_OPTION_PARENT_COMPONENT"),rk=new ui("MatOptgroup");let Sxe=0;class rq{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Pxe=(()=>{class t{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Sxe++,this.onSelectionChange=new In,this._stateChanges=new N}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=no(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ql(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new rq(this,e))}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),J1=(()=>{class t extends Pxe{constructor(e,i,o,r){super(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Xr),de(ok,8),de(rk,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&et("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(Fu("id",i.id),Un("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),po("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[ei],ngContentSelectors:dxe,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(ls(),ke(0,cxe,1,2,"mat-pseudo-checkbox",0),H(1,"span",1),Vr(2),G(),ke(3,lxe,2,1,"span",2),Qe(4,"div",3)),2&e&&(J("ngIf",i.multiple),W(3),J("ngIf",i.group&&i.group._inert),W(1),J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[oq,Yi,Th],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ak(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let zw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,va,Xo,ik]]}),t})();function jp(t){return it(()=>t)}const Fw=["*"],Txe=["content"];function Exe(t,n){if(1&t){const e=Ln();H(0,"div",2),et("click",function(){return Dt(e),Ae()._onBackdropClicked()}),G()}2&t&&po("mat-drawer-shown",Ae()._isShowingBackdrop())}function Axe(t,n){1&t&&(H(0,"mat-drawer-content"),Vr(1,2),G())}const Lxe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Dxe=["mat-drawer","mat-drawer-content","*"];function kxe(t,n){if(1&t){const e=Ln();H(0,"div",2),et("click",function(){return Dt(e),Ae()._onBackdropClicked()}),G()}2&t&&po("mat-drawer-shown",Ae()._isShowingBackdrop())}function Ixe(t,n){1&t&&(H(0,"mat-sidenav-content"),Vr(1,2),G())}const Nxe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Rxe=["mat-sidenav","mat-sidenav-content","*"],sq={transformDrawer:na("transform",[cr("open, open-instant",ti({transform:"none",visibility:"visible"})),cr("void",ti({"box-shadow":"none",visibility:"hidden"})),Lo("void => open-instant",Mo("0ms")),Lo("void <=> open, open-instant => void",Mo("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Fxe=new ui("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Hxe(){return!1}}),sk=new ui("MAT_DRAWER_CONTAINER");let A0=(()=>{class t extends k9{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(de(Xr),de(nt(()=>Rf)),de(Ti),de(D9),de(oo))},t.\u0275cmp=vn({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Br("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[mo([{provide:k9,useExisting:t}]),ei],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},encapsulation:2,changeDetection:0}),t})(),Nf=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=l,this._doc=u,this._container=f,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N,this._animationEnd=new N,this._animationState="void",this.openedChange=new In(!0),this._openedStream=this.openedChange.pipe(ca(w=>w),it(()=>{})),this.openedStart=this._animationStarted.pipe(ca(w=>w.fromState!==w.toState&&0===w.toState.indexOf("open")),jp(void 0)),this._closedStream=this.openedChange.pipe(ca(w=>!w),it(()=>{})),this.closedStart=this._animationStarted.pipe(ca(w=>w.fromState!==w.toState&&"void"===w.toState),jp(void 0)),this._destroyed=new N,this.onPositionChanged=new In,this._modeChanged=new N,this.openedChange.subscribe(w=>{w?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Jc(this._elementRef.nativeElement,"keydown").pipe(ca(w=>27===w.keyCode&&!this.disableClose&&!ql(w)),Yn(this._destroyed)).subscribe(w=>this._ngZone.run(()=>{this.close(),w.stopPropagation(),w.preventDefault()}))}),this._animationEnd.pipe(Cs((w,T)=>w.fromState===T.fromState&&w.toState===T.toState)).subscribe(w=>{const{fromState:T,toState:U}=w;(0===U.indexOf("open")&&"void"===T||"void"===U&&0===T.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=no(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=no(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(no(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Ja(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(QD),de(P2),de(rc),de(oo),de(XD),de(vr,8),de(sk,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&_o(Txe,5),2&e){let o;fi(o=gi())&&(i._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&o6("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&e&&(Un("align",null),a6("@transform",i._animationState),po("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Fw,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(ls(),H(0,"div",0,1),Vr(2),G())},directives:[k9],encapsulation:2,data:{animation:[sq.transformDrawer]},changeDetection:0}),t})(),Rf=(()=>{class t{constructor(e,i,o,r,a,l=!1,u){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new xg,this.backdropClick=new In,this._destroyed=new N,this._doCheckSubject=new N,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N,e&&e.change.pipe(Yn(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Yn(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=no(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:no(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Sc(this._allDrawers),Yn(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Sc(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Ks(10),Yn(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(ca(i=>i.fromState!==i.toState),Yn(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Yn(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Yn(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Ja(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Yn(kr(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(de(Sl,8),de(Ti),de(oo),de(Xr),de(Lf),de(Fxe),de(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,A0,5),mr(o,Nf,5)),2&e){let r;fi(r=gi())&&(i._content=r.first),fi(r=gi())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&_o(A0,5),2&e){let o;fi(o=gi())&&(i._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[mo([{provide:sk,useExisting:t}])],ngContentSelectors:Dxe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(ls(Lxe),ke(0,Exe,1,2,"div",0),Vr(1),Vr(2,1),ke(3,Axe,2,0,"mat-drawer-content",1)),2&e&&(J("ngIf",i.hasBackdrop),W(3),J("ngIf",!i._content))},directives:[A0,Yi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),cq=(()=>{class t extends A0{constructor(e,i,o,r,a){super(e,i,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(de(Xr),de(nt(()=>dq)),de(Ti),de(D9),de(oo))},t.\u0275cmp=vn({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Br("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[mo([{provide:k9,useExisting:t}]),ei],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},encapsulation:2,changeDetection:0}),t})(),lq=(()=>{class t extends Nf{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=no(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Vc(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Vc(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Un("align",null),Br("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),po("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ei],ngContentSelectors:Fw,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(ls(),H(0,"div",0,1),Vr(2),G())},directives:[k9],encapsulation:2,data:{animation:[sq.transformDrawer]},changeDetection:0}),t})(),dq=(()=>{class t extends Rf{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,cq,5),mr(o,lq,5)),2&e){let r;fi(r=gi())&&(i._content=r.first),fi(r=gi())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[mo([{provide:sk,useExisting:t}]),ei],ngContentSelectors:Rxe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(ls(Nxe),ke(0,kxe,1,2,"div",0),Vr(1),Vr(2,1),ke(3,Ixe,2,0,"mat-sidenav-content",1)),2&e&&(J("ngIf",i.hasBackdrop),W(3),J("ngIf",!i._content))},directives:[cq,Yi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),zf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,T0],T0,Xo]}),t})();var Zt=C(17489);const uq=new ui("noctuaCustomConfig");let Hw=(()=>{class t{constructor(e,i,o){this._platform=e,this._router=i,this._config=o,this._defaultConfig=o,this._init()}set config(e){let i=this._configSubject.getValue();i=(0,Zt.merge)({},i,e),this._configSubject.next(i)}get config(){return this._configSubject.asObservable()}get defaultConfig(){return this._defaultConfig}_init(){(this._platform.ANDROID||this._platform.IOS)&&(this._defaultConfig.customScrollbars=!1),this._configSubject=new Io((0,Zt.cloneDeep)(this._defaultConfig)),this._router.events.pipe(ca(e=>e instanceof g6)).subscribe(()=>{if(!(0,Zt.isEqual)(this._configSubject.getValue(),this._defaultConfig)){const e=(0,Zt.cloneDeep)(this._defaultConfig);this._configSubject.next(e)}})}setConfig(e,i={emitEvent:!0}){let o=this._configSubject.getValue();o=(0,Zt.merge)({},o,e),!0===i.emitEvent&&this._configSubject.next(o)}getConfig(){return this._configSubject.asObservable()}resetToDefaults(){this._configSubject.next((0,Zt.cloneDeep)(this._defaultConfig))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(A1),qt(uq))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function hq(t){for(let n in t){let e=t[n]||"";switch(n){case"display":t.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":e=e||"row",t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e}}return t}const ck="inline",Vw=["row","column","row-reverse","column-reverse"];function pq(t){let[n,e,i]=fq(t);return function Bxe(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}function fq(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,o]=t.split(" ");return Vw.find(r=>r===e)||(e=Vw[0]),i===ck&&(i=o!==ck?o:"",o=ck),[e,Vxe(i),!!o]}function H9(t){let[n]=fq(t);return n.indexOf("row")>-1}function Vxe(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function Wp(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}const Yxe={provide:JA,useFactory:function Gxe(t,n){return()=>{if(ll(n)){const e=Array.from(t.querySelectorAll(`[class*=${gq}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${gq}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(i,"")})}}},deps:[vr,Hc],multi:!0},gq="flex-layout-";let lk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[Yxe]}),t})();class Ff{constructor(n=!1,e="all",i="",o="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=o,this.priority=r,this.property=""}clone(){return new Ff(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Uxe=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,o){const r=this.stylesheet.get(e);r?r.set(i,o):this.stylesheet.set(e,new Map([[i,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const o=this.stylesheet.get(e);let r="";if(o){const a=o.get(i);("number"==typeof a||"string"==typeof a)&&(r=a+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dk={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Eh=new ui("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>dk}),y6=new ui("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),uk=new ui("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function hk(t,n){return t=t?t.clone():new Ff,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}class dl{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}}let Pc=(()=>{class t{constructor(e,i,o,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=o,this.layoutConfig=r}applyStyleToElement(e,i,o=null){let r={};"string"==typeof i&&(r[i]=o,i=r),r=this.layoutConfig.disableVendorPrefixes?i:hq(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const o=this.layoutConfig.disableVendorPrefixes?e:hq(e);i.forEach(r=>{this._applyMultiValueStyleToElement(o,r)})}getFlowDirection(e){const i="flex-direction";let o=this.lookupStyle(e,i);return[o||"row",this.lookupInlineStyle(e,i)||ou(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var o;return null!==(o=e.getAttribute(i))&&void 0!==o?o:""}lookupInlineStyle(e,i){return ll(this._platformId)?e.style.getPropertyValue(i):function jxe(t,n){var e;return null!==(e=mq(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,o=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||(ll(this._platformId)?o||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(o=>{const r=e[o],a=Array.isArray(r)?r:[r];a.sort();for(let l of a)l=l?l+"":"",ll(this._platformId)||!this._serverModuleLoaded?ll(this._platformId)?i.style.setProperty(o,l):Wxe(i,o,l):this._serverStylesheet.addStyleToElement(i,o,l)})}}return t.\u0275fac=function(e){return new(e||t)(qt(Uxe),qt(y6),qt(Hc),qt(Eh))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Wxe(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=mq(t);i[n]=null!=e?e:"",function qxe(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function mq(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let o=0;o0){const a=r.indexOf(":");if(-1===a)throw new Error(`Invalid CSS style: ${r}`);n[r.substr(0,a).trim()]=r.substr(a+1).trim()}}}return n}function w6(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function $xe(t,n){return(t.priority||0)-(n.priority||0)}let Bw=(()=>{class t{constructor(e,i,o){this._zone=e,this._platformId=i,this._document=o,this.source=new Io(new Ff(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,o)=>{i.matches&&e.push(o)}),e}isActive(e){var i;const o=this.registry.get(e);return null!==(i=null==o?void 0:o.matches)&&void 0!==i?i:this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){const o=this._observable$.pipe(ca(a=>!i||e.indexOf(a.mediaQuery)>-1));return kr(new Wt(a=>{const l=this.registerQuery(e);if(l.length){const u=l.pop();l.forEach(f=>{a.next(f)}),this.source.next(u)}a.complete()}),o)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],o=[];return function Xxe(t,n){const e=t.filter(i=>!_q[i]);if(e.length>0){const i=e.join(", ");try{const o=n.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(o),e.forEach(r=>_q[r]=o)}catch(o){console.error(o)}}}(i,this._document),i.forEach(r=>{const a=u=>{this._zone.run(()=>this.source.next(new Ff(u.matches,r)))};let l=this.registry.get(r);l||(l=this.buildMQL(r),l.addListener(a),this.pendingRemoveListenerFns.push(()=>l.removeListener(a)),this.registry.set(r,l)),l.matches&&o.push(new Ff(!0,r))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function Qxe(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,ll(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(Hc),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _q={},Zxe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Cq="(orientation: portrait) and (max-width: 599.98px)",vq="(orientation: landscape) and (max-width: 959.98px)",bq="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",xq="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",yq="(orientation: portrait) and (min-width: 840px)",wq="(orientation: landscape) and (min-width: 1280px)",qp={HANDSET:`${Cq}, ${vq}`,TABLET:`${bq} , ${xq}`,WEB:`${yq}, ${wq} `,HANDSET_PORTRAIT:`${Cq}`,TABLET_PORTRAIT:`${bq} `,WEB_PORTRAIT:`${yq}`,HANDSET_LANDSCAPE:`${vq}`,TABLET_LANDSCAPE:`${xq}`,WEB_LANDSCAPE:`${wq}`},Kxe=[{alias:"handset",priority:2e3,mediaQuery:qp.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:qp.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:qp.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:qp.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:qp.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:qp.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:qp.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:qp.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:qp.WEB_PORTRAIT,overlapping:!0}],Jxe=/(\.|-|_)/g;function eye(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const oye=new ui("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Mp(uk),n=Mp(Eh),e=[].concat.apply([],(t||[]).map(o=>Array.isArray(o)?o:[o]));return function iye(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Wp(e[i.alias],i):e[i.alias]=i}),function nye(t){return t.forEach(n=>{n.suffix||(n.suffix=function tye(t){return t.replace(Jxe,"|").split("|").map(eye).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:Zxe).concat(n.addOrientationBps?Kxe:[]),e)}});let Gw=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort($xe)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var o;let r=this.findByMap.get(e);return r||(r=null!==(o=this.items.find(i))&&void 0!==o?o:null,this.findByMap.set(e,r)),null!=r?r:null}}return t.\u0275fac=function(e){return new(e||t)(qt(oye))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const M6="print",rye={alias:M6,mediaQuery:M6,priority:1e3};let Mq=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.layoutConfig=i,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new aye,this.deactivations=[]}withPrintQuery(e){return[...e,M6]}isPrintEvent(e){return e.mediaQuery.startsWith(M6)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(w6)}updateEvent(e){var i;let o=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(o=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:""),hk(e,o)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Ff(!0,M6))),e.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(o)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const o=this.breakpoints.findByQuery(i.mediaQuery);if(o){const r=this.formerActivations&&this.formerActivations.includes(o),a=!this.formerActivations&&e.activatedBreakpoints.includes(o);(r||a)&&(this.deactivations.push(o),this.deactivations.sort(w6))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(qt(Gw),qt(Eh),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class aye{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(rye),n.sort(w6),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function sye(t){var n;return null!==(n=null==t?void 0:t.mediaQuery.startsWith(M6))&&void 0!==n&&n}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}let Bc=(()=>{class t{constructor(e,i,o){this.matchMedia=e,this.breakpoints=i,this.hook=o,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new N,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=hk(e,i);const o=this.activatedBreakpoints.indexOf(i);e.matches&&-1===o?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(w6),this.updateStyles()):!e.matches&&-1!==o&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(w6),this.updateStyles())}}init(e,i,o,r,a=[]){Oq(this.updateMap,e,i,o),Oq(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,a)}getValue(e,i,o){const r=this.elementMap.get(e);if(r){const a=void 0!==o?r.get(o):this.getActivatedValues(r,i);if(a)return a.get(i)}}hasValue(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,o,r){var a;let l=this.elementMap.get(e);if(l){const f=(null!==(a=l.get(r))&&void 0!==a?a:new Map).set(i,o);l.set(r,f),this.elementMap.set(e,l)}else l=(new Map).set(r,(new Map).set(i,o)),this.elementMap.set(e,l);const u=this.getValue(e,i);void 0!==u&&this.updateElement(e,i,u)}trackValue(e,i){return this.subject.asObservable().pipe(ca(o=>o.element===e&&o.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const o=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((a,l)=>{this.updateElement(i,l,a),o.delete(l)}),o.forEach(a=>{if(r=this.getActivatedValues(e,a),r){const l=r.get(a);this.updateElement(i,a,l)}else this.clearElement(i,a)})})}clearElement(e,i){const o=this.clearMap.get(e);if(o){const r=o.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,o){const r=this.updateMap.get(e);if(r){const a=r.get(i);a&&(a(o),this.subject.next({element:e,key:i,value:o}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const o=this.elementMap.get(e);o&&(o.forEach((r,a)=>o.delete(a)),this.elementMap.delete(e))}triggerUpdate(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((a,l)=>this.updateElement(e,l,a)))}}buildElementKeyMap(e,i){let o=this.elementKeyMap.get(e);o||(o=new Set,this.elementKeyMap.set(e,o)),o.add(i)}watchExtraTriggers(e,i,o){if(o&&o.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const l=kr(...o).subscribe(()=>{const u=this.getValue(e,i);this.updateElement(e,i,u)});r.set(i,l)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;ri.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Ps(this.hook.interceptEvents(this)),ca(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(qt(Bw),qt(Gw),qt(Mq))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Oq(t,n,e,i){var o;if(void 0!==i){const r=null!==(o=t.get(n))&&void 0!==o?o:new Map;r.set(e,i),t.set(n,r)}}let el=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.styleBuilder=i,this.styler=o,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new N,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const o=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const o=this.styleBuilder,r=o.shouldCache;let a=this.styleCache.get(e);(!a||!r)&&(a=o.buildStyles(e,i),r&&this.styleCache.set(e,a)),this.mru=Object.assign({},a),this.applyStyleToElement(a),o.sideEffect(e,a,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[o,r]=this.styler.getFlowDirection(e);if(!r&&i){const a=pq(o);this.styler.applyStyleToElements(a,[e])}return o.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,o=this.nativeElement){this.styler.applyStyleToElement(o,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(dl),de(Pc),de(Bc))},t.\u0275dir=St({type:t,features:[Yo]}),t})(),uye=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.matchMedia=i,this.hook=o,this.filterOverlaps=!1,this.destroyed$=new N,this._media$=this.watchActivations(),this.media$=this._media$.pipe(ca(r=>r.length>0),it(r=>r[0]))}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function pye(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}(function dye(t){return Array.isArray(t)?t:[t]}(e)).some(o=>{const r=function hye(t,n){var e,i;const o=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:null}(o,this.breakpoints);return null!==r&&this.matchMedia.isActive(r)})}watchActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);return this.buildObservable(e)}buildObservable(e){return this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(ca(a=>a.matches),Ks(0,Ow),Z1(a=>rr(this.findAllActivations())),it(a=>this.filterOverlaps?a.filter(l=>{var u;const f=this.breakpoints.findByQuery(l.mediaQuery);return null===(u=null==f?void 0:f.overlapping)||void 0===u||u}):a),ca(a=>a.filter(u=>u.mediaQuery.length>0).length>0),Cs((a,l)=>{if(a.length!==l.length)return!1;const u=a.map(T=>T.mediaQuery),f=new Set(l.map(T=>T.mediaQuery));return 0===new Set(u.filter(T=>!f.has(T))).size}),Yn(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(o=>new Ff(!0,o)).map(o=>this.hook.isPrintEvent(o)?this.hook.updateEvent(o):o).map(o=>hk(o,this.breakpoints.findByQuery(o.mediaQuery))).sort(w6)}}return t.\u0275fac=function(e){return new(e||t)(qt(Gw),qt(Bw),qt(Mq))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Sq(t,n="1",e="1"){let i=[n,e,t],o=t.indexOf("calc");if(o>0){i[2]=Pq(t.substring(o).trim());let r=t.substr(0,o).trim().split(" ");2==r.length&&(i[0]=r[0],i[1]=r[1])}else if(0==o)i[2]=Pq(t.trim());else{let r=t.split(" ");i=3===r.length?r:[n,e,t]}return i}function Pq(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let fye=(()=>{class t{constructor(e){this._mediaObserver=e,this.onMediaChange=new Io(""),this.activeMediaQuery="",this._init()}_init(){this._mediaObserver.media$.pipe(Ks(500),Cs()).subscribe(e=>{this.activeMediaQuery!==e.mqAlias&&(this.activeMediaQuery=e.mqAlias,this.onMediaChange.next(e.mqAlias))})}}return t.\u0275fac=function(e){return new(e||t)(qt(uye))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Eq=(()=>{class t{constructor(e,i,o){if(this.animationBuilder=e,this.document=i,this.router=o,this.splashScreenEl=this.document.body.querySelector("#noctua-splash-screen"),this.splashScreenEl){const r=this.router.events.subscribe(a=>{a instanceof Gp&&setTimeout(()=>{this.hide(),r.unsubscribe()},0)})}}show(){this.player=this.animationBuilder.build([ti({opacity:"0",zIndex:"99999"}),Mo("400ms ease",ti({opacity:"1"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}hide(){this.player=this.animationBuilder.build([ti({opacity:"1"}),Mo("400ms ease",ti({opacity:"0",zIndex:"-10"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}}return t.\u0275fac=function(e){return new(e||t)(qt(VL),qt(vr),qt(A1))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),gye=(()=>{class t{constructor(e){if(e)throw new Error("NoctuaModule is already loaded. Import it in the AppModule only!")}static forRoot(e){return{ngModule:t,providers:[{provide:uq,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(qt(t,12))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[Hw,fye,Eq]}),t})();const Aq=["mat-button",""],Lq=["*"],Cye=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],vye=Ph(E0($u(class{constructor(t){this._elementRef=t}})));let Fo=(()=>{class t extends vye{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of Cye)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(P2),de(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&_o(Th,5),2&e){let o;fi(o=gi())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Un("disabled",i.disabled||null),po("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ei],attrs:Aq,ngContentSelectors:Lq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(ls(),H(0,"span",0),Vr(1),G(),Qe(2,"span",1)(3,"span",2)),2&e&&(W(2),po("mat-button-ripple-round",i.isRoundButton||i.isIconButton),J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Th],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),V9=(()=>{class t extends Fo{constructor(e,i,o,r){super(i,e,o),this._ngZone=r,this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){return new(e||t)(de(P2),de(Ti),de(E1,8),de(oo,8))},t.\u0275cmp=vn({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){2&e&&(Un("tabindex",i.disabled?-1:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),po("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ei],attrs:Aq,ngContentSelectors:Lq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(ls(),H(0,"span",0),Vr(1),G(),Qe(2,"span",1)(3,"span",2)),2&e&&(W(2),po("mat-button-ripple-round",i.isRoundButton||i.isIconButton),J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Th],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),du=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,Xo],Xo]}),t})();function Ah(...t){const n=Da(t),{args:e,keys:i}=vj(t),o=new Wt(r=>{const{length:a}=e;if(!a)return void r.complete();const l=new Array(a);let u=a,f=a;for(let w=0;w{T||(T=!0,f--),l[w]=U},()=>u--,void 0,()=>{(!u||!T)&&(f||r.next(i?bj(i,l):l),r.complete())}))}});return n?o.pipe(pD(n)):o}const bye=["*"];let Uw;function B9(t){var n;return(null===(n=function xye(){if(void 0===Uw&&(Uw=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(Uw=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Uw}())||void 0===n?void 0:n.createHTML(t))||t}function Dq(t){return Error(`Unable to find icon with the name "${t}"`)}function kq(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Iq(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Vg{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let jw=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new Vg(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const a=this._sanitizer.sanitize(Za.HTML,o);if(!a)throw Iq(o);const l=B9(a);return this._addSvgIconConfig(e,i,new Vg("",l,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new Vg(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Za.HTML,i);if(!r)throw Iq(i);const a=B9(r);return this._addSvgIconSetConfig(e,new Vg("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Za.RESOURCE_URL,e);if(!i)throw kq(e);const o=this._cachedIconsByUrl.get(i);return o?rr(Ww(o)):this._loadSvgIconFromConfig(new Vg(e,null)).pipe(Ps(r=>this._cachedIconsByUrl.set(i,r)),it(r=>Ww(r)))}getNamedSvgIcon(e,i=""){const o=Nq(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):p9(Dq(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?rr(Ww(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(it(i=>Ww(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?rr(o):Ah(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Vp(l=>{const f=`Loading icon set URL: ${this._sanitizer.sanitize(Za.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(f)),rr(null)})))).pipe(it(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw Dq(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(r),l=this._extractSvgIconFromSet(a,e,r.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ps(i=>e.svgText=i),it(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?rr(null):this._fetchIcon(e).pipe(Ps(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const a=r.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const l=this._svgElementFromString(B9(""));return l.appendChild(a),this._setSvgAttributes(l,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(B9("")),o=e.attributes;for(let r=0;rB9(w)),Yu(()=>this._inProgressUrlFetches.delete(l)),_l());return this._inProgressUrlFetches.set(l,f),f}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(Nq(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;on?n.pathname+n.search:""}}}),Rq=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Tye=Rq.map(t=>`[${t}]`).join(", "),Eye=/^url\(['"]?#(.*?)['"]?\)$/;let Ir=(()=>{class t extends Oye{constructor(e,i,o,r,a){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=a,this._inline=!1,this._currentIconFetch=Se.EMPTY,o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=no(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Tye),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const l=i[r],u=l.getAttribute(a),f=u?u.match(Eye):null;if(f){let w=o.get(l);w||(w=[],o.set(l,w)),w.push({name:a,value:f[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Ja(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(jw),Yl("aria-hidden"),de(Sye),de(X2))},t.\u0275cmp=vn({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Un("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),po("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ei],ngContentSelectors:bye,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),L0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();const Aye=["primaryValueBar"],Lye=Ph(class{constructor(t){this._elementRef=t}},"primary"),Dye=new ui("mat-progress-bar-location",{providedIn:"root",factory:function kye(){const t=Mp(vr),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),Iye=new ui("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let Nye=0,G9=(()=>{class t extends Lye{constructor(e,i,o,r,a,l){super(e),this._ngZone=i,this._animationMode=o,this._changeDetectorRef=l,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new In,this._animationEndSubscription=Se.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+Nye++;const u=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${u}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===o,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=zq(Vc(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=zq(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Jc(e,"transitionend").pipe(ca(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(E1,8),de(Dye,8),de(Iye,8),de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&_o(Aye,5),2&e){let o;fi(o=gi())&&(i._primaryValueBar=o.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(Un("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),po("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ei],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(H(0,"div",0),bi(),H(1,"svg",1)(2,"defs")(3,"pattern",2),Qe(4,"circle",3),G()(),Qe(5,"rect",4),G(),gd(),Qe(6,"div",5)(7,"div",6,7)(9,"div",8),G()),2&e&&(W(3),J("id",i.progressbarId),W(2),Un("fill",i._rectangleFillValue),W(1),J("ngStyle",i._bufferTransform()),W(1),J("ngStyle",i._primaryTransform()))},directives:[Og],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function zq(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo],Xo]}),t})(),Rye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,xd,du,L0,qw]]}),t})();class pk{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class uu extends pk{constructor(n,e,i,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class O6 extends pk{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class zye extends pk{constructor(n){super(),this.element=n instanceof Ti?n.nativeElement:n}}class $w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof uu?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof O6?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof zye?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fq extends $w{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const l=a.element,u=this._document.createComment("dom-portal");l.parentNode.insertBefore(u,l),this.outletElement.appendChild(l),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(l,u)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||zs.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let S6=(()=>{class t extends $w{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new In,this.attachDomPortal=r=>{const a=r.element,l=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(de(yf),de(oc),de(vr))},t.\u0275dir=St({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ei]}),t})(),Hf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();class Xw{constructor(n,e){this._parentInjector=n,this._customTokens=e}get(n,e){const i=this._customTokens.get(n);return void 0!==i?i:this._parentInjector.get(n,e)}}const Hq=IW();class Hye{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Wl(-this._previousScrollPosition.left),n.style.top=Wl(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),Hq&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Hq&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Vye{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Vq{enable(){}disable(){}attach(){}}function fk(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function Bq(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class Bye{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();fk(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Gye=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new Vq,this.close=a=>new Vye(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Hye(this._viewportRuler,this._document),this.reposition=a=>new Bye(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(qt(D9),qt(Lf),qt(oo),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Lh{constructor(n){if(this.scrollStrategy=new Vq,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class Yye{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class Uye{constructor(n,e,i,o,r,a,l,u,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=u,this._outsideClickDispatcher=f,this._backdropElement=null,this._backdropClick=new N,this._attachments=new N,this._detachments=new N,this._locationChanges=Se.EMPTY,this._backdropClickHandler=w=>this._backdropClick.next(w),this._backdropTransitionendHandler=w=>{this._disposeBackdrop(w.target)},this._keydownEvents=new N,this._outsidePointerEvents=new N,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Wl(this._config.width),n.height=Wl(this._config.height),n.minWidth=Wl(this._config.minWidth),n.minHeight=Wl(this._config.minHeight),n.maxWidth=Wl(this._config.maxWidth),n.maxHeight=Wl(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;!n||(n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500)))}_toggleClasses(n,e,i){const o=xw(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Yn(kr(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let gk=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||GD()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let l of this._preferredPositions){let u=this._getOriginPoint(n,o,l),f=this._getOverlayPoint(u,e,l),w=this._getOverlayFit(f,e,i,l);if(w.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,u);this._canFitWithFlexibleDimensions(w,f,i)?r.push({position:l,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,l)}):(!a||a.overlayFit.visibleAreau&&(u=w,l=f)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bg(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Gq),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,l=this._isRtl()?n.left:n.right;o="start"==i.originX?a:l}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=jq(e);let{x:a,y:l}=n,u=this._getOffset(o,"x"),f=this._getOffset(o,"y");u&&(a+=u),f&&(l+=f);let U=0-l,ie=l+r.height-i.height,se=this._subtractOverflows(r.width,0-a,a+r.width-i.width),Me=this._subtractOverflows(r.height,U,ie),we=se*Me;return{visibleArea:we,isCompletelyWithinViewport:r.width*r.height===we,fitsInViewportVertically:Me===r.height,fitsInViewportHorizontally:se==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=Uq(this._overlayRef.getConfig().minHeight),l=Uq(this._overlayRef.getConfig().minWidth),f=n.fitsInViewportHorizontally||null!=l&&l<=r;return(n.fitsInViewportVertically||null!=a&&a<=o)&&f}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=jq(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),l=Math.max(n.y+o.height-r.height,0),u=Math.max(r.top-i.top-n.y,0),f=Math.max(r.left-i.left-n.x,0);let w=0,T=0;return w=o.width<=r.width?f||-a:n.xse&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-se/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)U=i.width-n.x+this._viewportMargin,w=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)T=n.x,w=i.right-n.x;else{const ie=Math.min(i.right-n.x+i.left,n.x),se=this._lastBoundingBoxSize.width;w=2*ie,T=n.x-ie,w>se&&!this._isInitialRender&&!this._growAfterOpen&&(T=n.x-se/2)}return{top:a,left:T,bottom:l,right:U,width:w,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=Wl(i.height),o.top=Wl(i.top),o.bottom=Wl(i.bottom),o.width=Wl(i.width),o.left=Wl(i.left),o.right=Wl(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=Wl(r)),a&&(o.maxWidth=Wl(a))}this._lastBoundingBoxSize=i,Bg(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Bg(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bg(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const w=this._viewportRuler.getViewportScrollPosition();Bg(i,this._getExactOverlayY(e,n,w)),Bg(i,this._getExactOverlayX(e,n,w))}else i.position="static";let l="",u=this._getOffset(e,"x"),f=this._getOffset(e,"y");u&&(l+=`translateX(${u}px) `),f&&(l+=`translateY(${f}px)`),i.transform=l.trim(),a.maxHeight&&(o?i.maxHeight=Wl(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=Wl(a.maxWidth):r&&(i.maxWidth="")),Bg(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Wl(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Wl(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Bq(n,i),isOriginOutsideView:fk(n,i),isOverlayClipped:Bq(e,i),isOverlayOutsideView:fk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&xw(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ti)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Bg(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function Uq(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(jye);return e&&"px"!==e?null:parseFloat(n)}return t||null}function jq(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const Wq="cdk-global-overlay-wrapper";class Wye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(Wq),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:l}=i,u=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),f=!("100%"!==r&&"100vh"!==r||l&&"100%"!==l&&"100vh"!==l);n.position=this._cssPosition,n.marginLeft=u?"0":this._leftOffset,n.marginTop=f?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,u?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=f?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Wq),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let qye=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new Wye}flexibleConnectedTo(e){return new Yq(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(qt(Lf),qt(vr),qt(rc),qt(gk))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qq=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$ye=(()=>{class t extends qq{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const l=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(oo,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xye=(()=>{class t extends qq{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ju(r)},this._clickListener=r=>{const a=ju(r),l="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){const w=u[f];if(w._outsidePointerEvents.observers.length<1||!w.hasAttached())continue;if(w.overlayElement.contains(a)||w.overlayElement.contains(l))break;const T=w._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>T.next(r)):T.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(rc),qt(oo,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qye=0,$l=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T,U){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=l,this._ngZone=u,this._document=f,this._directionality=w,this._location=T,this._outsideClickDispatcher=U}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new Lh(e);return a.direction=a.direction||this._directionality.value,new Uye(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+Qye++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(K7)),new Fq(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(qt(Gye),qt(gk),qt(yf),qt(qye),qt($ye),qt(zs),qt(oo),qt(vr),qt(Sl),qt(J7),qt(Xye))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const Zye=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$q=new ui("cdk-connected-overlay-scroll-strategy");let Xq=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275dir=St({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Qq=(()=>{class t{constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Se.EMPTY,this._attachSubscription=Se.EMPTY,this._detachSubscription=Se.EMPTY,this._positionSubscription=Se.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new In,this.positionChange=new In,this.attach=new In,this.detach=new In,this.overlayKeydown=new In,this.overlayOutsideClick=new In,this._templatePortal=new O6(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=no(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=no(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=no(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=no(e)}get push(){return this._push}set push(e){this._push=no(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Zye);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!ql(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Lh({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Xq?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Fye(t,n=!1){return ve((e,i)=>{let o=0;e.subscribe($e(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de($l),de(Oc),de(oc),de($q),de(Sl,8))},t.\u0275dir=St({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Yo]}),t})();const Jye={provide:$q,deps:[$l],useFactory:function Kye(t){return()=>t.scrollStrategies.reposition()}};let Gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[$l,Jye],imports:[[Af,Hf,I9],I9]}),t})(),Zq=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(de(yl),de(Ti))},t.\u0275dir=St({type:t}),t})(),Yg=(()=>{class t extends Zq{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,features:[ei]}),t})();const L1=new ui("NgValueAccessor"),twe={provide:L1,useExisting:nt(()=>ed),multi:!0},iwe=new ui("CompositionEventMode");let ed=(()=>{class t extends Zq{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function nwe(){const t=w0()?w0().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(de(yl),de(Ti),de(iwe,8))},t.\u0275dir=St({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&et("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[mo([twe]),ei]}),t})();function Vf(t){return null==t||0===t.length}function Jq(t){return null!=t&&"number"==typeof t.length}const d1=new ui("NgValidators"),Bf=new ui("NgAsyncValidators"),owe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[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])?)*$/;class P6{static min(n){return function e$(t){return n=>{if(Vf(n.value)||Vf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Vf(n.value)||Vf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return n$(n)}static requiredTrue(n){return function i$(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function o$(t){return Vf(t.value)||owe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function r$(t){return n=>Vf(n.value)||!Jq(n.value)?null:n.value.lengthJq(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function s$(t){if(!t)return Qw;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Vf(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return p$(n)}static composeAsync(n){return f$(n)}}function n$(t){return Vf(t.value)?{required:!0}:null}function Qw(t){return null}function c$(t){return null!=t}function l$(t){const n=V7(t)?Ra(t):t;return SA(n),n}function d$(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function u$(t,n){return n.map(e=>e(t))}function h$(t){return t.map(n=>function rwe(t){return!t.validate}(n)?n:e=>n.validate(e))}function p$(t){if(!t)return null;const n=t.filter(c$);return 0==n.length?null:function(e){return d$(u$(e,n))}}function mk(t){return null!=t?p$(h$(t)):null}function f$(t){if(!t)return null;const n=t.filter(c$);return 0==n.length?null:function(e){return Ah(u$(e,n).map(l$)).pipe(it(d$))}}function _k(t){return null!=t?f$(h$(t)):null}function g$(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function m$(t){return t._rawValidators}function _$(t){return t._rawAsyncValidators}function Ck(t){return t?Array.isArray(t)?t:[t]:[]}function Zw(t,n){return Array.isArray(t)?t.includes(n):t===n}function C$(t,n){const e=Ck(n);return Ck(t).forEach(o=>{Zw(e,o)||e.push(o)}),e}function v$(t,n){return Ck(n).filter(e=>!Zw(t,e))}class b${constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=mk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=_k(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Dh extends b${constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jd extends b${get formDirective(){return null}get path(){return null}}class x${constructor(n){this._cd=n}is(n){var e,i,o;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[n])}}let Pl=(()=>{class t extends x${constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Dh,2))},t.\u0275dir=St({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&po("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[ei]}),t})(),tl=(()=>{class t extends x${constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Jd,10))},t.\u0275dir=St({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&po("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[ei]}),t})();function Jw(t,n){return[...n.path,t]}function Y9(t,n){xk(t,n),n.valueAccessor.writeValue(t.value),function pwe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&w$(t,n)})}(t,n),function gwe(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function fwe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&w$(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function hwe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function eM(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),nM(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function tM(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function xk(t,n){const e=m$(t);null!==n.validator?t.setValidators(g$(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=_$(t);null!==n.asyncValidator?t.setAsyncValidators(g$(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();tM(n._rawValidators,o),tM(n._rawAsyncValidators,o)}function nM(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=m$(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=_$(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return tM(n._rawValidators,i),tM(n._rawAsyncValidators,i),e}function w$(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function M$(t,n){xk(t,n)}function yk(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function S$(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function wk(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===ed?e=r:function Cwe(t){return Object.getPrototypeOf(t.constructor)===Yg}(r)?i=r:o=r}),o||i||e||null}function Mk(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const U9="VALID",iM="INVALID",T6="PENDING",j9="DISABLED";function Sk(t){return(oM(t)?t.validators:t)||null}function P$(t){return Array.isArray(t)?mk(t):t||null}function Pk(t,n){return(oM(n)?n.asyncValidators:t)||null}function T$(t){return Array.isArray(t)?_k(t):t||null}function oM(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const Tk=t=>t instanceof Do,rM=t=>t instanceof td,E$=t=>t instanceof Xu;function A$(t){return Tk(t)?t.value:t.getRawValue()}function L$(t,n){const e=rM(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new sn(1e3,"");if(!i[n])throw new sn(1001,"")}function D$(t,n){rM(t),t._forEachChild((i,o)=>{if(void 0===n[o])throw new sn(1002,"")})}class Ek{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=P$(this._rawValidators),this._composedAsyncValidatorFn=T$(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===U9}get invalid(){return this.status===iM}get pending(){return this.status==T6}get disabled(){return this.status===j9}get enabled(){return this.status!==j9}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=P$(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=T$(n)}addValidators(n){this.setValidators(C$(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(C$(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(v$(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(v$(n,this._rawAsyncValidators))}hasValidator(n){return Zw(this._rawValidators,n)}hasAsyncValidator(n){return Zw(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=T6,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=j9,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=U9,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===U9||this.status===T6)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?j9:U9}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=T6,this._hasOwnPendingAsyncValidator=!0;const e=l$(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function vwe(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(o=>{i=rM(i)?i.controls.hasOwnProperty(o)?i.controls[o]:null:E$(i)&&i.at(o)||null}),i}(this,n,".")}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new In,this.statusChanges=new In}_calculateStatus(){return this._allControlsDisabled()?j9:this.errors?iM:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T6)?T6:this._anyControlsHaveStatus(iM)?iM:U9}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){oM(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Do extends Ek{constructor(n=null,e,i){super(Sk(e),Pk(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),oM(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Mk(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Mk(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class td extends Ek{constructor(n,e,i){super(Sk(e),Pk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){D$(this,n),Object.keys(n).forEach(i=>{L$(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=A$(e),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Xu extends Ek{constructor(n,e,i){super(Sk(e),Pk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){D$(this,n),n.forEach((i,o)=>{L$(this,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>A$(n))}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const bwe={provide:Jd,useExisting:nt(()=>D0)},W9=(()=>Promise.resolve(null))();let D0=(()=>{class t extends Jd{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new In,this.form=new td({},mk(e),_k(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){W9.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Y9(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){W9.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){W9.then(()=>{const i=this._findContainer(e.path),o=new td({});M$(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){W9.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){W9.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,S$(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(de(d1,10),de(Bf,10))},t.\u0275dir=St({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&et("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([bwe]),ei]}),t})(),k$=(()=>{class t extends Jd{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Jw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,features:[ei]}),t})();const ywe={provide:Dh,useExisting:nt(()=>aM)},N$=(()=>Promise.resolve(null))();let aM=(()=>{class t extends Dh{constructor(e,i,o,r,a){super(),this._changeDetectorRef=a,this.control=new Do,this._registered=!1,this.update=new In,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=wk(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),yk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Y9(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){N$.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=""===i||i&&"false"!==i;N$.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?Jw(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(de(Jd,9),de(d1,10),de(Bf,10),de(L1,10),de(Xr,8))},t.\u0275dir=St({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[mo([ywe]),ei,Yo]}),t})(),nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),z$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const Ak=new ui("NgModelWithFormControlWarning"),Twe={provide:Jd,useExisting:nt(()=>Gc)};let Gc=(()=>{class t extends Jd{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new In,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nM(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Y9(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){eM(e.control||null,e,!1),Mk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,S$(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(eM(i||null,e),Tk(o)&&(Y9(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);M$(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function mwe(t,n){return nM(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xk(this.form,this),this._oldForm&&nM(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(de(d1,10),de(Bf,10))},t.\u0275dir=St({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&et("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Twe]),ei,Yo]}),t})();const Ewe={provide:Jd,useExisting:nt(()=>Gf)};let Gf=(()=>{class t extends k${constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){B$(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(de(Jd,13),de(d1,10),de(Bf,10))},t.\u0275dir=St({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[mo([Ewe]),ei]}),t})();const Awe={provide:Jd,useExisting:nt(()=>k0)};let k0=(()=>{class t extends Jd{constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Jw(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){B$(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(de(Jd,13),de(d1,10),de(Bf,10))},t.\u0275dir=St({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[mo([Awe]),ei]}),t})();function B$(t){return!(t instanceof Gf||t instanceof Gc||t instanceof k0)}const Lwe={provide:Dh,useExisting:nt(()=>Xl)};let Xl=(()=>{class t extends Dh{constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new In,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=wk(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),yk(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Jw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(de(Jd,13),de(d1,10),de(Bf,10),de(L1,10),de(Ak,8))},t.\u0275dir=St({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[mo([Lwe]),ei,Yo]}),t})(),Ug=(()=>{class t{constructor(){this._validator=Qw}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Qw,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,features:[Yo]}),t})();const Bwe={provide:d1,useExisting:nt(()=>sM),multi:!0};let sM=(()=>{class t extends Ug{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function Fwe(t){return null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>n$}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Un("required",i._enabled?"":null)},inputs:{required:"required"},features:[mo([Bwe]),ei]}),t})(),K$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[z$]]}),t})(),Yf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[K$]}),t})(),$p=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ak,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[K$]}),t})(),e2=(()=>{class t{group(e,i=null){const o=this._reduceControls(e);let l,r=null,a=null;return null!=i&&(function qwe(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(r=null!=i.validators?i.validators:null,a=null!=i.asyncValidators?i.asyncValidators:null,l=null!=i.updateOn?i.updateOn:void 0):(r=null!=i.validator?i.validator:null,a=null!=i.asyncValidator?i.asyncValidator:null)),new td(o,{asyncValidators:a,updateOn:l,validators:r})}control(e,i,o){return new Do(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new Xu(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return Tk(e)||rM(e)||E$(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:$p}),t})();const $we=["connectionContainer"],Xwe=["inputContainer"],Qwe=["label"];function Zwe(t,n){1&t&&(er(0),H(1,"div",14),Qe(2,"div",15)(3,"div",16)(4,"div",17),G(),H(5,"div",18),Qe(6,"div",15)(7,"div",16)(8,"div",17),G(),tr())}function Kwe(t,n){if(1&t){const e=Ln();H(0,"div",19),et("cdkObserveContent",function(){return Dt(e),Ae().updateOutlineGap()}),Vr(1,1),G()}2&t&&J("cdkObserveContentDisabled","outline"!=Ae().appearance)}function Jwe(t,n){if(1&t&&(er(0),Vr(1,2),H(2,"span"),ue(3),G(),tr()),2&t){const e=Ae(2);W(3),qo(e._control.placeholder)}}function eMe(t,n){1&t&&Vr(0,3,["*ngSwitchCase","true"])}function tMe(t,n){1&t&&(H(0,"span",23),ue(1," *"),G())}function nMe(t,n){if(1&t){const e=Ln();H(0,"label",20,21),et("cdkObserveContent",function(){return Dt(e),Ae().updateOutlineGap()}),ke(2,Jwe,4,1,"ng-container",12),ke(3,eMe,1,0,"ng-content",12),ke(4,tMe,2,0,"span",22),G()}if(2&t){const e=Ae();po("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Un("for",e._control.id)("aria-owns",e._control.id),W(2),J("ngSwitchCase",!1),W(1),J("ngSwitchCase",!0),W(1),J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function iMe(t,n){1&t&&(H(0,"div",24),Vr(1,4),G())}function oMe(t,n){if(1&t&&(H(0,"div",25),Qe(1,"span",26),G()),2&t){const e=Ae();W(1),po("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function rMe(t,n){1&t&&(H(0,"div"),Vr(1,5),G()),2&t&&J("@transitionMessages",Ae()._subscriptAnimationState)}function aMe(t,n){if(1&t&&(H(0,"div",30),ue(1),G()),2&t){const e=Ae(2);J("id",e._hintLabelId),W(1),qo(e.hintLabel)}}function sMe(t,n){if(1&t&&(H(0,"div",27),ke(1,aMe,2,2,"div",28),Vr(2,6),Qe(3,"div",29),Vr(4,7),G()),2&t){const e=Ae();J("@transitionMessages",e._subscriptAnimationState),W(1),J("ngIf",e.hintLabel)}}const cMe=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],lMe=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],dMe=new ui("MatError"),uMe={transitionMessages:na("transitionMessages",[cr("enter",ti({opacity:1,transform:"translateY(0%)"})),Lo("void => enter",[ti({opacity:0,transform:"translateY(-5px)"}),Mo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let q9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t}),t})();const hMe=new ui("MatHint");let yd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["mat-label"]]}),t})(),pMe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["mat-placeholder"]]}),t})();const fMe=new ui("MatPrefix"),J$=new ui("MatSuffix");let E6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","matSuffix",""]],features:[mo([{provide:J$,useExisting:t}])]}),t})(),eX=0;const mMe=Ph(class{constructor(t){this._elementRef=t}},"primary"),_Me=new ui("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$9=new ui("MatFormField");let id=(()=>{class t extends mMe{constructor(e,i,o,r,a,l,u){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=r,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new N,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+eX++,this._labelId="mat-form-field-label-"+eX++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==u,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=no(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Sc(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Yn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Yn(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),kr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Sc(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Sc(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Yn(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Jc(this._label.nativeElement,"transitionend").pipe(Ja(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const w=i.querySelectorAll(`${o}, ${r}`);for(let T=0;T0?.75*se+10:0}for(let w=0;w{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,z9],Xo]}),t})();function nX(t,n){return n?e=>f9(n.pipe(Ja(1),function CMe(){return ve((t,n)=>{t.subscribe($e(n,wt))})}()),e.pipe(nX(t))):da((e,i)=>Ur(t(e,i)).pipe(Ja(1),jp(e)))}function kk(t,n=T9){const e=FD(t,n);return nX(()=>e)}const vMe=["panel"];function bMe(t,n){if(1&t&&(H(0,"div",0,1),Vr(2),G()),2&t){const e=n.id,i=Ae();J("id",i.id)("ngClass",i._classList),Un("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const xMe=["*"];let yMe=0;class wMe{constructor(n,e){this.source=n,this.option=e}}const MMe=$u(class{}),iX=new ui("mat-autocomplete-default-options",{providedIn:"root",factory:function OMe(){return{autoActiveFirstOption:!1}}});let SMe=(()=>{class t extends MMe{constructor(e,i,o,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=Se.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new In,this.opened=new In,this.closed=new In,this.optionActivated=new In,this._classList={},this.id="mat-autocomplete-"+yMe++,this.inertGroups=(null==r?void 0:r.SAFARI)||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=no(e)}set classList(e){this._classList=e&&e.length?PW(e).reduce((i,o)=>(i[o]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new YW(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new wMe(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(de(Xr),de(Ti),de(iX),de(rc))},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&(_o(Oc,7),_o(vMe,5)),2&e){let o;fi(o=gi())&&(i.template=o.first),fi(o=gi())&&(i.panel=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ei]}),t})(),I0=(()=>{class t extends SMe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,rk,5),mr(o,J1,5)),2&e){let r;fi(r=gi())&&(i.optionGroups=r),fi(r=gi())&&(i.options=r)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[mo([{provide:ok,useExisting:t}]),ei],ngContentSelectors:xMe,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(ls(),ke(0,bMe,3,4,"ng-template"))},directives:[ds],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const oX=new ui("mat-autocomplete-scroll-strategy"),TMe={provide:oX,deps:[$l],useFactory:function PMe(t){return()=>t.scrollStrategies.reposition()}},EMe={provide:L1,useExisting:nt(()=>kh),multi:!0};let AMe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T,U){this._element=e,this._overlay=i,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=a,this._dir=u,this._formField=f,this._document=w,this._viewportRuler=T,this._defaults=U,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Se.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new N,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=g9(()=>{const ie=this.autocomplete?this.autocomplete.options:null;return ie?ie.changes.pipe(Sc(ie),Z1(()=>kr(...ie.map(se=>se.onSelectionChange)))):this._zone.onStable.pipe(Ja(1),Z1(()=>this.optionSelections))}),this._scrollStrategy=l}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=no(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return kr(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ca(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ca(()=>this._overlayAttached)):rr()).pipe(it(e=>e instanceof rq?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return kr(Jc(this._document,"click"),Jc(this._document,"auxclick"),Jc(this._document,"touchend")).pipe(ca(e=>{const i=ju(e),o=this._formField?this._formField._elementRef.nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!r||!r.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,o=ql(e);if(27===i&&!o&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._onChange(o),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return kr(this._zone.onStable.pipe(Ja(1)),this.autocomplete.options.changes.pipe(Ps(()=>this._positionStrategy.reapplyLastPosition()),kk(0))).pipe(Z1(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),o!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),Ja(1)).subscribe(o=>this._setValueAndClose(o))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,o=null!=i?i:"";this._formField?this._formField._control.value=o:this._element.nativeElement.value=o,this._previousValue=o}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new O6(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(r=>{(27===r.keyCode&&!ql(r)||38===r.keyCode&&ql(r,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),r.stopPropagation(),r.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const o=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&o!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Lh({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?r:"below"===this.position?i:[...i,...r],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,o=ak(e,i.options,i.optionGroups);if(0===e&&1===o)i._setScrollTop(0);else if(i.panel){const r=i.options.toArray()[e];if(r){const a=r._getHostElement(),l=aq(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de($l),de(oc),de(oo),de(Xr),de(oX),de(Sl,8),de($9,9),de(vr,8),de(Lf),de(iX,8))},t.\u0275dir=St({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Yo]}),t})(),kh=(()=>{class t extends AMe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&et("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(r){return i._handleInput(r)})("keydown",function(r){return i._handleKeydown(r)})("click",function(){return i._handleClick()}),2&e&&Un("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[mo([EMe]),ei]}),t})(),X9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[TMe],imports:[[Gg,zw,Xo,va],T0,zw,Xo]}),t})();class rX{}function lM(t){return t&&"function"==typeof t.connect}class aX{applyChanges(n,e,i,o,r){n.forEachOperation((a,l,u)=>{let f,w;if(null==a.previousIndex){const T=i(a,l,u);f=e.createEmbeddedView(T.templateRef,T.context,T.index),w=1}else null==u?(e.remove(l),w=3):(f=e.get(l),e.move(f,u),w=2);r&&r({context:null==f?void 0:f.context,operation:w,record:a})})}detach(){}}class Qu{constructor(n=!1,e,i=!0){this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new N,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...n){this._verifyValueAssignment(n),n.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(n){this.isSelected(n)?this.deselect(n):this.select(n)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(n){return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}}let LMe=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Q9=new ui("_ViewRepeater");let Z9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo,Kd],Xo]}),t})(),hX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();const FMe=["input"],HMe=function(t){return{enterDuration:t}},VMe=["*"],BMe=new ui("mat-checkbox-default-options",{providedIn:"root",factory:pX});function pX(){return{color:"accent",clickAction:"check-indeterminate"}}let GMe=0;const fX=pX(),YMe={provide:L1,useExisting:nt(()=>Uf),multi:!0};class UMe{}const jMe=Hg(Ph($u(E0(class{constructor(t){this._elementRef=t}}))));let Uf=(()=>{class t extends jMe{constructor(e,i,o,r,a,l,u){super(e),this._changeDetectorRef=i,this._focusMonitor=o,this._ngZone=r,this._animationMode=l,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++GMe,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new In,this.indeterminateChange=new In,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||fX,this.color=this.defaultColor=this._options.color||fX.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=no(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){const i=no(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=no(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=no(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,o=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){const e=new UMe;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(e){var i;const o=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===o?!this.disabled&&"noop"===o&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==o&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let o="";switch(e){case 0:if(1===i)o="unchecked-checked";else{if(3!=i)return"";o="unchecked-indeterminate"}break;case 2:o=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:o=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:o=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${o}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Xr),de(P2),de(oo),Yl("tabindex"),de(E1,8),de(BMe,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(_o(FMe,5),_o(Th,5)),2&e){let o;fi(o=gi())&&(i._inputElement=o.first),fi(o=gi())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(Fu("id",i.id),Un("tabindex",null)("aria-label",null)("aria-labelledby",null),po("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[mo([YMe]),ei],ngContentSelectors:VMe,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(ls(),H(0,"label",0,1)(2,"span",2)(3,"input",3,4),et("change",function(r){return i._onInteractionEvent(r)})("click",function(r){return i._onInputClick(r)}),G(),H(5,"span",5),Qe(6,"span",6),G(),Qe(7,"span",7),H(8,"span",8),bi(),H(9,"svg",9),Qe(10,"path",10),G(),gd(),Qe(11,"span",11),G()(),H(12,"span",12,13),et("cdkObserveContent",function(){return i._onLabelTextChange()}),H(14,"span",14),ue(15,"\xa0"),G(),Vr(16),G()()),2&e){const o=Di(1),r=Di(13);Un("for",i.inputId),W(2),po("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),W(1),J("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Un("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),W(2),J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",wo(19,HMe,"NoopAnimations"===i._animationMode?0:150))}},directives:[Th,WD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),gX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),mX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,Xo,z9,gX],Xo,gX]}),t})();const $Me=["*"],_X=new ui("MatChipRemove"),CX=new ui("MatChipAvatar"),vX=new ui("MatChipTrailingIcon");class XMe{constructor(n){this._elementRef=n}}const QMe=Hg(Ph($u(XMe),"primary"),-1);let T2=(()=>{class t extends QMe{constructor(e,i,o,r,a,l,u,f){super(e),this._ngZone=i,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new N,this._onBlur=new N,this.selectionChange=new In,this.destroyed=new In,this.removed=new In,this._addHostClassName(),this._chipRippleTarget=l.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new nq(this,i,this._chipRippleTarget,o),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=r||{},this._animationsDisabled="NoopAnimations"===u,this.tabIndex=null!=f&&parseInt(f)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=no(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=no(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=no(e)}get removable(){return this._removable}set removable(e){this._removable=no(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(rc),de(iq,8),de(Xr),de(vr),de(E1,8),Yl("tabindex"))},t.\u0275dir=St({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,o){if(1&e&&(mr(o,CX,5),mr(o,vX,5),mr(o,_X,5)),2&e){let r;fi(r=gi())&&(i.avatar=r.first),fi(r=gi())&&(i.trailingIcon=r.first),fi(r=gi())&&(i.removeIcon=r.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,i){1&e&&et("click",function(r){return i._handleClick(r)})("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Un("tabindex",i.disabled?null:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),po("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[ei]}),t})(),Ik=(()=>{class t{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(de(T2),de(Ti))},t.\u0275dir=St({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&et("click",function(r){return i._handleClick(r)})},features:[mo([{provide:_X,useExisting:t}])]}),t})();const bX=new ui("mat-chips-default-options");let JMe=0,xX=(()=>{class t{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new In,this.placeholder="",this.id="mat-chip-list-input-"+JMe++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=no(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=no(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!ql(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!ql(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(bX))},t.\u0275dir=St({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&et("keydown",function(r){return i._keydown(r)})("keyup",function(r){return i._keyup(r)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Fu("id",i.id),Un("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Yo]}),t})();const eOe=JD(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let tOe=0;class nOe{constructor(n,e){this.source=n,this.value=e}}let A6=(()=>{class t extends eOe{constructor(e,i,o,r,a,l,u){super(l,r,a,u),this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new N,this._uid="mat-chip-list-"+tOe++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(f,w)=>f===w,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new In,this.valueChange=new In,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=no(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(P6.required))&&void 0!==r&&r}set required(e){this._required=no(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=no(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=no(e),this.chips&&this.chips.forEach(i=>i.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return kr(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return kr(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return kr(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return kr(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new $D(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Yn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Yn(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Sc(null),Yn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Qu(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&eo.deselect()),Array.isArray(e))e.forEach(o=>this._selectValue(o,i)),this._sortValues();else{const o=this._selectValue(e,i);o&&i&&this._keyManager.setActiveItem(o)}}_selectValue(e,i=!0){const o=this.chips.find(r=>null!=r.value&&this._compareWith(r.value,e));return o&&(i?o.selectViaInteraction():o.select(),this._selectionModel.select(o)),o}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new nOe(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,o=this.chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&i._hasFocus&&(this._lastDestroyedChipIndex=o)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Xr),de(Sl,8),de(D0,8),de(Gc,8),de(x6),de(Dh,10))},t.\u0275cmp=vn({type:t,selectors:[["mat-chip-list"]],contentQueries:function(e,i,o){if(1&e&&mr(o,T2,5),2&e){let r;fi(r=gi())&&(i.chips=r)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,i){1&e&&et("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(r){return i._keydown(r)}),2&e&&(Fu("id",i._uid),Un("tabindex",i.disabled?null:i._tabIndex)("aria-describedby",i._ariaDescribedby||null)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),po("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[mo([{provide:q9,useExisting:t}]),ei],ngContentSelectors:$Me,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(ls(),H(0,"div",0),Vr(1),G())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),K9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[x6,{provide:bX,useValue:{separatorKeyCodes:[13]}}],imports:[[Xo]]}),t})();const yX=Oh({passive:!0});let iOe=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Na;const i=Ol(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new N,a="cdk-text-field-autofilled",l=u=>{"cdk-text-field-autofill-start"!==u.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===u.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",l,yX),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",l,yX)}}),r}stopMonitoring(e){const i=Ol(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const MX=new ui("MAT_INPUT_VALUE_ACCESSOR"),oOe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let rOe=0;const aOe=JD(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let E2=(()=>{class t extends aOe{constructor(e,i,o,r,a,l,u,f,w,T){super(l,r,a,o),this._elementRef=e,this._platform=i,this._autofillMonitor=f,this._formField=T,this._uid="mat-input-"+rOe++,this.focused=!1,this.stateChanges=new N,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(se=>kW().has(se)),this._iOSKeyupListener=se=>{const Me=se.target;!Me.value&&0===Me.selectionStart&&0===Me.selectionEnd&&(Me.setSelectionRange(1,1),Me.setSelectionRange(0,0))};const U=this._elementRef.nativeElement,ie=U.nodeName.toLowerCase();this._inputValueAccessor=u||U,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&w.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!T,this._isNativeSelect&&(this.controlType=U.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=no(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(P6.required))&&void 0!==r&&r}set required(e){this._required=no(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&kW().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=no(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const o=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(o!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=o,o?r.setAttribute("placeholder",o):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){oOe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(rc),de(Dh,10),de(D0,8),de(Gc,8),de(x6),de(MX,10),de(iOe),de(oo),de($9,8))},t.\u0275dir=St({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&et("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Fu("disabled",i.disabled)("required",i.required),Un("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),po("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[mo([{provide:q9,useExisting:t}]),ei,Yo]}),t})(),J9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[x6],imports:[[wX,jg,Xo],wX,jg]}),t})();const sOe=["mat-calendar-body",""];function cOe(t,n){if(1&t&&(H(0,"tr",2)(1,"td",3),ue(2),G()()),2&t){const e=Ae();W(1),Br("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Un("colspan",e.numCols),W(1),Nt(" ",e.label," ")}}function lOe(t,n){if(1&t&&(H(0,"td",3),ue(1),G()),2&t){const e=Ae(2);Br("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Un("colspan",e._firstRowOffset),W(1),Nt(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function dOe(t,n){if(1&t){const e=Ln();H(0,"td",7)(1,"button",8),et("click",function(o){const a=Dt(e).$implicit;return Ae(2)._cellClicked(a,o)}),H(2,"div",9),ue(3),G(),Qe(4,"div",10),G()()}if(2&t){const e=n.$implicit,i=n.index,o=Ae().index,r=Ae();Br("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),Un("data-mat-row",o)("data-mat-col",i),W(1),po("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,i))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,i))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,i))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),J("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,i)?0:-1),Un("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null),W(1),po("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),W(1),Nt(" ",e.displayValue," ")}}function uOe(t,n){if(1&t&&(H(0,"tr",4),ke(1,lOe,2,6,"td",5),ke(2,dOe,5,47,"td",6),G()),2&t){const e=n.$implicit,i=n.index,o=Ae();W(1),J("ngIf",0===i&&o._firstRowOffset),W(1),J("ngForOf",e)}}function hOe(t,n){if(1&t&&(H(0,"th",5)(1,"span",6),ue(2),G(),H(3,"span",7),ue(4),G()()),2&t){const e=n.$implicit;W(2),qo(e.long),W(2),qo(e.narrow)}}const pOe=["*"];function fOe(t,n){}function gOe(t,n){if(1&t){const e=Ln();H(0,"mat-month-view",5),et("activeDateChange",function(o){return Dt(e),Ae().activeDate=o})("_userSelection",function(o){return Dt(e),Ae()._dateSelected(o)}),G()}if(2&t){const e=Ae();J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function mOe(t,n){if(1&t){const e=Ln();H(0,"mat-year-view",6),et("activeDateChange",function(o){return Dt(e),Ae().activeDate=o})("monthSelected",function(o){return Dt(e),Ae()._monthSelectedInYearView(o)})("selectedChange",function(o){return Dt(e),Ae()._goToDateInView(o,"month")}),G()}if(2&t){const e=Ae();J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function _Oe(t,n){if(1&t){const e=Ln();H(0,"mat-multi-year-view",7),et("activeDateChange",function(o){return Dt(e),Ae().activeDate=o})("yearSelected",function(o){return Dt(e),Ae()._yearSelectedInMultiYearView(o)})("selectedChange",function(o){return Dt(e),Ae()._goToDateInView(o,"year")}),G()}if(2&t){const e=Ae();J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function COe(t,n){}const vOe=["button"];function bOe(t,n){1&t&&(bi(),H(0,"svg",3),Qe(1,"path",4),G())}const xOe=[[["","matDatepickerToggleIcon",""]]],yOe=["[matDatepickerToggleIcon]"];class Nk{constructor(n,e,i,o,r={},a=n,l){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=l}}let L6=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new In,this.previewChange=new In,this._enterHandler=o=>{if(this._skipNextFocus&&"focus"===o.type)this._skipNextFocus=!1;else if(o.target&&this.isRange){const r=this._getCellFromElement(o.target);r&&this._ngZone.run(()=>this.previewChange.emit({value:r.enabled?r:null,event:o}))}},this._leaveHandler=o=>{null!==this.previewEnd&&this.isRange&&o.target&&this._getCellFromElement(o.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o}))},i.runOutsideAngular(()=>{const o=e.nativeElement;o.addEventListener("mouseenter",this._enterHandler,!0),o.addEventListener("focus",this._enterHandler,!0),o.addEventListener("mouseleave",this._leaveHandler,!0),o.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:o,numCols:r}=this;(e.rows||i)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/r+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/r+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let o=e*this.numCols+i;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_isRangeStart(e){return Rk(e,this.startValue,this.endValue)}_isRangeEnd(e){return zk(e,this.startValue,this.endValue)}_isInRange(e){return Fk(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Rk(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[i][o-1];if(!r){const a=this.rows[i-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,i,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[i][o+1];if(!r){const a=this.rows[i+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return zk(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Fk(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Rk(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return zk(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Fk(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(OX(e)?i=e:OX(e.parentNode)&&(i=e.parentNode),i){const o=i.getAttribute("data-mat-row"),r=i.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)][parseInt(r)]}return null}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo))},t.\u0275cmp=vn({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Yo],attrs:sOe,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(ke(0,cOe,3,6,"tr",0),ke(1,uOe,3,2,"tr",1)),2&e&&(J("ngIf",i._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),t})();function OX(t){return"TD"===t.nodeName}function Rk(t,n,e){return null!==e&&n!==e&&t=n&&t===e}function Fk(t,n,e,i){return i&&null!==n&&null!==e&&n!==e&&t>=n&&t<=e}class A2{constructor(n,e){this.start=n,this.end=e}}let jf=(()=>{class t{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new N,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return t.\u0275fac=function(e){kp()},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),wOe=(()=>{class t extends jf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(qt(l1))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const SX={provide:jf,deps:[[new a1,new jd,jf],l1],useFactory:function OOe(t,n){return t||new wOe(n)}},dM=new ui("MAT_DATE_RANGE_SELECTION_STRATEGY");let PX=(()=>{class t{constructor(e,i,o,r,a){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=o,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=Se.EMPTY,this.selectedChange=new In,this._userSelection=new In,this.activeDateChange=new In,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Sc(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,o=this._dateAdapter.getYear(this.activeDate),r=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(o,r,i);let l,u;this._selected instanceof A2?(l=this._getDateInCurrentMonth(this._selected.start),u=this._getDateInCurrentMonth(this._selected.end)):l=u=this._getDateInCurrentMonth(this._selected),(l!==i||u!==i)&&this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ql(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const r=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let r=this._dateAdapter.getDayOfWeekNames("long").map((a,l)=>({long:a,narrow:i[l]}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,r=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(i,o,r).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof A2?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Xr),de(If,8),de(l1,8),de(Sl,8),de(dM,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&_o(L6,5),2&e){let o;fi(o=gi())&&(i._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Yo],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(H(0,"table",0)(1,"thead",1)(2,"tr"),ke(3,hOe,5,2,"th",2),G(),H(4,"tr"),Qe(5,"th",3),G()(),H(6,"tbody",4),et("selectedValueChange",function(r){return i._dateSelected(r)})("previewChange",function(r){return i._previewChanged(r)})("keyup",function(r){return i._handleCalendarBodyKeyup(r)})("keydown",function(r){return i._handleCalendarBodyKeydown(r)}),G()()),2&e&&(W(3),J("ngForOf",i._weekdays),W(3),J("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[L6,$o],encapsulation:2,changeDetection:0}),t})(),TX=(()=>{class t{constructor(e,i,o){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=o,this._rerenderSubscription=Se.EMPTY,this.selectedChange=new In,this.yearSelected=new In,this.activeDateChange=new In,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),EX(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Sc(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,r=[];o<24;o++)r.push(i+o),4==r.length&&(this._years.push(r.map(a=>this._createCellForYear(a))),r=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let o=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,o,1));this.selectedChange.emit(this._dateAdapter.createDate(i,o,Math.min(this._dateAdapter.getDate(this.activeDate),r)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(i),r=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Nk(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{constructor(e,i,o,r){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=o,this._dir=r,this._rerenderSubscription=Se.EMPTY,this.selectedChange=new In,this.monthSelected=new In,this.activeDateChange=new In,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Sc(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(o);const r=this._dateAdapter.getNumDaysInMonth(o);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),r)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(o=>this._createCellForMonth(o,e[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new Nk(e,i.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let r=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&i>r}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{constructor(){this.changes=new N,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),AOe=0,LOe=(()=>{class t{constructor(e,i,o,r,a){this._intl=e,this.calendar=i,this._dateAdapter=o,this._dateFormats=r,this._buttonDescriptionId="mat-calendar-button-"+AOe++,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-eC(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=i+24-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return this._intl.formatYearRange(r,a)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):EX(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(de(tC),de(nt(()=>Bk)),de(l1,8),de(If,8),de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:pOe,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(ls(),H(0,"div",0)(1,"div",1)(2,"button",2),et("click",function(){return i.currentPeriodClicked()}),H(3,"span"),ue(4),G(),bi(),H(5,"svg",3),Qe(6,"polygon",4),G()(),gd(),Qe(7,"div",5),Vr(8),H(9,"button",6),et("click",function(){return i.previousClicked()}),G(),H(10,"button",7),et("click",function(){return i.nextClicked()}),G()()()),2&e&&(W(2),Un("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),W(1),Un("id",i._buttonDescriptionId),W(1),qo(i.periodButtonText),W(1),po("mat-calendar-invert","month"!==i.calendar.currentView),W(4),J("disabled",!i.previousEnabled()),Un("aria-label",i.prevButtonLabel),W(1),J("disabled",!i.nextEnabled()),Un("aria-label",i.nextButtonLabel))},directives:[Fo],encapsulation:2,changeDetection:0}),t})(),Bk=(()=>{class t{constructor(e,i,o,r){this._dateAdapter=i,this._dateFormats=o,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new In,this.yearSelected=new In,this.monthSelected=new In,this.viewChanged=new In(!0),this._userSelection=new In,this.stateChanges=new N,this._intlChanges=e.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new uu(this.headerComponent||LOe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=i||o||e.dateFilter;if(r&&!r.firstChange){const a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof A2||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(de(tC),de(l1,8),de(If,8),de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(_o(PX,5),_o(LX,5),_o(TX,5)),2&e){let o;fi(o=gi())&&(i.monthView=o.first),fi(o=gi())&&(i.yearView=o.first),fi(o=gi())&&(i.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[mo([SX]),Yo],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(ke(0,fOe,0,0,"ng-template",0),H(1,"div",1),ke(2,gOe,1,8,"mat-month-view",2),ke(3,mOe,1,6,"mat-year-view",3),ke(4,_Oe,1,6,"mat-multi-year-view",4),G()),2&e&&(J("cdkPortalOutlet",i._calendarHeaderPortal),W(1),J("ngSwitch",i.currentView),W(1),J("ngSwitchCase","month"),W(1),J("ngSwitchCase","year"),W(1),J("ngSwitchCase","multi-year"))},directives:[PX,LX,TX,S6,sxe,bd,iu],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const DX={transformPanel:na("transformPanel",[Lo("void => enter-dropdown",Mo("120ms cubic-bezier(0, 0, 0.2, 1)",Tg([ti({opacity:0,transform:"scale(1, 0.8)"}),ti({opacity:1,transform:"scale(1, 1)"})]))),Lo("void => enter-dialog",Mo("150ms cubic-bezier(0, 0, 0.2, 1)",Tg([ti({opacity:0,transform:"scale(0.7)"}),ti({transform:"none",opacity:1})]))),Lo("* => void",Mo("100ms linear",ti({opacity:0})))]),fadeInCalendar:na("fadeInCalendar",[cr("void",ti({opacity:0})),cr("enter",ti({opacity:1})),Lo("void => *",Mo("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let DOe=0;const kX=new ui("mat-datepicker-scroll-strategy"),IOe={provide:kX,deps:[$l],useFactory:function kOe(t){return()=>t.scrollStrategies.reposition()}},NOe=Ph(class{constructor(t){this._elementRef=t}});let ROe=(()=>{class t extends NOe{constructor(e,i,o,r,a,l){super(e),this._changeDetectorRef=i,this._globalModel=o,this._dateAdapter=r,this._rangeSelectionStrategy=a,this._subscriptions=new Se,this._animationDone=new N,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,o=e.value,r=i instanceof A2;if(r&&this._rangeSelectionStrategy){const a=this._rangeSelectionStrategy.selectionFinished(o,i,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,i))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Xr),de(jf),de(l1),de(dM,8),de(tC))},t.\u0275cmp=vn({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&_o(Bk,5),2&e){let o;fi(o=gi())&&(i._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&o6("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(a6("@transformPanel",i._animationState),po("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[ei],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"mat-calendar",1),et("yearSelected",function(r){return i.datepicker._selectYear(r)})("monthSelected",function(r){return i.datepicker._selectMonth(r)})("viewChanged",function(r){return i.datepicker._viewChanged(r)})("_userSelection",function(r){return i._handleUserSelection(r)}),G(),ke(2,COe,0,0,"ng-template",2),H(3,"button",3),et("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),ue(4),G()()),2&e){let o;po("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),Un("aria-modal",!0)("aria-labelledby",null!==(o=i._dialogLabelId)&&void 0!==o?o:void 0),W(1),J("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),W(1),J("cdkPortalOutlet",i._actionsPortal),W(1),po("cdk-visually-hidden",!i._closeButtonFocused),J("color",i.color||"primary"),W(1),qo(i._closeButtonText)}},directives:[Bk,Fo,Jbe,ds,S6],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[DX.transformPanel,DX.fadeInCalendar]},changeDetection:0}),t})(),IX=(()=>{class t{constructor(e,i,o,r,a,l,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=o,this._dateAdapter=a,this._dir=l,this._model=u,this._inputStateChanges=Se.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new In,this.monthSelected=new In,this.viewChanged=new In(!0),this.openedStream=new In,this.closedStream=new In,this._opened=!1,this.id="mat-datepicker-"+DOe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new N,this._scrollStrategy=r}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=no(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=no(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=no(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=PW(e)}get opened(){return this._opened}set opened(e){no(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;o instanceof Yq&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=L9(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(Ja(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new uu(ROe,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Lh({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),this._componentRef=o.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>o.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",o="start"===i?"end":"start",r="above"===this.yPosition?"bottom":"top",a="top"===r?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){return kr(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ca(i=>27===i.keyCode&&!ql(i)||this.datepickerInput&&ql(i,"altKey")&&38===i.keyCode)))}}return t.\u0275fac=function(e){return new(e||t)(de($l),de(oo),de(oc),de(kX),de(l1,8),de(Sl,8),de(jf))},t.\u0275dir=St({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Yo]}),t})(),zOe=(()=>{class t extends IX{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[mo([SX,{provide:IX,useExisting:t}]),ei],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),t})();class uM{constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}}let FOe=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._dateAdapter=i,this._dateFormats=o,this.dateChange=new In,this.dateInput=new In,this.stateChanges=new N,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Se.EMPTY,this._localeSubscription=Se.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=r=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=r=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),l=this._getMinDate();return!l||!a||this._dateAdapter.compareDate(l,a)<=0?null:{matDatepickerMin:{min:l,actual:a}}},this._maxValidator=r=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),l=this._getMaxDate();return!l||!a||this._dateAdapter.compareDate(l,a)>=0?null:{matDatepickerMax:{max:l,actual:a}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=no(e),o=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const o=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new uM(this,this._elementRef.nativeElement)),this.dateChange.emit(new uM(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function HOe(t,n){const e=Object.keys(t);for(let i of e){const{previousValue:o,currentValue:r}=t[i];if(!n.isDateInstance(o)||!n.isDateInstance(r))return!0;if(!n.sameDate(o,r))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);const r=!this._dateAdapter.sameDate(o,this.value);!o||r?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),i!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(o),this.dateInput.emit(new uM(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new uM(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(l1,8),de(If,8))},t.\u0275dir=St({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Yo]}),t})();const VOe={provide:L1,useExisting:nt(()=>Gk),multi:!0},BOe={provide:d1,useExisting:nt(()=>Gk),multi:!0};let Gk=(()=>{class t extends FOe{constructor(e,i,o,r){super(e,i,o),this._formField=r,this._closedSubscription=Se.EMPTY,this._validator=P6.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(l1,8),de(If,8),de($9,8))},t.\u0275dir=St({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&et("input",function(r){return i._onInput(r.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(r){return i._onKeydown(r)}),2&e&&(Fu("disabled",i.disabled),Un("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[mo([VOe,BOe,{provide:MX,useExisting:t}]),ei]}),t})(),GOe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),YOe=(()=>{class t{constructor(e,i,o){this._intl=e,this._changeDetectorRef=i,this._stateChanges=Se.EMPTY;const r=Number(o);this.tabIndex=r||0===r?r:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=no(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:rr(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:rr(),o=this.datepicker?kr(this.datepicker.openedStream,this.datepicker.closedStream):rr();this._stateChanges.unsubscribe(),this._stateChanges=kr(this._intl.changes,e,i,o).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(de(tC),de(Xr),Yl("tabindex"))},t.\u0275cmp=vn({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,o){if(1&e&&mr(o,GOe,5),2&e){let r;fi(r=gi())&&(i._customIcon=r.first)}},viewQuery:function(e,i){if(1&e&&_o(vOe,5),2&e){let o;fi(o=gi())&&(i._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&et("click",function(r){return i._open(r)}),2&e&&(Un("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),po("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Yo],ngContentSelectors:yOe,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(ls(xOe),H(0,"button",0,1),ke(2,bOe,2,0,"svg",2),Vr(3),G()),2&e&&(J("disabled",i.disabled)("disableRipple",i.disableRipple),Un("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),W(2),J("ngIf",!i._customIcon))},directives:[Fo,Yi],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),nC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[tC,IOe],imports:[[va,du,Gg,Nw,Hf,Xo],T0]}),t})();function UOe(t,n){}class Yk{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const jOe={dialogContainer:na("dialogContainer",[cr("void, exit",ti({opacity:0,transform:"scale(0.7)"})),cr("enter",ti({transform:"none"})),Lo("* => enter",Pg([Mo("150ms cubic-bezier(0, 0, 0.2, 1)",ti({transform:"none",opacity:1})),qa("@*",Q1(),{optional:!0})])),Lo("* => void, * => exit",Pg([Mo("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ti({opacity:0})),qa("@*",Q1(),{optional:!0})]))])};let WOe=(()=>{class t extends $w{constructor(e,i,o,r,a,l,u,f){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=o,this._config=a,this._interactivityChecker=l,this._ngZone=u,this._focusMonitor=f,this._animationStateChanged=new In,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=w=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(w)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=r}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=L9())}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=L9(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=L9();return e===i||e.contains(i)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(QD),de(Xr),de(vr,8),de(Yk),de(XD),de(oo),de(P2))},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&_o(S6,7),2&e){let o;fi(o=gi())&&(i._portalOutlet=o.first)}},features:[ei]}),t})(),qOe=(()=>{class t extends WOe{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&o6("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(Fu("id",i._id),Un("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),a6("@dialogContainer",i._state))},features:[ei],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ke(0,UOe,0,0,"ng-template",0)},directives:[S6],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[jOe.dialogContainer]}}),t})(),$Oe=0;class od{constructor(n,e,i="mat-dialog-"+$Oe++){this._overlayRef=n,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new N,this._afterClosed=new N,this._beforeClosed=new N,this._state=0,e._id=i,e._animationStateChanged.pipe(ca(o=>"opened"===o.state),Ja(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(ca(o=>"closed"===o.state),Ja(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),n.keydownEvents().pipe(ca(o=>27===o.keyCode&&!this.disableClose&&!ql(o))).subscribe(o=>{o.preventDefault(),NX(this,"keyboard")}),n.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():NX(this,"mouse")})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ca(e=>"closing"===e.state),Ja(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(n){let e=this._getPositionStrategy();return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(n="",e=""){return this._overlayRef.updateSize({width:n,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(n){return this._overlayRef.addPanelClass(n),this}removePanelClass(n){return this._overlayRef.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function NX(t,n,e){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=n),t.close(e)}const t2=new ui("MatDialogData"),XOe=new ui("mat-dialog-default-options"),RX=new ui("mat-dialog-scroll-strategy"),ZOe={provide:RX,deps:[$l],useFactory:function QOe(t){return()=>t.scrollStrategies.block()}};let KOe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=u,this._dialogContainerType=f,this._dialogDataToken=w,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N,this._afterOpenedAtThisLevel=new N,this._ariaHiddenElements=new Map,this.afterAllClosed=g9(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sc(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function JOe(t,n){return Object.assign(Object.assign({},n),t)}(i,this._defaultOptions||new Yk),i.id&&this.getDialogById(i.id);const o=this._createOverlay(i),r=this._attachDialogContainer(o,i),a=this._attachDialogContent(e,r,o,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(()=>this._removeOpenDialog(a)),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Lh({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const r=zs.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Yk,useValue:i}]}),a=new uu(this._dialogContainerType,i.viewContainerRef,r,i.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,i,o,r){const a=new this._dialogRefConstructor(o,i,r.id);if(e instanceof Oc)i.attachTemplatePortal(new O6(e,null,{$implicit:r.data,dialogRef:a}));else{const l=this._createInjector(r,a,i),u=i.attachComponentPortal(new uu(e,r.viewContainerRef,l,r.componentFactoryResolver));a.componentInstance=u.instance}return a.updateSize(r.width,r.height).updatePosition(r.position),a}_createInjector(e,i,o){const r=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!r||!r.get(Sl,null,qi.Optional))&&a.push({provide:Sl,useValue:{value:e.direction,change:rr()}}),zs.create({parent:r||this._injector,providers:a})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,r)=>{o?r.setAttribute("aria-hidden",o):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){let r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t}),t})(),iC=(()=>{class t extends KOe{constructor(e,i,o,r,a,l,u,f){super(e,i,r,l,u,a,od,qOe,t2,f)}}return t.\u0275fac=function(e){return new(e||t)(qt($l),qt(zs),qt(J7,8),qt(XOe,8),qt(RX),qt(t,12),qt(gk),qt(E1,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),oC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),rC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),D6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[iC,ZOe],imports:[[Gg,Hf,Xo],Xo]}),t})(),eSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),FX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,eSe,Hf]]}),t})(),VX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Rw,Xo],Rw,Xo]}),t})(),BX=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=no(e)}get inset(){return this._inset}set inset(e){this._inset=no(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Un("aria-orientation",i.vertical?"vertical":"horizontal"),po("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),Uk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();const GX=["*"],sSe=E0($u(class{})),cSe=new ui("MatList");let lSe=(()=>{class t extends sSe{constructor(e){super(),this._elementRef=e,this._stateChanges=new N,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[mo([{provide:cSe,useExisting:t}]),ei,Yo],ngContentSelectors:GX,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),hSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),hM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Rw,Kd,Xo,ik,va],Rw,Xo,ik,Uk]}),t})();const CSe=["mat-menu-item",""];function vSe(t,n){1&t&&(bi(),H(0,"svg",2),Qe(1,"polygon",3),G())}const jX=["*"];function bSe(t,n){if(1&t){const e=Ln();H(0,"div",0),et("keydown",function(o){return Dt(e),Ae()._handleKeydown(o)})("click",function(){return Dt(e),Ae().closed.emit("click")})("@transformMenu.start",function(o){return Dt(e),Ae()._onAnimationStart(o)})("@transformMenu.done",function(o){return Dt(e),Ae()._onAnimationDone(o)}),H(1,"div",1),Vr(2),G()()}if(2&t){const e=Ae();J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Un("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const pM={transformMenu:na("transformMenu",[cr("void",ti({opacity:0,transform:"scale(0.8)"})),Lo("void => enter",Mo("120ms cubic-bezier(0, 0, 0.2, 1)",ti({opacity:1,transform:"scale(1)"}))),Lo("* => void",Mo("100ms 25ms linear",ti({opacity:0})))]),fadeInItems:na("fadeInItems",[cr("showing",ti({opacity:1})),Lo("void => *",[ti({opacity:0}),Mo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xSe=new ui("MatMenuContent"),jk=new ui("MAT_MENU_PANEL"),ySe=$u(E0(class{}));let nl=(()=>{class t extends ySe{constructor(e,i,o,r,a){var l;super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new N,this._focused=new N,this._highlighted=!1,this._triggersSubmenu=!1,null===(l=null==r?void 0:r.addItem)||void 0===l||l.call(r,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=o,this._changeDetectorRef=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xg,this._tabSubscription=Se.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new N,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new In,this.close=this.closed,this.panelId="mat-menu-panel-"+MSe++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=no(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=no(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new $D(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Sc(this._directDescendantItems),Z1(e=>kr(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const o=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=o.activeItem)||void 0===i?void 0:i._hasFocus())){const r=e.toArray(),a=Math.max(0,Math.min(r.length-1,o.activeItemIndex||0));r[a]&&!r[a].disabled?o.setActiveItem(a):o.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Sc(this._directDescendantItems),Z1(i=>kr(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:ql(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){var o;const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Sc(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(WX),de(Xr))},t.\u0275dir=St({type:t,contentQueries:function(e,i,o){if(1&e&&(mr(o,xSe,5),mr(o,nl,5),mr(o,nl,4)),2&e){let r;fi(r=gi())&&(i.lazyContent=r.first),fi(r=gi())&&(i._allItems=r),fi(r=gi())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&_o(Oc,5),2&e){let o;fi(o=gi())&&(i.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),Ql=(()=>{class t extends aC{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(WX),de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Un("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[mo([{provide:jk,useExisting:t}]),ei],ngContentSelectors:jX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(ls(),ke(0,bSe,3,6,"ng-template"))},directives:[ds],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[pM.transformMenu,pM.fadeInItems]},changeDetection:0}),t})();const qX=new ui("mat-menu-scroll-strategy"),SSe={provide:qX,deps:[$l],useFactory:function OSe(t){return()=>t.scrollStrategies.reposition()}},XX=Oh({passive:!0});let PSe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=l,this._dir=u,this._focusMonitor=f,this._ngZone=w,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Se.EMPTY,this._hoverSubscription=Se.EMPTY,this._menuCloseSubscription=Se.EMPTY,this._handleTouchStart=T=>{kw(T)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new In,this.onMenuOpen=this.menuOpened,this.menuClosed=new In,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof aC?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,XX),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,XX),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig(),o=i.positionStrategy;this._setPosition(o),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof aC&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Yn(this.menu.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof aC?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(ca(o=>"void"===o.toState),Ja(1),Yn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Lh({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{const o="start"===i.connectionPair.overlayX?"after":"before",r="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(o,r)):this.menu.setPositionClasses(o,r)})}_setPosition(e){let[i,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[r,a]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[l,u]=[r,a],[f,w]=[i,o],T=0;this.triggersSubmenu()?(w=i="before"===this.menu.xPosition?"start":"end",o=f="end"===i?"start":"end",T="bottom"===r?8:-8):this.menu.overlapTrigger||(l="top"===r?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:i,originY:l,overlayX:f,overlayY:r,offsetY:T},{originX:o,originY:l,overlayX:w,overlayY:r,offsetY:T},{originX:i,originY:u,overlayX:f,overlayY:a,offsetY:-T},{originX:o,originY:u,overlayX:w,overlayY:a,offsetY:-T}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return kr(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:rr(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ca(a=>a!==this._menuItemInstance),ca(()=>this._menuOpen)):rr(),i)}_handleMousedown(e){Dw(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ca(e=>e===this._menuItemInstance&&!e.disabled),kk(0,Ow)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof aC&&this.menu._isAnimating?this.menu._animationDone.pipe(Ja(1),kk(0,Ow),Yn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new O6(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(de($l),de(Ti),de(oc),de(qX),de(jk,8),de(nl,10),de(Sl,8),de(P2),de(oo))},t.\u0275dir=St({type:t,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,i){1&e&&et("click",function(r){return i._handleClick(r)})("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)}),2&e&&Un("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),il=(()=>{class t extends PSe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[ei]}),t})(),k6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[SSe],imports:[[va,Xo,Kd,Gg],T0,Xo]}),t})();const TSe=["trigger"],ESe=["panel"];function ASe(t,n){if(1&t&&(H(0,"span",8),ue(1),G()),2&t){const e=Ae();W(1),qo(e.placeholder)}}function LSe(t,n){if(1&t&&(H(0,"span",12),ue(1),G()),2&t){const e=Ae(2);W(1),qo(e.triggerValue)}}function DSe(t,n){1&t&&Vr(0,0,["*ngSwitchCase","true"])}function kSe(t,n){1&t&&(H(0,"span",9),ke(1,LSe,2,1,"span",10),ke(2,DSe,1,0,"ng-content",11),G()),2&t&&(J("ngSwitch",!!Ae().customTrigger),W(2),J("ngSwitchCase",!0))}function ISe(t,n){if(1&t){const e=Ln();H(0,"div",13)(1,"div",14,15),et("@transformPanel.done",function(o){return Dt(e),Ae()._panelDoneAnimatingStream.next(o.toState)})("keydown",function(o){return Dt(e),Ae()._handleKeydown(o)}),Vr(3,1),G()()}if(2&t){const e=Ae();J("@transformPanelWrap",void 0),W(1),xf("mat-select-panel ",e._getPanelTheme(),""),Br("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Un("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const NSe=[[["mat-select-trigger"]],"*"],RSe=["mat-select-trigger","*"],QX={transformPanelWrap:na("transformPanelWrap",[Lo("* => void",qa("@transformPanel",[Q1()],{optional:!0}))]),transformPanel:na("transformPanel",[cr("void",ti({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),cr("showing",ti({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),cr("showing-multiple",ti({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Lo("void => *",Mo("120ms cubic-bezier(0, 0, 0.2, 1)")),Lo("* => void",Mo("100ms 25ms linear",ti({opacity:0})))])};let ZX=0;const JX=new ui("mat-select-scroll-strategy"),VSe=new ui("MAT_SELECT_CONFIG"),BSe={provide:JX,deps:[$l],useFactory:function HSe(t){return()=>t.scrollStrategies.reposition()}};class GSe{constructor(n,e){this.source=n,this.value=e}}const YSe=$u(Hg(E0(JD(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o}})))),USe=new ui("MatSelectTrigger");let jSe=(()=>{class t extends YSe{constructor(e,i,o,r,a,l,u,f,w,T,U,ie,se,Me){var we,He,Be;super(a,r,u,f,T),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=l,this._parentFormField=w,this._liveAnnouncer=se,this._defaultOptions=Me,this._panelOpen=!1,this._compareWith=(me,ze)=>me===ze,this._uid="mat-select-"+ZX++,this._triggerAriaLabelledBy=null,this._destroy=new N,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ZX++,this._panelDoneAnimatingStream=new N,this._overlayPanelClass=(null===(we=this._defaultOptions)||void 0===we?void 0:we.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Be=null===(He=this._defaultOptions)||void 0===He?void 0:He.disableOptionCentering)&&void 0!==Be&&Be,this.ariaLabel="",this.optionSelectionChanges=g9(()=>{const me=this.options;return me?me.changes.pipe(Sc(me),Z1(()=>kr(...me.map(ze=>ze.onSelectionChange)))):this._ngZone.onStable.pipe(Ja(1),Z1(()=>this.optionSelectionChanges))}),this.openedChange=new In,this._openedStream=this.openedChange.pipe(ca(me=>me),it(()=>{})),this._closedStream=this.openedChange.pipe(ca(me=>!me),it(()=>{})),this.selectionChange=new In,this.valueChange=new In,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Me?void 0:Me.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Me.typeaheadDebounceInterval),this._scrollStrategyFactory=ie,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(U)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(P6.required))&&void 0!==r&&r}set required(e){this._required=no(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=no(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=no(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Vc(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Qu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Cs(),Yn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Yn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Sc(null),Yn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&r&&!ql(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;a.onKeydown(e);const u=this.selected;u&&l!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,a=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!i.activeItem||ql(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const l=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(l?u.select():u.deselect())})}else{const l=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==l&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Ja(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new YW(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Yn(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Yn(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=kr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Yn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),kr(...this.options.map(i=>i._stateChanges)).pipe(Yn(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(de(Lf),de(Xr),de(oo),de(x6),de(Ti),de(Sl,8),de(D0,8),de(Gc,8),de($9,8),de(Dh,10),Yl("tabindex"),de(JX),de(ZD),de(VSe,8))},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&(_o(TSe,5),_o(ESe,5),_o(Qq,5)),2&e){let o;fi(o=gi())&&(i.trigger=o.first),fi(o=gi())&&(i.panel=o.first),fi(o=gi())&&(i._overlayDir=o.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ei,Yo]}),t})(),qg=(()=>{class t extends jSe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,o){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Yn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=ak(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:aq((e+i)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new GSe(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),r=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let f=this._selectionModel.selected[0]||this.options.first;a=f&&f.group?32:16}o||(a*=-1);const l=0-(e.left+a-(o?r:0)),u=e.right+a-i.width+(o?0:r);l>0?a+=l+8:u>0&&(a-=u+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,l=Math.floor(256/r);let u;return this.disableOptionCentering?0:(u=0===this._scrollTop?e*r:this._scrollTop===o?(e-(this._getItemCount()-l))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*u-a))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,a=o.height-this._triggerRect.bottom-8,l=Math.abs(this._offsetY),f=Math.min(this._getItemCount()*i,256)-l-this._triggerRect.height;f>a?this._adjustPanelUp(f,a):l>r?this._adjustPanelDown(l,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),a=i*e-o;let l;l=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),l+=ak(l,this.options,this.optionGroups);const u=o/2;this._scrollTop=this._calculateOverlayScroll(l,u,a),this._offsetY=this._calculateOverlayOffsetY(l,u,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,USe,5),mr(o,J1,5),mr(o,rk,5)),2&e){let r;fi(r=gi())&&(i.customTrigger=r.first),fi(r=gi())&&(i.options=r),fi(r=gi())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&et("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Un("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),po("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[mo([{provide:q9,useExisting:t},{provide:ok,useExisting:t}]),ei],ngContentSelectors:RSe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(ls(NSe),H(0,"div",0,1),et("click",function(){return i.toggle()}),H(3,"div",2),ke(4,ASe,2,1,"span",3),ke(5,kSe,3,2,"span",4),G(),H(6,"div",5),Qe(7,"div",6),G()(),ke(8,ISe,4,14,"ng-template",7),et("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=Di(1);Un("aria-owns",i.panelOpen?i.id+"-panel":null),W(3),J("ngSwitch",i.empty),Un("id",i._valueId),W(1),J("ngSwitchCase",!0),W(1),J("ngSwitchCase",!1),W(3),J("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[Xq,bd,iu,nU,Qq,ds],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[QX.transformPanelWrap,QX.transformPanel]},changeDetection:0}),t})(),Wk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[BSe],imports:[[va,Gg,zw,Xo],T0,jg,zw,Xo]}),t})();const eQ=new Set;let N6,WSe=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$Se}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function qSe(t){if(!eQ.has(t))try{N6||(N6=document.createElement("style"),N6.setAttribute("type","text/css"),document.head.appendChild(N6)),N6.sheet&&(N6.sheet.insertRule(`@media ${t} {body{ }}`,0),eQ.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function $Se(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let qk=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new N}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return tQ(xw(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=h9(tQ(xw(e)).map(a=>this._registerQuery(a).observable));return r=f9(r.pipe(Ja(1)),r.pipe(RW(1),Ks(0))),r.pipe(it(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:f})=>{l.matches=l.matches||u,l.breakpoints[f]=u}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new Wt(a=>{const l=u=>this._zone.run(()=>a.next(u));return i.addListener(l),()=>{i.removeListener(l)}}).pipe(Sc(i),it(({matches:a})=>({query:e,matches:a})),Yn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(qt(WSe),qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function tQ(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const XSe=["tooltip"],iQ="tooltip-panel",oQ=Oh({passive:!0}),rQ=new ui("mat-tooltip-scroll-strategy"),JSe={provide:rQ,deps:[$l],useFactory:function KSe(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},ePe=new ui("mat-tooltip-default-options",{providedIn:"root",factory:function tPe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let nPe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T,U,ie){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=l,this._ariaDescriber=u,this._focusMonitor=f,this._dir=T,this._defaultOptions=U,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new N,this._scrollStrategy=w,this._document=ie,U&&(U.position&&(this.position=U.position),U.touchGestures&&(this.touchGestures=U.touchGestures)),T.change.pipe(Yn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=no(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Vc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Vc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Yn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,oQ)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new uu(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Yn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Yn(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${iQ}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Yn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Yn(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Yn(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ql(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(e=this._defaultOptions)||void 0===e?void 0:e.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),r.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Ja(1),Yn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const u=`${this._cssClassPrefix}-${iQ}-`;l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var o;const r=i.relatedTarget;(!r||!(null===(o=this._overlayRef)||void 0===o?void 0:o.overlayElement.contains(r)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,oQ)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Tl=(()=>{class t extends nPe{constructor(e,i,o,r,a,l,u,f,w,T,U,ie){super(e,i,o,r,a,l,u,f,w,T,U,ie),this._tooltipComponent=oPe}}return t.\u0275fac=function(e){return new(e||t)(de($l),de(Ti),de(D9),de(oc),de(oo),de(rc),de(Bbe),de(P2),de(rQ),de(Sl,8),de(ePe,8),de(vr))},t.\u0275dir=St({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[ei]}),t})(),iPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new N,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(de(Xr),de(E1,8))},t.\u0275dir=St({type:t}),t})(),oPe=(()=>{class t extends iPe{constructor(e,i,o){super(e,o),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(de(Xr),de(qk),de(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&_o(XSe,7),2&e){let o;fi(o=gi())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&et("mouseleave",function(r){return i._handleMouseLeave(r)}),2&e&&Br("zoom",i.isVisible()?1:null)},features:[ei],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(H(0,"div",0,1),et("animationend",function(r){return i._handleAnimationEnd(r)}),y0(2,"async"),ue(3),G()),2&e){let o;po("mat-tooltip-handset",null==(o=bg(2,4,i._isHandset))?null:o.matches),J("ngClass",i.tooltipClass),W(3),qo(i.message)}},directives:[ds],pipes:[Iy],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),t})(),R6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[JSe],imports:[[Nw,va,Gg,Xo],Xo,T0]}),t})();function rPe(t,n){if(1&t&&(H(0,"mat-option",19),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e," ")}}function aPe(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",16)(1,"mat-select",17),et("selectionChange",function(o){return Dt(e),Ae(2)._changePageSize(o.value)}),ke(2,rPe,2,2,"mat-option",18),G()()}if(2&t){const e=Ae(2);J("appearance",e._formFieldAppearance)("color",e.color),W(1),J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),W(1),J("ngForOf",e._displayedPageSizeOptions)}}function sPe(t,n){if(1&t&&(H(0,"div",20),ue(1),G()),2&t){const e=Ae(2);W(1),qo(e.pageSize)}}function cPe(t,n){if(1&t&&(H(0,"div",12)(1,"div",13),ue(2),G(),ke(3,aPe,3,6,"mat-form-field",14),ke(4,sPe,2,1,"div",15),G()),2&t){const e=Ae();W(2),Nt(" ",e._intl.itemsPerPageLabel," "),W(1),J("ngIf",e._displayedPageSizeOptions.length>1),W(1),J("ngIf",e._displayedPageSizeOptions.length<=1)}}function lPe(t,n){if(1&t){const e=Ln();H(0,"button",21),et("click",function(){return Dt(e),Ae().firstPage()}),bi(),H(1,"svg",7),Qe(2,"path",22),G()()}if(2&t){const e=Ae();J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Un("aria-label",e._intl.firstPageLabel)}}function dPe(t,n){if(1&t){const e=Ln();bi(),gd(),H(0,"button",23),et("click",function(){return Dt(e),Ae().lastPage()}),bi(),H(1,"svg",7),Qe(2,"path",24),G()()}if(2&t){const e=Ae();J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Un("aria-label",e._intl.lastPageLabel)}}let z6=(()=>{class t{constructor(){this.changes=new N,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} of ${o}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hPe={provide:z6,deps:[[new a1,new jd,z6]],useFactory:function uPe(t){return t||new z6}},fPe=new ui("MAT_PAGINATOR_DEFAULT_OPTIONS"),gPe=E0(ZW(class{}));let mPe=(()=>{class t extends gPe{constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new In,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:r,pageSizeOptions:a,hidePageSize:l,showFirstLastButtons:u}=o;null!=r&&(this._pageSize=r),null!=a&&(this._pageSizeOptions=a),null!=l&&(this._hidePageSize=l),null!=u&&(this._showFirstLastButtons=u)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Vc(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Vc(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Vc(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Vc(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=no(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=no(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[ei]}),t})(),_Pe=(()=>{class t extends mPe{constructor(e,i,o){super(e,i,o),o&&null!=o.formFieldAppearance&&(this._formFieldAppearance=o.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(de(z6),de(Xr),de(fPe,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ei],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1),ke(2,cPe,5,3,"div",2),H(3,"div",3)(4,"div",4),ue(5),G(),ke(6,lPe,3,5,"button",5),H(7,"button",6),et("click",function(){return i.previousPage()}),bi(),H(8,"svg",7),Qe(9,"path",8),G()(),gd(),H(10,"button",9),et("click",function(){return i.nextPage()}),bi(),H(11,"svg",7),Qe(12,"path",10),G()(),ke(13,dPe,3,5,"button",11),G()()()),2&e&&(W(2),J("ngIf",!i.hidePageSize),W(3),Nt(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),W(1),J("ngIf",i.showFirstLastButtons),W(1),J("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Un("aria-label",i._intl.previousPageLabel),W(3),J("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Un("aria-label",i._intl.nextPageLabel),W(3),J("ngIf",i.showFirstLastButtons))},directives:[id,qg,J1,Fo,Yi,$o,Tl],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),cC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[hPe],imports:[[va,du,Wk,R6,Xo]]}),t})();function CPe(t,n){if(1&t&&(bi(),Qe(0,"circle",4)),2&t){const e=Ae(),i=Di(1);Br("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Un("r",e._getCircleRadius())}}function vPe(t,n){if(1&t&&(bi(),Qe(0,"circle",4)),2&t){const e=Ae(),i=Di(1);Br("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Un("r",e._getCircleRadius())}}const xPe=Ph(class{constructor(t){this._elementRef=t}},"primary"),yPe=new ui("mat-progress-spinner-default-options",{providedIn:"root",factory:function wPe(){return{diameter:100}}});class Xp extends xPe{constructor(n,e,i,o,r,a,l,u){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=Se.EMPTY,this.mode="determinate";const f=Xp._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),f.has(i.head)||f.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&a&&u&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&u.run(()=>a.markForCheck())}))}get diameter(){return this._diameter}set diameter(n){this._diameter=Vc(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Vc(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Vc(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=Pw(n)||this._document.head,this._attachStyleNode(),n.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(n){var e;const i=50*(null!==(e=n.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=Xp._diameters;let o=i.get(n);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),o||(o=new Set,i.set(n,o)),o.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Xp._diameters=new WeakMap,Xp.\u0275fac=function(n){return new(n||Xp)(de(Ti),de(rc),de(vr,8),de(E1,8),de(yPe),de(Xr),de(Lf),de(oo))},Xp.\u0275cmp=vn({type:Xp,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(Un("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Br("width",e.diameter,"px")("height",e.diameter,"px"),po("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[ei],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(bi(),H(0,"svg",0,1),ke(2,CPe,1,11,"circle",2),ke(3,vPe,1,9,"circle",3),G()),2&n&&(Br("width",e.diameter,"px")("height",e.diameter,"px"),J("ngSwitch","indeterminate"===e.mode),Un("viewBox",e._getViewBox()),W(2),J("ngSwitchCase",!0),W(1),J("ngSwitchCase",!1))},directives:[bd,iu],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let lC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo,va],Xo]}),t})();const OPe=["input"],SPe=function(t){return{enterDuration:t}},PPe=["*"],TPe=new ui("mat-radio-default-options",{providedIn:"root",factory:function EPe(){return{color:"accent"}}});let aQ=0;const APe={provide:L1,useExisting:nt(()=>gM),multi:!0};class sQ{constructor(n,e){this.source=n,this.value=e}}const cQ=new ui("MatRadioGroup");let LPe=(()=>{class t{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+aQ++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new In}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=no(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=no(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new sQ(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(de(Xr))},t.\u0275dir=St({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})(),gM=(()=>{class t extends LPe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,i,o){if(1&e&&mr(o,mM,5),2&e){let r;fi(r=gi())&&(i._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[mo([APe,{provide:cQ,useExisting:t}]),ei]}),t})();class DPe{constructor(n){this._elementRef=n}}const kPe=$u(Hg(DPe));let IPe=(()=>{class t extends kPe{constructor(e,i,o,r,a,l,u,f){super(i),this._changeDetector=o,this._focusMonitor=r,this._radioDispatcher=a,this._providerOverride=u,this._uniqueId="mat-radio-"+ ++aQ,this.id=this._uniqueId,this.change=new In,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===l,f&&(this.tabIndex=Vc(f,0)),this._removeUniqueSelectionListener=a.listen((w,T)=>{w!==this.id&&T===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const i=no(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(no(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=no(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new sQ(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){var e;const i=this.radioGroup;let o;if(o=i&&i.selected&&!this.disabled?i.selected===this?this.tabIndex:-1:this.tabIndex,o!==this._previousTabIndex){const r=null===(e=this._inputElement)||void 0===e?void 0:e.nativeElement;r&&(r.setAttribute("tabindex",o+""),this._previousTabIndex=o)}}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&_o(OPe,5),2&e){let o;fi(o=gi())&&(i._inputElement=o.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[ei]}),t})(),mM=(()=>{class t extends IPe{constructor(e,i,o,r,a,l,u,f){super(e,i,o,r,a,l,u,f)}}return t.\u0275fac=function(e){return new(e||t)(de(cQ,8),de(Ti),de(Xr),de(P2),de(LMe),de(E1,8),de(TPe,8),Yl("tabindex"))},t.\u0275cmp=vn({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,i){1&e&&et("focus",function(){return i._inputElement.nativeElement.focus()}),2&e&&(Un("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),po("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ei],ngContentSelectors:PPe,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,i){if(1&e&&(ls(),H(0,"label",0,1)(2,"span",2),Qe(3,"span",3)(4,"span",4),H(5,"input",5,6),et("change",function(r){return i._onInputInteraction(r)})("click",function(r){return i._onInputClick(r)}),G(),H(7,"span",7),Qe(8,"span",8),G()(),H(9,"span",9)(10,"span",10),ue(11,"\xa0"),G(),Vr(12),G()()),2&e){const o=Di(1);Un("for",i.inputId),W(5),J("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),Un("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),W(2),J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",wo(17,SPe,i._noopAnimations?0:150)),W(2),po("mat-radio-label-before","before"==i.labelPosition)}},directives:[Th],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),dC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,Xo],Xo]}),t})(),lQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),_M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[lQ,Kd,Xo,z9],lQ,Xo]}),t})(),hQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo],Xo]}),t})();function oTe(t,n){if(1&t){const e=Ln();H(0,"div",2)(1,"button",3),et("click",function(){return Dt(e),Ae().action()}),ue(2),G()()}if(2&t){const e=Ae();W(2),qo(e.data.action)}}function rTe(t,n){}const pQ=new ui("MatSnackBarData");class CM{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const aTe=Math.pow(2,31)-1;class Qk{constructor(n,e){this._overlayRef=e,this._afterDismissed=new N,this._afterOpened=new N,this._onAction=new N,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,aTe))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let sTe=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(de(Qk),de(pQ))},t.\u0275cmp=vn({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(H(0,"span",0),ue(1),G(),ke(2,oTe,3,1,"div",1)),2&e&&(W(1),qo(i.data.message),W(1),J("ngIf",i.hasAction))},directives:[Fo,Yi],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const cTe={snackBarState:na("state",[cr("void, hidden",ti({transform:"scale(0.8)",opacity:0})),cr("visible",ti({transform:"scale(1)",opacity:1})),Lo("* => visible",Mo("150ms cubic-bezier(0, 0, 0.2, 1)")),Lo("* => void, * => hidden",Mo("75ms cubic-bezier(0.4, 0.0, 1, 1)",ti({opacity:0})))])};let lTe=(()=>{class t extends $w{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new N,this._onExit=new N,this._onEnter=new N,this._animationState="void",this.attachDomPortal=l=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(l)),this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Ja(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Ti),de(Xr),de(rc),de(CM))},t.\u0275cmp=vn({type:t,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&_o(S6,7),2&e){let o;fi(o=gi())&&(i._portalOutlet=o.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&o6("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&a6("@state",i._animationState)},features:[ei],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,rTe,0,0,"ng-template",1),G(),Qe(2,"div")),2&e&&(W(2),Un("aria-live",i._live)("role",i._role))},directives:[S6],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[cTe.snackBarState]}}),t})(),F6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Gg,Hf,va,du,Xo],Xo]}),t})();const fQ=new ui("mat-snack-bar-default-options",{providedIn:"root",factory:function dTe(){return new CM}});let uTe=(()=>{class t{constructor(e,i,o,r,a,l){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=l,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r=Object.assign(Object.assign({},this._defaultConfig),o);return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=zs.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:CM,useValue:i}]}),a=new uu(this.snackBarContainerComponent,i.viewContainerRef,r),l=e.attach(a);return l.instance.snackBarConfig=i,l.instance}_attach(e,i){const o=Object.assign(Object.assign(Object.assign({},new CM),this._defaultConfig),i),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),l=new Qk(a,r);if(e instanceof Oc){const u=new O6(e,null,{$implicit:o.data,snackBarRef:l});l.instance=a.attachTemplatePortal(u)}else{const u=this._createInjector(o,l),f=new uu(e,void 0,u),w=a.attachComponentPortal(f);l.instance=w.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Yn(r.detachments())).subscribe(u=>{r.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Lh;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,l=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return zs.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Qk,useValue:i},{provide:pQ,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(qt($l),qt(ZD),qt(zs),qt(qk),qt(t,12),qt(fQ))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),vM=(()=>{class t extends uTe{constructor(e,i,o,r,a,l){super(e,i,o,r,a,l),this.simpleSnackBarComponent=sTe,this.snackBarContainerComponent=lTe,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(qt($l),qt(ZD),qt(zs),qt(qk),qt(t,12),qt(fQ))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:F6}),t})(),Zk=(()=>{class t{constructor(){this.changes=new N}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const pTe={provide:Zk,deps:[[new a1,new jd,Zk]],useFactory:function hTe(t){return t||new Zk}},fTe=new ui("MAT_SORT_DEFAULT_OPTIONS"),gTe=ZW(E0(class{}));let gQ=(()=>{class t extends gTe{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new N,this.start="asc",this._direction="",this.sortChange=new In}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=no(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,o,r;if(!e)return"";const a=null!==(o=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==o?o:!!(null===(r=this._defaultOptions)||void 0===r?void 0:r.disableClear);let l=function mTe(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,a),u=l.indexOf(this.direction)+1;return u>=l.length&&(u=0),l[u]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(fTe,8))},t.\u0275dir=St({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ei,Yo]}),t})(),mQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[pTe],imports:[[va,Xo]]}),t})(),_Te=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Af]]}),t})(),Kk=(()=>{class t{constructor(){this.changes=new N,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const TTe={provide:Kk,deps:[[new a1,new jd,Kk]],useFactory:function PTe(t){return t||new Kk}};let CQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[TTe,x6],imports:[[Xo,va,Hf,du,_Te,L0,Kd],Xo]}),t})();function Jk(t){return!!t&&(t instanceof Wt||_e(t.lift)&&_e(t.subscribe))}const ETe=[[["caption"]],[["colgroup"],["col"]]],ATe=["caption","colgroup, col"];function eI(t){return class extends t{constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=no(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}}}const H6=new ui("CDK_TABLE");let qf=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkCellDef",""]]}),t})(),$f=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),bM=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class ITe{}const NTe=eI(ITe);let Ih=(()=>{class t extends NTe{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=no(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(de(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,o){if(1&e&&(mr(o,qf,5),mr(o,$f,5),mr(o,bM,5)),2&e){let r;fi(r=gi())&&(i.cell=r.first),fi(r=gi())&&(i.headerCell=r.first),fi(r=gi())&&(i.footerCell=r.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[mo([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ei]}),t})();class tI{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let nI=(()=>{class t extends tI{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(de(Ih),de(Ti))},t.\u0275dir=St({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ei]}),t})(),iI=(()=>{class t extends tI{constructor(e,i){var o;if(super(e,i),1===(null===(o=e._table)||void 0===o?void 0:o._elementRef.nativeElement.nodeType)){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(de(Ih),de(Ti))},t.\u0275dir=St({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ei]}),t})();class bQ{constructor(){this.tasks=[],this.endTasks=[]}}const oI=new ui("_COALESCED_STYLE_SCHEDULER");let xQ=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new N}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new bQ,this._getScheduleObservable().pipe(Yn(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new bQ;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Ra(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Ja(1))}}return t.\u0275fac=function(e){return new(e||t)(qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),rI=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof hC?e.headerCell.template:this instanceof pC?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(de(Oc),de(nu))},t.\u0275dir=St({type:t,features:[Yo]}),t})();class RTe extends rI{}const zTe=eI(RTe);let hC=(()=>{class t extends zTe{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Oc),de(nu),de(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ei,Yo]}),t})();class FTe extends rI{}const HTe=eI(FTe);let pC=(()=>{class t extends HTe{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Oc),de(nu),de(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ei,Yo]}),t})(),xM=(()=>{class t extends rI{constructor(e,i,o){super(e,i),this._table=o}}return t.\u0275fac=function(e){return new(e||t)(de(Oc),de(nu),de(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ei]}),t})(),Qp=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(de(oc))},t.\u0275dir=St({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),aI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Qp],encapsulation:2}),t})(),cI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Qp],encapsulation:2}),t})(),yM=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(de(Oc))},t.\u0275dir=St({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const yQ=["top","bottom","left","right"];class VTe{constructor(n,e,i,o,r=!0,a=!0,l){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const o of n)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let r=0;r{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(n,e,i,o=!0){if(!n.length||!this._isBrowser||!e.some(U=>U)&&!i.some(U=>U))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],a=r.children.length,l=this._getCellWidths(r,o),u=this._getStickyStartColumnPositions(l,e),f=this._getStickyEndColumnPositions(l,i),w=e.lastIndexOf(!0),T=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const U="rtl"===this.direction,ie=U?"right":"left",se=U?"left":"right";for(const Me of n)for(let we=0;wee[we]?Me:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===T?[]:l.slice(T).map((Me,we)=>i[we+T]?Me:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const o="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,a=[],l=[],u=[];for(let w=0,T=0;w{var w,T;for(let U=0;U{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);yQ.some(o=>-1===e.indexOf(o)&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of yQ)n.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=o,o+=n[r]);return i}}const lI=new ui("CDK_SPL");let wM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Ti))},t.\u0275dir=St({type:t,selectors:[["","rowOutlet",""]]}),t})(),MM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Ti))},t.\u0275dir=St({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),OM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Ti))},t.\u0275dir=St({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),SM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(Ti))},t.\u0275dir=St({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),PM=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T,U,ie){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=w,this._viewportRuler=T,this._stickyPositioningListener=U,this._ngZone=ie,this._onDestroy=new N,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new In,this.viewChange=new Io({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=no(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=no(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Yn(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),lM(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&oo.isInAngularZone()?this._ngZone.onStable.pipe(Ja(1),Yn(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const r=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const r=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{const a=[];for(let l=0;l{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const l=o&&o.has(a)?o.get(a):[];if(l.length){const u=l.shift();return u.dataIndex=i,u}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),TM(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=TM(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=TM(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=TM(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,l)=>a||!!l.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||o||r}_switchDataSource(e){this._data=[],lM(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;lM(this.dataSource)?e=this.dataSource.connect(this):Jk(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=rr(this.dataSource)),this._renderChangeSubscription=e.pipe(Yn(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const o=Array.from(i.columns||[]).map(l=>this._columnDefsByName.get(l)),r=o.map(l=>l.sticky),a=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!r.when||r.when(i,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;r&&o.push(r)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,r={}){const a=e.viewContainer.createEmbeddedView(i.template,r,o);return this._renderCellTemplateForItem(i,r),a}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))Qp.mostRecentCellOutlet&&Qp.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of i){const r=this._document.createElement(o.tag);r.setAttribute("role","rowgroup");for(const a of o.outlets)r.appendChild(a.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new VTe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:rr()).pipe(Yn(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(i){const r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];1===r.rootNodes.length&&(null==a?void 0:a.nodeType)===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}return t.\u0275fac=function(e){return new(e||t)(de(nu),de(Xr),de(Ti),Yl("role"),de(Sl,8),de(vr),de(rc),de(Q9),de(oI),de(Lf),de(lI,12),de(oo,8))},t.\u0275cmp=vn({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,o){if(1&e&&(mr(o,yM,5),mr(o,Ih,5),mr(o,xM,5),mr(o,hC,5),mr(o,pC,5)),2&e){let r;fi(r=gi())&&(i._noDataRow=r.first),fi(r=gi())&&(i._contentColumnDefs=r),fi(r=gi())&&(i._contentRowDefs=r),fi(r=gi())&&(i._contentHeaderRowDefs=r),fi(r=gi())&&(i._contentFooterRowDefs=r)}},viewQuery:function(e,i){if(1&e&&(_o(wM,7),_o(MM,7),_o(OM,7),_o(SM,7)),2&e){let o;fi(o=gi())&&(i._rowOutlet=o.first),fi(o=gi())&&(i._headerRowOutlet=o.first),fi(o=gi())&&(i._footerRowOutlet=o.first),fi(o=gi())&&(i._noDataRowOutlet=o.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&po("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[mo([{provide:H6,useExisting:t},{provide:Q9,useClass:aX},{provide:oI,useClass:xQ},{provide:lI,useValue:null}])],ngContentSelectors:ATe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(ls(ETe),Vr(0),Vr(1,1),Fc(2,0)(3,1)(4,2)(5,3))},directives:[MM,wM,SM,OM],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function TM(t,n){return t.concat(Array.from(n))}let dI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[I9]]}),t})();const GTe=[[["caption"]],[["colgroup"],["col"]]],YTe=["caption","colgroup, col"];let $g=(()=>{class t extends PM{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[mo([{provide:Q9,useClass:aX},{provide:PM,useExisting:t},{provide:H6,useExisting:t},{provide:oI,useClass:xQ},{provide:lI,useValue:null}]),ei],ngContentSelectors:YTe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(ls(GTe),Vr(0),Vr(1,1),Fc(2,0)(3,1)(4,2)(5,3))},directives:[MM,wM,SM,OM],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})(),Xf=(()=>{class t extends qf{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matCellDef",""]],features:[mo([{provide:qf,useExisting:t}]),ei]}),t})(),Qf=(()=>{class t extends $f{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matHeaderCellDef",""]],features:[mo([{provide:$f,useExisting:t}]),ei]}),t})(),Zf=(()=>{class t extends Ih{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[mo([{provide:Ih,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ei]}),t})(),Kf=(()=>{class t extends nI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ei]}),t})(),Jf=(()=>{class t extends iI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ei]}),t})(),Xg=(()=>{class t extends hC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[mo([{provide:hC,useExisting:t}]),ei]}),t})(),Qg=(()=>{class t extends xM{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[mo([{provide:xM,useExisting:t}]),ei]}),t})(),Zg=(()=>{class t extends aI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[mo([{provide:aI,useExisting:t}]),ei],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Qp],encapsulation:2}),t})(),Kg=(()=>{class t extends cI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[mo([{provide:cI,useExisting:t}]),ei],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Qp],encapsulation:2}),t})(),fC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[dI,Xo],Xo]}),t})();class eEe extends rX{constructor(n=[]){super(),this._renderData=new Io([]),this._filter=new Io(""),this._internalPageChanges=new N,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(SW(o)){const r=Number(o);return r<9007199254740991?r:o}return o},this.sortData=(e,i)=>{const o=i.active,r=i.direction;return o&&""!=r?e.sort((a,l)=>{let u=this.sortingDataAccessor(a,o),f=this.sortingDataAccessor(l,o);const w=typeof u,T=typeof f;w!==T&&("number"===w&&(u+=""),"number"===T&&(f+=""));let U=0;return null!=u&&null!=f?u>f?U=1:u{const o=Object.keys(e).reduce((a,l)=>a+e[l]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=o.indexOf(r)},this._data=new Io(n),this._updateChangeSubscription()}get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_updateChangeSubscription(){var n;const e=this._sort?kr(this._sort.sortChange,this._sort.initialized):rr(null),i=this._paginator?kr(this._paginator.page,this._internalPageChanges,this._paginator.initialized):rr(null),r=h9([this._data,this._filter]).pipe(it(([u])=>this._filterData(u))),a=h9([r,e]).pipe(it(([u])=>this._orderData(u))),l=h9([a,i]).pipe(it(([u])=>this._pageData(u)));null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=l.subscribe(u=>this._renderData.next(u))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var n;null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=null}}class EM extends eEe{}let MQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,Hf,Kd,z9,Nw],Xo]}),t})();const rEe=["*",[["mat-toolbar-row"]]],aEe=["*","mat-toolbar-row"],sEe=Ph(class{constructor(t){this._elementRef=t}});let Zp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Kp=(()=>{class t extends sEe{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(rc),de(vr))},t.\u0275cmp=vn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,o){if(1&e&&mr(o,Zp,5),2&e){let r;fi(r=gi())&&(i._toolbarRows=r)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&po("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ei],ngContentSelectors:aEe,decls:2,vars:0,template:function(e,i){1&e&&(ls(rEe),Vr(0),Vr(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),uI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})(),OQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Nw,Xo],Xo]}),t})(),SQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[X9,du,Z9,hX,mX,K9,nC,D6,FX,jg,VX,L0,J9,hM,k6,KW,cC,qw,lC,dC,Kd,Wk,zf,hQ,_M,F6,CQ,mQ,fC,MQ,uI,R6,dI,OQ],X9,du,Z9,hX,mX,K9,nC,D6,FX,VX,L0,J9,hM,k6,KW,cC,qw,lC,dC,Kd,Wk,zf,hQ,_M,F6,CQ,mQ,fC,MQ,uI,R6,dI,OQ]}),t})(),pEe=(()=>{class t extends el{constructor(e,i,o,r,a,l,u){super(e,null,i,o),this.ngClassInstance=u,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new ds(r,a,e,l)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Pc),de(Bc),de(nu),de(Mf),de(yl),de(ds,10))},t.\u0275dir=St({type:t,inputs:{klass:["class","klass"]},features:[ei]}),t})();const fEe=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ac=(()=>{class t extends pEe{constructor(){super(...arguments),this.inputs=fEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[ei]}),t})();class vEe{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function PQ(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function EQ(t){const[n,...e]=t.split(":");return new vEe(n,e.join(":"))}function AQ(t,n){return n.key&&(t[n.key]=n.value),t}let yEe=(()=>{class t extends el{constructor(e,i,o,r,a,l,u,f,w){var T;super(e,null,i,o),this.sanitizer=r,this.ngStyleInstance=u,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Og(e,a,l)),this.init();const U=null!==(T=this.nativeElement.getAttribute("style"))&&void 0!==T?T:"";this.fallbackStyles=this.buildStyleMap(U),this.isServer=f&&ou(w)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=o=>{var r;return null!==(r=this.sanitizer.sanitize(Za.STYLE,o))&&void 0!==r?r:""};if(e)switch(PQ(e)){case"string":return LQ(function bEe(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return LQ(e,i);default:return function TQ(t,n){let e=[];return"set"===PQ(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function xEe(t,n){return t.map(EQ).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(AQ,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Pc),de(Bc),de(r9),de(Mf),de(yl),de(Og,10),de(y6),de(Hc))},t.\u0275dir=St({type:t,features:[ei]}),t})();const wEe=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let pI=(()=>{class t extends yEe{constructor(){super(...arguments),this.inputs=wEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[ei]}),t})();function LQ(t,n){return t.map(EQ).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(AQ,{})}let DQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[lk]]}),t})(),MEe=(()=>{class t extends dl{buildStyles(e,{display:i}){const o=pq(e);return Object.assign(Object.assign({},o),{display:"none"===i?i:o.display})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const OEe=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let SEe=(()=>{class t extends el{constructor(e,i,o,r,a){super(e,o,i,r),this._config=a,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=kQ.get(r))&&void 0!==i?i:new Map,kQ.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Pc),de(MEe),de(Bc),de(Eh))},t.\u0275dir=St({type:t,features:[ei]}),t})(),Oo=(()=>{class t extends SEe{constructor(){super(...arguments),this.inputs=OEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[ei]}),t})();const kQ=new Map;let FEe=(()=>{class t extends dl{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[o,r,...a]=e.split(" "),l=a.join(" ");const u=i.direction.indexOf("column")>-1?"column":"row",f=H9(u)?"max-width":"max-height",w=H9(u)?"min-width":"min-height",T=String(l).indexOf("calc")>-1,U=T||"auto"===l,ie=String(l).indexOf("%")>-1&&!T,se=String(l).indexOf("px")>-1||String(l).indexOf("rem")>-1||String(l).indexOf("em")>-1||String(l).indexOf("vw")>-1||String(l).indexOf("vh")>-1;let Me=T||se;o="0"==o?0:o,r="0"==r?0:r;const we=!o&&!r;let He={};const Be={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(l||""){case"":const me=!1!==this.layoutConfig.useColumnBasisZero;l="row"===u?"0%":me?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,l="auto";break;case"grow":l="100%";break;case"noshrink":r=0,l="auto";break;case"auto":break;case"none":o=0,r=0,l="auto";break;default:!Me&&!ie&&!isNaN(l)&&(l+="%"),"0%"===l&&(Me=!0),"0px"===l&&(l="0%"),He=Wp(Be,T?{"flex-grow":o,"flex-shrink":r,"flex-basis":Me?l:"100%"}:{flex:`${o} ${r} ${Me?l:"100%"}`})}return He.flex||He["flex-grow"]||(He=Wp(Be,T?{"flex-grow":o,"flex-shrink":r,"flex-basis":l}:{flex:`${o} ${r} ${l}`})),"0%"!==l&&"0px"!==l&&"0.000000001px"!==l&&"auto"!==l&&(He[w]=we||Me&&o?l:null,He[f]=we||!U&&r?l:null),He[w]||He[f]?i.hasWrap&&(He[T?"flex-basis":"flex"]=He[f]?T?He[f]:`${o} ${r} ${He[f]}`:T?He[w]:`${o} ${r} ${He[w]}`):He=Wp(Be,T?{"flex-grow":o,"flex-shrink":r,"flex-basis":l}:{flex:`${o} ${r} ${l}`}),Wp(He,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(qt(Eh))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const HEe=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let VEe=(()=>{class t extends el{constructor(e,i,o,r,a){super(e,r,i,a),this.layoutConfig=o,this.marshal=a,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Yn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Yn(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const o=e.value.split(" ");this.direction=o[0],this.wrap=void 0!==o[1]&&"wrap"===o[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const o=this.direction,r=o.startsWith("row"),a=this.wrap;r&&a?this.styleCache=YEe:r&&!a?this.styleCache=BEe:!r&&a?this.styleCache=UEe:!r&&!a&&(this.styleCache=GEe);const u=Sq(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(u.join(" "),{direction:o,hasWrap:a})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=Sq(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Pc),de(Eh),de(FEe),de(Bc))},t.\u0275dir=St({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[ei]}),t})(),ko=(()=>{class t extends VEe{constructor(){super(...arguments),this.inputs=HEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[ei]}),t})();const BEe=new Map,GEe=new Map,YEe=new Map,UEe=new Map;let pAe=(()=>{class t extends dl{buildStyles(e,i){const o={},[r,a]=e.split(" ");switch(r){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;default:o["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;default:o["align-items"]=o["align-content"]="stretch"}return Wp(o,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===a?H9(i.layout)?null:"100%":null,"max-height":"stretch"===a&&H9(i.layout)?"100%":null})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fAe=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let gAe=(()=>{class t extends el{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Yn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",o=this.inline;"row"===i&&o?this.styleCache=bAe:"row"!==i||o?"row-reverse"===i&&o?this.styleCache=yAe:"row-reverse"!==i||o?"column"===i&&o?this.styleCache=xAe:"column"!==i||o?"column-reverse"===i&&o?this.styleCache=wAe:"column-reverse"===i&&!o&&(this.styleCache=vAe):this.styleCache=_Ae:this.styleCache=CAe:this.styleCache=mAe,this.addStyles(e,{layout:i,inline:o})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),Vw.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Pc),de(pAe),de(Bc))},t.\u0275dir=St({type:t,features:[ei]}),t})(),So=(()=>{class t extends gAe{constructor(){super(...arguments),this.inputs=fAe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[ei]}),t})();const mAe=new Map,_Ae=new Map,CAe=new Map,vAe=new Map,bAe=new Map,xAe=new Map,yAe=new Map,wAe=new Map;let RQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[lk,Af]]}),t})(),UQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[lk]]}),t})(),LM=(()=>{class t{constructor(e,i){ou(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Eh,useValue:Object.assign(Object.assign({},dk),e)},{provide:uk,useValue:i,multi:!0},{provide:y6,useValue:!0}]:[{provide:Eh,useValue:Object.assign(Object.assign({},dk),e)},{provide:uk,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(qt(y6),qt(Hc))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[RQ,DQ,UQ],RQ,DQ,UQ]}),t})(),jQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[]]}),t})(),WQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[]]}),t})();function fI(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const o=n[i];o?t.setProperty(i,o,(null==e?void 0:e.has(i))?"important":""):t.removeProperty(i)}return t}function V6(t,n){const e=n?"":"none";fI(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function qQ(t,n,e){fI(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function DM(t,n){return n&&"none"!=n?t+" "+n:t}function $Q(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function gI(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function mI(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function _I(t,n,e){const{top:i,bottom:o,left:r,right:a}=t;return e>=i&&e<=o&&n>=r&&n<=a}function gC(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function XQ(t,n,e,i){const{top:o,right:r,bottom:a,left:l,width:u,height:f}=t,w=u*n,T=f*n;return i>o-T&&il-w&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:mI(e)})})}handleScroll(n){const e=ju(n),i=this.positions.get(e);if(!i)return null;const o=i.scrollPosition;let r,a;if(e===this._document){const f=this.getViewportScrollPosition();r=f.top,a=f.left}else r=e.scrollTop,a=e.scrollLeft;const l=o.top-r,u=o.left-a;return this.positions.forEach((f,w)=>{f.clientRect&&e!==w&&e.contains(w)&&gC(f.clientRect,l,u)}),o.top=r,o.left=a,{top:l,left:u}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ZQ(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const u=this._getTargetHandle(l);u&&!this._disabledHandles.has(u)&&!this.disabled&&this._initializeDragSequence(u,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const u=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(u.x-this._pickupPositionOnPage.x)+Math.abs(u.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const ie=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),se=this._dropContainer;if(!ie)return void this._endDragSequence(l);(!se||!se.isDragging()&&!se.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const f=this._getConstrainedPointerPosition(u);if(this._hasMoved=!0,this._lastKnownPointerPosition=u,this._updatePointerDirectionDelta(f),this._dropContainer)this._updateActiveDropContainer(f,u);else{const w=this._activeTransform;w.x=f.x-this._pickupPositionOnPage.x+this._passiveTransform.x,w.y=f.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(w.x,w.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:f,event:l,distance:this._getDragDistance(f),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const u=this._getTargetHandle(l);u&&!this._disabledHandles.has(u)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new QQ(i),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){const e=no(n);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>V6(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>Ol(i)),this._handles.forEach(i=>V6(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=Ol(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,kM),e.addEventListener("touchstart",this._pointerDown,tZ),e.addEventListener("dragstart",this._nativeDragStart,kM)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Ol(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){var n,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(n=this._rootElement)||void 0===n||n.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),V6(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),V6(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var n,e;null===(n=this._preview)||void 0===n||n.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var n,e;null===(n=this._placeholder)||void 0===n||n.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){mC(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,o=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();o.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),qQ(i,!1,CI),this._document.body.appendChild(o.replaceChild(r,i)),this._getPreviewInsertionPoint(o,l).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),o=mC(e),r=!o&&0!==e.button,a=this._rootElement,l=ju(e),u=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),f=o?kw(e):Dw(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),i||r||u||f)return;if(this._handles.length){const U=a.style;this._rootElementTapHighlight=U.webkitTapHighlightColor||"",U.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(U=>this._updateOnScroll(U)),this._boundaryElement&&(this._boundaryRect=mI(this._boundaryElement));const w=this._previewTemplate;this._pickupPositionInElement=w&&w.template&&!w.matchSize?{x:0,y:0}:this._getPointerPositionInElement(n,e);const T=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:T.x,y:T.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){qQ(this._rootElement,!0,CI),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),o=this._getPointerPositionOnPage(n),r=this._getDragDistance(o),a=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:o}),e.drop(this,i,this._initialIndex,this._initialContainer,a,r,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,n,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,o),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let o;if(i&&n){const r=n.matchSize?this._rootElement.getBoundingClientRect():null,a=n.viewContainer.createEmbeddedView(i,n.context);a.detectChanges(),o=iZ(a,this._document),this._previewRef=a,n.matchSize?oZ(o,r):o.style.transform=IM(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const r=this._rootElement;o=ZQ(r),oZ(o,r.getBoundingClientRect()),this._initialTransform&&(o.style.transform=this._initialTransform)}return fI(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},CI),V6(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>o.classList.add(r)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function WLe(t){const n=getComputedStyle(t),e=gI(n,"transition-property"),i=e.find(l=>"transform"===l||"all"===l);if(!i)return 0;const o=e.indexOf(i),r=gI(n,"transition-duration"),a=gI(n,"transition-delay");return $Q(r[o])+$Q(a[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const o=a=>{var l;(!a||ju(a)===this._preview&&"transform"===a.propertyName)&&(null===(l=this._preview)||void 0===l||l.removeEventListener("transitionend",o),i(),clearTimeout(r))},r=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=iZ(this._placeholderRef,this._document)):i=ZQ(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e){const i=this._rootElement.getBoundingClientRect(),o=n===this._rootElement?null:n,r=o?o.getBoundingClientRect():i,a=mC(e)?e.targetTouches[0]:e,l=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-l.left),y:r.top-i.top+(a.pageY-r.top-l.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=mC(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,o=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const l=this._ownerSVGElement.createSVGPoint();return l.x=o,l.y=r,l.matrixTransform(a.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:o}=this.constrainPosition?this.constrainPosition(n,this):n;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,l=this._boundaryRect,{width:u,height:f}=this._getPreviewRect(),w=l.top+a,T=l.bottom-(f-a);i=nZ(i,l.left+r,l.right-(u-r)),o=nZ(o,w,T)}return{x:i,y:o}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),l=Math.abs(i-r.y);return a>this._config.pointerDirectionChangeThreshold&&(o.x=e>r.x?1:-1,r.x=e),l>this._config.pointerDirectionChangeThreshold&&(o.y=i>r.y?1:-1,r.y=i),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,V6(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,kM),n.removeEventListener("touchstart",this._pointerDown,tZ),n.removeEventListener("dragstart",this._nativeDragStart,kM)}_applyRootElementTransform(n,e){const i=IM(n,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=DM(i,this._initialTransform)}_applyPreviewTransform(n,e){var i;const o=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=IM(n,e);this._preview.style.transform=DM(r,o)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),o=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===o.width&&0===o.height)return;const r=i.left-o.left,a=o.right-i.right,l=i.top-o.top,u=o.bottom-i.bottom;i.width>o.width?(r>0&&(n+=r),a>0&&(n-=a)):n=0,i.height>o.height?(l>0&&(e+=l),u>0&&(e-=u)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:mC(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=ju(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&gC(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var n;return(null===(n=this._parentPositions.positions.get(this._document))||void 0===n?void 0:n.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Pw(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Ol(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function IM(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function nZ(t,n,e){return Math.max(n,Math.min(e,t))}function mC(t){return"t"===t.type[0]}function iZ(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(o=>i.appendChild(o)),i}function oZ(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=IM(n.left,n.top)}function rZ(t,n,e){const i=_C(n,t.length-1),o=_C(e,t.length-1);if(i===o)return;const r=t[i],a=o!0,this.sortPredicate=()=>!0,this.beforeStarted=new N,this.entered=new N,this.exited=new N,this.dropped=new N,this.sorted=new N,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Se.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new N,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function jLe(t=0,n=T9){return t<0&&(t=0),FD(t,t,n)}(0,AW).pipe(Yn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-l):2===this._verticalScrollDirection&&a.scrollBy(0,l),1===this._horizontalScrollDirection?a.scrollBy(-l,0):2===this._horizontalScrollDirection&&a.scrollBy(l,0)})},this.element=Ol(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new QQ(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,o){let r;this._draggingStarted(),null==o?(r=this.sortingDisabled?this._draggables.indexOf(n):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(n,e,i))):r=o;const a=this._activeDraggables,l=a.indexOf(n),u=n.getPlaceholderElement();let f=a[r];if(f===n&&(f=a[r+1]),!f&&(null==r||-1===r||r-1&&a.splice(l,1),f&&!this._dragDropRegistry.isDragging(f)){const w=f.getRootElement();w.parentElement.insertBefore(u,w),a.splice(r,0,n)}else Ol(this.element).appendChild(u),a.push(n);u.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,o,r,a,l){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:o,isPointerOverContainer:r,distance:a,dropPoint:l})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===n.indexOf(o))?this._reset():this._cacheItems()),this}withDirection(n){return this._direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._orientation=n,this}withScrollableParents(n){const e=Ol(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,o){if(this.sortingDisabled||!this._clientRect||!XQ(this._clientRect,.05,e,i))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(n,e,i,o);if(-1===a&&r.length>0)return;const l="horizontal"===this._orientation,u=r.findIndex(we=>we.drag===n),f=r[a],T=f.clientRect,U=u>a?1:-1,ie=this._getItemOffsetPx(r[u].clientRect,T,U),se=this._getSiblingOffsetPx(u,r,U),Me=r.slice();rZ(r,u,a),this.sorted.next({previousIndex:u,currentIndex:a,container:this,item:n}),r.forEach((we,He)=>{if(Me[He]===we)return;const Be=we.drag===n,me=Be?ie:se,ze=Be?n.getPlaceholderElement():we.drag.getRootElement();we.offset+=me,l?(ze.style.transform=DM(`translate3d(${Math.round(we.offset)}px, 0, 0)`,we.initialTransform),gC(we.clientRect,0,me)):(ze.style.transform=DM(`translate3d(0, ${Math.round(we.offset)}px, 0)`,we.initialTransform),gC(we.clientRect,me,0))}),this._previousSwap.overlaps=_I(T,e,i),this._previousSwap.drag=f.drag,this._previousSwap.delta=l?o.x:o.y}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,o=0,r=0;if(this._parentPositions.positions.forEach((a,l)=>{l===this._document||!a.clientRect||i||XQ(a.clientRect,.05,n,e)&&([o,r]=function KLe(t,n,e,i){const o=cZ(n,i),r=lZ(n,e);let a=0,l=0;if(o){const u=t.scrollTop;1===o?u>0&&(a=1):t.scrollHeight-u>t.clientHeight&&(a=2)}if(r){const u=t.scrollLeft;1===r?u>0&&(l=1):t.scrollWidth-u>t.clientWidth&&(l=2)}return[a,l]}(l,a.clientRect,n,e),(o||r)&&(i=l))}),!o&&!r){const{width:a,height:l}=this._viewportRuler.getViewportSize(),u={width:a,height:l,top:0,right:a,bottom:l,left:0};o=cZ(u,e),r=lZ(u,n),i=window}i&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=i,(o||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=Ol(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=Ol(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_cacheItemPositions(){const n="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:mI(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const n=Ol(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var i;const o=e.getRootElement();if(o){const r=null===(i=this._itemPositions.find(a=>a.drag===e))||void 0===i?void 0:i.initialTransform;o.style.transform=r||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(n,e,i){const o="horizontal"===this._orientation,r=e[n].clientRect,a=e[n+-1*i];let l=r[o?"width":"height"]*i;if(a){const u=o?"left":"top",f=o?"right":"bottom";-1===i?l-=a.clientRect[u]-r[f]:l+=r[u]-a.clientRect[f]}return l}_getItemOffsetPx(n,e,i){const o="horizontal"===this._orientation;let r=o?e.left-n.left:e.top-n.top;return-1===i&&(r+=o?e.width-n.width:e.height-n.height),r}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,o="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return o?n>=a.right:e>=a.bottom}{const a=i[0].clientRect;return o?n<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(n,e,i,o){const r="horizontal"===this._orientation,a=this._itemPositions.findIndex(({drag:l,clientRect:u})=>{if(l===n)return!1;if(o){const f=r?o.x:o.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&f===this._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e=Math.floor(u.top)&&io._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._clientRect||!_I(this._clientRect,e,i)||!this.enterPredicate(n,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,i);if(!o)return!1;const r=Ol(this.element);return o===r||r.contains(o)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&(this._itemPositions.forEach(({clientRect:i})=>{gC(i,e.top,e.left)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=Pw(Ol(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function cZ(t,n){const{top:e,bottom:i,height:o}=t,r=.05*o;return n>=e-r&&n<=e+r?1:n>=i-r&&n<=i+r?2:0}function lZ(t,n){const{left:e,right:i,width:o}=t,r=.05*o;return n>=e-r&&n<=e+r?1:n>=i-r&&n<=i+r?2:0}const NM=Oh({passive:!1,capture:!0});let JLe=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new N,this.pointerUp=new N,this.scroll=new N,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,NM)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,NM)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=i.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:NM}),o||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:NM}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new Wt(o=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&o.next(l)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),kr(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eDe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let tDe=(()=>{class t{constructor(e,i,o,r){this._document=e,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=r}createDrag(e,i=eDe){return new XLe(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ZLe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(oo),qt(Lf),qt(JLe))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[tDe],imports:[T0]}),t})();function nDe(){}function vI(t){return null==t?nDe:function(){return this.querySelector(t)}}function oDe(){return[]}function uZ(t){return null==t?oDe:function(){return this.querySelectorAll(t)}}function hZ(t){return function(){return this.matches(t)}}function pZ(t){return new Array(t.length)}function RM(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function lDe(t,n,e,i,o,r){for(var l,a=0,u=n.length,f=r.length;an?1:t>=n?0:NaN}RM.prototype={constructor:RM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var bI="http://www.w3.org/1999/xhtml";const gZ={svg:"http://www.w3.org/2000/svg",xhtml:bI,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zM(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),gZ.hasOwnProperty(n)?{space:gZ[n],local:t}:t}function MDe(t){return function(){this.removeAttribute(t)}}function ODe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function SDe(t,n){return function(){this.setAttribute(t,n)}}function PDe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function TDe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function EDe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function mZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function LDe(t){return function(){this.style.removeProperty(t)}}function DDe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function kDe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function B6(t,n){return t.style.getPropertyValue(n)||mZ(t).getComputedStyle(t,null).getPropertyValue(n)}function NDe(t){return function(){delete this[t]}}function RDe(t,n){return function(){this[t]=n}}function zDe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function _Z(t){return t.trim().split(/^|\s+/)}function xI(t){return t.classList||new CZ(t)}function CZ(t){this._node=t,this._names=_Z(t.getAttribute("class")||"")}function vZ(t,n){for(var e=xI(t),i=-1,o=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var yZ={},Jg=null;function pke(t,n,e){return t=wZ(t,n,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function wZ(t,n,e){return function(i){var o=Jg;Jg=i;try{t.call(this,this.__data__,n,e)}finally{Jg=o}}}function fke(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function gke(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,o=n.length;e=me&&(me=Be+1);!(qe=we[me])&&++me=0;)(a=i[o])&&(r&&4^a.compareDocumentPosition(r)&&r.parentNode.insertBefore(a,r),r=a);return this},sort:function mDe(t){function n(T,U){return T&&U?t(T.__data__,U.__data__):!T-!U}t||(t=_De);for(var e=this._groups,i=e.length,o=new Array(i),r=0;r1?this.each((null==n?LDe:"function"==typeof n?kDe:DDe)(t,n,null==e?"":e)):B6(this.node(),t)},property:function FDe(t,n){return arguments.length>1?this.each((null==n?NDe:"function"==typeof n?zDe:RDe)(t,n)):this.node()[t]},classed:function GDe(t,n){var e=_Z(t+"");if(arguments.length<2){for(var i=xI(this.node()),o=-1,r=e.length;++o0)for(var u,i=t[0],o=n[0],r=t[e]-i,a=n[e]-o,l=-1;++l<=e;)this._basis.point(this._beta*t[l]+(1-this._beta)*(i+(u=l/e)*r),this._beta*n[l]+(1-this._beta)*(o+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const xke=function t(n){function e(i){return 1===n?new FM(i):new EZ(i,n)}return e.beta=function(i){return t(+i)},e}(.85);var yI=Math.PI,wI=2*yI,em=1e-6,yke=wI-em;function MI(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function AZ(){return new MI}MI.prototype=AZ.prototype={constructor:MI,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,o,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,n,e,i,o){var r=this._x1,a=this._y1,l=(e=+e)-(t=+t),u=(i=+i)-(n=+n),f=r-t,w=a-n,T=f*f+w*w;if((o=+o)<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(T>em)if(Math.abs(w*l-u*f)>em&&o){var U=e-r,ie=i-a,se=l*l+u*u,Me=U*U+ie*ie,we=Math.sqrt(se),He=Math.sqrt(T),Be=o*Math.tan((yI-Math.acos((se+T-Me)/(2*we*He)))/2),me=Be/He,ze=Be/we;Math.abs(me-1)>em&&(this._+="L"+(t+me*f)+","+(n+me*w)),this._+="A"+o+","+o+",0,0,"+ +(w*U>f*ie)+","+(this._x1=t+ze*l)+","+(this._y1=n+ze*u)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,o,r){t=+t,n=+n,r=!!r;var a=(e=+e)*Math.cos(i),l=e*Math.sin(i),u=t+a,f=n+l,w=1^r,T=r?i-o:o-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+u+","+f:(Math.abs(this._x1-u)>em||Math.abs(this._y1-f)>em)&&(this._+="L"+u+","+f),e&&(T<0&&(T=T%wI+wI),T>yke?this._+="A"+e+","+e+",0,1,"+w+","+(t-a)+","+(n-l)+"A"+e+","+e+",0,1,"+w+","+(this._x1=u)+","+(this._y1=f):T>em&&(this._+="A"+e+","+e+",0,"+ +(T>=yI)+","+w+","+(this._x1=t+e*Math.cos(o))+","+(this._y1=n+e*Math.sin(o))))},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 wke=AZ;function HM(t){return function(){return t}}function LZ(t){this._context=t}function Mke(t){return new LZ(t)}function Oke(t){return t[0]}function Ske(t){return t[1]}LZ.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var DZ=Math.PI;function IZ(t){return(1-Math.cos(DZ*t))/2}var Tke={value:function(){}};function NZ(){for(var i,t=0,n=arguments.length,e={};t=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function Ake(t,n){for(var o,e=0,i=t.length;e0)for(var o,r,e=new Array(o),i=0;i=0&&t._call.call(null,n),t=t._next;--G6}function BZ(){tm=(GM=yC.now())+YM,G6=vC=0;try{VZ()}finally{G6=0,function kke(){for(var t,e,n=BM,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:BM=e);xC=t,SI(i)}(),tm=0}}function Dke(){var t=yC.now(),n=t-GM;n>1e3&&(YM-=n,GM=t)}function SI(t){G6||(vC&&(vC=clearTimeout(vC)),t-tm>24?(t<1/0&&(vC=setTimeout(BZ,t-yC.now()-YM)),bC&&(bC=clearInterval(bC))):(bC||(GM=yC.now(),bC=setInterval(Dke,1e3)),G6=1,HZ(BZ)))}function PI(t,n,e){var i=new wC;return i.restart(function(o){i.stop(),t(o+n)},n=null==n?0:+n,e),i}wC.prototype=OI.prototype={constructor:wC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Y6():+e)+(null==n?0:+n),!this._next&&xC!==this&&(xC?xC._next=this:BM=this,xC=this),this._call=t,this._time=e,SI()},stop:function(){this._call&&(this._call=null,this._time=1/0,SI())}};var Ike=zZ("start","end","cancel","interrupt"),Nke=[];function WM(t,n,e,i,o,r){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function Rke(t,n,e){var o,i=t.__transition;function a(f){var w,T,U,ie;if(1!==e.state)return u();for(w in i)if((ie=i[w]).name===e.name){if(3===ie.state)return PI(a);4===ie.state?(ie.state=6,ie.timer.stop(),ie.on.call("interrupt",t,t.__data__,ie.index,ie.group),delete i[w]):+w0)throw new Error("too late; already scheduled");return e}function Jp(t,n){var e=Nh(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Nh(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function e4(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var MC,DI,qZ,qM,jZ=180/Math.PI,LI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function WZ(t,n,e,i,o,r){var a,l,u;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(u=t*e+n*i)&&(e-=t*u,i-=n*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i180?w+=360:w-f>180&&(f+=360),U.push({i:T.push(o(T)+"rotate(",null,i)-2,x:e4(f,w)})):w&&T.push(o(T)+"rotate("+w+i)}(f.rotate,w.rotate,T,U),function l(f,w,T,U){f!==w?U.push({i:T.push(o(T)+"skewX(",null,i)-2,x:e4(f,w)}):w&&T.push(o(T)+"skewX("+w+i)}(f.skewX,w.skewX,T,U),function u(f,w,T,U,ie,se){if(f!==T||w!==U){var Me=ie.push(o(ie)+"scale(",null,",",null,")");se.push({i:Me-4,x:e4(f,T)},{i:Me-2,x:e4(w,U)})}else(1!==T||1!==U)&&ie.push(o(ie)+"scale("+T+","+U+")")}(f.scaleX,f.scaleY,w.scaleX,w.scaleY,T,U),f=w=null,function(ie){for(var we,se=-1,Me=U.length;++se>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?XM(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?XM(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=qke.exec(t))?new fu(n[1],n[2],n[3],1):(n=$ke.exec(t))?new fu(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Xke.exec(t))?XM(n[1],n[2],n[3],n[4]):(n=Qke.exec(t))?XM(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Zke.exec(t))?nK(n[1],n[2]/100,n[3]/100,1):(n=Kke.exec(t))?nK(n[1],n[2]/100,n[3]/100,n[4]):QZ.hasOwnProperty(t)?JZ(QZ[t]):"transparent"===t?new fu(NaN,NaN,NaN,0):null}function JZ(t){return new fu(t>>16&255,t>>8&255,255&t,1)}function XM(t,n,e,i){return i<=0&&(t=n=e=NaN),new fu(t,n,e,i)}function eIe(t){return t instanceof OC||(t=TC(t)),t?new fu((t=t.rgb()).r,t.g,t.b,t.opacity):new fu}function QM(t,n,e,i){return 1===arguments.length?eIe(t):new fu(t,n,e,null==i?1:i)}function fu(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function eK(){return"#"+NI(this.r)+NI(this.g)+NI(this.b)}function tK(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function NI(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function nK(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new R0(t,n,e,i)}function iK(t){if(t instanceof R0)return new R0(t.h,t.s,t.l,t.opacity);if(t instanceof OC||(t=TC(t)),!t)return new R0;if(t instanceof R0)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,o=Math.min(n,e,i),r=Math.max(n,e,i),a=NaN,l=r-o,u=(r+o)/2;return l?(a=n===r?(e-i)/l+6*(e0&&u<1?0:a,new R0(a,l,u,t.opacity)}function R0(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function RI(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function oK(t,n,e,i,o){var r=t*t,a=r*t;return((1-3*t+3*r-a)*n+(4-6*r+3*a)*e+(1+3*t+3*r-3*a)*i+a*o)/6}function rK(t){return function(){return t}}function sK(t,n){var e=n-t;return e?function aK(t,n){return function(e){return t+e*n}}(t,e):rK(isNaN(t)?n:t)}II(OC,TC,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ZZ,formatHex:ZZ,formatHsl:function Jke(){return iK(this).formatHsl()},formatRgb:KZ,toString:KZ}),II(fu,QM,XZ(OC,{brighter:function(t){return t=null==t?$M:Math.pow($M,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:eK,formatHex:eK,formatRgb:tK,toString:tK})),II(R0,function tIe(t,n,e,i){return 1===arguments.length?iK(t):new R0(t,n,e,null==i?1:i)},XZ(OC,{brighter:function(t){return t=null==t?$M:Math.pow($M,t),new R0(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new R0(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,o=2*e-i;return new fu(RI(t>=240?t-240:t+120,o,i),RI(t,o,i),RI(t<120?t+240:t-120,o,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const cK=function t(n){var e=function rIe(t){return 1==(t=+t)?sK:function(n,e){return e-n?function oIe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):rK(isNaN(n)?e:n)}}(n);function i(o,r){var a=e((o=QM(o)).r,(r=QM(r)).r),l=e(o.g,r.g),u=e(o.b,r.b),f=sK(o.opacity,r.opacity);return function(w){return o.r=a(w),o.g=l(w),o.b=u(w),o.opacity=f(w),o+""}}return i.gamma=t,i}(1);function lK(t){return function(n){var a,l,e=n.length,i=new Array(e),o=new Array(e),r=new Array(e);for(a=0;a=1?(e=1,n-1):Math.floor(e*n),o=t[i],r=t[i+1];return oK((e-i/n)*n,i>0?t[i-1]:2*o-r,o,r,ie&&(r=n.slice(e,r),l[a]?l[a]+=r:l[++a]=r),(i=i[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:e4(i,o)})),e=FI.lastIndex;return e=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?AI:Jp;return function(){var a=r(this,t),l=a.on;l!==i&&(o=(i=l).copy()).on(n,e),a.on=o}}var FIe=CC.prototype.constructor;function uK(t){return function(){this.style.removeProperty(t)}}function jIe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function WIe(t,n,e){var i,o;function r(){var a=n.apply(this,arguments);return a!==o&&(i=(o=a)&&jIe(t,a,e)),i}return r._value=n,r}function ZIe(t){return function(n){this.textContent=t.call(this,n)}}function KIe(t){var n,e;function i(){var o=t.apply(this,arguments);return o!==e&&(n=(e=o)&&ZIe(o)),n}return i._value=t,i}var nNe=0;function e3(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function hK(){return++nNe}var j6=CC.prototype;e3.prototype=function iNe(t){return CC().transition(t)}.prototype={constructor:e3,select:function RIe(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=vI(t));for(var i=this._groups,o=i.length,r=new Array(o),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:n}}CC.prototype.interrupt=function Fke(t){return this.each(function(){!function zke(t,n){var i,o,a,e=t.__transition,r=!0;if(e){for(a in n=null==n?null:n+"",e)(i=e[a]).name===n?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[a]):r=!1;r&&delete t.__transition}}(this,t)})},CC.prototype.transition=function aNe(t){var n,e;t instanceof e3?(n=t._id,t=t._name):(n=hK(),(e=HI).time=Y6(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,r=0;r=(T=(l+f)/2))?l=T:f=T,(we=e>=(U=(u+w)/2))?u=U:w=U,o=r,!(r=r[He=we<<1|Me]))return o[He]=a,t;if(ie=+t._x.call(null,r.data),se=+t._y.call(null,r.data),n===ie&&e===se)return a.next=r,o?o[He]=a:t._root=a,t;do{o=o?o[He]=new Array(4):t._root=new Array(4),(Me=n>=(T=(l+f)/2))?l=T:f=T,(we=e>=(U=(u+w)/2))?u=U:w=U}while((He=we<<1|Me)==(Be=(se>=U)<<1|ie>=T));return o[Be]=r,o[He]=a,t}function n2(t,n,e,i,o){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=o}function NNe(t){return t[0]}function zNe(t){return t[1]}function BI(t,n,e){var i=new GI(null==n?NNe:n,null==e?zNe:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function GI(t,n,e,i,o,r){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=o,this._y1=r,this._root=void 0}function yK(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var o2=BI.prototype=GI.prototype;function HNe(t){return t.x+t.vx}function VNe(t){return t.y+t.vy}function wK(t){var n,e,i=1,o=1;function r(){for(var u,w,T,U,ie,se,Me,f=n.length,we=0;weU+jt||qeie+jt||rtT.index){var an=U-xt.x-xt.vx,pn=ie-xt.y-xt.vy,yn=an*an+pn*pn;ynu.r&&(u.r=u[f].r)}function l(){if(n){var u,w,f=n.length;for(e=new Array(f),u=0;uw&&(w=o),rT&&(T=r));if(u>w||f>T)return this;for(this.cover(u,f).cover(w,T),e=0;et||t>=o||i>n||n>=r;)switch(f=(nw||(l=se.y0)>T||(u=se.x1)=He)<<1|t>=we)&&(se=U[U.length-1],U[U.length-1]=U[U.length-1-Me],U[U.length-1-Me]=se)}else{var Be=t-+this._x.call(null,ie.data),me=n-+this._y.call(null,ie.data),ze=Be*Be+me*me;if(ze=(U=(a+u)/2))?a=U:u=U,(Me=T>=(ie=(l+f)/2))?l=ie:f=ie,n=e,!(e=e[we=Me<<1|se]))return this;if(!e.length)break;(n[we+1&3]||n[we+2&3]||n[we+3&3])&&(i=n,He=we)}for(;e.data!==t;)if(o=e,!(e=e.next))return this;return(r=e.next)&&delete e.next,o?(r?o.next=r:delete o.next,this):n?(r?n[we]=r:delete n[we],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[He]=e:this._root=e),this):(this._root=r,this)},o2.removeAll=function ANe(t){for(var n=0,e=t.length;n=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function qNe(t,n){for(var o,e=0,i=t.length;e0)for(var o,r,e=new Array(o),i=0;i=0&&t._call.call(null,n),t=t._next;--$6}()}finally{$6=0,function KNe(){for(var t,e,n=tO,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tO=e);kC=t,jI(i)}(),im=0}}function ZNe(){var t=IC.now(),n=t-nO;n>1e3&&(iO-=n,nO=t)}function jI(t){$6||(LC&&(LC=clearTimeout(LC)),t-im>24?(t<1/0&&(LC=setTimeout(NK,t-IC.now()-iO)),DC&&(DC=clearInterval(DC))):(DC||(nO=IC.now(),DC=setInterval(ZNe,1e3)),$6=1,DK(NK)))}function JNe(t){return t.x}function eRe(t){return t.y}UI.prototype=IK.prototype={constructor:UI,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?kK():+e)+(null==n?0:+n),!this._next&&kC!==this&&(kC?kC._next=this:tO=this,kC=this),this._call=t,this._time=e,jI()},stop:function(){this._call&&(this._call=null,this._time=1/0,jI())}};var nRe=Math.PI*(3-Math.sqrt(5));function RK(t){var n,e=1,i=.001,o=1-Math.pow(i,1/300),r=0,a=.6,l=YI(),u=IK(w),f=$Ne("tick","end");function w(){T(),f.call("tick",n),e1?(null==Me?l.remove(se):l.set(se,ie(Me)),n):l.get(se)},find:function(se,Me,we){var me,ze,qe,rt,xt,He=0,Be=t.length;for(null==we?we=1/0:we*=we,He=0;He1?(f.on(se,Me),n):f.on(se)}}}function zK(){var t,n,e,o,i=u1(-30),r=1,a=1/0,l=.81;function u(U){var ie,se=t.length,Me=BI(t,JNe,eRe).visitAfter(w);for(e=U,ie=0;ie=a)){(U.data!==n||U.next)&&(0===we&&(me+=(we=t4())*we),0===He&&(me+=(He=t4())*He),me{return(t=X6||(X6={})).Both="both",t.Horizontal="horizontal",t.Vertical="vertical",X6;var t})(),Q6=(()=>{return(t=Q6||(Q6={})).UpperLeft="UpperLeft",t.UpperRight="UpperRight",Q6;var t})();function kRe(t,n,e){e=e||{};let i,o,r,a=null,l=0;function u(){l=!1===e.leading?0:+new Date,a=null,r=t.apply(i,o)}return function(){const f=+new Date;!l&&!1===e.leading&&(l=f);const w=n-(f-l);return i=this,o=arguments,w<=0?(clearTimeout(a),a=null,l=f,r=t.apply(i,o)):!a&&!1!==e.trailing&&(a=setTimeout(u,w)),r}}function IRe(t,n){return function(i,o,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,o,{configurable:!0,enumerable:r.enumerable,value:kRe(r.value,t,n)}),this[o]}}}}let HK=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class NRe{constructor(n,e,i){"string"==typeof n&&(n=HK.find(o=>o.name===n)),this.colorDomain=n.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(n,this.domain)}generateColorScheme(n,e){return"string"==typeof n&&(n=HK.find(i=>i.name===n)),ZM().range(n.domain).domain(e)}getColor(n){if(null==n)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(o=>o.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}let zRe=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new In,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:o}=this.element.nativeElement;i&&o?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo))},t.\u0275dir=St({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();var Z6=(()=>{return(t=Z6||(Z6={})).LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT",Z6;var t})();function K6(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function BK(t,n){return"number"==typeof n?t[n]:n}const GK={dagre:class FRe{constructor(){this.defaultSettings={orientation:Z6.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),q6.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],o=n.nodes.find(r=>r.id===i.id);o.position={x:i.x,y:i.y},o.dimension={width:i.width,height:i.height}}return n}updateEdge(n,e){const i=n.nodes.find(u=>u.id===e.source),o=n.nodes.find(u=>u.id===e.target),r=i.position.y<=o.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:o.position.x,y:o.position.y+r*(o.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new q6.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const o=Object.assign({},i);return o.width=i.dimension.width,o.height=i.dimension.height,o.x=i.position.x,o.y=i.position.y,o}),this.dagreEdges=n.edges.map(i=>{const o=Object.assign({},i);return o.id||(o.id=t3()),o});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class HRe{constructor(){this.defaultSettings={orientation:Z6.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),q6.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const o=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:o.x,y:o.y},dimension:{width:o.width,height:o.height}})};return n.clusters=(n.clusters||[]).map(e),n.nodes=n.nodes.map(e),n}updateEdge(n,e){const i=n.nodes.find(u=>u.id===e.source),o=n.nodes.find(u=>u.id===e.target),r=i.position.y<=o.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:o.position.x,y:o.position.y+r*(o.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new q6.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const o=Object.assign({},i);return o.width=i.dimension.width,o.height=i.dimension.height,o.x=i.position.x,o.y=i.position.y,o}),this.dagreClusters=n.clusters||[],this.dagreEdges=n.edges.map(i=>{const o=Object.assign({},i);return o.id||(o.id=t3()),o});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(o=>{this.dagreGraph.setParent(o,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class BRe{constructor(){this.defaultSettings={orientation:Z6.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),q6.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],o=n.nodes.find(r=>r.id===i.id);o.position={x:i.x,y:i.y},o.dimension={width:i.width,height:i.height}}for(const e of n.edges)this.updateEdge(n,e);return n}updateEdge(n,e){const i=n.nodes.find(se=>se.id===e.source),o=n.nodes.find(se=>se.id===e.target),r="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",a="y"===r?"x":"y",l="y"===r?"height":"width",u=i.position[r]<=o.position[r]?-1:1,f={[a]:i.position[a],[r]:i.position[r]-u*(i.dimension[l]/2)},w={[a]:o.position[a],[r]:o.position[r]+u*(o.dimension[l]/2)},T=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[f,{[a]:f[a],[r]:f[r]-u*T},{[a]:w[a],[r]:w[r]+u*T},w];const ie=n.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return ie&&(ie.points=e.points),n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new q6.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const o=Object.assign({},i);return o.width=i.dimension.width,o.height=i.dimension.height,o.x=i.position.x,o.y=i.position.y,o}),this.dagreEdges=n.edges.map(i=>{const o=Object.assign({},i);return o.id||(o.id=t3()),o});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class GRe{constructor(){this.defaultSettings={force:RK().force("charge",zK().strength(-150)).force("collide",wK(5)),forceLink:TK().id(n=>n.id).distance(()=>100)},this.settings={},this.outputGraph$=new N}run(n){return this.inputGraph=n,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(n){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||t3(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:K6(e.source).id,target:K6(e.target).id,points:[{x:K6(e.source).x,y:K6(e.source).y},{x:K6(e.target).x,y:K6(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(o=>o.id===n.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(n,e){if(!n)return;const i=this.d3Graph.nodes.find(o=>o.id===n.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(n,e){if(!n)return;const i=this.d3Graph.nodes.find(o=>o.id===n.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class YRe{constructor(){this.defaultSettings={force:(0,aRe.d3adaptor)(Object.assign(Object.assign(Object.assign({},m),y),E)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new N}run(n){return this.inputGraph=n,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(o=>o.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(o=>o.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),o=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(-1!==i&&-1!==o)return Object.assign(Object.assign({},e),{source:i,target:o})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),o=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(!(i>=0&&o>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(n){return this.outputGraph.nodes=n.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||t3(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=n.links.map(e=>{const i=BK(n.nodes,e.source),o=BK(n.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(n.groupLinks.map(e=>{const i=n.nodes.find(l=>l.id===e.source),o=n.nodes.find(l=>l.id===e.target),r=i||n.groups.find(l=>l.id===e.source),a=o||n.groups.find(l=>l.id===e.target);return Object.assign(Object.assign({},e),{source:r.id,target:a.id,points:[r.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy())]})})),this.outputGraph.clusters=n.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),o=this.internalGraph.nodes[i];!o||(this.draggingStart={x:o.x-e.x,y:o.y-e.y},o.fixed=1,this.settings.force.start())}onDrag(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),o=this.internalGraph.nodes[i];!o||(o.x=this.draggingStart.x+e.x,o.y=this.draggingStart.y+e.y)}onDragEnd(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),o=this.internalGraph.nodes[i];!o||(o.fixed=0)}}};let YK=(()=>{class t{getLayout(e){if(GK[e])return new GK[e];throw new Error(`Unknown layout type '${e}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),URe=(()=>{class t{constructor(){this.mouseWheelUp=new In,this.mouseWheelDown=new In}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),r=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):r&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&et("mousewheel",function(r){return i.onMouseWheelChrome(r)})("DOMMouseScroll",function(r){return i.onMouseWheelFirefox(r)})("wheel",function(r){return i.onWheel(r)})("onmousewheel",function(r){return i.onMouseWheelIE(r)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),jRe=(()=>{class t{constructor(e,i,o,r){this.el=e,this.zone=i,this.cd=o,this.layoutService=r,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=X6.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Q6.UpperRight,this.scheme="cool",this.animations=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.zoomChange=new In,this.clickHandler=new In,this.isMouseMoveCalled=!1,this.graphSubscription=new Se,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=a=>a.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${t3()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:o}=e;this.setLayout(this.layout),o&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new zRe(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=xke.beta(1)),this.zone.run(()=>{this.dims=function RRe({width:t,height:n}){let e=t,i=n;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Se;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=t3()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=t3()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof Wt?e:rr(e);this.graphSubscription.add(i.subscribe(o=>{this.graph=o,this.tick()})),0!==this.graph.nodes.length&&i.pipe(kg()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),e.add(r.id)});const i=new Set;(this.graph.clusters||[]).map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),i.add(r.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const o=[];for(const r in this.graph.edgeLabels){const a=this.graph.edgeLabels[r],l=r.replace(/[^\w-]*/g,""),u=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let f=this._oldLinks.find(u?Me=>`${Me.source}${Me.target}${Me.id}`===l:Me=>`${Me.source}${Me.target}`===l);const w=this.graph.edges.find(u?Me=>`${Me.source}${Me.target}${Me.id}`===l:Me=>`${Me.source}${Me.target}`===l);f?f.data&&w&&w.data&&JSON.stringify(f.data)!==JSON.stringify(w.data)&&(f.data=w.data):f=w||a,f.oldLine=f.line;const T=a.points,U=this.generateLine(T),ie=Object.assign({},f);ie.line=U,ie.points=T,this.updateMidpointOnEdge(ie,T);const se=T[Math.floor(T.length/2)];se&&(ie.textTransform=`translate(${se.x||0},${se.y||0})`),ie.textAngle=0,ie.oldLine||(ie.oldLine=ie.line),this.calcDominantBaseline(ie),o.push(ie)}this.graph.edges=o,this.graph.edges&&(this._oldLinks=this.graph.edges.map(r=>{const a=Object.assign({},r);return a.oldLine=r.line,a})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Q6.UpperLeft:return"";case Q6.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,o=1/0,r=-1/0;for(let a=0;ai?l.position.x+l.dimension.width:i,r=l.position.y+l.dimension.height>r?l.position.y+l.dimension.height:r}e-=100,o-=100,i+=100,r+=100,this.graphDims.width=i-e,this.graphDims.height=r-o,this.minimapOffsetX=e,this.minimapOffsetY=o}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,o=this.graph.nodes.find(a=>a.id===i.id);if(!o)return;let r;try{if(r=i.getBBox(),!r.width||!r.height)return}catch(a){return}if(o.dimension.height=this.nodeHeight?o.dimension.height&&o.meta.forceDimensions?o.dimension.height:this.nodeHeight:o.dimension.height&&o.meta.forceDimensions?o.dimension.height:r.height,this.nodeMaxHeight&&(o.dimension.height=Math.max(o.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(o.dimension.height=Math.min(o.dimension.height,this.nodeMinHeight)),this.nodeWidth)o.dimension.width=o.dimension.width&&o.meta.forceDimensions?o.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let a;try{for(const l of i.getElementsByTagName("text")){const u=l.getBBox();a?(u.width>a.width&&(a.width=u.width),u.height>a.height&&(a.height=u.height)):a=u}}catch(l){return}o.dimension.width=o.dimension.width&&o.meta.forceDimensions?o.dimension.width:a.width+20}else o.dimension.width=o.dimension.width&&o.meta.forceDimensions?o.dimension.width:r.width;this.nodeMaxWidth&&(o.dimension.width=Math.max(o.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(o.dimension.width=Math.min(o.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const o=this.graph.edges.find(r=>r.id===i.nativeElement.id);o&&(PZ(i.nativeElement).select(".line").attr("d",o.oldLine).transition().ease(IZ).duration(e?500:0).attr("d",o.line),PZ(this.el.nativeElement).select(`#${o.id}`).attr("d",o.oldTextPath).transition().ease(IZ).duration(e?500:0).attr("d",o.textPath),this.updateMidpointOnEdge(o,o.points))})}calcDominantBaseline(e){const i=e.points[0],o=e.points[e.points.length-1];e.oldTextPath=e.textPath,o.xo.x).y(o=>o.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const o=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*o;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const a=e.clientX,l=e.clientY,u=this.el.nativeElement.querySelector("svg"),f=u.querySelector("g.chart"),w=u.createSVGPoint();w.x=a,w.y=l;const T=w.matrixTransform(f.getScreenCTM().inverse());this.pan(T.x,T.y,!0),this.zoom(o),this.pan(-T.x,-T.y,!0)}else this.zoom(o)}pan(e,i,o=!1){const r=o?1:this.zoomLevel;this.transformationMatrix=EC(this.transformationMatrix,gK(e/r,i/r)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=EC(this.transformationMatrix,gK((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=EC(this.transformationMatrix,function mNe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return gNe(n)&&(n=t),{a:t,c:0,e:0,b:0,d:n,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const a of this.graph.edges)if((a.target===i.id||a.source===i.id||a.target.id===i.id||a.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const l=this.layout.updateEdge(this.graph,a),u=l instanceof Wt?l:rr(l);this.graphSubscription.add(u.subscribe(f=>{this.graph=f,this.redrawEdge(a)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function CNe(t){return function fK(t){return"matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}(t)}(function xNe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*n)/n,b:Math.round(t.b*n)/n,c:Math.round(t.c*n)/n,d:Math.round(t.d*n)/n,e:Math.round(t.e*n)/n,f:Math.round(t.f*n)/n}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new NRe(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY,r=i-this._touchLastX,a=o-this._touchLastY;this._touchLastX=i,this._touchLastY=o,this.pan(r,a)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let o=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);othis.maxZoomLevel&&(o=this.maxZoomLevel),o!==this.zoomLevel&&(this.zoomLevel=o,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(o=>o.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let o=i.movementX,r=i.movementY;switch(this.isMinimapPanning&&(o=-this.minimapScaleCoefficient*o*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),e){case X6.Horizontal:this.pan(o,0);break;case X6.Vertical:this.pan(0,r);break;default:this.pan(o,r)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const o=i[i.length/2],r=i[i.length/2-1];e.midPoint={x:(o.x+r.x)/2,y:(o.y+r.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const o=this.el.nativeElement;if(null!==o.parentNode){const r=o.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=Jc(window,"resize").pipe(Ks(200)).subscribe(o=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(Xr),de(YK))},t.\u0275cmp=vn({type:t,selectors:[["ngx-graph"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,cRe,5),mr(o,lRe,5),mr(o,dRe,5),mr(o,uRe,5),mr(o,hRe,5)),2&e){let r;fi(r=gi())&&(i.linkTemplate=r.first),fi(r=gi())&&(i.nodeTemplate=r.first),fi(r=gi())&&(i.clusterTemplate=r.first),fi(r=gi())&&(i.defsTemplate=r.first),fi(r=gi())&&(i.miniMapNodeTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(_o(pRe,5),_o(fRe,5)),2&e){let o;fi(o=gi())&&(i.nodeElements=o),fi(o=gi())&&(i.linkElements=o)}},hostBindings:function(e,i){1&e&&et("mousemove",function(r){return i.onMouseMove(r)},!1,Ep)("mousedown",function(r){return i.onMouseDown(r)},!1,Ep)("click",function(r){return i.graphClick(r)},!1,Ep)("touchmove",function(r){return i.onTouchMove(r)},!1,Ep)("mouseup",function(r){return i.onMouseUp(r)},!1,Ep)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[Yo],ngContentSelectors:DRe,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(ls(),H(0,"div",0),et("mouseWheelUp",function(r){return i.onZoom(r,"in")})("mouseWheelDown",function(r){return i.onZoom(r,"out")}),bi(),H(1,"svg",1),ke(2,SRe,12,12,"g",2),H(3,"clipPath"),Qe(4,"rect"),G(),ke(5,LRe,6,15,"g",3),G()()),2&e&&(Br("width",i.width,"px"),J("@animationState","active")("@.disabled",!i.animations),W(1),Un("width",i.width)("height",i.height),W(1),J("ngIf",i.initialized&&i.graph),W(1),Un("id",i.minimapClipPathId),W(1),Un("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),W(1),J("ngIf",i.showMiniMap))},directives:[URe,Yi,Sg,$o],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[na("animationState",[Lo(":enter",[ti({opacity:0}),Mo("500ms 100ms",ti({opacity:1}))])])]},changeDetection:0}),An([IRe(500)],t.prototype,"updateMinimap",null),t})(),WRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[YK],imports:[[va]]}),t})(),UK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va],WRe]}),t})();function jK(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,i)}return e}function jo(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,i=new Array(n);e0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function J6(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function eN(t){return t.classList?J6(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function dJ(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function dO(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function tN(t){return t.size!==z0.size||t.x!==z0.x||t.y!==z0.y||t.rotate!==z0.rotate||t.flipX||t.flipY}function uJ(){var t="fa",n=iJ,e=Rr.familyPrefix,i=Rr.replacementClass,o=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(e!==t||i!==n){var r=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),l=new RegExp("\\.".concat(n),"g");o=o.replace(r,".".concat(e,"-")).replace(a,"--".concat(e,"-")).replace(l,".".concat(i))}return o}var hJ=!1;function nN(){Rr.autoAddCss&&!hJ&&(function vze(t){if(t&&n3){var n=Tc.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;for(var e=Tc.head.childNodes,i=null,o=e.length-1;o>-1;o--){var r=e[o],a=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(i=r)}Tc.head.insertBefore(n,i)}}(uJ()),hJ=!0)}var Oze={mixout:function(){return{dom:{css:uJ,insertCss:nN}}},hooks:function(){return{beforeDOMElementCreation:function(){nN()},beforeI2svg:function(){nN()}}}},r3=n4||{};r3[o3]||(r3[o3]={}),r3[o3].styles||(r3[o3].styles={}),r3[o3].hooks||(r3[o3].hooks={}),r3[o3].shims||(r3[o3].shims=[]);var Rh=r3[o3],pJ=[],uO=!1;function Pze(t){!n3||(uO?setTimeout(t,0):pJ.push(t))}function HC(t){var n=t.tag,e=t.attributes,i=void 0===e?{}:e,o=t.children,r=void 0===o?[]:o;return"string"==typeof t?dJ(t):"<".concat(n," ").concat(function xze(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(dJ(t[e]),'" ')},"").trim()}(i),">").concat(r.map(HC).join(""),"")}function fJ(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}n3&&((uO=(Tc.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Tc.readyState))||Tc.addEventListener("DOMContentLoaded",function t(){Tc.removeEventListener("DOMContentLoaded",t),uO=1,pJ.map(function(n){return n()})}));var iN=function(n,e,i,o){var u,f,w,r=Object.keys(n),a=r.length,l=void 0!==o?function(n,e){return function(i,o,r,a){return n.call(e,i,o,r,a)}}(e,o):e;for(void 0===i?(u=1,w=n[r[0]]):(u=0,w=i);u=55296&&o<=56319&&e2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,o=void 0!==i&&i,r=gJ(n);"function"!=typeof Rh.hooks.addPack||o?Rh.styles[t]=jo(jo({},Rh.styles[t]||{}),r):Rh.hooks.addPack(t,gJ(n)),"fas"===t&&rN("fa",n)}var VC=Rh.styles,Lze=Rh.shims,Dze=Object.values(aJ),aN=null,mJ={},_J={},CJ={},vJ={},bJ={},kze=Object.keys(JI);function Nze(t,n){var e=n.split("-"),i=e[0],o=e.slice(1).join("-");return i!==t||""===o||function Ize(t){return~pze.indexOf(t)}(o)?null:o}var xJ=function(){var n=function(r){return iN(VC,function(a,l,u){return a[u]=iN(l,r,{}),a},{})};mJ=n(function(o,r,a){return r[3]&&(o[r[3]]=a),r[2]&&r[2].filter(function(u){return"number"==typeof u}).forEach(function(u){o[u.toString(16)]=a}),o}),_J=n(function(o,r,a){return o[a]=a,r[2]&&r[2].filter(function(u){return"string"==typeof u}).forEach(function(u){o[u]=a}),o}),bJ=n(function(o,r,a){var l=r[2];return o[a]=a,l.forEach(function(u){o[u]=a}),o});var e="far"in VC||Rr.autoFetchSvg,i=iN(Lze,function(o,r){var a=r[0],l=r[1],u=r[2];return"far"===l&&!e&&(l="fas"),"string"==typeof a&&(o.names[a]={prefix:l,iconName:u}),"number"==typeof a&&(o.unicodes[a.toString(16)]={prefix:l,iconName:u}),o},{names:{},unicodes:{}});CJ=i.names,vJ=i.unicodes,aN=hO(Rr.styleDefault)};function sN(t,n){return(mJ[t]||{})[n]}function e_(t,n){return(bJ[t]||{})[n]}function yJ(t){return CJ[t]||{prefix:null,iconName:null}}function r4(){return aN}function hO(t){return cO[t]||cO[JI[t]]||(t in Rh.styles?t:null)||null}function pO(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.skipLookups,i=void 0!==e&&e,o=null,r=t.reduce(function(a,l){var u=Nze(Rr.familyPrefix,l);if(VC[l]?(l=Dze.includes(l)?sze[l]:l,o=l,a.prefix=l):kze.indexOf(l)>-1?(o=l,a.prefix=hO(l)):u?a.iconName=u:l!==Rr.replacementClass&&a.rest.push(l),!i&&a.prefix&&a.iconName){var f="fa"===o?yJ(a.iconName):{},w=e_(a.prefix,a.iconName);f.prefix&&(o=null),a.iconName=f.iconName||w||a.iconName,a.prefix=f.prefix||a.prefix,"far"===a.prefix&&!VC.far&&VC.fas&&!Rr.autoFetchSvg&&(a.prefix="fas")}return a},{prefix:null,iconName:null,rest:[]});return("fa"===r.prefix||"fa"===o)&&(r.prefix=r4()||"fas"),r}(function Cze(t){lO.push(t)})(function(t){aN=hO(t.styleDefault)}),xJ();var Fze=function(){function t(){(function qRe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),this.definitions={}}return function $Re(t,n,e){n&&WK(t.prototype,n),e&&WK(t,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"add",value:function(){for(var e=this,i=arguments.length,o=new Array(i),r=0;r0&&w.forEach(function(T){"string"==typeof T&&(e[l][T]=f)}),e[l][u]=f}),e}}]),t}(),wJ=[],t_={},n_={},Hze=Object.keys(n_);function lN(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),o=2;o1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return n3?(am("beforeI2svg",n),a3("pseudoElements2svg",n),a3("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot;!1===Rr.autoReplaceSvg&&(Rr.autoReplaceSvg=!0),Rr.observeMutations=!0,Pze(function(){Uze({autoReplaceSvgRoot:e}),am("watch",n)})}},Yze={icon:function(n){if(null===n)return null;if("object"===oO(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:e_(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var e=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=hO(n[0]);return{prefix:i,iconName:e_(i,e)||e}}if("string"==typeof n&&(n.indexOf("".concat(Rr.familyPrefix,"-"))>-1||n.match(cze))){var o=pO(n.split(" "),{skipLookups:!0});return{prefix:o.prefix||r4(),iconName:e_(o.prefix,o.iconName)||o.iconName}}if("string"==typeof n){var r=r4();return{prefix:r,iconName:e_(r,n)||n}}}},gu={noAuto:function(){Rr.autoReplaceSvg=!1,Rr.observeMutations=!1,am("noAuto")},config:Rr,dom:Gze,parse:Yze,library:MJ,findIconDefinition:dN,toHtml:HC},Uze=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot,i=void 0===e?Tc:e;(Object.keys(Rh.styles).length>0||Rr.autoFetchSvg)&&n3&&Rr.autoReplaceSvg&&gu.dom.i2svg({node:i})};function fO(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return HC(i)})}}),Object.defineProperty(t,"node",{get:function(){if(n3){var i=Tc.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function uN(t){var n=t.icons,e=n.main,i=n.mask,o=t.prefix,r=t.iconName,a=t.transform,l=t.symbol,u=t.title,f=t.maskId,w=t.titleId,T=t.extra,U=t.watchable,ie=void 0!==U&&U,se=i.found?i:e,Me=se.width,we=se.height,He="fak"===o,Be=[Rr.replacementClass,r?"".concat(Rr.familyPrefix,"-").concat(r):""].filter(function(jt){return-1===T.classes.indexOf(jt)}).filter(function(jt){return""!==jt||!!jt}).concat(T.classes).join(" "),me={children:[],attributes:jo(jo({},T.attributes),{},{"data-prefix":o,"data-icon":r,class:Be,role:T.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Me," ").concat(we)})},ze=He&&!~T.classes.indexOf("fa-fw")?{width:"".concat(Me/we*16*.0625,"em")}:{};ie&&(me.attributes[om]=""),u&&(me.children.push({tag:"title",attributes:{id:me.attributes["aria-labelledby"]||"title-".concat(w||FC())},children:[u]}),delete me.attributes.title);var qe=jo(jo({},me),{},{prefix:o,iconName:r,main:e,mask:i,maskId:f,transform:a,symbol:l,styles:jo(jo({},ze),T.styles)}),rt=i.found&&e.found?a3("generateAbstractMask",qe)||{children:[],attributes:{}}:a3("generateAbstractIcon",qe)||{children:[],attributes:{}},Ut=rt.attributes;return qe.children=rt.children,qe.attributes=Ut,l?function Wze(t){var e=t.iconName,i=t.children,o=t.attributes,r=t.symbol,a=!0===r?"".concat(t.prefix,"-").concat(Rr.familyPrefix,"-").concat(e):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:jo(jo({},o),{},{id:a}),children:i}]}]}(qe):function jze(t){var n=t.children,e=t.main,i=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(tN(a)&&e.found&&!i.found){var f={x:e.width/e.height/2,y:.5};o.style=dO(jo(jo({},r),{},{"transform-origin":"".concat(f.x+a.x/16,"em ").concat(f.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:n}]}(qe)}function OJ(t){var n=t.content,e=t.width,i=t.height,o=t.transform,r=t.title,a=t.extra,l=t.watchable,u=void 0!==l&&l,f=jo(jo(jo({},a.attributes),r?{title:r}:{}),{},{class:a.classes.join(" ")});u&&(f[om]="");var w=jo({},a.styles);tN(o)&&(w.transform=function wze(t){var n=t.transform,e=t.width,o=t.height,r=void 0===o?16:o,a=t.startCentered,l=void 0!==a&&a,u="";return u+=l&&tJ?"translate(".concat(n.x/16-(void 0===e?16:e)/2,"em, ").concat(n.y/16-r/2,"em) "):l?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(u+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:o,startCentered:!0,width:e,height:i}),w["-webkit-transform"]=w.transform);var T=dO(w);T.length>0&&(f.style=T);var U=[];return U.push({tag:"span",attributes:f,children:[n]}),r&&U.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),U}function qze(t){var n=t.content,e=t.title,i=t.extra,o=jo(jo(jo({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),r=dO(i.styles);r.length>0&&(o.style=r);var a=[];return a.push({tag:"span",attributes:o,children:[n]}),e&&a.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),a}var hN=Rh.styles;function pN(t){var n=t[0],e=t[1],r=WI(t.slice(4),1)[0];return{found:!0,width:n,height:e,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Rr.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Rr.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Rr.familyPrefix,"-").concat("primary"),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var $ze={found:!1,width:512,height:512};function fN(t,n){var e=n;return"fa"===n&&null!==Rr.styleDefault&&(n=r4()),new Promise(function(i,o){if(a3("missingIconAbstract"),"fa"===e){var a=yJ(t)||{};t=a.iconName||t,n=a.prefix||n}if(t&&n&&hN[n]&&hN[n][t])return i(pN(hN[n][t]));(function Xze(t,n){!rJ&&!Rr.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))})(t,n),i(jo(jo({},$ze),{},{icon:Rr.showMissingIcons&&t&&a3("missingIconAbstract")||{}}))})}var SJ=function(){},gN=Rr.measurePerformance&&sO&&sO.mark&&sO.measure?sO:{mark:SJ,measure:SJ},BC='FA "6.1.1"',mN_begin=function(n){return gN.mark("".concat(BC," ").concat(n," begins")),function(){return function(n){gN.mark("".concat(BC," ").concat(n," ends")),gN.measure("".concat(BC," ").concat(n),"".concat(BC," ").concat(n," begins"),"".concat(BC," ").concat(n," ends"))}(n)}},gO=function(){};function TJ(t){return"string"==typeof(t.getAttribute?t.getAttribute(om):null)}function eFe(t){return Tc.createElementNS("http://www.w3.org/2000/svg",t)}function tFe(t){return Tc.createElement(t)}function EJ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.ceFn,i=void 0===e?"svg"===t.tag?eFe:tFe:e;if("string"==typeof t)return Tc.createTextNode(t);var o=i(t.tag);Object.keys(t.attributes||[]).forEach(function(a){o.setAttribute(a,t.attributes[a])});var r=t.children||[];return r.forEach(function(a){o.appendChild(EJ(a,{ceFn:i}))}),o}var mO={replace:function(n){var e=n[0];if(e.parentNode)if(n[1].forEach(function(o){e.parentNode.insertBefore(EJ(o),e)}),null===e.getAttribute(om)&&Rr.keepOriginalSource){var i=Tc.createComment(function nFe(t){var n=" ".concat(t.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(n){var e=n[0],i=n[1];if(~eN(e).indexOf(Rr.replacementClass))return mO.replace(n);var o=new RegExp("".concat(Rr.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(l,u){return u===Rr.replacementClass||u.match(o)?l.toSvg.push(u):l.toNode.push(u),l},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var a=i.map(function(l){return HC(l)}).join("\n");e.setAttribute(om,""),e.innerHTML=a}};function AJ(t){t()}function LJ(t,n){var e="function"==typeof n?n:gO;if(0===t.length)e();else{var i=AJ;"async"===Rr.mutateApproach&&(i=n4.requestAnimationFrame||AJ),i(function(){var o=function Jze(){return!0===Rr.autoReplaceSvg?mO.replace:mO[Rr.autoReplaceSvg]||mO.replace}(),r=mN_begin("mutate");t.map(o),r(),e()})}}var _N=!1;function DJ(){_N=!0}function CN(){_N=!1}var _O=null;function kJ(t){if(eJ&&Rr.observeMutations){var n=t.treeCallback,e=void 0===n?gO:n,i=t.nodeCallback,o=void 0===i?gO:i,r=t.pseudoElementsCallback,a=void 0===r?gO:r,l=t.observeMutationsRoot,u=void 0===l?Tc:l;_O=new eJ(function(f){if(!_N){var w=r4();J6(f).forEach(function(T){if("childList"===T.type&&T.addedNodes.length>0&&!TJ(T.addedNodes[0])&&(Rr.searchPseudoElements&&a(T.target),e(T.target)),"attributes"===T.type&&T.target.parentNode&&Rr.searchPseudoElements&&a(T.target.parentNode),"attributes"===T.type&&TJ(T.target)&&~hze.indexOf(T.attributeName))if("class"===T.attributeName&&function Zze(t){var n=t.getAttribute?t.getAttribute(ZI):null,e=t.getAttribute?t.getAttribute(KI):null;return n&&e}(T.target)){var U=pO(eN(T.target)),se=U.iconName;T.target.setAttribute(ZI,U.prefix||w),se&&T.target.setAttribute(KI,se)}else(function Kze(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(Rr.replacementClass)})(T.target)&&o(T.target)})}}),n3&&_O.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function oFe(t){var n=t.getAttribute("style"),e=[];return n&&(e=n.split(";").reduce(function(i,o){var r=o.split(":"),a=r[0],l=r.slice(1);return a&&l.length>0&&(i[a]=l.join(":").trim()),i},{})),e}function rFe(t){var n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",o=pO(eN(t));return o.prefix||(o.prefix=r4()),n&&e&&(o.prefix=n,o.iconName=e),o.iconName&&o.prefix||o.prefix&&i.length>0&&(o.iconName=function Rze(t,n){return(_J[t]||{})[n]}(o.prefix,t.innerText)||sN(o.prefix,oN(t.innerText))),o}function aFe(t){var n=J6(t.attributes).reduce(function(o,r){return"class"!==o.name&&"style"!==o.name&&(o[r.name]=r.value),o},{}),e=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return Rr.autoA11y&&(e?n["aria-labelledby"]="".concat(Rr.replacementClass,"-title-").concat(i||FC()):(n["aria-hidden"]="true",n.focusable="false")),n}function IJ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=rFe(t),i=e.iconName,o=e.prefix,r=e.rest,a=aFe(t),l=lN("parseNodeAttributes",{},t),u=n.styleParser?oFe(t):[];return jo({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:o,transform:z0,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:u,attributes:a}},l)}var cFe=Rh.styles;function NJ(t){var n="nest"===Rr.autoReplaceSvg?IJ(t,{styleParser:!1}):IJ(t);return~n.extra.classes.indexOf(sJ)?a3("generateLayersText",t,n):a3("generateSvgReplacementMutation",t,n)}function RJ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!n3)return Promise.resolve();var e=Tc.documentElement.classList,i=function(T){return e.add("".concat(oJ,"-").concat(T))},o=function(T){return e.remove("".concat(oJ,"-").concat(T))},r=Object.keys(Rr.autoFetchSvg?JI:cFe),a=[".".concat(sJ,":not([").concat(om,"])")].concat(r.map(function(w){return".".concat(w,":not([").concat(om,"])")})).join(", ");if(0===a.length)return Promise.resolve();var l=[];try{l=J6(t.querySelectorAll(a))}catch(w){}if(!(l.length>0))return Promise.resolve();i("pending"),o("complete");var u=mN_begin("onTree"),f=l.reduce(function(w,T){try{var U=NJ(T);U&&w.push(U)}catch(ie){rJ||"MissingIcon"===ie.name&&console.error(ie)}return w},[]);return new Promise(function(w,T){Promise.all(f).then(function(U){LJ(U,function(){i("active"),i("complete"),o("pending"),"function"==typeof n&&n(),u(),w()})}).catch(function(U){u(),T(U)})})}function lFe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;NJ(t).then(function(e){e&&LJ([e],n)})}var uFe=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,o=void 0===i?z0:i,r=e.symbol,a=void 0!==r&&r,l=e.mask,u=void 0===l?null:l,f=e.maskId,w=void 0===f?null:f,T=e.title,U=void 0===T?null:T,ie=e.titleId,se=void 0===ie?null:ie,Me=e.classes,we=void 0===Me?[]:Me,He=e.attributes,Be=void 0===He?{}:He,me=e.styles,ze=void 0===me?{}:me;if(n){var qe=n.prefix,rt=n.iconName,xt=n.icon;return fO(jo({type:"icon"},n),function(){return am("beforeDOMElementCreation",{iconDefinition:n,params:e}),Rr.autoA11y&&(U?Be["aria-labelledby"]="".concat(Rr.replacementClass,"-title-").concat(se||FC()):(Be["aria-hidden"]="true",Be.focusable="false")),uN({icons:{main:pN(xt),mask:u?pN(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:qe,iconName:rt,transform:jo(jo({},z0),o),symbol:a,title:U,maskId:w,titleId:se,extra:{attributes:Be,styles:ze,classes:we}})})}},hFe={mixout:function(){return{icon:(t=uFe,function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:dN(n||{}),o=e.mask;return o&&(o=(o||{}).icon?o:dN(o||{})),t(i,jo(jo({},e),{},{mask:o}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=RJ,e.nodeCallback=lFe,e}}},provides:function(n){n.i2svg=function(e){var i=e.node,r=e.callback;return RJ(void 0===i?Tc:i,void 0===r?function(){}:r)},n.generateSvgReplacementMutation=function(e,i){var o=i.iconName,r=i.title,a=i.titleId,l=i.prefix,u=i.transform,f=i.symbol,w=i.mask,T=i.maskId,U=i.extra;return new Promise(function(ie,se){Promise.all([fN(o,l),w.iconName?fN(w.iconName,w.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Me){var we=WI(Me,2);ie([e,uN({icons:{main:we[0],mask:we[1]},prefix:l,iconName:o,transform:u,symbol:f,maskId:T,title:r,titleId:a,extra:U,watchable:!0})])}).catch(se)})},n.generateAbstractIcon=function(e){var f,i=e.children,o=e.attributes,r=e.main,a=e.transform,u=dO(e.styles);return u.length>0&&(o.style=u),tN(a)&&(f=a3("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),i.push(f||r.icon),{children:i,attributes:o}}}},pFe={mixout:function(){return{layer:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.classes,r=void 0===o?[]:o;return fO({type:"layer"},function(){am("beforeDOMElementCreation",{assembler:e,params:i});var a=[];return e(function(l){Array.isArray(l)?l.map(function(u){a=a.concat(u.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Rr.familyPrefix,"-layers")].concat(aO(r)).join(" ")},children:a}]})}}}},fFe={mixout:function(){return{counter:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.title,r=void 0===o?null:o,a=i.classes,l=void 0===a?[]:a,u=i.attributes,f=void 0===u?{}:u,w=i.styles,T=void 0===w?{}:w;return fO({type:"counter",content:e},function(){return am("beforeDOMElementCreation",{content:e,params:i}),qze({content:e.toString(),title:r,extra:{attributes:f,styles:T,classes:["".concat(Rr.familyPrefix,"-layers-counter")].concat(aO(l))}})})}}}},gFe={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.transform,r=void 0===o?z0:o,a=i.title,l=void 0===a?null:a,u=i.classes,f=void 0===u?[]:u,w=i.attributes,T=void 0===w?{}:w,U=i.styles,ie=void 0===U?{}:U;return fO({type:"text",content:e},function(){return am("beforeDOMElementCreation",{content:e,params:i}),OJ({content:e,transform:jo(jo({},z0),r),title:l,extra:{attributes:T,styles:ie,classes:["".concat(Rr.familyPrefix,"-layers-text")].concat(aO(f))}})})}}},provides:function(n){n.generateLayersText=function(e,i){var o=i.title,r=i.transform,a=i.extra,l=null,u=null;if(tJ){var f=parseInt(getComputedStyle(e).fontSize,10),w=e.getBoundingClientRect();l=w.width/f,u=w.height/f}return Rr.autoA11y&&!o&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,OJ({content:e.innerHTML,width:l,height:u,transform:r,title:o,extra:a,watchable:!0})])}}},mFe=new RegExp('"',"ug"),zJ=[1105920,1112319];function FJ(t,n){var e="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,o){if(null!==t.getAttribute(e))return i();var a=J6(t.children).filter(function(rt){return rt.getAttribute(QI)===n})[0],l=n4.getComputedStyle(t,n),u=l.getPropertyValue("font-family").match(lze),f=l.getPropertyValue("font-weight"),w=l.getPropertyValue("content");if(a&&!u)return t.removeChild(a),i();if(u&&"none"!==w&&""!==w){var T=l.getPropertyValue("content"),U=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?cO[u[2].toLowerCase()]:dze[f],ie=function _Fe(t){var n=t.replace(mFe,""),e=function Aze(t,n){var o,e=t.length,i=t.charCodeAt(n);return i>=55296&&i<=56319&&e>n+1&&(o=t.charCodeAt(n+1))>=56320&&o<=57343?1024*(i-55296)+o-56320+65536:i}(n,0),i=e>=zJ[0]&&e<=zJ[1],o=2===n.length&&n[0]===n[1];return{value:oN(o?n[0]:n),isSecondary:i||o}}(T),se=ie.value,Me=ie.isSecondary,we=u[0].startsWith("FontAwesome"),He=sN(U,se),Be=He;if(we){var me=function zze(t){var n=vJ[t],e=sN("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(se);me.iconName&&me.prefix&&(He=me.iconName,U=me.prefix)}if(!He||Me||a&&a.getAttribute(ZI)===U&&a.getAttribute(KI)===Be)i();else{t.setAttribute(e,Be),a&&t.removeChild(a);var ze=function sFe(){return{iconName:null,title:null,titleId:null,prefix:null,transform:z0,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),qe=ze.extra;qe.attributes[QI]=n,fN(He,U).then(function(rt){var xt=uN(jo(jo({},ze),{},{icons:{main:rt,mask:{prefix:null,iconName:null,rest:[]}},prefix:U,iconName:Be,extra:qe,watchable:!0})),Ut=Tc.createElement("svg");"::before"===n?t.insertBefore(Ut,t.firstChild):t.appendChild(Ut),Ut.outerHTML=xt.map(function(jt){return HC(jt)}).join("\n"),t.removeAttribute(e),i()}).catch(o)}}else i()})}function CFe(t){return Promise.all([FJ(t,"::before"),FJ(t,"::after")])}function vFe(t){return!(t.parentNode===document.head||~aze.indexOf(t.tagName.toUpperCase())||t.getAttribute(QI)||t.parentNode&&"svg"===t.parentNode.tagName)}function HJ(t){if(n3)return new Promise(function(n,e){var i=J6(t.querySelectorAll("*")).filter(vFe).map(CFe),o=mN_begin("searchPseudoElements");DJ(),Promise.all(i).then(function(){o(),CN(),n()}).catch(function(){o(),CN(),e()})})}var bFe={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=HJ,e}}},provides:function(n){n.pseudoElements2svg=function(e){var i=e.node;Rr.searchPseudoElements&&HJ(void 0===i?Tc:i)}}},VJ=!1,xFe={mixout:function(){return{dom:{unwatch:function(){DJ(),VJ=!0}}}},hooks:function(){return{bootstrap:function(){kJ(lN("mutationObserverCallbacks",{}))},noAuto:function(){!function iFe(){!_O||_O.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;VJ?CN():kJ(lN("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},BJ=function(n){return n.toLowerCase().split(" ").reduce(function(i,o){var r=o.toLowerCase().split("-"),a=r[0],l=r.slice(1).join("-");if(a&&"h"===l)return i.flipX=!0,i;if(a&&"v"===l)return i.flipY=!0,i;if(l=parseFloat(l),isNaN(l))return i;switch(a){case"grow":i.size=i.size+l;break;case"shrink":i.size=i.size-l;break;case"left":i.x=i.x-l;break;case"right":i.x=i.x+l;break;case"up":i.y=i.y-l;break;case"down":i.y=i.y+l;break;case"rotate":i.rotate=i.rotate+l}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},yFe={mixout:function(){return{parse:{transform:function(e){return BJ(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var o=i.getAttribute("data-fa-transform");return o&&(e.transform=BJ(o)),e}}},provides:function(n){n.generateAbstractTransformGrouping=function(e){var i=e.main,o=e.transform,a=e.iconWidth,l={transform:"translate(".concat(e.containerWidth/2," 256)")},u="translate(".concat(32*o.x,", ").concat(32*o.y,") "),f="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),w="rotate(".concat(o.rotate," 0 0)"),ie={outer:l,inner:{transform:"".concat(u," ").concat(f," ").concat(w)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:jo({},ie.outer),children:[{tag:"g",attributes:jo({},ie.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:jo(jo({},i.icon.attributes),ie.path)}]}]}}}},vN={x:0,y:0,width:"100%",height:"100%"};function GJ(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}var MFe={hooks:function(){return{parseNodeAttributes:function(e,i){var o=i.getAttribute("data-fa-mask"),r=o?pO(o.split(" ").map(function(a){return a.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=r4()),e.mask=r,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(n){n.generateAbstractMask=function(e){var t,i=e.children,o=e.attributes,r=e.main,a=e.mask,l=e.maskId,w=r.icon,U=a.icon,ie=function yze(t){var n=t.transform,i=t.iconWidth,o={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(r," ").concat(a," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:e.transform,containerWidth:a.width,iconWidth:r.width}),se={tag:"rect",attributes:jo(jo({},vN),{},{fill:"white"})},Me=w.children?{children:w.children.map(GJ)}:{},we={tag:"g",attributes:jo({},ie.inner),children:[GJ(jo({tag:w.tag,attributes:jo(jo({},w.attributes),ie.path)},Me))]},He={tag:"g",attributes:jo({},ie.outer),children:[we]},Be="mask-".concat(l||FC()),me="clip-".concat(l||FC()),ze={tag:"mask",attributes:jo(jo({},vN),{},{id:Be,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[se,He]},qe={tag:"defs",children:[{tag:"clipPath",attributes:{id:me},children:(t=U,"g"===t.tag?t.children:[t])},ze]};return i.push(qe,{tag:"rect",attributes:jo({fill:"currentColor","clip-path":"url(#".concat(me,")"),mask:"url(#".concat(Be,")")},vN)}),{children:i,attributes:o}}}},OFe={provides:function(n){var e=!1;n4.matchMedia&&(e=n4.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],o={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:jo(jo({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=jo(jo({},r),{},{attributeName:"opacity"}),l={tag:"circle",attributes:jo(jo({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||l.children.push({tag:"animate",attributes:jo(jo({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:jo(jo({},a),{},{values:"1;0;1;1;0;1;"})}),i.push(l),i.push({tag:"path",attributes:jo(jo({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:jo(jo({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:jo(jo({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:jo(jo({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},PFe=[Oze,hFe,pFe,fFe,gFe,bFe,xFe,yFe,MFe,OFe,{hooks:function(){return{parseNodeAttributes:function(e,i){var o=i.getAttribute("data-fa-symbol");return e.symbol=null!==o&&(""===o||o),e}}}}];!function Vze(t,n){var e=n.mixoutsTo;wJ=t,t_={},Object.keys(n_).forEach(function(i){-1===Hze.indexOf(i)&&delete n_[i]}),wJ.forEach(function(i){var o=i.mixout?i.mixout():{};if(Object.keys(o).forEach(function(a){"function"==typeof o[a]&&(e[a]=o[a]),"object"===oO(o[a])&&Object.keys(o[a]).forEach(function(l){e[a]||(e[a]={}),e[a][l]=o[a][l]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(a){t_[a]||(t_[a]=[]),t_[a].push(r[a])})}i.provides&&i.provides(n_)})}(PFe,{mixoutsTo:gu});var TFe=gu.parse,EFe=gu.icon;const AFe=["*"],kFe=t=>{const n={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(n).map(e=>n[e]?e:null).filter(e=>e)};let RFe=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),YJ=(()=>{class t{constructor(){this.definitions={}}addIcons(...e){for(const i of e){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const o of i.icon[2])"string"==typeof o&&(this.definitions[i.prefix][o]=i)}}addIconPacks(...e){for(const i of e){const o=Object.keys(i).map(r=>i[r]);this.addIcons(...o)}}getIconDefinition(e,i){return e in this.definitions&&i in this.definitions[e]?this.definitions[e][i]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zFe=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[Yo]}),t})(),FFe=(()=>{class t{constructor(e,i){this.renderer=e,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(de(yl),de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[Yo],ngContentSelectors:AFe,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},encapsulation:2}),t})(),ps=(()=>{class t{constructor(e,i,o,r,a){this.sanitizer=e,this.config=i,this.iconLibrary=o,this.stackItem=r,this.classes=[],null!=a&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,e){const o=this.findIconDefinition(i);if(null!=o){const r=this.buildParams();this.renderIcon(o,r)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const i=((t,n)=>(t=>void 0!==t.prefix&&void 0!==t.iconName)(t)?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:n,iconName:t}:void 0)(e,this.config.defaultPrefix);if("icon"in i)return i;const o=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=o?o:((t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(i),null)}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?TFe.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...kFe(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,i){const o=EFe(e,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(o.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(de(r9),de(RFe),de(YJ),de(zFe,8),de(FFe,8))},t.\u0275cmp=vn({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,i){2&e&&(Fu("innerHTML",i.renderedIconHTML,A5),Un("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[Yo],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),UJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();C(71345),new ui("SMOOTH_SCROLL_OPTIONS");let HFe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const GFe=new ui("NG_SCROLLBAR_OPTIONS");let jJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:GFe,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Af,Hf,Cbe,HFe]]}),t})();function F0(t){return getComputedStyle(t)}function L2(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function CO(t){var n=document.createElement("div");return n.className=t,n}var WJ="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function a4(t,n){if(!WJ)throw new Error("No element matching method supported");return WJ.call(t,n)}function i_(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function qJ(t,n){return Array.prototype.filter.call(t.children,function(e){return a4(e,n)})}var Zl_element_thumb=function(t){return"ps__thumb-"+t},Zl_element_rail=function(t){return"ps__rail-"+t},Zl_element_consuming="ps__child--consume",Zl_state_focus="ps--focus",Zl_state_clicking="ps--clicking",Zl_state_active=function(t){return"ps--active-"+t},Zl_state_scrolling=function(t){return"ps--scrolling-"+t},$J={x:null,y:null};function XJ(t,n){var e=t.element.classList,i=Zl_state_scrolling(n);e.contains(i)?clearTimeout($J[n]):e.add(i)}function QJ(t,n){$J[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(Zl_state_scrolling(n))},t.settings.scrollingThreshold)}var GC=function(n){this.element=n,this.handlers={}},ZJ={isEmpty:{configurable:!0}};GC.prototype.bind=function(n,e){void 0===this.handlers[n]&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},GC.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(o){return!(!e||o===e)||(i.element.removeEventListener(n,o,!1),!1)})},GC.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},ZJ.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(GC.prototype,ZJ);var o_=function(){this.eventElements=[]};function vO(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function bO(t,n,e,i,o){var r;if(void 0===i&&(i=!0),void 0===o&&(o=!1),"top"===n)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function UFe(t,n,e,i,o){var r=e[0],a=e[1],l=e[2],u=e[3],f=e[4],w=e[5];void 0===i&&(i=!0),void 0===o&&(o=!1);var T=t.element;t.reach[u]=null,T[l]<1&&(t.reach[u]="start"),T[l]>t[r]-t[a]-1&&(t.reach[u]="end"),n&&(T.dispatchEvent(vO("ps-scroll-"+u)),n<0?T.dispatchEvent(vO("ps-scroll-"+f)):n>0&&T.dispatchEvent(vO("ps-scroll-"+w)),i&&function YFe(t,n){XJ(t,n),QJ(t,n)}(t,u)),t.reach[u]&&(n||o)&&T.dispatchEvent(vO("ps-"+u+"-reach-"+t.reach[u]))}(t,e,r,i,o)}function ol(t){return parseInt(t,10)||0}o_.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new GC(n),this.eventElements.push(e)),e},o_.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},o_.prototype.unbind=function(n,e,i){var o=this.eventElement(n);o.unbind(e,i),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1)},o_.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},o_.prototype.once=function(n,e,i){var o=this.eventElement(n),r=function(a){o.unbind(e,r),i(a)};o.bind(e,r)};var r_={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function s3(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(qJ(n,Zl_element_rail("x")).forEach(function(o){return i_(o)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(qJ(n,Zl_element_rail("y")).forEach(function(o){return i_(o)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function qFe(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,L2(n.scrollbarXRail,e);var o={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?o.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:o.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,L2(n.scrollbarYRail,o),L2(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),L2(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(Zl_state_active("x")):(n.classList.remove(Zl_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(Zl_state_active("y")):(n.classList.remove(Zl_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function KJ(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function JJ(t,n){var e=n[0],i=n[1],o=n[2],r=n[3],a=n[4],l=n[5],u=n[6],f=n[7],w=n[8],T=t.element,U=null,ie=null,se=null;function Me(Be){Be.touches&&Be.touches[0]&&(Be[o]=Be.touches[0].pageY),T[u]=U+se*(Be[o]-ie),XJ(t,f),s3(t),Be.stopPropagation(),Be.preventDefault()}function we(){QJ(t,f),t[w].classList.remove(Zl_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",Me)}function He(Be,me){U=T[u],me&&Be.touches&&(Be[o]=Be.touches[0].pageY),ie=Be[o],se=(t[i]-t[e])/(t[r]-t[l]),me?t.event.bind(t.ownerDocument,"touchmove",Me):(t.event.bind(t.ownerDocument,"mousemove",Me),t.event.once(t.ownerDocument,"mouseup",we),Be.preventDefault()),t[w].classList.add(Zl_state_clicking),Be.stopPropagation()}t.event.bind(t[a],"mousedown",function(Be){He(Be)}),t.event.bind(t[a],"touchstart",function(Be){He(Be,!0)})}var eHe={"click-rail":function $Fe(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,s3(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,s3(t),e.stopPropagation()})},"drag-thumb":function XFe(t){JJ(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),JJ(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function QFe(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(a4(n,":hover")||a4(t.scrollbarX,":focus")||a4(t.scrollbarY,":focus"))){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(function jFe(t){return a4(t,"input,[contenteditable]")||a4(t,"select,[contenteditable]")||a4(t,"textarea,[contenteditable]")||a4(t,"button,[contenteditable]")}(a))return}var l=0,u=0;switch(r.which){case 37:l=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:u=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:l=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:u=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:u=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==l||t.settings.suppressScrollY&&0!==u||(n.scrollTop-=u,n.scrollLeft+=l,s3(t),function o(r,a){var l=Math.floor(n.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===l&&a>0||l>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var u=n.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===u&&r<0||u>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}(l,u)&&r.preventDefault())}})},wheel:function ZFe(t){var n=t.element;function r(a){var l=function i(a){var l=a.deltaX,u=-1*a.deltaY;return(void 0===l||void 0===u)&&(l=-1*a.wheelDeltaX/6,u=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(l*=10,u*=10),l!=l&&u!=u&&(l=0,u=a.wheelDelta),a.shiftKey?[-u,-l]:[l,u]}(a),u=l[0],f=l[1];if(!function o(a,l,u){if(!r_.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(a))return!1;for(var f=a;f&&f!==n;){if(f.classList.contains(Zl_element_consuming))return!0;var w=F0(f);if(u&&w.overflowY.match(/(scroll|auto)/)){var T=f.scrollHeight-f.clientHeight;if(T>0&&(f.scrollTop>0&&u<0||f.scrollTop0))return!0}if(l&&w.overflowX.match(/(scroll|auto)/)){var U=f.scrollWidth-f.clientWidth;if(U>0&&(f.scrollLeft>0&&l<0||f.scrollLeft0))return!0}f=f.parentNode}return!1}(a.target,u,f)){var w=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?n.scrollTop-=f*t.settings.wheelSpeed:n.scrollTop+=u*t.settings.wheelSpeed,w=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?n.scrollLeft+=u*t.settings.wheelSpeed:n.scrollLeft-=f*t.settings.wheelSpeed,w=!0):(n.scrollTop-=f*t.settings.wheelSpeed,n.scrollLeft+=u*t.settings.wheelSpeed),s3(t),w=w||function e(a,l){var u=Math.floor(n.scrollTop),f=0===n.scrollTop,w=u+n.offsetHeight===n.scrollHeight,T=0===n.scrollLeft,U=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(l)>Math.abs(a)?f||w:T||U)||!t.settings.wheelPropagation}(u,f),w&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}void 0!==window.onwheel?t.event.bind(n,"wheel",r):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",r)},touch:function KFe(t){if(r_.supportsTouch||r_.supportsIePointer){var n=t.element,o={},r=0,a={},l=null;r_.supportsTouch?(t.event.bind(n,"touchstart",w),t.event.bind(n,"touchmove",U),t.event.bind(n,"touchend",ie)):r_.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",w),t.event.bind(n,"pointermove",U),t.event.bind(n,"pointerup",ie)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",w),t.event.bind(n,"MSPointerMove",U),t.event.bind(n,"MSPointerUp",ie)))}function i(se,Me){n.scrollTop-=Me,n.scrollLeft-=se,s3(t)}function u(se){return se.targetTouches?se.targetTouches[0]:se}function f(se){return!(se.pointerType&&"pen"===se.pointerType&&0===se.buttons||!(se.targetTouches&&1===se.targetTouches.length||se.pointerType&&"mouse"!==se.pointerType&&se.pointerType!==se.MSPOINTER_TYPE_MOUSE))}function w(se){if(f(se)){var Me=u(se);o.pageX=Me.pageX,o.pageY=Me.pageY,r=(new Date).getTime(),null!==l&&clearInterval(l)}}function U(se){if(f(se)){var Me=u(se),we={pageX:Me.pageX,pageY:Me.pageY},He=we.pageX-o.pageX,Be=we.pageY-o.pageY;if(function T(se,Me,we){if(!n.contains(se))return!1;for(var He=se;He&&He!==n;){if(He.classList.contains(Zl_element_consuming))return!0;var Be=F0(He);if(we&&Be.overflowY.match(/(scroll|auto)/)){var me=He.scrollHeight-He.clientHeight;if(me>0&&(He.scrollTop>0&&we<0||He.scrollTop0))return!0}if(Me&&Be.overflowX.match(/(scroll|auto)/)){var ze=He.scrollWidth-He.clientWidth;if(ze>0&&(He.scrollLeft>0&&Me<0||He.scrollLeft0))return!0}He=He.parentNode}return!1}(se.target,He,Be))return;i(He,Be),o=we;var me=(new Date).getTime(),ze=me-r;ze>0&&(a.x=He/ze,a.y=Be/ze,r=me),function e(se,Me){var we=Math.floor(n.scrollTop),He=n.scrollLeft,Be=Math.abs(se),me=Math.abs(Me);if(me>Be){if(Me<0&&we===t.contentHeight-t.containerHeight||Me>0&&0===we)return 0===window.scrollY&&Me>0&&r_.isChrome}else if(Be>me&&(se<0&&He===t.contentWidth-t.containerWidth||se>0&&0===He))return!0;return!0}(He,Be)&&se.preventDefault()}}function ie(){t.settings.swipeEasing&&(clearInterval(l),l=setInterval(function(){t.isInitialized?clearInterval(l):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(l):(i(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(l)},10))}}},YC=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var o in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[o]=e[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var w,f,r=function(){return n.classList.add(Zl_state_focus)},a=function(){return n.classList.remove(Zl_state_focus)};this.isRtl="rtl"===F0(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(f=n.scrollLeft,n.scrollLeft=-1,w=n.scrollLeft<0,n.scrollLeft=f,w),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new o_,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=CO(Zl_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=CO(Zl_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=F0(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ol(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ol(l.borderLeftWidth)+ol(l.borderRightWidth),L2(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ol(l.marginLeft)+ol(l.marginRight),L2(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=CO(Zl_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=CO(Zl_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=F0(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ol(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function WFe(t){var n=F0(t);return ol(n.width)+ol(n.paddingLeft)+ol(n.paddingRight)+ol(n.borderLeftWidth)+ol(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ol(u.borderTopWidth)+ol(u.borderBottomWidth),L2(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ol(u.marginTop)+ol(u.marginBottom),L2(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return eHe[f](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),s3(this)};YC.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,L2(this.scrollbarXRail,{display:"block"}),L2(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ol(F0(this.scrollbarXRail).marginLeft)+ol(F0(this.scrollbarXRail).marginRight),this.railYMarginHeight=ol(F0(this.scrollbarYRail).marginTop)+ol(F0(this.scrollbarYRail).marginBottom),L2(this.scrollbarXRail,{display:"none"}),L2(this.scrollbarYRail,{display:"none"}),s3(this),bO(this,"top",0,!1,!0),bO(this,"left",0,!1,!0),L2(this.scrollbarXRail,{display:""}),L2(this.scrollbarYRail,{display:""}))},YC.prototype.onScroll=function(n){!this.isAlive||(s3(this),bO(this,"top",this.element.scrollTop-this.lastScrollTop),bO(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},YC.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),i_(this.scrollbarX),i_(this.scrollbarY),i_(this.scrollbarXRail),i_(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},YC.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const tHe=YC;var eee=function(){if("undefined"!=typeof Map)return Map;function t(n,e){var i=-1;return n.some(function(o,r){return o[0]===e&&(i=r,!0)}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(e){var i=t(this.__entries__,e),o=this.__entries__[i];return o&&o[1]},n.prototype.set=function(e,i){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=i:this.__entries__.push([e,i])},n.prototype.delete=function(e){var i=this.__entries__,o=t(i,e);~o&&i.splice(o,1)},n.prototype.has=function(e){return!!~t(this.__entries__,e)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(e,i){void 0===i&&(i=null);for(var o=0,r=this.__entries__;o0},t.prototype.connect_=function(){!bN||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sHe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!bN||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(n){var e=n.propertyName,i=void 0===e?"":e;aHe.some(function(r){return!!~i.indexOf(r)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),tee=function(t,n){for(var e=0,i=Object.keys(n);e0},t}(),oee="undefined"!=typeof WeakMap?new WeakMap:new eee,ree=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=cHe.getInstance(),i=new CHe(n,e,this);oee.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){ree.prototype[t]=function(){var n;return(n=oee.get(this))[t].apply(n,arguments)}});const bHe=void 0!==xO.ResizeObserver?xO.ResizeObserver:ree,wHe=new ui("PERFECT_SCROLLBAR_CONFIG");class MHe{constructor(n,e,i,o){this.x=n,this.y=e,this.w=i,this.h=o}}class aee{constructor(n,e){this.x=n,this.y=e}}const see=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class OHe{constructor(n={}){this.assign(n)}assign(n={}){for(const e in n)this[e]=n[e]}}let s4=(()=>{class t{constructor(e,i,o,r,a){this.zone=e,this.differs=i,this.elementRef=o,this.platformId=r,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new N,this.disabled=!1,this.psScrollY=new In,this.psScrollX=new In,this.psScrollUp=new In,this.psScrollDown=new In,this.psScrollLeft=new In,this.psScrollRight=new In,this.psYReachEnd=new In,this.psYReachStart=new In,this.psXReachEnd=new In,this.psXReachStart=new In}ngOnInit(){if(!this.disabled&&ll(this.platformId)){const e=new OHe(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new tHe(this.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new bHe(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{see.forEach(i=>{const o=i.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`);Jc(this.elementRef.nativeElement,o).pipe(HD(20),Yn(this.ngDestroy)).subscribe(r=>{this[i].emit(r)})})})}}ngOnDestroy(){ll(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&ll(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(e){e.disabled&&!e.disabled.isFirstChange()&&ll(this.platformId)&&e.disabled.currentValue!==e.disabled.previousValue&&(!0===e.disabled.currentValue?this.ngOnDestroy():!1===e.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(e){}},0))}geometry(e="scroll"){return new MHe(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.instance?new aee(this.instance.reach.x||0,this.instance.reach.y||0):new aee(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(e="any"){const i=this.elementRef.nativeElement;return"any"===e?i.classList.contains("ps--active-x")||i.classList.contains("ps--active-y"):"both"===e?i.classList.contains("ps--active-x")&&i.classList.contains("ps--active-y"):i.classList.contains("ps--active-"+e)}scrollTo(e,i,o){this.disabled||(null==i&&null==o?this.animateScrolling("scrollTop",e,o):(null!=e&&this.animateScrolling("scrollLeft",e,o),null!=i&&this.animateScrolling("scrollTop",i,o)))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,o){if("string"==typeof e&&(e=this.elementRef.nativeElement.querySelector(e)),e){const r=e.getBoundingClientRect(),a=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-a.left+this.elementRef.nativeElement.scrollLeft+(i||0),o),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-a.top+this.elementRef.nativeElement.scrollTop+(i||0),o)}}animateScrolling(e,i,o){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),o&&"undefined"!=typeof window){if(i!==this.elementRef.nativeElement[e]){let r=0,a=0,l=performance.now(),u=this.elementRef.nativeElement[e];const f=(u-i)/2,w=T=>{a+=Math.PI/(o/(T-l)),r=Math.round(i+f+f*Math.cos(a)),this.elementRef.nativeElement[e]===u&&(a>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=r,u=this.elementRef.nativeElement[e],l=T,this.animation=window.requestAnimationFrame(w)))};window.requestAnimationFrame(w)}}else this.elementRef.nativeElement[e]=i}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Mf),de(Ti),de(Hc),de(wHe,8))},t.\u0275dir=St({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[Yo]}),t})(),MO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va],va]}),t})(),D1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Yf,SQ,$p,LM,jQ,WQ,dZ,jJ,MO,UK,UJ],va,SQ,Yf,$p,LM,jQ,WQ,dZ,jJ,MO,UK,UJ]}),t})();const SHe={customScrollbars:!0,routerAnimation:"fadeIn"};class zh{static cleanID(n){return n&&n.replace(/\W/g,"_")}static generateGUID(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()}static pad(n,e){let i=0,o="";for(;i++{return(t=OO||(OO={})).COMPLEX="complex",t.MF="mf",t.BP="bp",t.CC="cc",OO;var t})(),H0=(()=>{return(t=H0||(H0={})).ACTIVITY_NODE="activity_node",t.EVIDENCE="evidence",t.ENTITY="entity",t.ARTICLE="article",t.CONTRIBUTOR="contributor",H0;var t})();class Pi{constructor(n,e,i,o,r){this.id=n,this.label=e,this.url=i,this.modelId=r,this.entityType=H0.ENTITY,this.termHistory=[],this.weight=1,this._uuid=null,this.uuid=o}static createEntity(n){return new Pi(null==n?void 0:n.id,null==n?void 0:n.label)}get uuid(){return this._uuid}set uuid(n){n&&(this._uuid=n),this.displayId="noc-node-"+zh.cleanID(n)}hasValue(){return null!=this.id&&this.id.length>0}}function kHe(t,n){return t.weight{return(t=El||(El={})).general="general",t.cardinality="cardinality",t.relation="relation",El;var t})(),Al=(()=>{return(t=Al||(Al={})).warning="warning",t.error="error",Al;var t})();class wd{constructor(n,e,i,o){this.category=n,this.type=e,this.message=i,this.meta=o}}class c_{constructor(n,e){this.results=[],this.category=n,this.requestParams=e}}class sm{constructor(n,e,i){this.uuid=n,this.oldValue=e,this.newValue=i}}class xN{constructor(){this.categoryType="isa_closure"}}var $n=(()=>{return(t=$n||($n={})).GoCellularComponent="GoCellularComponent",t.GoBiologicalProcess="GoBiologicalProcess",t.GoMolecularFunction="GoMolecularFunction",t.GoMolecularEntity="GoMolecularEntity",t.GoCellularAnatomical="GoCellularAnatomical",t.GoProteinContainingComplex="GoProteinContainingComplex",t.GoBiologicalPhase="GoBiologicalPhase",t.GoChemicalEntity="GoChemicalEntity",t.GoCellTypeEntity="GoCellTypeEntity",t.GoAnatomicalEntity="GoAnatomicalEntity",t.GoOrganism="GoOrganism",t.WormLifeStage="WormLifeStage",t.GoChemicalEntityHasInput="GoChemicalEntityHasInput",t.GoChemicalEntityHasOutput="GoChemicalEntityHasOutput",t.GoEvidence="GoEvidence",t.BPPhaseStageExistenceOverlaps="BPPhaseStageExistenceOverlaps",t.BPPhaseStageExistenceStartsEnds="BPPhaseStageExistenceStartsEnds",t.UberonStage="UberonStage",$n;var t})();class SO{constructor(n){this.entityType=H0.ACTIVITY_NODE,this.rootTypes=[],this.term=new Pi("",""),this.termLookup=new c_,this.isExtension=!1,this.nodeGroup={},this.ontologyClass=[],this.isComplement=!1,this.assignedBy=null,this.contributor=null,this.isCatalyticActivity=!1,this.isKey=!1,this.treeLevel=1,this.required=!1,this.termRequired=!1,this.visible=!0,this.skipEvidenceCheck=!1,this.showEvidence=!0,this.errors=[],this.warnings=[],this.status="0",this.relationEditable=!1,this.showInMenu=!1,this.insertMenuNodes=[],this.linkedNode=!1,this.expandable=!0,this.expanded=!1,this.causalNode=!1,this.canDelete=!0,n&&this.overrideValues(n)}getTerm(){return this.term}get id(){return this._id}set id(n){this._id=n,this.displayId=zh.cleanID(n)}get classExpression(){return this.term.classExpression}set classExpression(n){this.term.classExpression=n}updateNodeType(){this.hasRootType(Kl)?this.type=$n.GoBiologicalProcess:this.hasRootType(Jl)?this.type=$n.GoMolecularEntity:this.hasRootType(p1)?this.type=$n.GoMolecularFunction:this.hasRootType(Kl)?this.type=$n.GoBiologicalProcess:this.hasRootType(rd)&&(this.type=$n.GoCellularComponent)}setTermOntologyClass(n){this.ontologyClass=n}toggleIsComplement(){const n=this;n.isComplement=!n.isComplement,n.nodeGroup.isComplement=n.isComplement}setIsComplement(n){this.isComplement=n}hasValue(){return this.term.hasValue()}hasRootType(n){return!!(0,Zt.find)(this.rootTypes,i=>i.id===n.category)}hasRootTypes(n){let e=!1;for(let i=0;i0&&(e=!1),e}reviewTermChanges(n,e){const i=this;let o=!1;return i.term.modified&&(i.type===$n.GoMolecularEntity?(e.gpsCount++,n.gpsCount++):(e.termsCount++,n.termsCount++),o=!0),(0,Zt.each)(i.predicate.evidence,(r,a)=>{const l=r.reviewEvidenceChanges(n,e);o=o||l}),e.updateTotal(),o}checkStored(n){const e=this;n&&e.term.id!==n.term.id&&(e.term.termHistory.unshift(new Pi(n.term.id,n.term.label)),e.term.modified=!0),(0,Zt.each)(e.predicate.evidence,(i,o)=>{const r=null==n?void 0:n.predicate.getEvidenceById(i.uuid);i.checkStored(r)})}addPendingChanges(n){const e=this;e.term.id!==n.term.id&&(e.pendingEntityChanges=new sm(e.uuid,n.term,e.term)),e.predicate.edge.id!==n.predicate.edge.id&&(e.pendingRelationChanges=new sm(e.uuid,n.predicate.edge,e.predicate.edge)),(0,Zt.each)(e.predicate.evidence,(i,o)=>{const r=n.predicate.getEvidenceById(i.uuid);i.addPendingChanges(r)})}enableSubmit(n,e=!0){const i=this;let o=!0;if(i.termRequired&&!i.term.id){i.required=!0;const a=new wd(Al.error,El.general,`"${i.label}" is required`,{aspect:i.label});n.push(a),o=!1}else i.required=!1;return!i.skipEvidenceCheck&&i.hasValue()&&e&&(0,Zt.each)(i.predicate.evidence,(r,a)=>{o=r.enableSubmit(n,i,a+1)&&o}),o}overrideValues(n={}){Object.assign(this,n)}}function PO(t){return t.map(e=>{let i;return i="is_obsolete"===e.categoryType?`${e.categoryType}:${e.category}`:`${e.categoryType}:"${e.category}"`,e.suffix&&(i+=" "+e.suffix),i}).join(" OR ")}function lee(t,n){return t.term.id===n.term.id}function dee(t,n){return t.weight0;e=l&&u}return e}}function hee(t,n){return t.evidence.id===n.evidence.id&&t.reference===n.reference&&t.with===n.with}function pee(t,n){return t.evidence.id===n.evidence.id}function fee(t,n){return t.reference===n.reference}function gee(t,n){return t.with===n.with}function VHe(t,n){return t.date===n.date}class u3{constructor(n,e){this._edge=new Pi("",""),this.isComplement=!1,this.isReverseLink=!1,this.comments=[],this.evidenceLookup=new c_,this.referenceLookup=new c_,this.withLookup=new c_,this._evidenceMeta={lookupBase:"",ontologyClass:"eco"},this.visible=!0,this.edge=n,this.evidence=e||[]}get edge(){return this._edge}set edge(n){this._edge=n||new Pi("","")}setEvidenceMeta(n,e){this._evidenceMeta.lookupBase=e,this._evidenceMeta.ontologyClass=n,this.evidenceLookup.requestParams=JSON.parse(JSON.stringify(e)),this.addEvidence()}setEvidence(n){const e=this;e.evidence=[],(0,Zt.each)(n,function(i,o){e.addEvidence(i)})}addEvidence(n){const i=n?(0,Zt.cloneDeep)(n):new Ll;return i.setEvidenceOntologyClass(this._evidenceMeta.ontologyClass),this.evidence.push(i),i}hasEvidence(){return!!this.evidence&&(this.evidence.length>1||this.evidence.length>0&&!!this.evidence[0].hasValue())}removeEvidence(n){const e=this;0===n&&1===e.evidence.length?e.evidence[0].clearValues():e.evidence.splice(n,1)}resetEvidence(){const n=this;n.evidence=[n.evidence[0]],n.evidence[0].clearValues()}getEvidenceById(n){return(0,Zt.find)(this.evidence,i=>i.uuid===n)}}const EO={defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"50",start:"0",packet:"1",callback_type:"search",qf:["annotation_class^3","annotation_class_label_searchable^5.5","description_searchable^1","comment_searchable^0.5","synonym_searchable^1","alternate_id^1","isa_closure^1","isa_closure_label_searchable^1"],_:Date.now()},mu=(t,n={})=>{const e=new SO,i=new u3(null),o=PO(t),r=PO([yN]);return e.overrideValues(n),i.setEvidenceMeta("eco",Object.assign({},JSON.parse(JSON.stringify(EO)),{fq:['document_category:"ontology_class"',r]})),e.predicate=i,t&&t.length>0&&(e.termLookup=new c_(null,Object.assign({},JSON.parse(JSON.stringify(EO)),{fq:['document_category:"ontology_class"',o]}))),e};var AO,YHe=new Uint8Array(16);function UHe(){if(!AO&&!(AO="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return AO(YHe)}const jHe=/^(?:[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,qHe=function WHe(t){return"string"==typeof t&&jHe.test(t)};for(var ad=[],wN=0;wN<256;++wN)ad.push((wN+256).toString(16).substr(1));const WC=function QHe(t,n,e){var i=(t=t||{}).random||(t.rng||UHe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=i[o];return n}return function $He(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(ad[t[n+0]]+ad[t[n+1]]+ad[t[n+2]]+ad[t[n+3]]+"-"+ad[t[n+4]]+ad[t[n+5]]+"-"+ad[t[n+6]]+ad[t[n+7]]+"-"+ad[t[n+8]]+ad[t[n+9]]+"-"+ad[t[n+10]]+ad[t[n+11]]+ad[t[n+12]]+ad[t[n+13]]+ad[t[n+14]]+ad[t[n+15]]).toLowerCase();if(!qHe(e))throw TypeError("Stringified UUID is invalid");return e}(i)};class D2{constructor(n,e,i){this.id=WC(),this.subject=n,this.object=e,this.predicate=i}isTripleComplete(){return this.subject&&this.object&&this.predicate}}function qC(t,n,e){return t._nodes[e]=n,t._edges[e]=[],t}function cm(t){return t._nodes}function MN(t,n){return t._edges[n.subjectId].push(n),t}function eVe(t,n){return t.uuid===n.uuid}function tVe(t,n){const e=Object.values(cm(t)),i=Object.values(cm(n));return(0,Zt.differenceWith)(e,i,eVe)}var nVe=C(85510);class Cee{constructor(){this.graph={_nodes:{},_edges:{}},this.graphlib=new nVe.Graph}get nodes(){const n=cm(this.graph);return Object.values(n)}get edges(){return this.getEdges(null)}exist(n){return n in this.graph._nodes}getNode(n){return function mee(t,n){return t._nodes[n]}(this.graph,n)}getNodes(n){const e=this;return n.map(o=>e.getNode(o))}addNode(n){return this.graphlib.setNode(n.id),qC(this.graph,n,n.id)}addNodes(...n){const e=this;n.forEach(i=>{e.addNode(i)})}removeNode(n){this.graphlib.removeNode(n.id),function ZHe(t,n){delete t._nodes[n]}(this.graph,n.id)}addEdge(n,e,i){const o=new D2(n,e,i),r={subjectId:n.id,objectId:e.id,metadata:o};this.graphlib.setEdge(o.subject.id,o.object.id),MN(this.graph,r)}addEdgeById(n,e,i){const o=this.getNode(n),r=this.getNode(e);this.addEdge(o,r,i)}editEdge(n,e,i){this.getEdge(n,e)}getEdge(n,e){const o=function KHe(t,n){return(0,Zt.find)(t._edges[n.subjectId],e=>e.objectId===n.objectId)}(this.graph,{subjectId:n,objectId:e,metadata:null});return o?o.metadata:null}getEdges(n){const e=function lm(t,n){if(n)return t._edges[n];const e=[];return Object.keys(t._edges).forEach(i=>{e.push(...t._edges[i])}),e}(this.graph,n);return null==e?void 0:e.map(i=>i.metadata)}removeEdge(n,e,i){const o=new D2(n,e,i),r={subjectId:n.id,objectId:e.id,metadata:o};this.graphlib.removeEdge(n.id,e.id),function JHe(t,n){(0,Zt.remove)(t._edges[n.subjectId],e=>e.objectId===n.objectId)}(this.graph,r)}sourceNodes(){const n=this.graphlib.sources();return this.getNodes(n)}successors(n){const e=this.graphlib.successors(n);return this.getNodes(e)}descendants(n){const e=this._descendantsDFS(n);return this.getNodes(e)}_descendantsDFS(n){const e=this,i=this.graphlib.successors(n);return i?(0,Zt.flatten)(i.concat(i.map(function(o){return e._descendantsDFS(o)}))):[]}getTrimmedGraph(n){const e=this,i={_nodes:{},_edges:{}},o=e.getEdges(n),r=e.getNode(n);return qC(i,r,r.id),(0,Zt.each)(o,a=>{e._trimGraphDFS(i,a.subject,a.object,a.predicate,a.predicate)}),i}edgeTypeExist(n,e,i,o){return(0,Zt.find)(this.getEdges(n),l=>l.predicate.edge.id===e&&l.subject.type===i&&l.object.type===o)}_trimGraphDFS(n,e,i,o,r){const a=this;if(i.hasValue()){const l=new u3(o.edge,r.evidence),u=new D2(e,i,l),f={subjectId:e.id,objectId:i.id,metadata:u};qC(n,i,i.id),MN(n,f)}(0,Zt.each)(a.getEdges(i.id),l=>{a._trimGraphDFS(n,i.hasValue()?i:e,l.object,i.hasValue()?l.predicate:o,l.predicate)})}}const $C=JSON.parse('{"Y":[{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002234","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000066","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002411","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002305","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002304","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002211","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002212","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002213","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012003","exclude_from_extensions":false},{"subject":"GO:0048856","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002296","exclude_from_extensions":false},{"subject":"GO:0048646","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002297","exclude_from_extensions":false},{"subject":"GO:0009653","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002298","exclude_from_extensions":false},{"subject":"GO:0030154","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002315","exclude_from_extensions":false},{"subject":"GO:0051301","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":false},{"subject":"GO:0045165","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002348","exclude_from_extensions":false},{"subject":"GO:0001709","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002349","exclude_from_extensions":false},{"subject":"GO:0001708","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002356","exclude_from_extensions":false},{"subject":"GO:0022607","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002588","exclude_from_extensions":false},{"subject":"GO:0022411","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002590","exclude_from_extensions":false},{"subject":"GO:0016043","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002592","exclude_from_extensions":false},{"subject":"GO:0021700","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002299","exclude_from_extensions":false},{"subject":"GO:0040007","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002343","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000","CHEBI:24431","CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"GO:0040011","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002565","exclude_from_extensions":false},{"subject":"GO:0008152","root_subject":"GO:0008150","object":["CHEBI:24431"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0008152","root_subject":"GO:0008150","object":["CHEBI:24431"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0034367","root_subject":"GO:0008150","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002591","exclude_from_extensions":false},{"subject":"GO:0007389","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002356","exclude_from_extensions":false},{"subject":"GO:0006810","root_subject":"GO:0008150","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0006810","root_subject":"GO:0008150","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002333","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000051","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000066","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["CHEBI:24431","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002234","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["CHEBI:24431","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002413","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002211","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002212","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002213","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002578","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002630","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002629","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012012","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002407","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002409","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012009","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012010","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent","GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002418","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004046","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004047","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002411","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002305","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002304","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0044848","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002092","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["CHEBI:24431","CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["GO:0005575"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["GO:0005575"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"CARO:0000000","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CARO:0000000","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001015","exclude_from_extensions":false},{"subject":"CL:0000003","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["CARO:0000000"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002220","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["CARO:0000000"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002131","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002490","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002491","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["CARO:0000000","GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000051","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002490","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002491","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["CARO:0000000","GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["GO:0003674"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002326","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["CARO:0000000","GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0003674"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002326","exclude_from_extensions":false}]}'),iVe=JSON.parse('[{"id":"CHEBI:33695","label":"information biomacromolecule","definition":"","comment":"","synonyms":[""]},{"id":"CHEBI:36080","label":"protein","definition":"A biological macromolecule minimally consisting of one polypeptide chain synthesized at the ribosome.","comment":"","synonyms":["proteins"]},{"id":"GO:0032991","label":"protein complex","definition":"A stable assembly of two or more macromolecules, i.e. proteins, nucleic acids, carbohydrates or lipids, in which at least one component is a protein and the constituent parts function together.","comment":"A protein complex in this context is meant as a stable set of interacting proteins which can be co-purified by an acceptable method, and where the complex has been shown to exist as an isolated, functional unit in vivo. Acceptable experimental methods include stringent protein purification followed by detection of protein interaction. The following methods should be considered non-acceptable: simple immunoprecipitation, pull-down experiments from cell extracts without further purification, colocalization and 2-hybrid screening. Interactions that should not be captured as protein complexes include: 1) enzyme/substrate, receptor/ligand or any similar transient interactions, unless these are a critical part of the complex assembly or are required e.g. for the receptor to be functional; 2) proteins associated in a pull-down/co-immunoprecipitation assay with no functional link or any evidence that this is a defined biological entity rather than a loose-affinity complex; 3) any complex where the only evidence is based on genetic interaction data; 4) partial complexes, where some subunits (e.g. transmembrane ones) cannot be expressed as recombinant proteins and are excluded from experiments (in this case, independent evidence is necessary to find out the composition of the full complex, if known). Interactions that may be captured as protein complexes include: 1) enzyme/substrate or receptor/ligand if the complex can only assemble and become functional in the presence of both classes of subunits; 2) complexes where one of the members has not been shown to be physically linked to the other(s), but is a homologue of, and has the same functionality as, a protein that has been experimentally demonstrated to form a complex with the other member(s); 3) complexes whose existence is accepted based on localization and pharmacological studies, but for which experimental evidence is not yet available for the complex as a whole.","synonyms":["macromolecular complex","macromolecule complex","protein complex"]},{"id":"GO:0005575","label":"cellular component","definition":"A location, relative to cellular compartments and structures, occupied by a macromolecular machine when it carries out a molecular function. There are two ways in which the gene ontology describes locations of gene products: (1) relative to cellular structures (e.g., cytoplasmic side of plasma membrane) or compartments (e.g., mitochondrion), and (2) the stable macromolecular complexes of which they are parts (e.g., the ribosome).","comment":"Note that, in addition to forming the root of the cellular component ontology, this term is recommended for use for the annotation of gene products whose cellular component is unknown. When this term is used for annotation, it indicates that no information was available about the cellular component of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this.","synonyms":["cell or subcellular entity","cellular component"]},{"id":"GO:0008150","label":"biological process","definition":"A biological process represents a specific objective that the organism is genetically programmed to achieve. Biological processes are often described by their outcome or ending state, e.g., the biological process of cell division results in the creation of two daughter cells (a divided cell) from a single parent cell. A biological process is accomplished by a particular set of molecular functions carried out by specific gene products (or macromolecular complexes), often in a highly regulated manner and in a particular temporal sequence.","comment":"Note that, in addition to forming the root of the biological process ontology, this term is recommended for use for the annotation of gene products whose biological process is unknown. When this term is used for annotation, it indicates that no information was available about the biological process of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this.","synonyms":["biological process","physiological process"]},{"id":"GO:0048856","label":"anatomical structure development","definition":"The biological process whose specific outcome is the progression of an anatomical structure from an initial condition to its mature state. This process begins with the formation of the structure and ends with the mature structure, whatever form that may be including its natural destruction. An anatomical structure is any biological entity that occupies space and is distinguished from its surroundings. Anatomical structures can be macroscopic such as a carpel, or microscopic such as an acrosome.","comment":"","synonyms":["development of an anatomical structure"]},{"id":"GO:0048646","label":"anatomical structure formation involved in morphogenesis","definition":"The developmental process pertaining to the initial formation of an anatomical structure from unspecified parts. This process begins with the specific processes that contribute to the appearance of the discrete structure and ends when the structural rudiment is recognizable. An anatomical structure is any biological entity that occupies space and is distinguished from its surroundings. Anatomical structures can be macroscopic such as a carpel, or microscopic such as an acrosome.","comment":"Note that, for example, the formation of a pseudopod in an amoeba would not be considered formation involved in morphogenesis because it would not be thought of as the formation of an anatomical structure that was part of the shaping of the amoeba during its development. The formation of an axon from a neuron would be considered the formation of an anatomical structure involved in morphogenesis because it contributes to the creation of the form of the neuron in a developmental sense.","synonyms":["formation of an anatomical structure involved in morphogenesis"]},{"id":"GO:0009653","label":"anatomical structure morphogenesis","definition":"The process in which anatomical structures are generated and organized. Morphogenesis pertains to the creation of form.","comment":"","synonyms":["anatomical structure organization","morphogenesis"]},{"id":"GO:0030154","label":"cell differentiation","definition":"The process in which relatively unspecialized cells, e.g. embryonic or regenerative cells, acquire specialized structural and/or functional features that characterize the cells, tissues, or organs of the mature organism or some other relatively stable phase of the organism\'s life history. Differentiation includes the processes involved in commitment of a cell to a specific fate and its subsequent development to the mature state.","comment":"","synonyms":[""]},{"id":"GO:0051301","label":"cell division","definition":"The process resulting in division and partitioning of components of a cell to form more cells; may or may not be accompanied by the physical separation of a cell into distinct, individually membrane-bounded daughter cells.","comment":"Note that this term differs from \'cytokinesis ; GO:0000910\' in that cytokinesis does not include nuclear division.","synonyms":[""]},{"id":"GO:0045165","label":"cell fate commitment","definition":"The commitment of cells to specific cell fates and their capacity to differentiate into particular kinds of cells. Positional information is established through protein signals that emanate from a localized source within a cell (the initial one-cell zygote) or within a developmental field.","comment":"Note that this term was \'cell fate determination\' but the term name was changed to better match its existing definition and the child term \'cell fate determination; GO:0001709\' was also created.","synonyms":[""]},{"id":"GO:0001709","label":"cell fate determination","definition":"A process involved in cell fate commitment. Once determination has taken place, a cell becomes committed to differentiate down a particular pathway regardless of its environment.","comment":"","synonyms":[""]},{"id":"GO:0001708","label":"cell fate specification","definition":"The process involved in the specification of cell identity. Once specification has taken place, a cell will be committed to differentiate down a specific pathway if left in its normal environment.","comment":"","synonyms":[""]},{"id":"GO:0022607","label":"cellular component assembly","definition":"The aggregation, arrangement and bonding together of a cellular component.","comment":"","synonyms":["cell structure assembly","cellular component assembly at cellular level"]},{"id":"GO:0022411","label":"cellular component disassembly","definition":"A cellular process that results in the breakdown of a cellular component.","comment":"","synonyms":["cell structure disassembly","cellular component disassembly at cellular level"]},{"id":"GO:0016043","label":"cellular component organization","definition":"A process that results in the assembly, arrangement of constituent parts, or disassembly of a cellular component.","comment":"","synonyms":["cell organisation","cellular component organisation at cellular level","cellular component organisation in other organism","cellular component organization at cellular level","cellular component organization in other organism"]},{"id":"GO:0021700","label":"developmental maturation","definition":"A developmental process, independent of morphogenetic (shape) change, that is required for an anatomical structure, cell or cellular component to attain its fully functional state.","comment":"","synonyms":[""]},{"id":"GO:0040007","label":"growth","definition":"The increase in size or mass of an entire organism, a part of an organism or a cell.","comment":"See also the biological process term \'cell growth ; GO:0016049\'.","synonyms":[""]},{"id":"GO:0051179","label":"localization","definition":"Any process in which a cell, a substance, or a cellular entity, such as a protein complex or organelle, is transported, tethered to or otherwise maintained in a specific location. In the case of substances, localization may also be achieved via selective degradation.","comment":"","synonyms":["establishment and maintenance of localization","establishment and maintenance of position","localisation"]},{"id":"GO:0040011","label":"locomotion","definition":"Self-propelled movement of a cell or organism from one location to another.","comment":"","synonyms":[""]},{"id":"GO:0034367","label":"protein-containing complex remodeling","definition":"The acquisition, loss, or modification of macromolecules within a complex, resulting in the alteration of an existing complex.","comment":"","synonyms":[""]},{"id":"GO:0007389","label":"pattern specification process","definition":"Any developmental process that results in the creation of defined areas or spaces within an organism to which cells respond and eventually are instructed to differentiate.","comment":"","synonyms":[""]},{"id":"GO:0008152","label":"metabolic process","definition":"The chemical reactions and pathways, including anabolism and catabolism, by which living organisms transform chemical substances. Metabolic processes typically transform small molecules, but also include macromolecular processes such as DNA repair and replication, and protein synthesis and degradation.","comment":"Note that metabolic processes do not include single functions or processes such as protein-protein interactions, protein-nucleic acids, nor receptor-ligand interactions.","synonyms":["metabolism"]},{"id":"GO:0006810","label":"transport","definition":"The directed movement of substances (such as macromolecules, small molecules, ions) or cellular components (such as complexes and organelles) into, out of or within a cell, or between cells, or within a multicellular organism by means of some agent such as a transporter or a transporter complex, a pore or a motor protein.","comment":"Note that this term should not be used for direct annotation. It should be possible to make a more specific annotation to one of the children of this term, for e.g. to transmembrane transport, to microtubule-based transport or to vesicle-mediated transport.","synonyms":[""]},{"id":"GO:0003674","label":"molecular function","definition":"A molecular process that can be carried out by the action of a single macromolecular machine, usually via direct physical interactions with other molecular entities. Function in this sense denotes an action, or activity, that a gene product (or a complex) performs. These actions are described from two distinct but related perspectives: (1) biochemical activity, and (2) role as a component in a larger system/process.","comment":"Note that, in addition to forming the root of the molecular function ontology, this term is recommended for use for the annotation of gene products whose molecular function is unknown. When this term is used for annotation, it indicates that no information was available about the molecular function of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this. Despite its name, this is not a type of \'function\' in the sense typically defined by upper ontologies such as Basic Formal Ontology (BFO). It is instead a BFO:process carried out by a single gene product or complex.","synonyms":["molecular function"]},{"id":"GO:0005215","label":"transporter activity","definition":"Enables the directed movement of substances (such as macromolecules, small molecules, ions) into, out of or within a cell, or between cells.","comment":"Some transporters, such as certain members of the SLC family, are referred to as \'carriers\'; however GO uses carrier with a different meaning: a carrier binds to and transports the substance (see GO:0140104 molecular carrier activity), whereas a transporter forms some pore that allows the passing of molecules.","synonyms":[""]},{"id":"CHEBI:24431","label":"chemical","definition":"A chemical entity is a physical entity of interest in chemistry including molecular entities, parts thereof, and chemical substances.","comment":"","synonyms":["chemical entity"]},{"id":"ECO:0000000","label":"evidence","definition":"A type of information that is used to support an assertion.","comment":"","synonyms":[""]},{"id":"CARO:0000000","label":"anatomy","definition":"","comment":"","synonyms":[""]},{"id":"CL:0000003","label":"cell","definition":"A cell that is found in a natural setting, which includes multicellular organism cells \'in vivo\' (i.e. part of an organism), and unicellular organisms \'in environment\' (i.e. part of a natural environment).","comment":"","synonyms":[""]},{"id":"NCBITaxon:1","label":"Organism","definition":"","comment":"","synonyms":[""]},{"id":"GO:0044848","label":"biological phase","definition":"A distinct period or stage in a biological process or cycle.","comment":"Note that phases are is_a disjoint from other biological processes. happens_during relationships can operate between phases and other biological processes e.g. DNA replication happens_during S phase.","synonyms":[""]},{"id":"UBERON:0000105","label":"stage","definition":"A spatiotemporal region encompassing some part of the life cycle of an organism.","comment":"","synonyms":[""]},{"id":"PO:0009012","label":"plant stage","definition":"A stage in the life of a plant structure (PO:0009011) during which the plant structure undergoes developmental processes.","comment":"","synonyms":["etapa de desarrollo de estructura vegetal (Spanish, exact)","plant growth and development stage (exact)"]},{"id":"BFO:0000050","label":"part of","definition":"a core relation that holds between a part and its whole","comment":"","synonyms":[""]},{"id":"BFO:0000051","label":"has part","definition":"a core relation that holds between a whole and its part","comment":"","synonyms":[""]},{"id":"BFO:0000066","label":"occurs in","definition":"b occurs_in c =def b is a process and c is a material entity or immaterial entity& there exists a spatiotemporal region r and b occupies_spatiotemporal_region r.& forall(t) if b exists_at t then c exists_at t & there exist spatial regions s and s\u2019 where & b spatially_projects_onto s at t& c is occupies_spatial_region s\u2019 at t& s is a proper_continuant_part_of s\u2019 at t","comment":"Paraphrase of definition: a relation between a process and an independent continuant, in which the process takes place entirely within the independent continuant","synonyms":[""]},{"id":"RO:0002220","label":"adjacent to","definition":"x adjacent to y if and only if x and y share a boundary.","comment":"","synonyms":[""]},{"id":"RO:0002131","label":"overlaps","definition":"x overlaps y if and only if there exists some z such that x has part z and z part of y","comment":"","synonyms":[""]},{"id":"RO:0002490","label":"existence overlaps","definition":"x existence overlaps y if and only if either (a) the start of x is part of y or (b) the end of x is part of y. Formally: x existence starts and ends during y iff (\u03b1(x) >= \u03b1(y) & \u03b1(x) <= \u03c9(y)) OR (\u03c9(x) <= \u03c9(y) & \u03c9(x) >= \u03b1(y))","comment":"The relations here were created based on work originally by Fabian Neuhaus and David Osumi-Sutherland. The work has not yet been vetted and errors in definitions may have occurred during transcription.","synonyms":[""]},{"id":"RO:0002491","label":"existence starts and ends during","definition":"x exists during y if and only if: 1) the time point at which x begins to exist is after or equal to the time point at which y begins and 2) the time point at which x ceases to exist is before or equal to the point at which y ends. Formally: x existence starts and ends during y iff \u03b1(x) >= \u03b1(y) & \u03b1(x) <= \u03c9(y) & \u03c9(x) <= \u03c9(y) & \u03c9(x) >= \u03b1(y)","comment":"The relations here were created based on work originally by Fabian Neuhaus and David Osumi-Sutherland. The work has not yet been vetted and errors in definitions may have occurred during transcription.","synonyms":["exists during"]},{"id":"RO:0002333","label":"enabled by","definition":"inverse of enables","comment":"","synonyms":[""]},{"id":"RO:0002326","label":"contributes to","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002233","label":"has input","definition":"p has input c iff: p is a process, c is a material entity, c is a participant in p, c is present at the start of p, and the state of c is modified during p.","comment":"","synonyms":[""]},{"id":"RO:0002234","label":"has output","definition":"p has output c iff c is a participant in p, c is present at the end of p, and c is not present in the same state at the beginning of p.","comment":"","synonyms":[""]},{"id":"RO:0004009","label":"has primary input","definition":"p has primary input c if (a) p has input c and (b) the goal of process is to modify, consume, or transform c.","comment":"","synonyms":[""]},{"id":"RO:0004008","label":"has primary output","definition":"p has primary output c if (a) p has output c and (b) the goal of process is to modify, produce, or transform c.","comment":"","synonyms":[""]},{"id":"RO:0002339","label":"has target end location","definition":"This relationship holds between p and l when p is a transport or localization process in which the outcome is to move some cargo c from a an initial location to some destination l.","comment":"","synonyms":[""]},{"id":"RO:0002338","label":"has target start location","definition":"This relationship holds between p and l when p is a transport or localization process in which the outcome is to move some cargo c from some initial location l to some destination.","comment":"","synonyms":[""]},{"id":"RO:0002313","label":"transports or maintains localization of","definition":"Holds between p and c when p is a localization process (localization covers maintenance of localization as well as its establishment) and the outcome of this process is to regulate the localization of c.","comment":"","synonyms":[""]},{"id":"RO:0002413","label":"directly provides input for","definition":"p provides input for q iff p is immediately causally upstream of q, and there exists some c such that p has_output c and q has_input c.","comment":"","synonyms":[""]},{"id":"RO:0002629","label":"directly positively regulates","definition":"p directly positively regulates q iff p is immediately causally upstream of q, and p positively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0001025","label":"located in","definition":"a relation between two independent continuants, the target and the location, in which the target is entirely within the location","comment":"","synonyms":[""]},{"id":"RO:0001015","label":"location of","definition":"a relation between two independent continuants, the location and the target, in which the target is entirely within the location","comment":"","synonyms":[""]},{"id":"RO:0002432","label":"is active in","definition":"c executes activity in d if and only if c enables p and p occurs_in d. Assuming no action at a distance by gene products, if a gene product enables (is capable of) a process that occurs in some structure, it must have at least some part in that structure.","comment":"","synonyms":["enables activity in"]},{"id":"RO:0002092","label":"happens during","definition":"","comment":"X happens_during Y iff: (start(Y) before_or_simultaneous_with start(X)) AND (end(X) before_or_simultaneous_with end(Y))","synonyms":[""]},{"id":"RO:0002211","label":"regulates","definition":"process(P1) regulates process(P2) iff:\xa0P1 results in the initiation or termination of P2 OR affects the frequency of its initiation or termination OR affects the magnitude or rate of output of P2.","comment":"","synonyms":[""]},{"id":"RO:0002212","label":"negatively regulates","definition":"p negatively regulates q iff p regulates q, and p decreases the rate or magnitude of execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002213","label":"positively regulates","definition":"p positively regulates q iff p regulates q, and p increases the rate or magnitude of execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002578","label":"directly regulates","definition":"p directly regulates q iff p is immediately causally upstream of q and p regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002630","label":"directly negatively regulates","definition":"p directly negatively regulates q iff p is immediately causally upstream of q, and p negatively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002406","label":"directly activates","definition":"p directly activates q if and only if p is immediately upstream of q and p is the realization of a function to increase the rate or activity of q","comment":"This term was obsoleted because it has the same meaning as \'directly positively regulates\'.","synonyms":[""]},{"id":"RO:0012012","label":"indirectly regulates","definition":"p indirectly regulates q iff p is indirectly causally upstream of q and p regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002407","label":"indirectly activates","definition":"p indirectly activates q if and only if p is upstream of q and there is a chain of directly activates relationships connecting p and q, where the chain is of length greater than one.","comment":"","synonyms":[""]},{"id":"RO:0002409","label":"indirectly inhibits","definition":"p indirectly negatively regulates q iff p is indirectly causally upstream of q and p negatively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0012009","label":"constitutively upstream of","definition":"p is constitutively upstream of q iff p is causally upstream of q, p is required for execution of q or a part of q, and the execution of p is approximately constant.","comment":"","synonyms":[""]},{"id":"RO:0012010","label":"removes input for","definition":"p removes input for q iff p is causally upstream of q, there exists some c such that p has_input c and q has_input c, p reduces the levels of c, and c is rate limiting for execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002418","label":"causally upstream of or within","definition":"p \'causally upstream or within\' q iff (1) the end of p is before the end of q and (2) the execution of p exerts some causal influence over the outputs of q; i.e. if p was abolished or the outputs of p were to be modified, this would necessarily affect q.","comment":"","synonyms":[""]},{"id":"RO:0004046","label":"causally upstream of or within, negative effect","definition":"","comment":"","synonyms":[""]},{"id":"RO:0004047","label":"causally upstream of or within, positive effect","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002411","label":"causally upstream of","definition":"p is causally upstream of q if and only if p precedes q and p and q are linked in a causal chain","comment":"","synonyms":[""]},{"id":"RO:0002305","label":"causally upstream of, negative effect","definition":"p is causally upstream of, negative effect q iff p is casually upstream of q, and the execution of p decreases the execution of q.","comment":"holds between x and y if and only if x is causally upstream of y and the progression of x decreases the frequency, rate or extent of y","synonyms":[""]},{"id":"RO:0002304","label":"causally upstream of, positive effect","definition":"p is causally upstream of, positive effect q iff p is casually upstream of q, and the execution of p is required for the execution of q.","comment":"holds between x and y if and only if x is causally upstream of y and the progression of x increases the frequency, rate or extent of y","synonyms":[""]},{"id":"RO:0012003","label":"acts on population of","definition":"p acts on population of c iff c\' is a collection, has members of type c, and p has participant c","comment":"","synonyms":[""]},{"id":"RO:0002296","label":"results in development of","definition":"p \'results in development of\' c if and only if p is a developmental process and p results in the state of c changing from its initial state as a primordium or anlage through its mature state and to its final state.","comment":"","synonyms":[""]},{"id":"RO:0002297","label":"results in formation of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002298","label":"results in morphogenesis of","definition":"The relationship that links an entity with the process that results in the formation and shaping of that entity over time from an immature to a mature state.","comment":"","synonyms":[""]},{"id":"RO:0002315","label":"results in acquisition of features of","definition":"The relationship that links a specified entity with the process that results in an unspecified entity acquiring the features and characteristics of the specified entity","comment":"","synonyms":[""]},{"id":"RO:0002348","label":"results in commitment to","definition":"p \'results in commitment to\' c if and only if p is a developmental process and c is a cell and p results in the state of c changing such that is can only develop into a single cell type.","comment":"","synonyms":[""]},{"id":"RO:0002349","label":"results in determination of","definition":"p \'results in determination of\' c if and only if p is a developmental process and c is a cell and p results in the state of c changing to be determined. Once a cell becomes determined, it becomes committed to differentiate down a particular pathway regardless of its environment.","comment":"","synonyms":[""]},{"id":"RO:0002356","label":"results in specification of","definition":"The relationship linking a cell and its participation in a process that results in the fate of the cell being specified. Once specification has taken place, a cell will be committed to differentiate down a specific pathway if left in its normal environment. ","comment":"","synonyms":[""]},{"id":"RO:0002588","label":"results in assembly of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002590","label":"results in disassembly of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002592","label":"results in organization of","definition":"p results in organization of c iff p results in the assembly, arrangement of constituent parts, or disassembly of c","comment":"","synonyms":[""]},{"id":"RO:0002299","label":"results in maturation of","definition":"The relationship that links an entity with a process that results in the progression of the entity over time that is independent of changes in it\'s shape and results in an end point state of that entity.","comment":"","synonyms":[""]},{"id":"RO:0002343","label":"results in growth of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002565","label":"results in movement of","definition":"Holds between p and c when p is locomotion process and the outcome of this process is the change of location of c","comment":"","synonyms":[""]},{"id":"RO:0002591","label":"results in remodeling of","definition":"","comment":"","synonyms":[""]}]');class B0{static toTitleCase(n){n=n.toLowerCase().split(" ");for(var e=0;e{n[e.id]=e}),n}static getPredicates(n,e,i){const o=new Set;return e||i?(n.forEach(r=>{const a=!e||0===e.length||e.includes(r.subject),l=!i||0===i.length||r.object.some(u=>i.includes(u));a&&l&&o.add(r.predicate)}),[...o]):(n.forEach(r=>{o.add(r.predicate)}),[...o])}static getObjects(n,e){const i=new Set;return n.forEach(o=>{e.includes(o.subject)&&o.object.forEach(r=>i.add(r))}),[...i]}static getSubjectShapes(n,e,i=!0){return n.filter(o=>i?o.subject===e&&!o.exclude_from_extensions:o.subject===e)}static getRangeBySubject(n,e,i){return n.find(o=>o.subject===e&&o.predicate===i&&!o.exclude_from_extensions)}static getRangeLabels(n,e){return n.map(o=>{const r=o.object.map(l=>{var u;return null===(u=e[l])||void 0===u?void 0:u.label}),a=(0,Zt.cloneDeep)(e[o.predicate]);return a.rangeLabel=r.join(", "),a})}}var fs=(()=>{return(t=fs||(fs={})).none="none",t.oneToOne="oneToOne",t.oneToMany="oneToMany",fs;var t})();function rVe(t,n){return t.id===n.id}const vee={[$n.GoMolecularEntity]:[{label:"Add part of (Protein Complex)",id:$n.GoProteinContainingComplex,node:{type:$n.GoProteinContainingComplex,category:[h1],label:"(GP) part of (Protein Complex)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:3,isKey:!1,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToMany},{label:"Add located in (CC)",id:$n.GoCellularComponent,node:{type:$n.GoCellularComponent,category:[rd],label:"(GP) located in (CC)",aspect:"C",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:10,showInMenu:!0},predicate:Ft.edge.locatedIn,cardinality:fs.oneToMany}],[$n.GoProteinContainingComplex]:[{label:"Add has part (Gene Product)",id:$n.GoMolecularEntity,node:{type:$n.GoMolecularEntity,category:[Jl,h1],label:"(Protein Complex) has part (GP)",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,weight:3,isKey:!1,showInMenu:!0},predicate:Ft.edge.hasPart,cardinality:fs.oneToMany}],[$n.GoMolecularFunction]:[{label:"Add enabled by Protein Complex",id:$n.GoProteinContainingComplex,node:{id:h1.id,type:$n.GoProteinContainingComplex,category:[h1],label:"(MF) enabled by (Protein Complex)",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!0,weight:2,isKey:!0},predicate:Ft.edge.enabledBy,cardinality:fs.oneToOne},{label:"Add enabled by GP",id:$n.GoMolecularEntity,node:{id:Jl.id,type:$n.GoMolecularEntity,category:[Jl,h1],label:"(MF) enabled by (GP)",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!0,weight:2,isKey:!0},predicate:Ft.edge.enabledBy,cardinality:fs.oneToOne},{label:"Add part of (BP)",id:$n.GoBiologicalProcess,node:{type:$n.GoBiologicalProcess,category:[Kl],label:"(MF) part of (BP)",aspect:"P",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,weight:10,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add occurs in (CC)",id:$n.GoCellularComponent,node:{type:$n.GoCellularComponent,category:[rd],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:20,showInMenu:!0},predicate:Ft.edge.occursIn,cardinality:fs.oneToOne},{label:"Add occurs in (Cell Type)",id:$n.GoCellTypeEntity,node:{category:[l_],type:$n.GoCellTypeEntity,label:"occurs in (Cell Type)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!1,weight:30},predicate:Ft.edge.occursIn,cardinality:fs.oneToOne},{label:"Add occurs in (Anatomy)",id:$n.GoAnatomicalEntity,node:{category:[l3],type:$n.GoAnatomicalEntity,label:"occurs in (Anatomy)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:40},predicate:Ft.edge.occursIn,cardinality:fs.oneToOne},{label:"Add occurs in (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:50},predicate:Ft.edge.occursIn,cardinality:fs.oneToOne},{label:"Add Has Input (Chemical/Protein Containing Complex)",id:$n.GoChemicalEntityHasInput,node:{category:[c3,h1],type:$n.GoChemicalEntityHasInput,label:"has input (Chemical/Protein Containing Complex)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,isExtension:!0,weight:4,showInMenu:!0},predicate:Ft.edge.hasInput,cardinality:fs.oneToMany},{label:"Add Has Output (Chemical/Protein Containing Complex)",id:$n.GoChemicalEntityHasOutput,node:{category:[c3,h1],type:$n.GoChemicalEntityHasOutput,label:"has output (Chemical/Protein Containing Complex)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,isExtension:!0,weight:5,showInMenu:!0},predicate:Ft.edge.hasOutput,cardinality:fs.oneToMany},{label:"Add Happens During (Biological Phase)",id:$n.GoBiologicalPhase,node:{category:[jC,TO],type:$n.GoBiologicalPhase,label:"happens during (Biological Phase)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,isExtension:!0,weight:3,showInMenu:!0},predicate:Ft.edge.happensDuring,cardinality:fs.oneToOne},{label:"Add has part (Subfunction)",id:$n.GoMolecularFunction,node:{type:$n.GoMolecularFunction,category:[p1],label:"has part (Subfunction)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:100,showInMenu:!0},predicate:Ft.edge.hasPart,cardinality:fs.oneToMany},...(t=>{const n=[];return(0,Zt.each)(t,e=>{n.push({id:$n.GoBiologicalProcess,node:{type:$n.GoBiologicalProcess,category:[Kl],label:`MF ${e.label} BP`,aspect:"P",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,isKey:!0,relationEditable:!0,weight:10},predicate:e,cardinality:fs.oneToOne})}),n})([Pi.createEntity(Ft.edge.causallyUpstreamOfOrWithin),Pi.createEntity(Ft.edge.causallyUpstreamOf),Pi.createEntity(Ft.edge.causallyUpstreamOfNegativeEffect),Pi.createEntity(Ft.edge.causallyUpstreamOfPositiveEffect),Pi.createEntity(Ft.edge.causallyUpstreamOfOrWithinPositiveEffect),Pi.createEntity(Ft.edge.causallyUpstreamOfOrWithinNegativeEffect)])],[$n.GoBiologicalProcess]:[{label:"Add part of (BP)",id:$n.GoBiologicalProcess,node:{category:[Kl],type:$n.GoBiologicalProcess,label:"part of (BP)",aspect:"P",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,isExtension:!0,weight:10,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add occurs in (CC)",id:$n.GoCellularComponent,node:{category:[rd],type:$n.GoCellularComponent,aspect:"C",label:"occurs in (CC)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,isExtension:!0,weight:20},predicate:Ft.edge.occursIn,cardinality:fs.oneToOne},{label:"Add Has Input (Chemical/Anatomical Entity/Protein Containing Complex)",id:$n.GoChemicalEntityHasInput,node:{category:[c3,l3,h1],type:$n.GoChemicalEntityHasInput,label:"Has Input (Chemical/Anatomical Entity/Protein Containing Complex)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,isExtension:!0,weight:14,showInMenu:!0},predicate:Ft.edge.hasInput,cardinality:fs.oneToMany},{label:"Add Has Output (Chemical/Anatomical Entity/Protein Containing Complex)",id:$n.GoChemicalEntityHasInput,node:{category:[c3,l3,h1],type:$n.GoChemicalEntityHasOutput,label:"Has Output (Chemical/Anatomical Entity/Protein Containing Complex)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,isExtension:!0,weight:14,showInMenu:!0},predicate:Ft.edge.hasOutput,cardinality:fs.oneToMany}],[$n.GoCellularComponent]:[{label:"Add part of (CC)",id:$n.GoCellularComponent,node:{category:[rd],type:$n.GoCellularComponent,aspect:"C",label:"part of (CC)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:20,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Cell Type)",id:$n.GoCellTypeEntity,node:{category:[l_],type:$n.GoCellTypeEntity,label:"part of (Cell Type)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:30,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Anatomy)",id:$n.GoAnatomicalEntity,node:{category:[l3],type:$n.GoAnatomicalEntity,label:"part of (Anatomy)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:40,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add Existence Overlaps (BP/Phase/Stage)",id:$n.BPPhaseStageExistenceOverlaps,node:{category:[Kl,TO],type:$n.BPPhaseStageExistenceOverlaps,label:"existence overlaps (BP/Phase/Stage)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:60,showInMenu:!0},predicate:Ft.edge.existenceOverlaps,cardinality:fs.oneToMany},{label:"Add Existence Starts and Ends During (BP/Phase/Stage)",id:$n.BPPhaseStageExistenceStartsEnds,node:{category:[Kl,TO],type:$n.BPPhaseStageExistenceStartsEnds,label:"Add Existence Starts and Ends During (BP/Phase/Stage)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:61,showInMenu:!0},predicate:Ft.edge.existenceStartsEndsDuring,cardinality:fs.oneToMany}],[$n.GoCellTypeEntity]:[{label:"Add part of (Anatomy)",id:$n.GoAnatomicalEntity,node:{category:[l3],type:$n.GoAnatomicalEntity,label:"part of (Anatomy)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:40,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne}],[$n.GoAnatomicalEntity]:[{label:"Add part of (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ft.edge.partOf,cardinality:fs.oneToOne}],[$n.GoChemicalEntity]:[{label:"Add located in (CC)",id:$n.GoCellularComponent,node:{category:[rd],type:$n.GoCellularComponent,aspect:"C",label:"located in (CC)",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,isExtension:!0,weight:20,showInMenu:!0},predicate:Ft.edge.locatedIn,cardinality:fs.oneToOne}]};class _u{constructor(n,e){this.count=0,this.frequency=0,this.tooltip="",this.nodes=[],this.label=n||null,this.shorthand=e||null}getSortedNodes(){return(0,Zt.orderBy)(this.nodes,["frequency"],["desc"])}append(n){this.nodes.push(n),this.count=this.nodes.length,n instanceof SO?this.tooltip+=`${n.term.label} (${n.term.id}) \n`:n instanceof Ll&&(this.tooltip+=`${n.evidence.label} (${n.evidence.id}) \n\n ${n.referenceEntity.label} \n\n ${n.withEntity.label} \n`)}}class ON{constructor(){this.bp=new _u("Biological Process","BP"),this.cc=new _u("Cellular Component","CC"),this.mf=new _u("Molecular Function","MF"),this.gp=new _u("Gene Product","GP"),this.other=new _u("Other"),this.evidences=new _u("Evidence(Full)"),this.evidenceEcos=new _u("Evidence Codes"),this.references=new _u("Reference"),this.withs=new _u("With/From"),this.papers=new _u("PMID Papers"),this.contributors=new _u("Contribution"),this.relations=new _u("Relations"),this.dates=new _u("Dates"),this.allTerms=[],this.nodes=[],this.nodes=[this.mf,this.bp,this.cc]}}var XC=C(15439),sVe=C.t(XC,2),LO=C.n(XC),d_=(()=>{return(t=d_||(d_={}))[t.creation=1]="creation",t[t.editing=2]="editing",d_;var t})(),c4=(()=>{return(t=c4||(c4={})).GP="gp",t.MF="mf",t.BP="bp",t.CC="cc",t.DATE="date",c4;var t})(),k2=(()=>{return(t=k2||(k2={})).TABLE="table",t.TREE="tree",t.TREE_TABLE="tree_table",t.SLIM_TREE="slim_tree",t.GRAPH="graph",k2;var t})(),so=(()=>{return(t=so||(so={})).default="default",t.bpOnly="bpOnly",t.ccOnly="ccOnly",t.molecule="molecule",t.proteinComplex="proteinComplex",t.simpleAnnoton="simpleAnnoton",so;var t})();class cVe{constructor(){this.width=150,this.height=150}}class lVe{constructor(){this.x=0,this.y=0}}class QC extends Cee{constructor(){super(),this.validateEvidence=!0,this.modified=!1,this.expanded=!1,this.visible=!0,this.graphPreview={nodes:[],edges:[]},this.summary=new ON,this.activityDisplayType=k2.TREE,this.displayNumber="1",this.hasViolations=!1,this.violations=[],this.position=new lVe,this.size=new cVe,this._backgroundColor="green",this.activityType="default",this.id=WC(),this.errors=[],this.submitErrors=[]}updateProperties(){this.updateNodeTypes(),this.updateSummary(),this.updateDate(),this.updateRootNodes()}get id(){return this._id}set id(n){this._id=n,this.displayId=zh.cleanID(n)+"activity"}get backgroundColor(){switch(this.activityType){case so.ccOnly:return"purple";case so.bpOnly:return"brown";case so.molecule:return"teal";default:return this._backgroundColor}}get activityConnections(){throw new Error("Method not implemented")}get rootNode(){return this.sourceNodes()[0]}postRunUpdateCompliment(){(this.activityType===so.default||this.activityType===so.bpOnly)&&this.mfNode&&this.enabledByEdge&&this.mfNode.isComplement&&(this.enabledByEdge.predicate.isComplement=!0)}postRunUpdate(){if(this.activityType!==so.ccOnly){const e=this.enabledByEdge;this.mfNode&&e&&(this.mfNode.showEvidence=!1,this.mfNode.predicate=e.predicate)}}getActivityTypeDetail(){return Ft.activityType.options[this.activityType]}updateNodeTypes(){this.nodes.forEach(n=>{n.updateNodeType()})}updateRootNodes(){this.getEdges(this.rootNode.id).forEach(e=>{var i,o,r,a;switch(null===(i=e.predicate.edge)||void 0===i?void 0:i.id){case Ft.edge.enabledBy.id:this.mfNode=e.subject,this.gpNode=e.object,this.enabledByEdge=e;break;case Ft.edge.partOf.id:this.bpNode=e.object;break;case Ft.edge.occursIn.id:this.ccNode=e.object}this.activityType===so.bpOnly&&(0,Zt.find)(Ft.bpOnlyCausalEdges,{id:null===(o=e.predicate.edge)||void 0===o?void 0:o.id})&&(this.bpNode=e.object,this.bpPartOfEdge=e),this.activityType===so.ccOnly&&(this.gpNode=this.rootNode,((null===(r=e.predicate.edge)||void 0===r?void 0:r.id)===Ft.edge.locatedIn.id||(null===(a=e.predicate.edge)||void 0===a?void 0:a.id)===Ft.edge.isActiveIn.id)&&(this.ccNode=e.object))})}updateDate(){const n=this,e=this.rootNode;!e||(n.date=LO()(e.date,"YYYY-MM-DD"),n.nodes.forEach(i=>{const o=LO()(i.date,"YYYY-MM-DD");o>n.date&&(n.date=o)}),(0,Zt.each)(n.edges,i=>{(0,Zt.each)(i.predicate.evidence,o=>{const r=LO()(o.date,"YYYY-MM-DD");r>n.date&&(n.date=r)})}),this.formattedDate=n.date.format("ll"))}updateSummary(){let e=new ON,i=0;this.nodes.filter(r=>r.term.hasValue()).forEach(r=>{r.type===$n.GoMolecularFunction?e.mf.append(r):r.type===$n.GoBiologicalProcess?e.bp.append(r):r.type===$n.GoCellularComponent?e.cc.append(r):e.other.append(r)}),e.mf.nodes.length>0&&(i|=4),e.bp.nodes.length>0&&(i|=2),e.cc.nodes.length>0&&(i|=1),e.coverage=i,this.summary=e}updateShapeMenuShex(n){(0,Zt.each)(this.nodes,i=>{const o=i.category.map(l=>l.category);n&&o.push(...n.map(l=>l.id));const r=((t,n=!0)=>{const e=[],i=B0.genTermLookupTable(),o=$C.Y;return t.forEach(r=>{const a=B0.getSubjectShapes(o,r,n);if(a){B0.getPredicates(o);const u=B0.getRangeLabels(a,i);e.push(...u)}}),(0,Zt.uniqWith)(e,rVe)})(o),a=[];(0,Zt.each)(r,l=>{a.push(l)}),i.canInsertNodes=a,i.insertMenuNodes=(0,Zt.filter)(a,l=>!0)})}updateEdgesShex(n,e,i){const o=this;let a=!1;(0,Zt.each)(vee[n.type]||[],l=>{if(i.edge.id===l.predicate.id&&l.cardinality===fs.oneToOne){const u=o.edgeTypeExist(n.id,l.predicate.id,n.type,l.node.type);if(u)return u.object.treeLevel++,o.removeEdge(u.subject,u.object,u.predicate),o.addEdge(u.subject,e,u.predicate),o.addEdge(e,u.object,i),a=!0,!1}}),a||o.addEdgeById(n.id,e.id,i)}updateEdges(n,e,i){const o=this;let a=!1;(0,Zt.each)(vee[n.type]||[],l=>{if(i.edge.id===l.predicate.id&&l.cardinality===fs.oneToOne){const u=o.edgeTypeExist(n.id,l.predicate.id,n.type,l.node.type);if(u)return u.object.treeLevel++,o.removeEdge(u.subject,u.object,u.predicate),o.addEdge(u.subject,e,u.predicate),o.addEdge(e,u.object,i),a=!0,!1}}),a||o.addEdgeById(n.id,e.id,i)}getNodesByType(n){return(0,Zt.filter)(this.nodes,o=>o.type===n)}getRootNodeByType(n){const i=this.getEdges(this.rootNode.id),o=(0,Zt.find)(i,r=>r.object.type===n);return o?o.object:null}adjustCC(){if(this.ccNode&&!this.ccNode.hasValue()){const n=this.getEdges(this.ccNode.id);if(n.length>0){const e=n[0],i=Ft.rootNode.cc;this.ccNode.term=new Pi(i.id,i.label),this.ccNode.predicate.evidence=e.predicate.evidence}}}getViolationDisplayErrors(){const e=[];return e.push(...this.violations.map(i=>i.getDisplayError())),e}adjustActivity(){const n=this;if(n.activityType===Ft.activityType.options.bpOnly.name){const e=Ft.rootNode.mf,i=n.mfNode,o=n.bpNode;i.term=new Pi(e.id,e.label),i.predicate.evidence=o.predicate.evidence,n.bpOnlyEdge&&(this.bpPartOfEdge.predicate.edge.id=o.predicate.edge.id=n.bpOnlyEdge.id,this.bpPartOfEdge.predicate.edge.label=o.predicate.edge.label=n.bpOnlyEdge.label)}n.activityType!==so.ccOnly&&n.activityType!==so.molecule&&this.mfNode&&this.enabledByEdge&&(this.enabledByEdge.predicate.evidence=this.mfNode.predicate.evidence)}copyValues(n){(0,Zt.each)(this.nodes,function(i){const o=n.getNode(i.id);o&&i.copyValues(o)})}setActivityType(n){this.activityType=n}getEdgesByEdgeId(n){return(0,Zt.filter)(this.edges,o=>o.predicate.edge.id===n)||null}enableSubmit(){const n=this;let e=!0;if(n.submitErrors=[],(0,Zt.each)(n.nodes,i=>{e=i.enableSubmit(n.submitErrors,this.validateEvidence)&&e}),n.activityType===so.bpOnly&&!n.bpOnlyEdge){const o=new wd(Al.error,El.general,"Causal relation is required",{aspect:"Molecular Function"});n.submitErrors.push(o),e=!1}if(n.nodes.length<2){const i=new wd(Al.error,El.general,"At least 2 nodes are required");n.submitErrors.push(i),e=!1}return e}createSave(){var n;const e=this,i={title:"enabled by "+(null===(n=e.gpNode)||void 0===n?void 0:n.term.label),triples:[],nodes:[],graph:null};return e.adjustCC(),e.adjustActivity(),i.nodes=e.nodes,i.triples=e.edges,i}createCCSave(){const n=this,e=n.getEdges(n.rootNode.id);(0,Zt.each)(e,i=>{const o=new QC;o.addNode(n.rootNode),o.addEdge(i.subject,i.object,i.predicate)})}createEdit(n){const i=n.createSave(),o=this.createSave();return{addNodes:o.nodes,addTriples:o.triples,removeIds:tVe(i.graph,o.graph).map(a=>a.uuid),removeTriples:[]}}createEditEvidence(n,e){const o=n.getEdge(e.subjectId,e.objectId);return{addTriples:this.getEdge(e.subjectId,e.objectId),removeTriples:o}}createAddIndividual(n,e){return{addTriples:this.getEdge(e.subjectId,e.objectId)}}createDelete(){const e={uuids:[],triples:[]},i=[];return(0,Zt.each)(this.nodes,o=>{o.hasValue()&&i.push(o.uuid)}),e.uuids=i,e}createActivityNodeDelete(n){const i={uuids:[]},o=this.descendants(n.id).map(r=>r.uuid);return o.push(n.uuid),i.uuids=o,i}setPreview(){const n=this,e=n.createSave();n.graphPreview.nodes=e.nodes.map(i=>({id:i.id,label:i.term.label?i.term.label:""})),n.graphPreview.edges=e.triples.map(i=>({source:i.subject.id,target:i.object.id,label:i.predicate.edge.label}))}insertSubgraph(n,e,i){n.getTrimmedGraph(i.id)}get title(){const n=this,e=n.gpNode,i=e?e.getTerm().label:"";let o="";return o=n.activityType===so.ccOnly||n.activityType===so.molecule?i:`enabled by (${i})`,o}buildTrees(){const e=this._sortActivities(this.edges);return this.rootNode?[this._buildTree(e,this.rootNode)]:[]}buildGPTrees(){const n=this,e=this._sortActivities(n.edges);return[n._buildTree(e,n.gpNode)]}_buildTree(n,e){if(!e)return;const o=[new bee(e)],r=a=>{for(const l in a){const u=[];for(const f in n)n[f].subject.id===a[l].node.id&&u.push(new bee(n[f].object));u.length>0&&(a[l].children=u,r(u))}};return r(o),o[0]}get presentation(){const n=this;if(this._presentation)return this._presentation;const e=n.gpNode,i=n.mfNode,o=e?e.getTerm().label:"",r=i?i.getTerm().label:"";let a="",l="";n.activityType===so.ccOnly||n.activityType===so.molecule||n.activityType===so.proteinComplex?l=o:(a=(null==i?void 0:i.isComplement)?"NOT":"",l=`enabled by ${o}`);const u={qualifier:a,title:l,gpText:o,mfText:r,gp:{},fd:{}},f=n.nodes.sort(dee);return(0,Zt.each)(f,function(w){w.displaySection&&w.displayGroup&&(u[w.displaySection.id][w.displayGroup.id]||(u[w.displaySection.id][w.displayGroup.id]={shorthand:w.displayGroup.shorthand,label:w.displayGroup.label,nodes:[]}),u[w.displaySection.id][w.displayGroup.id].nodes.push(w),w.nodeGroup=u[w.displaySection.id][w.displayGroup.id],w.isComplement&&(w.nodeGroup.isComplement=!0))}),this._presentation=u,this._presentation}resetPresentation(){this._presentation=null}_sortActivities(n){const e=Ft.edgePriority;return(0,Zt.orderBy)(n,["weight",o=>{const r=e.indexOf(o.predicate.edge.id);return-1===r?e.length:r}])}}class bee{constructor(n,e=[]){this.node=n,this.id=n.id,this.children=e}}function dVe(t,n){return t.id===n.id}const xee=(t,n,e)=>({type:$n.GoMolecularEntity,category:e,label:n.label,canDelete:!0,displaySection:t.displaySection,displayGroup:t.displayGroup,weight:t.weight+2}),uVe={[so.default]:{type:$n.GoMolecularFunction,label:"Molecular Function",aspect:"",category:[p1],displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,skipEvidenceCheck:!0,canDelete:!1,termRequired:!0,weight:1},[so.bpOnly]:{type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,skipEvidenceCheck:!0,visible:!1,canDelete:!1,weight:1},[so.ccOnly]:{type:$n.GoMolecularEntity,category:[Jl],label:"Gene Product",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,weight:1},[so.proteinComplex]:{type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,skipEvidenceCheck:!0,visible:!1,canDelete:!1,weight:1},[so.molecule]:{type:$n.GoChemicalEntity,category:[c3],label:"Molecule",skipEvidenceCheck:!0,showEvidence:!1,termRequired:!0,canDelete:!1,displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,weight:1}},hVe={type:so.simpleAnnoton,nodes:{gp:{id:"gp",type:$n.GoMolecularEntity,category:[Jl,h1],label:"Gene Product",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},goterm:{id:"goterm",type:$n.GoMolecularFunction,category:[p1,Kl,zHe],label:"GO Term",aspect:"F",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!0,canDelete:!1,weight:1},extension:{id:"extension",type:$n.GoCellularComponent,category:[],label:"Extension",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!1,skipEvidenceCheck:!0,canDelete:!1,weight:1}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoMolecularEntity,predicate:Ft.edge.enabledBy}]},pVe={type:so.default,nodes:{[$n.GoMolecularFunction]:{id:p1.id,type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,termRequired:!0,canDelete:!1,weight:1},[$n.GoMolecularEntity]:{id:Jl.id,type:$n.GoMolecularEntity,category:[Jl,h1],label:"enabled by (GP)",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},[$n.GoBiologicalProcess]:{id:Kl.id,type:$n.GoBiologicalProcess,category:[Kl],label:"(MF) part of (BP)",aspect:"P",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,weight:10},[$n.GoCellularComponent]:{id:rd.id,type:$n.GoCellularComponent,category:[rd],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:20}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoMolecularEntity,predicate:Ft.edge.enabledBy},{subject:$n.GoMolecularFunction,object:$n.GoBiologicalProcess,predicate:Ft.edge.partOf},{subject:$n.GoMolecularFunction,object:$n.GoCellularComponent,predicate:Ft.edge.occursIn}]},fVe={type:so.bpOnly,nodes:{[$n.GoMolecularFunction]:{id:p1.id,type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,visible:!1,canDelete:!1,weight:1},[$n.GoMolecularEntity]:{id:Jl.id,type:$n.GoMolecularEntity,category:[Jl,h1],label:"enabled by (GP)",displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},[$n.GoBiologicalProcess]:{id:Kl.id,type:$n.GoBiologicalProcess,category:[Kl],label:"Biological Process",aspect:"P",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,termRequired:!0,weight:10}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoMolecularEntity,predicate:Ft.edge.enabledBy},{subject:$n.GoMolecularFunction,object:$n.GoBiologicalProcess,predicate:Ft.edge.causallyUpstreamOfOrWithin}],overrides:{[$n.GoBiologicalProcess]:{label:"Biological Process"},[$n.GoCellularComponent]:{}}},gVe={type:so.ccOnly,nodes:{[$n.GoMolecularEntity]:{id:Jl.id,type:$n.GoMolecularEntity,category:[Jl,h1],label:"Gene Product",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,weight:1}},triples:[]},mVe={type:so.proteinComplex,isComplex:!0,nodes:{[$n.GoProteinContainingComplex]:{id:h1.id,type:$n.GoProteinContainingComplex,category:[h1],label:"Protein Complex",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,weight:2},[$n.GoMolecularFunction]:{id:p1.id,type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.mf,termRequired:!0,canDelete:!1,weight:1},[$n.GoBiologicalProcess]:{id:Kl.id,type:$n.GoBiologicalProcess,category:[Kl],label:"(MF) part of (BP)",aspect:"P",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.bp,weight:10},[$n.GoCellularComponent]:{id:rd.id,type:$n.GoCellularComponent,category:[rd],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:20}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoProteinContainingComplex,predicate:Ft.edge.enabledBy},{subject:$n.GoMolecularFunction,object:$n.GoBiologicalProcess,predicate:Ft.edge.partOf},{subject:$n.GoMolecularFunction,object:$n.GoCellularComponent,predicate:Ft.edge.occursIn}]},_Ve={type:so.molecule,nodes:{[$n.GoChemicalEntity]:{id:c3.id,type:$n.GoChemicalEntity,category:[c3],label:"Molecule",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ft.displaySection.gp,displayGroup:Ft.displayGroup.gp,weight:1},[$n.GoCellularComponent]:{id:rd.id,type:$n.GoCellularComponent,category:[rd],label:"(Chemical) located in (CC)",aspect:"C",displaySection:Ft.displaySection.fd,displayGroup:Ft.displayGroup.cc,weight:20}},triples:[{subject:$n.GoChemicalEntity,object:$n.GoCellularComponent,predicate:Ft.edge.locatedIn}]},u_=t=>{const e=new QC;return e.activityType=t.type,(0,Zt.each)(t.nodes,i=>{const o=mu(i.category,i);e.addNode(o)}),(0,Zt.each)(t.triples,i=>{const o=e.getNode(i.object);if(o){const r=o.predicate;r.edge=Pi.createEntity(i.predicate),o.treeLevel++,e.addEdgeById(i.subject,i.object,r)}}),e.updateShapeMenuShex(),e.enableSubmit(),e.updateProperties(),e};class h_{constructor(){this.entityType=H0.CONTRIBUTOR,this.group={},this._groups=[]}set groups(n){this._groups=n,n&&n.length>0&&(this.group=n[0])}get groups(){return this._groups}static fromResponse(n){const e=new h_;return e.orcid=n.uri,e.name=n.nickname,e.groups=n.groups,e}}function xVe(t,n){return t.name{class t{constructor(e){this.httpClient=e,this.baristaUrl=Er.globalBaristaLocation,this.contributors=[],this.groups=[],this.onUserChanged=new Io(void 0)}set baristaToken(e){this._baristaToken=e}get baristaToken(){return this._baristaToken}getUser(e){const i=e||localStorage.getItem("barista_token");if(i)return this.httpClient.get(`${this.baristaUrl}/user_info_by_token/${i}`).subscribe(o=>{if(o){o.token?(this.user=h_.fromResponse(o),this.user.token=this.baristaToken=o.token,localStorage.setItem("barista_token",this.baristaToken)):(this.user=null,this.baristaToken=null,localStorage.removeItem("barista_token")),this.onUserChanged.next(this.user);const r=new URL(window.location.href);r.searchParams.delete("barista_token"),window.history.replaceState(null,null,r.href)}});this.baristaToken=null,this.user=null,this.onUserChanged.next(this.user)}getUsers(){return this.httpClient.get(`${this.baristaUrl}/users`)}getUserInfo(e){const o=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/user_info_by_id/${o}`)}getContributorDetails(e){return(0,Zt.find)(this.contributors,r=>r.orcid===e)}getContributorName(e){const o=(0,Zt.find)(this.contributors,r=>r.orcid===e);return o?o.name:e}getContributorsFromAnnotations(e){const i=this;return e.map(r=>{const a=r.value(),l=i.getContributorDetails(r.value());if(l)return l;{const u=new h_;return u.orcid=u.name=a,u}})}getGroups(){return this.httpClient.get(`${this.baristaUrl}/groups`)}getGroupDetails(e){return(0,Zt.find)(this.groups,r=>r.url===e)}getGroupDetailsByName(e){return(0,Zt.find)(this.groups,r=>r.name===e)}getGroupInfo(e){const o=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/group_info_by_id/${o}`)}getGroupsFromAnnotations(e){const i=this;return e.map(r=>{const a=r.value();return i.getGroupDetails(r.value())||new SN(null,a)})}getGroupsFromUrls(e){const i=this;return e.map(r=>i.getGroupDetails(r)||new SN(null,r))}getGroupsFromNames(e){const i=this;return e.map(r=>i.getGroupDetailsByName(r)||new SN(null,r))}filterContributors(e){const i=e.toLowerCase();return this.contributors.filter(o=>0===o.name.toLowerCase().indexOf(i))}filterGroups(e){const i=e.toLowerCase();return this.groups.filter(o=>0===o.name.toLowerCase().indexOf(i))}getGroupName(e){const o=(0,Zt.find)(this.groups,r=>r.url===e);return o?o.name:e}distinctUser(e,i){return e&&i?e.token===i.token:e===i}}return t.\u0275fac=function(e){return new(e||t)(qt(ru))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const yee=JSON.parse('{"Y":[{"subject":"CHEBI:33695","object":["GO:0003674"],"predicate":"RO:0002327"},{"subject":"CHEBI:33695","object":["GO:0003674"],"predicate":"RO:0002326"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0002331"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004034"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004032"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004033"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004034"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004035"},{"subject":"CHEBI:33695","object":["GO:0005575"],"predicate":"RO:0002432"},{"subject":"CHEBI:33695","object":["GO:0005575"],"predicate":"RO:0001025"},{"subject":"CHEBI:33695","object":["GO:0032991"],"predicate":"BFO:0000050"}]}');class wee{constructor(n){this.gpToTermEdges=[],this.extensionEdges=[],n&&this.activityToAnnotation(n)}activityToAnnotation(n){this.gp=n.getNode("gp"),this.goterm=n.getNode("goterm"),this.extension=n.getNode("extension")}findEdgeByCriteria(n){const e=Ft.simpleAnnotationEdgeConfig;for(const i in e)if(e.hasOwnProperty(i)){let o=!0;const r=e[i];for(const a in n)if(r[a]!==n[a]){o=!1;break}if(o)return i}return null}createSave(){var n,e;const i={title:"enabled by "+(null===(n=this.gp)||void 0===n?void 0:n.term.label),triples:[],nodes:[this.gp,this.goterm],graph:null},o=this.gpToTermEdge.id,r=Ft.simpleAnnotationEdgeConfig[o];if(r){if(r.mfNodeRequired){const a=mu([]),l=Ft.rootNode.mf;a.term=new Pi(l.id,l.label);const u=this._createTriple(a,this.gp,r.gpToTermPredicate,this.goterm.predicate.evidence,r.gpToTermReverse);if(i.triples.push(u),r.mfToTermPredicate){const f=this._createTriple(a,this.goterm,r.mfToTermPredicate,this.goterm.predicate.evidence);i.triples.push(f)}}else{const a=this._createTriple(this.gp,this.goterm,r.gpToTermPredicate,this.goterm.predicate.evidence,r.gpToTermReverse);i.triples.push(a)}if(null===(e=this.extension)||void 0===e?void 0:e.hasValue()){const a=new D2(this.goterm,this.extension,new u3(this.extensionEdge,this.goterm.predicate.evidence));i.nodes.push(this.extension),i.triples.push(a)}return i}console.warn("No configuration defined for edge:",o)}_createTriple(n,e,i,o,r=!1){const a=Ft.allEdges.find(f=>f.id===i);if(!a)throw new Error(`Edge configuration not found for predicate ID: ${i}`);const l=Pi.createEntity(a),u=new u3(l,o);return r?new D2(e,n,u):new D2(n,e,u)}updateAspect(){if(!this.goterm.hasValue())return;const e=Ft.rootNode;for(const i in Ft.rootNode)if(this.goterm.rootTypes&&this.goterm.rootTypes.some(o=>o.id===e[i].id)){this.gotermAspect=e[i].aspect;break}return null}}let Co=(()=>{class t{constructor(e){this.noctuaUserService=e,this.globalUrl={},this._parameterize=i=>Object.keys(i).map(o=>o+"="+i[o]).join("&"),this.onSetupReady=new Io(null),this.termLookupTable=B0.genTermLookupTable(),this.shapePredicates=B0.getPredicates($C.Y)}get edges(){return Ft.edge}get modelState(){const e=[Ft.modelState.options.development,Ft.modelState.options.production,Ft.modelState.options.review,Ft.modelState.options.closed,Ft.modelState.options.delete,Ft.modelState.options.internal_test];return{options:e,selected:e[0]}}get graphLayoutDetail(){const e=[Ft.graphLayoutDetail.options.detailed,Ft.graphLayoutDetail.options.simple,Ft.graphLayoutDetail.options.preview];return{options:e,selected:e[0]}}findModelState(e){return(0,Zt.find)(this.modelState.options,o=>o.name===e)}get evidenceDBs(){const e=[Ft.evidenceDB.options.pmid,Ft.evidenceDB.options.doi,Ft.evidenceDB.options.goRef];return{options:e,selected:e[0]}}get activityType(){const e=[Ft.activityType.options.default,Ft.activityType.options.bpOnly,Ft.activityType.options.ccOnly];return{options:e,selected:e[0]}}get activitySortField(){const e=[Ft.activitySortField.options.gp,Ft.activitySortField.options.date,Ft.activitySortField.options.mf,Ft.activitySortField.options.bp,Ft.activitySortField.options.cc];return{options:e,selected:e[0]}}get bpOnlyEdges(){const e=[Ft.edge.causallyUpstreamOfOrWithin,Ft.edge.causallyUpstreamOf,Ft.edge.causallyUpstreamOfPositiveEffect,Ft.edge.causallyUpstreamOfNegativeEffect,Ft.edge.causallyUpstreamOfOrWithinPositiveEffect,Ft.edge.causallyUpstreamOfOrWithinNegativeEffect];return{options:e,selected:e[0]}}get ccOnlyEdges(){const e=[Ft.edge.partOf,Ft.edge.locatedIn,Ft.edge.isActiveIn];return{options:e,selected:e[0]}}get graphDisplayDefaultEdges(){const e=[Ft.edge.enabledBy,Ft.edge.partOf,Ft.edge.occursIn,Ft.edge.hasInput];return{options:e,selected:e[0]}}get effectDirection(){const e=[Ft.effectDirection.positive,Ft.effectDirection.negative];return{options:e,selected:e[0]}}get findReplaceCategories(){const e=[Ft.findReplaceCategory.options.term,Ft.findReplaceCategory.options.gp,Ft.findReplaceCategory.options.reference];return{options:e,selected:e[0]}}get directness(){const e=[Ft.directness.direct,Ft.directness.indirect];return{options:e,selected:e[0]}}get activityRelationship(){const e=[Ft.activityRelationship.regulation,Ft.activityRelationship.constitutivelyUpstream,Ft.activityRelationship.providesInputFor,Ft.activityRelationship.removesInputFor,Ft.activityRelationship.undetermined];return{options:e,selected:e[0]}}get activityMoleculeRelationship(){const e=[Ft.activityMoleculeRelationship.product];return{options:e,selected:e[0]}}get moleculeActivityRelationship(){const e=[Ft.moleculeActivityRelationship.regulates,Ft.moleculeActivityRelationship.substrate];return{options:e,selected:e[0]}}setupUrls(){const e=this,i=e.noctuaUserService.baristaToken,o=new URL(window.location.href);o.searchParams.delete("barista_token");const a={barista_token:i},l={return:o.href};this.loginUrl=Er.globalBaristaLocation+"/login?"+e._parameterize(Object.assign({},l)),this.logoutUrl=Er.globalBaristaLocation+"/logout?"+e._parameterize(Object.assign({},a,l)),this.noctuaUrl=Er.noctuaUrl+"?"+(i?e._parameterize(Object.assign({},a)):""),this.homeUrl=window.location.href}setUniversalUrls(){const e=this;e.globalUrl={};let i=new Zd;e.noctuaUserService.baristaToken&&(i=i.append("barista_token",e.noctuaUserService.baristaToken));const o=i.toString();return e.globalUrl.goUrl="http://www.geneontology.org/",e.globalUrl.noctuaUrl=Er.noctuaUrl+"?"+o,e.globalUrl.universalWorkbenches=Er.globalWorkbenchesUniversal.map(r=>({label:r["menu-name"],url:Er.workbenchUrl+r["workbench-id"]+"?"+o})),e.globalUrl.universalBetaTestWorkbenches=Er.globalWorkbenchesUniversalBetaTest.map(r=>({label:r["menu-name"],url:Er.workbenchUrl+r["workbench-id"]+"?"+o})),e.globalUrl}getModelUrls(e){const o={};let r=new Zd;this.noctuaUserService.baristaToken&&(r=r.append("barista_token",this.noctuaUserService.baristaToken)),o.graphEditorUrl=Er.noctuaUrl+"/editor/graph/"+e+"?"+r.toString(),e&&(r=r.append("model_id",e));const a=r.toString();return o.owlUrl=Er.noctuaUrl+"/download/"+e+"/owl",o.gpadUrl=Er.noctuaUrl+"/download/"+e+"/gpad",o.noctuaFormUrl=Er.workbenchUrl+"noctua-form?"+a,o.noctuaVPEUrl=Er.workbenchUrl+"noctua-visual-pathway-editor?"+a,o.modelWorkbenches=Er.globalWorkbenchesModel.map(l=>({id:l["workbench-id"],label:l["menu-name"],url:Er.workbenchUrl+l["workbench-id"]+"?"+a})),o.modelBetaTestWorkbenches=Er.globalWorkbenchesModelBetaTest.map(l=>({id:l["workbench-id"],label:l["menu-name"],url:Er.workbenchUrl+l["workbench-id"]+"?"+a})),o.workbenches={},o.modelWorkbenches.forEach(l=>{o.workbenches[l.id]=l}),o}activityToAnnotation(e){var i,o;const r=new wee,a={};e.activityType===so.ccOnly||e.activityType===so.molecule?(r.gp=e.gpNode,e.getEdges(e.gpNode.id).forEach(w=>{Ft.ccOnlyEdges.includes(w.predicate.edge.id)&&(a.gpToTermPredicate=w.predicate.edge.id,r.goterm=w.object,r.gp.predicate=w.predicate)})):((null===(i=e.gpNode)||void 0===i?void 0:i.term.id)===Ft.rootNode.complex.id?(a.gpToTermPredicate=Ft.edge.hasPart.id,a.mfToTermPredicate=Ft.edge.enabledBy.id,a.root=OO.COMPLEX,a.mfToTermReverse=!0,a.mfNodeRequired=!0,e.getEdges(e.gpNode.id).forEach(w=>{w.predicate.edge.id===Ft.edge.hasPart.id&&(r.gp=w.object,r.goterm=e.mfNode)})):(a.gpToTermPredicate=Ft.edge.enabledBy.id,r.gp=e.gpNode,r.goterm=e.mfNode),(null===(o=e.mfNode)||void 0===o?void 0:o.term.id)===Ft.rootNode.mf.id&&(a.mfNodeRequired=!0,e.getEdges(e.mfNode.id).forEach(w=>{Ft.mfToTermEdges.includes(w.predicate.edge.id)&&(r.gpToTermEdge=w.predicate.edge,a.mfToTermPredicate=w.predicate.edge.id,r.goterm=w.object,e.getEdges(w.object.id).forEach(T=>{r.extensionEdge=T.predicate.edge,r.extension=T.object}))})));const l=this.findEdge(a.gpToTermPredicate),u=r.findEdgeByCriteria(a),f=this.findEdge(u);return l&&f&&(r.gpToTermEdge=Pi.createEntity(l),r.gpToTermEdge.inverseEntity=f),r.gpToTermEdges=this.getTermRelations(r.gp.rootTypes,r.goterm.rootTypes,!0),r}createPredicate(e,i){const o=new u3(e,i);return(t=>{const n=PO([yN]);t.setEvidenceMeta("eco",Object.assign({},JSON.parse(JSON.stringify(EO)),{fq:['document_category:"ontology_class"',n]}))})(o),o}createActivityBaseModel(e,i){const o=uVe[e];if(o)return((t,n)=>{const e=new QC;e.activityType=t;const i=mu(n.category,n);return e.addNode(i),e.updateShapeMenuShex(),e.enableSubmit(),e.updateProperties(),e})(e,Object.assign(Object.assign({},o),i))}createActivityModel(e){switch(e){case so.default:return u_(pVe);case so.bpOnly:return u_(fVe);case so.ccOnly:return u_(gVe);case so.molecule:return u_(_Ve);case so.proteinComplex:return u_(mVe);case so.simpleAnnoton:return u_(hVe)}}getTermRelations(e,i,o=!1){if(!e||!i)return[];const r=e.map(u=>u.id),a=i.map(u=>u.id);return B0.getPredicates(o?yee.Y:$C.Y,r,a).map(u=>this.findEdge(u))}setTermLookup(e,i){((t,n)=>{if(n&&n.length>0){const e=PO(n);t.termLookup=new c_(null,Object.assign({},JSON.parse(JSON.stringify(EO)),{fq:['document_category:"ontology_class"',e]}))}})(e,i)}getObjectsRelations(e,i=!1){if(!e)return[];const o=e.map(a=>a.id);return B0.getObjects(i?yee.Y:$C.Y,o).reduce((a,l)=>{const u=this.termLookupTable[l];if(u){const f=new xN;f.category=u.id,a.push(f)}return a},[])}addActivityNodeShex(e,i,o,r){return((t,n,e,i)=>{const o=xee(n,e,i.category),r=mu(i.category,o);r.subjectId=n.id,r.id=i.id?i.id:WC(),t.addNode(r),r.treeLevel=n.treeLevel+1;const a=t.getNode(r.id).predicate;return a.subjectId=n.id,a.objectId=r.id,a.edge=Pi.createEntity(e),t.addEdge(n,r,a),t.updateProperties(),t.resetPresentation(),r})(e,i,o,r)}insertActivityNodeShex(e,i,o,r=null){return((t,n,e,i=null)=>{const o=B0.genTermLookupTable(),r=$C.Y,a=[];n.category.forEach(w=>{const T=B0.getRangeBySubject(r,w.category,e.id);if(T){const U=T.object.map(ie=>{const se=o[ie],Me=new xN;return Me.category=se.id,Me});a.push(...U)}});const l=xee(n,e,a),u=mu(a,l);u.id=i||WC(),u.subjectId=n.id,t.addNode(u),u.treeLevel=n.treeLevel+1;const f=t.getNode(u.id).predicate;return f.subjectId=n.id,f.objectId=u.id,f.edge=Pi.createEntity(e),t.addEdge(n,u,f),t.updateProperties(),t.resetPresentation(),u})(e,i,o,r)}insertActivityNodeByPredicate(e,i,o,r){}createActivityModelFakeData(e){const o=this.createActivityModel(so.default);return e.forEach(r=>{const a=o.getNode(r.id),l=[];a.term=new Pi(r.term.id,r.term.label),(0,Zt.each)(r.evidence,u=>{const f=new Ll;f.evidence=new Pi(u.evidence.id,u.evidence.label),f.reference=u.reference,f.with=u.with,l.push(f)}),a.predicate.setEvidence(l)}),o.enableSubmit(),o}findEdge(e){const i=(0,Zt.find)(Ft.allEdges,{id:e});return Pi.createEntity(i||{id:e,label:e})}getAspect(e){const i=(0,Zt.find)(Ft.rootNode,{id:e});return i?i.aspect:""}getModelId(e){return"gomodel:"+e.substr(e.lastIndexOf("/")+1)}getIndividalId(e){return"gomodel:"+e.substr(e.lastIndexOf("/")+2)}}return t.\u0275fac=function(e){return new(e||t)(qt(yr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Cu=(()=>{return(t=Cu||(Cu={})).RESET="reset",t.STORE="store",Cu;var t})(),h3=(()=>{return(t=h3||(h3={})).NONE="none",t.MERGE="merge",t.REBUILD="rebuild",h3;var t})(),p3=(()=>{return(t=p3||(p3={})).NONE="none",t.ADD_ACTIVITY="add_activity",t.ADD_CAUSAL_RELATION="add_causal_relation",p3;var t})();class PN{constructor(){this.terms=[],this.reference=[]}}class MVe{constructor(){this.field=c4.GP,this.label="",this.ascending=!0}}class dm{constructor(){this.totalChanges=0,this.camsCount=0,this.termsCount=0,this.gpsCount=0,this.evidenceCount=0,this.referencesCount=0,this.withsCount=0,this.relationsCount=0}updateTotal(){this.totalChanges=this.termsCount+this.gpsCount+this.evidenceCount+this.referencesCount+this.withsCount+this.relationsCount}}class Md{constructor(n=!1,e=""){this.status=!1,this.message="",this.status=n,this.message=e}reset(){this.status=!1,this.message=""}}class OVe{constructor(){this.signal=h3.NONE,this.count=0,this.autoRebuild=!1,this.autoMerge=!1,this.message="",this.description=""}addMergeSignal(){this.count++,1===this.count?(this.signal=h3.MERGE,this.message="new changes available. Please refresh Model",this.description="Model has pending Changes. Please Reload"):(this.signal=h3.REBUILD,this.message="another new changes available. Please reload Model",this.description="Model has pending Changes. Please Reload")}addRebuildSignal(){this.count++,this.signal=h3.REBUILD,this.message="Model has been saved. Please reload Model",this.description="Model has pending Changes. Please Reload"}reset(){this.count=0,this.signal=h3.NONE,this.message="",this.description=""}}class DO{constructor(){this.comments=[],this.groups=[],this.contributors=[],this.expanded=!1,this.causalRelations=[],this.sortBy=new MVe,this.error=!1,this.modified=!1,this.modifiedStats=new dm,this.matchedCount=0,this.queryMatch=new PN,this.dateReviewAdded=Date.now(),this.operation=p3.NONE,this.rebuildRule=new OVe,this.moreDetail=!1,this.displayNumber="1",this.graphPreview={nodes:[],edges:[]},this.loading=new Md(!1),this.isReasoned=!1,this.hasViolations=!1,this.manualLayout=!1,this.layoutChanged=!1,this.annotationActivities=[],this._filteredActivities=[],this._activities=[],this._storedActivities=[]}get id(){return this._id}set id(n){this._id=n,this.displayId=zh.cleanID(n)}get activities(){var n;const e=this.sortBy.ascending?"asc":"desc";switch(null===(n=this.sortBy)||void 0===n?void 0:n.field){case c4.DATE:return(0,Zt.orderBy)(this._activities,["date",this._getGPText],[e,e]);case c4.MF:return(0,Zt.orderBy)(this._activities,[this._getMFText,this._getGPText],[e,e]);case c4.BP:return(0,Zt.orderBy)(this._activities,[this._getBPText,this._getGPText],[e,e]);case c4.CC:return(0,Zt.orderBy)(this._activities,[this._getCCText,this._getGPText],[e,e]);default:return(0,Zt.orderBy)(this._activities,[this._getGPText],[e,e])}}set activities(n){(0,Zt.each)(n,e=>{const i=this.findActivityById(e.id);i&&(e.expanded=i.expanded)}),this._activities=n}get storedActivities(){return this._storedActivities}set storedActivities(n){(0,Zt.each)(n,e=>{const i=this.findActivityById(e.id);i&&(e.expanded=i.expanded)}),this._storedActivities=n}updateSortBy(n,e){this.sortBy.field=n,this.sortBy.label=e}toggleExpand(){this.expanded=!this.expanded}expandAllActivities(n){(0,Zt.each)(this.activities,i=>{i.expanded=n})}getCausalRelation(n,e){return this.causalRelations.find(o=>{var r,a,l,u,f;return(null===(r=o.predicate)||void 0===r?void 0:r.isReverseLink)?(null===(a=o.object)||void 0===a?void 0:a.id)===n&&(null===(l=o.object)||void 0===l?void 0:l.id)===n:(null===(u=o.subject)||void 0===u?void 0:u.id)===n&&(null===(f=o.object)||void 0===f?void 0:f.id)===e})}clearHighlight(){(0,Zt.each)(this._activities,e=>{(0,Zt.each)(e.nodes,i=>{i.term.highlight=!1,(0,Zt.each)(i.predicate.evidence,o=>{o.evidence.highlight=!1,o.referenceEntity.highlight=!1,o.withEntity.highlight=!1})})})}findNodeById(n,e){let o;return(0,Zt.each)(e,r=>{if(o=(0,Zt.find)(r.nodes,a=>a.uuid===n),o)return!1}),o}findActivityById(n){return(0,Zt.find)(this.activities,i=>i.id===n)}findActivityByNodeUuid(n){const i=[];return(0,Zt.each)(this._activities,o=>{(0,Zt.each)(o.nodes,r=>{r.uuid===n&&i.push(o),(0,Zt.each)(r.predicate.evidence,a=>{a.uuid===n&&i.push(o)})})}),i}checkStored(){const n=this;(0,Zt.each)(n._activities,e=>{(0,Zt.each)(e.nodes,i=>{const o=n.findNodeById(i.uuid,n.storedActivities);i.checkStored(o)})})}applyFilter(){const n=this;n.clearHighlight(),n.queryMatch&&n.queryMatch.terms.length>0&&(n._filteredActivities=[],n.matchedCount=0,(0,Zt.each)(n._activities,e=>{let i=!1;(0,Zt.each)(e.nodes,o=>{(0,Zt.each)(n.queryMatch.terms,r=>{o.term.uuid===r.uuid&&(o.term.highlight=!0,o.term.activityDisplayId=r.activityDisplayId=e.displayId,n.matchedCount+=1,i=!0)}),(0,Zt.each)(o.predicate.evidence,r=>{(0,Zt.each)(n.queryMatch.terms,a=>{r.uuid===a.uuid&&(r.referenceEntity.highlight=!0,r.referenceEntity.activityDisplayId=a.activityDisplayId=e.displayId,n.matchedCount+=1,i=!0)})})}),i&&n._filteredActivities.push(e)}))}applyWeights(n=0){const e=this;e.queryMatch&&e.queryMatch.terms.length>0&&(0,Zt.each)(e.activities,i=>{(0,Zt.each)(i.nodes,o=>{const r=(0,Zt.find)(e.queryMatch.terms,{uuid:o.term.uuid});r&&(r.weight=o.term.weight=n,n++),(0,Zt.each)(o.predicate.evidence,a=>{const l=(0,Zt.find)(e.queryMatch.terms,{uuid:a.referenceEntity.uuid});l&&(l.weight=a.referenceEntity.weight=n,n++)})})})}addPendingChanges(n,e,i){(0,Zt.each)(this._activities,r=>{(0,Zt.each)(r.nodes,a=>{(0,Zt.each)(n,l=>{if(i.name===Ft.findReplaceCategory.options.reference.name)(0,Zt.each)(a.predicate.evidence,(u,f)=>{if(u.uuid===l.uuid){const w=new Pi(u.reference,u.reference),T=new Pi(e,e);u.pendingReferenceChanges=new sm(u.uuid,w,T),u.pendingReferenceChanges.uuid=u.uuid}});else if(a.term.uuid===l.uuid){const u=new Pi(e,e);a.pendingEntityChanges=new sm(a.uuid,a.term,u)}})})})}reviewCamChanges(n=new dm){const e=this;let i=!1;return e.modifiedStats=new dm,(0,Zt.each)(e._activities,o=>{(0,Zt.each)(o.nodes,r=>{o.modified=r.reviewTermChanges(n,e.modifiedStats),i=i||o.modified})}),e.modifiedStats.updateTotal(),i}getNodesByType(n){const i=[];return(0,Zt.each)(this.activities,o=>{i.push({activity:o,title:o.title,activityNodes:o.getNodesByType(n)})}),i}getNodesByTypeFlat(n){const i=[];return(0,Zt.each)(this.activities,o=>{i.push(...o.getNodesByType(n))}),i}getTerms(n){const i=[];return n&&n.nodes&&(0,Zt.each)(n.nodes,o=>{i.push(o)}),(0,Zt.each)(this.activities,o=>{(0,Zt.each)(o.nodes,r=>{i.push(r)})}),i}getEvidences(n){const i=[];return n&&n.nodes&&(0,Zt.each)(n.nodes,o=>{(0,Zt.each)(o.predicate.evidence,r=>{r.hasValue()&&i.push(r)})}),(0,Zt.each)(this.activities,o=>{(0,Zt.each)(o.edges,r=>{(0,Zt.each)(r.predicate.evidence,a=>{a.hasValue()&&i.push(a)})})}),i}setViolations(){var n;null===(n=this.violations)||void 0===n||n.forEach(i=>{const o=this.findActivityByNodeUuid(i.node.uuid);o&&o.forEach(r=>{r.hasViolations=!0,r.violations.push(i)})})}getViolationDisplayErrors(){const e=[];return e.push(...this.violations.map(i=>i.getDisplayError())),e}tableCanDisplayEnabledBy(n){return n.predicate.edge&&n.predicate.edge.id===Ft.edge.enabledBy.id}tableDisplayExtension(n){return"mf"===n.id?"":n.isComplement?"NOT "+n.predicate.edge.label:n.predicate.edge.label}updateActivityDisplayNumber(){const n=this;(0,Zt.each)(n.activities,(e,i)=>{e.displayNumber=n.displayNumber+"."+(i+1).toString()})}updateProperties(){var n;(0,Zt.each)(this._activities,(i,o)=>{i.updateProperties()}),this.sortBy.label=null===(n=Ft.activitySortField.options[this.sortBy.field])||void 0===n?void 0:n.label}_getGPText(n){return n.presentation.gpText.toLowerCase()}_getMFText(n){return n.mfNode?n.mfNode.term.label:""}_getBPText(n){return n.bpNode?n.bpNode.term.label:""}_getCCText(n){return n.ccNode?n.ccNode.term.label:""}}class SVe{constructor(n){switch(this.directness=Ft.directness.direct,this.effectDirection=Ft.effectDirection.positive,this.displaySection={directness:!0,effectDirection:!0},n){case Od.ACTIVITY_ACTIVITY:this.relationship=Ft.activityRelationship.regulation;break;case Od.ACTIVITY_MOLECULE:this.relationship=Ft.activityMoleculeRelationship.product;break;case Od.MOLECULE_ACTIVITY:this.relationship=Ft.moleculeActivityRelationship.regulates}}}var f3=(()=>{return(t=f3||(f3={}))[t.creation=1]="creation",t[t.editing=2]="editing",f3;var t})(),Od=(()=>{return(t=Od||(Od={})).ACTIVITY_ACTIVITY="activity",t.ACTIVITY_MOLECULE="activityMolecule",t.MOLECULE_ACTIVITY="moleculeActivity",Od;var t})();class TN extends Cee{constructor(n,e,i){super(),this.reverseEdge=!1,this.graphPreview={nodes:[],edges:[]},this.id=WC(),this.subject=n,this.object=e,this.predicate=i,this.setConnectorType(),this.rule=new SVe(this.connectorType),this.subjectNode=(0,Zt.cloneDeep)(this.subject.rootNode),this.objectNode=this.object.rootNode,this.subjectNode.predicate.evidence=i.evidence,this.setRule(),this.setLinkDirection(),this.createGraph(),this.setPreview()}setRule(){const n=this,e=n.edgeToConnectorQuestion(n.predicate.edge);e?Object.entries(e).forEach(i=>{const[o,r]=i,a=r.split(":");n.rule[o]=Ft[a[0]][a[1]]}):(n.rule.relationship=null,n.rule.directness=null,n.rule.effectDirection=null)}addDefaultEvidence(){let n;n=this.connectorType===Od.MOLECULE_ACTIVITY?this.object:this.subject;const e=n.mfNode,i=n.gpNode;if(i&&e){const o=n.getEdge(e.id,i.id);this.predicate.evidence=(0,Zt.cloneDeep)(o.predicate.evidence)}}checkConnection(n){var e;const i=this;if(i.rule.displaySection.effectDirection=!0,n.relationship)switch(n.relationship.id){case Ft.activityRelationship.regulation.id:i.rule.displaySection.effectDirection=!0,i.rule.displaySection.directness=!0;break;case Ft.activityRelationship.constitutivelyUpstream.id:case Ft.activityRelationship.providesInputFor.id:case Ft.activityRelationship.removesInputFor.id:i.rule.displaySection.effectDirection=!1,i.rule.displaySection.directness=!1;break;case Ft.activityRelationship.undetermined.id:case Ft.moleculeActivityRelationship.regulates.id:i.rule.displaySection.effectDirection=!0,i.rule.displaySection.directness=!1;break;case Ft.moleculeActivityRelationship.substrate.id:case Ft.activityMoleculeRelationship.product.id:i.rule.displaySection.effectDirection=!1,i.rule.displaySection.directness=!1}i.predicate.edge=this.getCausalConnectorEdge(null===(e=n.relationship)||void 0===e?void 0:e.id,i.rule.displaySection.effectDirection&&n.effectDirection?n.effectDirection.id:null,i.rule.displaySection.directness&&n.directness?n.directness.id:null),i.prepareSave(n),this.setLinkDirection(),i.setPreview()}getVPEEdge(n,e,i){const o=Ft.decisionTree;if(o[n]){if(o[n].edge)return o[n].edge;if(e&&o[n][e]){if(o[n][e].edge)return o[n][e].edge;if(i&&o[n][e][i])return o[n][e][i].edge}}}getCausalConnectorEdge(n,e,i){const o=this.getVPEEdge(n,e,i),r=(0,Zt.find)(Ft.allEdges,{id:o}),a=Pi.createEntity(r||{id:o,label:o});return a.id===Ft.edge.hasInput.id&&(a.label="input of"),a}getInputs(n){const e=Ft.decisionTree;for(const i in e){if(e[i].edge===n)return{relationship:i};if("object"==typeof e[i])for(const o in e[i]){if(e[i][o].edge===n)return{relationship:i,effectDirection:o};if("object"==typeof e[i][o])for(const r in e[i][o])if(e[i][o][r].edge===n)return{relationship:i,effectDirection:o,directness:r}}}return null}edgeToConnectorQuestion(n){return this.getInputs(n.id)}setConnectorType(){this.subject.activityType!==so.molecule&&this.object.activityType!==so.molecule?this.connectorType=Od.ACTIVITY_ACTIVITY:this.subject.activityType!==so.molecule&&this.object.activityType===so.molecule?this.connectorType=Od.ACTIVITY_MOLECULE:this.subject.activityType===so.molecule&&this.object.activityType!==so.molecule&&(this.connectorType=Od.MOLECULE_ACTIVITY)}setLinkDirection(){this.predicate.isReverseLink=this.connectorType===Od.MOLECULE_ACTIVITY&&this.predicate.edge.id===Ft.edge.hasInput.id}setPreview(){this.graphPreview.nodes=[...this._getPreviewNodes()],this.graphPreview.edges=[...this._getPreviewEdges()]}_getPreviewNodes(){let e=[];return e=[this.subject,this.object].map(o=>{const r=o.mfNode;return{id:o.id,label:r?null==r?void 0:r.term.label:""}}),e}createSave(){const n=this,e={title:"",nodes:[],triples:[],graph:null};let i;return i=n.predicate.isReverseLink?[new D2(n.objectNode,n.subjectNode,n.predicate)]:[new D2(n.subjectNode,n.objectNode,n.predicate)],e.triples=i,e}createEdit(n,e){e&&(this.predicate=e);const o=n.createSave(),r=this.createSave();return{removeTriples:o.triples,addTriples:r.triples}}createEditEvidence(n,e){const i=this;i.predicate.evidence=e.evidence;const o=new D2(i.subjectNode,i.objectNode,n.predicate);return{addTriples:new D2(i.subjectNode,i.objectNode,i.predicate),removeTriples:o}}createDelete(){const n=this,e={triples:[]};return e.triples.push(n.predicate.isReverseLink?new D2(n.objectNode,n.subjectNode,n.predicate):new D2(n.subjectNode,n.objectNode,n.predicate)),e}createGraph(n){const e=this,i=n||e.predicate.evidence;e.addNodes(e.subjectNode,e.objectNode),e.addEdge(e.subjectNode,e.objectNode,new u3(e.predicate.edge,i))}prepareSave(n){const i=n.evidenceFormArray.map(o=>{const r=new Ll;return r.uuid=o.uuid,r.evidence=new Pi(o.evidence.id,o.evidence.label),r.reference=o.reference,r.with=o.with,r});this.predicate.evidence=i}_getPreviewEdges(){const n=this;let e=[];return e=[{source:n.subject.id,target:n.object.id,label:n.predicate.edge?n.predicate.edge.label:""}],e}}class EN{constructor(){this.entityType=H0.ARTICLE}}const Mee=C(6268),TVe=new(C(9951).conf)(Mee.data.golr),EVe=Er.globalGolrServer,AVe=C(99572).jquery,LVe=C(61503),Oee=new AVe(C(6740));Oee.use_jsonp(!0);let Sd=(()=>{class t{constructor(e,i,o){this.httpClient=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.evidenceList=[],this.termList=[],this.articleCache={},this.onArticleCacheReady=new Io(null),this.name="DefaultLookupName",this.linker=new Mee.linker,this.golrURLBase=Er.globalGolrNeoServer+"select?",this.localClosures=[]}lookupFunc(){return{termLookup:this.termLookup.bind(this),evidenceLookup:this.evidenceLookup.bind(this)}}escapeGolrValue(e){return e.replace(/([\!\*\+\-\=\<\>\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}buildQ(e){const i=new LVe(EVe,TVe,Oee,"async");return i.set_comfy_query(e),i.get_query(e)}termLookup(e,i){const o=this;i.q=o.buildQ(e);const r=new Zd({fromObject:i}),a=this.golrURLBase+r.toString();return this.httpClient.jsonp(a,"json.wrf").pipe(it(l=>o._lookupMap(l)))}termPreLookup(e){return(0,Zt.filter)(this.termList,r=>r.type===e).map(r=>r.term)}evidencePreLookup(){return(0,Zt.uniqWith)(this.evidenceList,pee).map(o=>o.evidence)}referencePreLookup(){return(0,Zt.uniqWith)(this.evidenceList,fee).map(o=>o.reference)}withPreLookup(){return(0,Zt.uniqWith)(this.evidenceList,gee).map(o=>o.with)}evidenceLookup(e,i){const o=this,r=e.toLowerCase();let a=[];switch(i){case"reference":a=o.referencePreLookup().filter(l=>!!l&&l.toLowerCase().includes(r));break;case"with":a=o.withPreLookup().filter(l=>!!l&&l.toLowerCase().includes(r))}return a}companionLookup(e,i,o){const r=this,a=Er.globalGolrServer+"select?",l={defType:"edismax",qt:"standard",indent:"on",wt:"json",sort:"annotation_class_label asc",rows:"2000",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","json.nl":"arrarr","facet.limit":"2000",fq:['document_category: "annotation"','aspect: "'+i+'"','bioentity: "'+e+'"'],"facet.field":["source","assigned_by","aspect","evidence_type_closure","annotation_class_label"],q:"*:*"};o.term&&l.fq.push('annotation_class:"'+o.term+'"'),o.evidence&&l.fq.push('evidence:"'+o.evidence+'"');const f=a+new Zd({fromObject:l}).toString();return this.httpClient.jsonp(f,"json.wrf").pipe(it(w=>{const U=[];return(0,Zt.each)(w.response.docs,function(ie){let se;const Me=new Ll;if(Me.setEvidence(new Pi(ie.evidence,ie.evidence_label)),ie.reference&&ie.reference.length>0&&(Me.reference=ie.reference.join(" | ")),ie.evidence_with&&ie.evidence_with.length>0&&(Me.with=ie.evidence_with.join(" | ")),Me.groups=r.noctuaUserService.getGroupsFromNames([ie.assigned_by]),se=(0,Zt.find)(U,we=>we.getTerm().id===ie.annotation_class),ie.annotation_extension_json)try{const we=[];Array.isArray(ie.annotation_extension_json)?ie.annotation_extension_json.forEach(He=>{we.push(JSON.parse(He))}):we.push(JSON.parse(ie.annotation_extension_json)),Me.evidenceExts=[],we.forEach(He=>{if(He.relationship&&He.relationship.relation){const Be=new HHe;Be.term=new Pi(He.relationship.id,He.relationship.label),He.relationship.relation.forEach(me=>{Be.relations.push(new Pi(me.id,me.label))}),Me.evidenceExts.push(Be)}})}catch(we){console.log(we,se,ie.annotation_extension_json)}se?se.predicate.addEvidence(Me):(se=new SO,se.predicate=new u3(null),se.term=new Pi(ie.annotation_class,ie.annotation_class_label),se.predicate.addEvidence(Me),U.push(se))}),U}))}categoryToClosure(e){return e.map(i=>`${i.categoryType}:"${i.category}"`).join(" OR ")}isaClosure(e,i){const r={q:this.buildQ(e),defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"2",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","facet.limit":"25","json.nl":"arrarr",packet:"1",callback_type:"search","facet.field":["source","subset","idspace","is_obsolete"],fq:['document_category:"ontology_class"',i],qf:["annotation_class^3","isa_closure^1"]},a=new Zd({fromObject:r}),l=this.golrURLBase+a.toString();return this.httpClient.jsonp(l,"json.wrf").pipe(it(u=>{const f=u.response.docs;let w=!1;return f.length>0&&(w=f[0].annotation_class===e),w}))}getTermDetail(e){const i=this,o={q:i.buildQ(e),defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"2",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","facet.limit":"25","json.nl":"arrarr",packet:"1",callback_type:"search","facet.field":["source","subset","idspace","is_obsolete"],fq:['document_category:"ontology_class"'],qf:["annotation_class^3","isa_closure^1"]},r=new Zd({fromObject:o}),a=this.golrURLBase+r.toString();return this.httpClient.jsonp(a,"json.wrf").pipe(it(l=>i._lookupMap(l)),it(l=>l.length>0?l[0]:l))}getTermURL(e){if(e.startsWith("ECO"))return"http://www.evidenceontology.org/term/"+e;if(e.startsWith("PMID")){const o=e.split(":");return o.length>1?"https://www.ncbi.nlm.nih.gov/pubmed/"+o[1].trim():null}return this.linker.url(e)}addPubmedInfos(e){const i=this,o=Object.keys(this.articleCache),r=(0,Zt.difference)(e,o);if(r.length>0){const a=Er.pubMedSummaryApi+r.join(",");this.httpClient.get(a).pipe(it(l=>l.result),it(l=>l.uids.map(u=>this._addArticles(l[u])))).subscribe(l=>{l.forEach(u=>{i.articleCache["PMID:"+u.id]=u}),i.onArticleCacheReady.next(!0)})}else i.onArticleCacheReady.next(!0)}getPubmedInfo(e){return this.httpClient.get(Er.pubMedSummaryApi+e).pipe(it(o=>o.result),it(o=>o[e]),it(o=>this._addArticles(o)))}_addArticles(e){if(!e)return;const o=new EN;return o.id=e.uid,o.title=e.title,o.link=this.linker.url(`${Ft.evidenceDB.options.pmid.name}:${e.uid}`),o.date=e.pubdate,e.authors&&Array.isArray(e.authors)&&(o.author=e.authors.map(r=>r.name).join(", ")),o}_lookupMap(e){const i=this;return e.response.docs.map(a=>{let l;if(a.database_xref&&a.database_xref.length>0){const u=a.database_xref[0].split(":");l=u.length>1?u[1]:u[0]}return{id:a.annotation_class,label:a.annotation_class_label,link:i.getTermURL(a.annotation_class),description:a.description,isObsolete:a.is_obsolete,replacedBy:a.replaced_by,rootTypes:i._makeEntitiesArray(a.isa_closure,a.isa_closure_label),xref:l}})}_makeEntitiesArray(e,i){let o=[];return i||e?(i?e.length===i.length&&(o=e.map((r,a)=>new Pi(r,i[a]))):o=e.map((r,a)=>new Pi(r,r)),(0,Zt.filter)(o,r=>!r.id.startsWith("BFO"))):[]}}return t.\u0275fac=function(e){return new(e||t)(qt(ru),qt(yr),qt(Co))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var See=C(66713);const kVe={"@context":{gomodel:"http://model.geneontology.org/",BIOMD:"http://www.ebi.ac.uk/compneur-srv/biomodels-main/publ-model.do?mid=",COG_Function:"http://www.ncbi.nlm.nih.gov/COG/grace/shokog.cgi?fun=",WB:"http://identifiers.org/wormbase/",FBbt:"http://purl.obolibrary.org/obo/FBbt_",KEGG_LIGAND:"http://www.genome.jp/dbget-bin/www_bget?cpd:",PSO_GIT:"https://github.com/Planteome/plant-stress-ontology/issues/",MaizeGDB_stock:"http://maizegdb.org/data_center/stock?id=",EMAPA:"http://purl.obolibrary.org/obo/EMAPA_",GO:"http://purl.obolibrary.org/obo/GO_",NCBI_GP:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&val=",NMPDR:"http://www.nmpdr.org/linkin.cgi?id=",CASSPC:"http://research.calacademy.org/research/ichthyology/catalog/getname.asp?rank=Species&id=",TGD_REF:"http://db.ciliate.org/cgi-bin/reference/reference.pl?dbid=",NCBIGene:"http://identifiers.org/ncbigene/",KEGG_REACTION:"http://www.genome.jp/dbget-bin/www_bget?rn:",PseudoCAP:"http://v2.pseudomonas.com/getAnnotation.do?locusID=",UniPathway:"http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=",MEROPS_fam:"http://merops.sanger.ac.uk/cgi-bin/famsum?family=",GO_REF:"http://purl.obolibrary.org/obo/go/references/",VEGA:"http://vega.sanger.ac.uk/id/",ZFIN:"http://identifiers.org/zfin/",AspGD_REF:"http://www.aspergillusgenome.org/cgi-bin/reference/reference.pl?dbid=",RO:"http://purl.obolibrary.org/obo/RO_",Pfam:"http://pfam.xfam.org/family/",UBERON:"http://purl.obolibrary.org/obo/UBERON_",GR:"http://www.gramene.org/db/searches/browser?search_type=All&RGN=on&query=",PDB:"http://www.rcsb.org/pdb/cgi/explore.cgi?pdbId=",CORIELL:"http://ccr.coriell.org/Sections/Search/Sample_Detail.aspx?Ref=",JCVI_GenProp:"http://cmr.jcvi.org/cgi-bin/CMR/shared/GenomePropDefinition.cgi?prop_acc=",SGN:"http://identifiers.org/sgn/",BFO:"http://purl.obolibrary.org/obo/BFO_","Genesys-pgr":"https://www.genesys-pgr.org/acn/search?q=",UniMod:"http://www.unimod.org/modifications_view.php?editid1=","UM-BBD_reactionID":"http://eawag-bbd.ethz.ch/servlets/pageservlet?ptype=r&reacID=",PubChem_Substance:"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pcsubstance&term=",EcoCyc:"http://biocyc.org/ECOLI/NEW-IMAGE?type=PATHWAY&object=",Reactome:"http://identifiers.org/reactome/",InterPro:"http://identifiers.org/interpro/",UniRule:"http://www.uniprot.org/unirule/",MGCSC_GENETIC_STOCKS:"http://www.maizegdb.org/cgi-bin/displaystockrecord.cgi?id=",dictyBase:"http://identifiers.org/dictybase/",PO_GIT:"https://github.com/Planteome/plant-ontology/issues/",AspGD_LOCUS:"http://identifiers.org/aspgd.locus/",SGD:"http://identifiers.org/sgd/",COG_Pathway:"http://www.ncbi.nlm.nih.gov/COG/new/release/coglist.cgi?pathw=",ENZYME:"http://www.expasy.ch/cgi-bin/nicezyme.pl?",PAMGO_MGG:"http://scotland.fgl.ncsu.edu/cgi-bin/adHocQuery.cgi?adHocQuery_dbName=smeng_goannotation&Action=Data&QueryName=Functional+Categorization+of+MGG+GO+Annotation&P_KeyWord=",AgBase:"http://www.agbase.msstate.edu/cgi-bin/getEntry.pl?db_pick=[ChickGO/MaizeGO]&uid=",AraCyc:"http://www.arabidopsis.org:1555/ARA/NEW-IMAGE?type=NIL&object=",EcoCyc_REF:"http://biocyc.org/ECOLI/reference.html?type=CITATION-FRAME&object=",CHEBI:"http://purl.obolibrary.org/obo/CHEBI_",HGNC:"http://identifiers.org/hgnc/",dictyBase_gene_name:"http://dictybase.org/gene/",TAIR:"http://identifiers.org/tair.locus/",EnsemblFungi:"http://www.ensemblgenomes.org/id/",Wikipedia:"http://en.wikipedia.org/wiki/",SUPERFAMILY:"http://supfam.cs.bris.ac.uk/SUPERFAMILY/cgi-bin/scop.cgi?ipid=SSF",SWALL:"http://ca.expasy.org/cgi-bin/sprot-search-de?S=1&T=1&SEARCH=","PSI-MOD":"http://www.ebi.ac.uk/ontology-lookup/?termId=MOD:",FYPO:"http://purl.obolibrary.org/obo/FYPO_",RGD:"http://identifiers.org/rgd/","UM-BBD_enzymeID":"http://eawag-bbd.ethz.ch/servlets/pageservlet?ptype=ep&enzymeID=",Broad_MGG:"http://www.broad.mit.edu/annotation/genome/magnaporthe_grisea/GeneLocus.html?sp=S","Swiss-Prot":"http://www.ebi.uniprot.org/uniprot-srv/uniProtView.do?proteinac=",PMID:"http://www.ncbi.nlm.nih.gov/pubmed/",Xenbase:"http://identifiers.org/xenbase/",PR:"http://purl.obolibrary.org/obo/PR_",MIPS_funcat:"http://mips.gsf.de/cgi-bin/proj/funcatDB/search_advanced.pl?action=2&wert=",GR_REF:"http://www.gramene.org/db/literature/pub_search?ref_id=",MaizeGDB:"http://maizegdb.org/gene_center/gene/",HAMAP:"http://hamap.expasy.org/unirule/",SGN_ref:"http://www.sgn.cornell.edu/chado/publication.pl?pub_id=",TO_GIT:"https://github.com/Planteome/plant-trait-ontology/issues/",MeSH:"http://n2t.net/MESH:",GR_PROTEIN:"http://identifiers.org/gramene.protein/",MaizeGDB_REF:"http://maizegdb.org/data_center/reference?id=",GEO:"http://www.ncbi.nlm.nih.gov/sites/GDSbrowser?acc=",PO:"http://purl.obolibrary.org/obo/PO_",PomBase:"http://identifiers.org/pombase/",ENA:"http://www.ebi.ac.uk/ena/data/view/",PIRSF:"http://pir.georgetown.edu/cgi-bin/ipcSF?id=",EMBL:"http://www.ebi.ac.uk/cgi-bin/emblfetch?style=html&Submit=Go&id=",Prosite:"http://www.expasy.ch/cgi-bin/prosite-search-ac?","H-invDB_cDNA":"http://www.h-invitational.jp/hinv/spsoup/transcript_view?acc_id=",EC:"http://www.expasy.org/enzyme/",MACSC_REF:"http://www.maizegdb.org/cgi-bin/displaytraitrecord.cgi?id=",PAMGO_VMD:"http://vmd.vbi.vt.edu/cgi-bin/browse/go_detail.cgi?gene_id=",IRGC:"https://www.genesys-pgr.org/acn/search?q=IRGC+",NASC_code:"http://seeds.nottingham.ac.uk/NASC/stockatidb.lasso?code=",COG_Cluster:"http://www.ncbi.nlm.nih.gov/COG/new/release/cow.cgi?cog=",TreeGenes:"http://dendrome.ucdavis.edu/treegenes/protein/view_protein.php?id=",WB_REF:"http://www.wormbase.org/db/misc/paper?name=",TGD_LOCUS:"http://db.ciliate.org/cgi-bin/locus.pl?locus=",MA:"http://purl.obolibrary.org/obo/MA_",UniProtKB:"http://identifiers.org/uniprot/",MGI:"http://identifiers.org/mgi/",GRINDesc:"https://npgsweb.ars-grin.gov/gringlobal/descriptordetail.aspx?id=",DDANAT:"http://purl.obolibrary.org/obo/DDANAT_","RAP-DB":"http://rapdb.dna.affrc.go.jp/tools/search/run?id=on&attr=desc&attr=cgs&attr=cgn&attr=cgss&attr=cgns&attr=rgss&attr=rgns&keyword=",KEGG_PATHWAY:"http://identifiers.org/kegg.pathway/",JCVI_CMR:"http://cmr.jcvi.org/cgi-bin/CMR/shared/GenePage.cgi?locus=",dictyBase_REF:"http://dictybase.org/db/cgi-bin/dictyBase/reference/reference.pl?refNo=",DOI:"http://dx.doi.org/",LIFEdb:"http://www.dkfz.de/LIFEdb/LIFEdb.aspx?ID=",PANTHER:"http://identifiers.org/panther.family/",Gene3D:"http://gene3d.biochem.ucl.ac.uk/search?mode=family&sterm=",PATRIC:"http://patric.vbi.vt.edu/gene/overview.php?fid=",FB:"http://identifiers.org/flybase/",PAINT_REF:"http://www.pantherdb.org/panther/lookupId.jsp?id=PTHR",CASREF:"http://research.calacademy.org/research/ichthyology/catalog/getref.asp?id=",ENSEMBL:"http://identifiers.org/ensembl/",SMART:"http://smart.embl-heidelberg.de/smart/do_annotation.pl?BLAST=DUMMY&DOMAIN=",RefSeq:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=",WBls:"http://purl.obolibrary.org/obo/WBls_",MaizeGDB_QTL:"http://www.maizegdb.org/data_center/trait?id=",SOY_ref:"http://www.soybase.org/sbt/search/search_results.php?category=Soybase_ID&search_term=",ECO:"http://purl.obolibrary.org/obo/ECO_",CGD_REF:"http://www.candidagenome.org/cgi-bin/reference/reference.pl?dbid=",ECK:"http://www.ecogene.org/geneInfo.php?eck_id=",CGD:"http://identifiers.org/cgd/",GR_GENE:"http://identifiers.org/gramene.gene/",RNAmods:"http://s59.cas.albany.edu/RNAmods/cgi-bin/rnashow.cgi?",KEGG_ENZYME:"http://identifiers.org/kegg.enzyme/",CACAO:"http://gowiki.tamu.edu/wiki/index.php/",IUPHAR_GPCR:"http://www.iuphar-db.org/DATABASE/FamilyMenuForward?familyId=",JCVI_TIGRFAMS:"http://search.jcvi.org/search?p&q=",SOY_QTL:"http://soybase.org/sbt/search/search_results.php?category=QTLName&search_term=",DDBJ:"http://arsa.ddbj.nig.ac.jp/arsa/ddbjSplSearch?KeyWord=",PRINTS:"http://www.bioinf.manchester.ac.uk/cgi-bin/dbbrowser/sprint/searchprintss.cgi?display_opts=Prints&category=None&queryform=false®expr=off&prints_accn=",PO_REF:"http://planteome.org/po_ref/",IMG:"http://img.jgi.doe.gov/cgi-bin/pub/main.cgi?section=GeneDetail&page=geneDetail&gene_oid=",CL:"http://purl.obolibrary.org/obo/CL_","UniProtKB-SubCell":"http://www.uniprot.org/locations/",NIF_Subcellular:"http://www.neurolex.org/wiki/",GeneDB:"http://identifiers.org/genedb/",ApiDB_PlasmoDB:"http://www.plasmodb.org/gene/",RNAcentral:"http://rnacentral.org/rna/",CGD_LOCUS:"http://www.candidagenome.org/cgi-bin/locus.pl?locus=",Rfam:"http://rfam.sanger.ac.uk/family/",Broad_NEUROSPORA:"http://www.broadinstitute.org/annotation/genome/neurospora/GeneDetails.html?sp=S",AGI_LocusCode:"http://arabidopsis.org/servlets/TairObject?type=locus&name=",OBO_SF2_PO:"http://sourceforge.net/p/obo/plant-ontology-po-term-requests/",FMA:"http://purl.obolibrary.org/obo/FMA_",CDD:"http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=",PubChem_Compound:"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pccompound&term=",HGNC_gene:"http://identifiers.org/hgnc.gene/",PharmGKB:"http://www.pharmgkb.org/do/serve?objId=",VMD:"http://vmd.vbi.vt.edu/cgi-bin/browse/browserDetail_new.cgi?gene_id=",UniParc:"http://www.uniprot.org/uniparc/",MEROPS:"http://merops.sanger.ac.uk/cgi-bin/pepsum?mid=",GDB:"http://www.gdb.org/gdb-bin/genera/accno?accessionNum=GDB:",SEED:"http://www.theseed.org/linkin.cgi?id=",SO:"http://purl.obolibrary.org/obo/SO_",Soy_gene:"http://www.soybase.org/sbt/search/search_results.php?category=FeatureName&search_term=",CORUM:"http://mips.gsf.de/genre/proj/corum/complexdetails.html?id=",RHEA:"http://www.rhea-db.org/reaction.xhtml?id=",dbSNP:"http://identifiers.org/dbsnp/",MaizeGDB_Locus:"http://identifiers.org/maizegdb.locus/",MO:"http://mged.sourceforge.net/ontologies/MGEDontology.php#",PLANA_REF:"http://purl.obolibrary.org/obo/plana/references/",BRENDA:"http://www.brenda-enzymes.info/php/result_flat.php4?ecno=",ASAP:"https://asap.ahabs.wisc.edu/annotation/php/feature_info.php?FeatureID=",CAS:"http://identifiers.org/cas/","H-invDB_locus":"http://www.h-invitational.jp/hinv/spsoup/locus_view?hix_id=","UM-BBD_ruleID":"http://eawag-bbd.ethz.ch/servlets/rule.jsp?rule=",NCBITaxon:"http://purl.obolibrary.org/obo/NCBITaxon_",ComplexPortal:"https://www.ebi.ac.uk/complexportal/complex/",JSTOR:"http://www.jstor.org/stable/",GRIMS:"https://www.genesys-pgr.org/acn/search2?q=IRGC+",PATO:"http://purl.obolibrary.org/obo/PATO_",GR_QTL:"http://identifiers.org/gramene.qtl/",ECOGENE:"http://www.ecogene.org/geneInfo.php?eg_id=",HPA_antibody:"http://www.proteinatlas.org/antibody_info.php?antibody_id=",VBRC:"http://vbrc.org/query.asp?web_id=VBRC:",EO_GIT:"https://github.com/Planteome/plant-environment-ontology/issues/",EchoBASE:"http://www.biolws1.york.ac.uk/echobase/Gene.cfm?recordID=",CASGEN:"http://research.calacademy.org/research/ichthyology/catalog/getname.asp?rank=Genus&id=",IUPHAR_RECEPTOR:"http://www.iuphar-db.org/DATABASE/ObjectDisplayForward?objectId=",IRIC:"http://oryzasnp.org/_variety.zul?irisid=",GenBank:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val=",TGD:"http://identifiers.org/tgd/",JCVI_EGAD:"http://cmr.jcvi.org/cgi-bin/CMR/EgadSearch.cgi?search_string=",PubChem_BioAssay:"http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=",TC:"http://www.tcdb.org/tcdb/index.php?tc=","SABIO-RK":"http://sabio.villa-bosch.de/reacdetails.jsp?reactid=",OBO_SF2_PECO:"https://sourceforge.net/p/obo/plant-environment-ontology-eo/",MetaCyc:"http://identifiers.org/metacyc/",PAMGO_GAT:"http://agro.vbi.vt.edu/public/servlet/GeneEdit?&Search=Search&level=2&genename=",ModBase:"http://salilab.org/modbase/searchbyid?databaseID=",OMIM:"http://omim.org/entry/",GR_MUT:"http://www.gramene.org/db/genes/search_gene?acc=",HPA:"http://www.proteinatlas.org/tissue_profile.php?antibody_id=",IntAct:"http://identifiers.org/intact/",ProDom:"http://prodom.prabi.fr/prodom/current/cgi-bin/request.pl?question=DBEN&query=",GRIN:"https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=",WBPhenotype:"http://purl.obolibrary.org/obo/WBPhenotype_",BioCyc:"http://biocyc.org/META/NEW-IMAGE?type=PATHWAY&object=",ENSEMBL_GeneID:"http://www.ensembl.org/id/",PIR:"http://pir.georgetown.edu/cgi-bin/pirwww/nbrfget?uid=","UniProtKB-KW":"http://www.uniprot.org/keywords/",Planteome_gene:"https://www.google.com/search?q=",AspGD:"http://www.aspergillusgenome.org/cgi-bin/locus.pl?dbid=",JCVI_Medtr:"http://medicago.jcvi.org/cgi-bin/medicago/search/shared/ORF_infopage.cgi?orf=",EuPathDB:"http://eupathdb.org/gene/",PMCID:"http://www.ncbi.nlm.nih.gov/sites/entrez?db=pmc&cmd=search&term="}};let p_=(()=>{class t{constructor(){const e=(0,See.q)(kVe);this._curie=new See.T(e)}getCurieUtil(){return this._curie}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ZC=(()=>{return(t=ZC||(ZC={})).cardinality="cardinality",t.relation="relations",ZC;var t})();class Pee{constructor(n,e){this.node=n,this.type=e}getDisplayError(){}get message(){return this._message}}class IVe extends Pee{constructor(n,e,i,o){super(n,ZC.cardinality),this.node=n,this.predicate=e,this.nobjects=i,this.cardinality=o,this.subject=n}get message(){var n;return this._message=`Only one ${null===(n=this.predicate)||void 0===n?void 0:n.label} is allowed`,this._message}getDisplayError(){var n,e,i;const o=this,r={aspect:"",subjectNode:{label:null===(e=null===(n=o.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label},edge:{label:null===(i=o.predicate)||void 0===i?void 0:i.label}};return new wd(Al.error,El.cardinality,o.message,r)}}class NVe extends Pee{constructor(n){super(n,ZC.relation),this.node=n,this.subject=n}get message(){var n,e,i,o;return this._message=`Incorrect relationship between ${null===(e=null===(n=this.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label} and ${null===(o=null===(i=this.object)||void 0===i?void 0:i.term)||void 0===o?void 0:o.label}`,this._message}getDisplayError(){var n,e,i,o,r,a,l,u,f;const w=this,T={aspect:"",subjectNode:{label:null===(e=null===(n=w.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label},edge:{label:null===(i=w.predicate)||void 0===i?void 0:i.label},objectNode:{label:(null===(r=null===(o=w.object)||void 0===o?void 0:o.term)||void 0===r?void 0:r.label)?null===(l=null===(a=w.object)||void 0===a?void 0:a.term)||void 0===l?void 0:l.label:null===(f=null===(u=w.object)||void 0===u?void 0:u.term)||void 0===f?void 0:f.id}};return new wd(Al.error,El.relation,w.message,T)}}var kO=C(72759);const RVe=C(29494),zVe=C(6268),FVe=C(61759),r2=C(33837),HVe=C(99572).jquery,l4=C(8886),VVe=C(42023);let Yc=(()=>{class t{constructor(e,i,o,r,a){this.curieService=e,this.httpClient=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaLookupService=a,this.baristaLocation=Er.globalBaristaLocation,this.minervaDefinitionName=Er.globalMinervaDefinitionName,this.linker=new zVe.linker,this.curieUtil=this.curieService.getCurieUtil(),this.onCamRebuildChange=new Io(null),this.onCamGraphChanged=new Io(null),this.onActivityAdded=new Io(null)}registerManager(e=!1){const i=new HVe(FVe);i.method("POST");const o=new VVe(this.baristaLocation,this.minervaDefinitionName,this.noctuaUserService.baristaToken,i,"async");return o.register("prerun",()=>{}),o.register("postrun",()=>{},9),o.register("manager_error",w=>{console.log("There was a manager error ("+w.message_type()+"): "+w.message())},10),o.register("warning",w=>{alert("Warning: "+w.message()+"; your operation was likely not performed")},10),o.register("error",w=>{w.message()&&-1!==w.message().indexOf("InsufficientPermissionsException")?alert("Error: it seems like you do not have permission to perform that operation. Did you remember to login?"):w.message()&&-1!==w.message().indexOf("token")?alert("Error: it seems like you have a bad token..."):(console.log("error:",w,w.message_type(),w.message()),w.message().includes("UnknownIdentifierException"))},10),o.use_reasoner_p(e),o}registerBaristaClient(e){const i=this,o=new RVe(Er.globalBaristaLocation,this.noctuaUserService.baristaToken);return o.register("merge",function(r){console.log("barista/merge response"),i.onCamMergeSignal(e,r)}),o.register("rebuild",function(r){console.log("barista/rebuild response"),i.onCamRebuildSignal(e,r)}),o.connect(e.id),o}getGraphInfo(e,i){const o=this;e.loading=new Md(!0,"Loading Model Activities ..."),e.id=i,e.manager=this.registerManager(),e.copyModelManager=this.registerManager(),e.artManager=this.registerManager(),e.groupManager=this.registerManager(),e.replaceManager=this.registerManager(!1),e.manager.register("rebuild",function(r){o.rebuild(e,r)},10)}getMetadata(e){const i=this,o=new DO;o.graph=new kO.graph,o.graph.load_data_basic(e),o.id=e.id,o.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(o.id)}),o.modified=e["modified-p"];const r=o.graph.get_annotations_by_key("title"),a=o.graph.get_annotations_by_key("comment"),l=o.graph.get_annotations_by_key("state"),u=o.graph.get_annotations_by_key("date"),f=o.graph.get_annotations_by_key("providedBy"),w=o.graph.get_annotations_by_key("contributor");return o.contributors=i.noctuaUserService.getContributorsFromAnnotations(w),o.groups=i.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(o.date=u[0].value()),r.length>0&&(o.title=r[0].value()),o.comments=a.map(T=>T.value()),l.length>0&&(o.state=i.noctuaFormConfigService.findModelState(l[0].value())),o}rebuild(e,i){const o=this;if(e.graph){const T=new kO.graph;T.load_data_basic(i.data()),e.graph.merge_special(T)}else e.graph=new kO.graph,e.graph.load_data_basic(i.data());e.id=i.data().id,e.modified=i.data()["modified-p"],e.isReasoned=i["is-reasoned"];const r=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("comment"),l=e.graph.get_annotations_by_key("state"),u=e.graph.get_annotations_by_key("date"),f=e.graph.get_annotations_by_key("providedBy"),w=e.graph.get_annotations_by_key("contributor");e.contributors=o.noctuaUserService.getContributorsFromAnnotations(w),e.groups=o.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(e.date=u[0].value()),r.length>0&&(e.title=r[0].value()),e.comments=a.map(T=>T.value()),l.length>0&&(e.state=o.noctuaFormConfigService.findModelState(l[0].value())),o.loadCam(e),o.loadViolations(e,i.data()["validation-results"]),e.loading.status=!1}onCamMergeSignal(e,i){e.rebuildRule.addMergeSignal(),e.rebuildRule.autoRebuild&&this.onCamRebuildChange.next(e)}onCamRebuildSignal(e,i){e.rebuildRule.addRebuildSignal(),e.rebuildRule.autoRebuild&&this.onCamRebuildChange.next(e)}rebuildFromStoredApi(e,i){const o=this;e.graph=new kO.graph,e.graph.load_data_basic(i),e.id=i.id;const r=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("comment"),l=e.graph.get_annotations_by_key("state"),u=e.graph.get_annotations_by_key("date"),f=e.graph.get_annotations_by_key("providedBy"),w=e.graph.get_annotations_by_key("contributor");e.contributors=o.noctuaUserService.getContributorsFromAnnotations(w),e.groups=o.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(e.date=u[0].value()),r.length>0&&(e.title=r[0].value()),e.comments=a.map(T=>T.value()),l.length>0&&(e.state=o.noctuaFormConfigService.findModelState(l[0].value())),o.loadCam(e,!1)}loadCam(e,i=!0){const o=this,r=o.graphToActivities(e.graph);if(Er.isGraph){const a=o.graphToMolecules(e.graph);if(r.push(...a),e.operation===p3.ADD_ACTIVITY){const l=o.getAddedActivity(r,e.activities);o.onActivityAdded.next(l)}e.activities=r,e.updateProperties(),e.causalRelations=o.getCausalRelations(e),o.getActivityLocations(e)}else e.activities=r,e.updateProperties();e.applyFilter(),e.updateActivityDisplayNumber(),e.operation=p3.NONE,i&&o.onCamGraphChanged.next(e)}getAddedActivity(e,i){const o=(0,Zt.differenceWith)(e,i,dVe);return o&&o.length>0?o[0]:null}loadViolations(e,i){const o=this;let r;i&&i["shex-validation"]&&i["shex-validation"].violations&&(r=i["shex-validation"].violations,e.hasViolations=r.length>0,e.violations=[],r.forEach(a=>{a.explanations.forEach(l=>{l.constraints.forEach(u=>{const f=o.generateViolation(e,a.node,u);f&&e.violations.push(f)})})})),e.setViolations()}generateViolation(e,i,o){const r=this,a=r.nodeToActivityNode(e.graph,i);if(!a)return null;let l;if(o.cardinality){const u=r.noctuaFormConfigService.findEdge(o.property);l=new IVe(a,u,o.nobjects,o.cardinality)}else if(o.object){l=new NVe(a),l.predicate=r.noctuaFormConfigService.findEdge(o.property);const u=o.object.startsWith("http")?r.curieUtil.getCurie(o.object):o.object;l.object=r.nodeToActivityNode(e.graph,u)}return l}getNodeInfo(e){const i={};return(0,Zt.each)(e.types(),function(o){const r="complement"===o.type()?o.complement_class_expression():o;i.id=r.class_id(),i.label=r.class_label(),i.classExpression=r}),i}getNodeRootInfo(e){return e.root_types().map(o=>{const r="complement"===o.type()?o.complement_class_expression():o;return new Pi(r.class_id(),r.class_label())})}getNodeCategoryInfo(e){return e.map(o=>{const r=new xN;return r.category=o.id,r})}getNodeDate(e){const i=e.get_annotations_by_key("date");return i.length>0?i[0].value():null}getNodeLocation(e){const i={x:0,y:0},o=e.get_annotations_by_key("hint-layout-x"),r=e.get_annotations_by_key("hint-layout-y");return 1===o.length&&(i.x=parseInt(o[0].value())),1===r.length&&(i.y=parseInt(r[0].value())),i}getNodeIsComplement(e){let i=!0;return e&&(0,Zt.each)(e.types(),function(o){const r=o.type();i=i&&"complement"===r}),i}nodeToActivityNode(e,i){const o=this,r=e.get_node(i);if(!r)return null;const a=o.getNodeInfo(r),l=o.getNodeRootInfo(r),u={id:i,uuid:i,date:o.getNodeDate(r),term:new Pi(a.id,a.label,o.linker.url(a.id),i),rootTypes:l,category:o.getNodeCategoryInfo(l),classExpression:a.classExpression,location:o.getNodeLocation(r),isComplement:o.getNodeIsComplement(r)};return new SO(u)}edgeComments(e){return e.get_annotations_by_key("comment").map(o=>o.value())}edgeToEvidence(e,i){const o=this,r=i.get_annotations_by_key("evidence"),a=[];return(0,Zt.each)(r,function(l){const u=l.value(),f=e.get_node(u),w=new Ll;if(w.edge=new Pi(i.predicate_id(),""),w.uuid=f.id(),f){const T=o.getNodeInfo(f);w.setEvidence(new Pi(T.id,T.label,o.noctuaLookupService.getTermURL(T.id)),T.classExpression);const U=f.get_annotations_by_key("source"),ie=f.get_annotations_by_key("with"),se=f.get_annotations_by_key("contributor"),Me=f.get_annotations_by_key("providedBy"),we=o.getNodeDate(f),He=XC(we,"YYYY-MM-DD");if(w.date=we,w.formattedDate=He.format("ll"),U.length>0){const Be=U.sort(o._compareSources);w.reference=Be.map(ze=>ze.value()).join("| ");const me=o.noctuaLookupService.getTermURL(w.reference);w.referenceEntity=new Pi(w.reference,w.reference,me,w.uuid)}ie.length>0&&(w.with=ie[0].value(),w.withEntity=new Pi(w.with,w.with,null,w.uuid)),Me.length>0&&(w.groups=o.noctuaUserService.getGroupsFromAnnotations(Me)),se.length>0&&(w.contributors=o.noctuaUserService.getContributorsFromAnnotations(se)),a.push(w)}}),a}isStartEdge(e,i){return i===Ft.edge.enabledBy.id||(i===Ft.edge.partOf.id||i===Ft.edge.locatedIn.id||i===Ft.edge.contributesTo.id||i===Ft.edge.isActiveIn.id)&&e.hasRootType(Jl)}getTerms(e){const i=this,o=new ON,r=[],a={};(0,Zt.each)(e.all_nodes(),u=>{const f=i.nodeToActivityNode(e,u.id());f.id=f.uuid,r.push(f),a[f.term.id]=a[f.term.id]?a[f.term.id]+1:1,f.hasRootType(Jl)?o.gp.frequency++:f.hasRootType(p1)?o.mf.frequency++:f.hasRootType(Kl)?o.bp.frequency++:f.hasRootType(rd)?o.cc.frequency++:f.hasRootType(uee)||o.other.frequency++});const l=(0,Zt.chain)(r).uniqWith(lee).value();return(0,Zt.each)(l,u=>{u.frequency=a[u.term.id],u.hasRootType(Jl)?(u.type=$n.GoMolecularEntity,o.gp.append(u)):u.hasRootType(p1)?(u.type=$n.GoMolecularFunction,o.mf.append(u)):u.hasRootType(Kl)?(u.type=$n.GoBiologicalProcess,o.bp.append(u)):u.hasRootType(rd)?(u.type=$n.GoCellularComponent,o.cc.append(u)):u.hasRootType(uee)||o.other.append(u)}),o.allTerms=l,this.addSummaryEvidences(e,o),o}addSummaryEvidences(e,i){const o=this,r=[],a={},l=[],u=[];(0,Zt.each)(e.all_edges(),we=>{const He=we.predicate_id(),Be=o.edgeToEvidence(e,we);u.push(He),a[He]=a[He]?a[He]+1:1,i.relations.frequency++,Be.forEach(me=>{var ze;r.push(me);const qe=me.evidence.id+me.referenceEntity.id+me.withEntity.id;a[me.evidence.id]=a[me.evidence.id]?a[me.evidence.id]+1:1,a[qe]=a[qe]?a[qe]+1:1,a[me.referenceEntity.id]=a[me.referenceEntity.id]?a[me.referenceEntity.id]+1:1,a[me.withEntity.id]=a[me.withEntity.id]?a[me.withEntity.id]+1:1,a[me.date]=a[me.date]?a[me.date]+1:1,me.contributors.map(rt=>{a[rt.orcid]=a[rt.orcid]?a[rt.orcid]+1:1,i.contributors.frequency++,l.push(rt)}),i.evidences.frequency++,i.evidenceEcos.frequency++,i.dates.frequency++,me.referenceEntity.id&&i.references.frequency++,me.withEntity.id&&i.withs.frequency++,(null===(ze=me.referenceEntity)||void 0===ze?void 0:ze.label.trim().startsWith("PMID"))&&i.papers.frequency++})});const f=(0,Zt.uniq)(u),w=(0,Zt.chain)(r).uniqWith(VHe).value(),T=(0,Zt.chain)(r).uniqWith(hee).value(),U=(0,Zt.chain)(r).uniqWith(pee).value(),ie=(0,Zt.chain)(r).uniqWith(fee).value(),se=(0,Zt.chain)(r).uniqWith(gee).value(),Me=(0,Zt.chain)(l).uniqWith(yVe).value();(0,Zt.each)(w,we=>{const He=new Pi(we.date,we.formattedDate);He.frequency=a[we.date],i.dates.append(He)}),(0,Zt.each)(f,we=>{const He=o.noctuaFormConfigService.findEdge(we);He.frequency=a[we],i.relations.append(He)}),(0,Zt.each)(T,we=>{we.frequency=a[we.evidence.id+we.referenceEntity.id+we.withEntity.id],i.evidences.append(we)}),(0,Zt.each)(U,we=>{we.evidence.frequency=a[we.evidence.id],i.evidenceEcos.append(we.evidence)}),(0,Zt.each)(ie,we=>{we.referenceEntity.frequency=a[we.evidence.id],i.references.append(we.referenceEntity)}),(0,Zt.each)(se,we=>{we.withEntity.frequency=a[we.evidence.id],i.withs.append(we.withEntity)}),(0,Zt.each)(ie,we=>{var He;if(we.referenceEntity&&(null===(He=we.referenceEntity)||void 0===He?void 0:He.id.trim().startsWith("PMID"))){const Be=new EN;Be.id=we.referenceEntity.id.trim(),Be.frequency=a[we.referenceEntity.id],i.papers.append(Be)}}),(0,Zt.each)(Me,we=>{we.frequency=a[we.orcid],i.contributors.append(we)})}getActivityPreset(e,i,o,r){let l=so.default;return o!==Ft.edge.partOf.id&&o!==Ft.edge.locatedIn.id&&o!==Ft.edge.contributesTo.id&&o!==Ft.edge.isActiveIn.id||!e.hasRootType(Jl)?e.term.id===Ft.rootNode.mf.id?(0,Zt.each)(r,function(u){(0,Zt.find)(Ft.bpOnlyCausalEdges,{id:u.predicate_id()})&&(l=so.bpOnly)}):i.hasRootType(h1)&&(l=so.proteinComplex):l=so.ccOnly,this.noctuaFormConfigService.createActivityBaseModel(l,e)}graphToActivities(e){const i=this,o=[];return(0,Zt.each)(e.all_edges(),r=>{const a=r.subject_id(),l=r.object_id(),u=i.nodeToActivityNode(e,a),f=i.nodeToActivityNode(e,l);if(i.isStartEdge(u,r.predicate_id())){const w=e.get_edges_by_subject(a),T=i.getActivityPreset(u,f,r.predicate_id(),w),U=T.rootNode;U.term=u.term,U.date=u.date,U.category=u.category,U.rootTypes=u.rootTypes,U.classExpression=u.classExpression,U.setIsComplement(u.isComplement),U.uuid=a,i._graphToActivityDFS(e,T,w,U),T.id=a,T.postRunUpdateCompliment(),T.postRunUpdate(),o.push(T)}}),o}graphToMolecules(e){const i=this,o=[];return(0,Zt.each)(e.all_nodes(),r=>{const a=i.nodeToActivityNode(e,r.id());if(a.hasRootType(c3)&&!a.hasRootType(Jl)){const l=e.get_edges_by_subject(r.id()),u=e.get_edges_by_object(r.id());if(!(0,Zt.find)(u,w=>w.predicate_id()===Ft.edge.enabledBy.id)){const w=i.noctuaFormConfigService.createActivityBaseModel(so.molecule,a),T=w.rootNode;T.term=a.term,T.date=a.date,T.classExpression=a.classExpression,T.uuid=r.id(),w.id=r.id(),i._graphToActivityDFS(e,w,l,T),o.push(w)}}}),o}getCausalRelations(e){const i=this,o=[];return(0,Zt.each)(e.activities,r=>{(0,Zt.each)(e.graph.get_edges_by_subject(r.id),a=>{const l=a.predicate_id(),u=i.edgeToEvidence(e.graph,a),f=a.object_id(),w=i.nodeToActivityNode(e.graph,f),U=this.noctuaFormConfigService.findEdge(l);if(w.hasRootType(p1)||w.hasRootType(c3)){const ie=e.findActivityById(f),se=new u3(U,u);U.id===Ft.edge.hasInput.id&&(se.isReverseLink=!0,se.reverseLinkTitle="input of");const Me=new D2(r,ie,se);Me.subject&&Me.object&&o.push(Me)}})}),o}saveModelGroup(e,i){e.manager.use_groups([i]),e.groupId=i}copyModel(e,i){const o=this,r=new r2.request_set(o.noctuaUserService.baristaToken,e.id),a=new r2.request("model","copy");return a.model(e.id),r.add_annotation_to_model("title",i),r.add(a,"query"),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&r.use_groups([o.noctuaUserService.user.group.id]),e.copyModelManager.request_with(r)}copyModelRaw(e,i,o=!1){const r=this,a=Er.globalBaristaLocation,l=Er.globalMinervaDefinitionName;let u=new M0;u=u.append("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");let w=`token=${this.noctuaUserService.baristaToken}&intention=query&requests=${encodeURIComponent(JSON.stringify([{entity:"model",operation:"copy",arguments:{"model-id":e.id,"preserve-evidence":o,values:[{key:"title",value:i}]}}]))}`;return r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&(w=w+"&provided-by="+r.noctuaUserService.user.group.id),this.httpClient.post(`${a}/api/${l}/m3BatchPrivileged`,w,{headers:u})}resetModel(e){const o=new r2.request_set(this.noctuaUserService.baristaToken,e.id),r=new r2.request("model","reset");return r.model(e.id),o.add(r,"query"),e.manager.request_with(o)}storeCam(e){const i=this,o=new r2.request_set(i.noctuaUserService.baristaToken,e.id);return i.noctuaUserService.user&&i.noctuaUserService.user.groups.length>0&&o.use_groups([i.noctuaUserService.user.group.id]),o.store_model(e.id),e.manager.request_with(o)}saveCamAnnotations(e,i){const r=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("state"),l=e.graph.get_annotations_by_key("comment"),u=new r2.request_set(this.noctuaUserService.baristaToken,e.id);(0,Zt.each)(r,function(f){u.remove_annotation_from_model("title",f.value())}),(0,Zt.each)(a,function(f){u.remove_annotation_from_model("state",f.value())}),(0,Zt.each)(l,function(f){u.remove_annotation_from_model("comment",f.value())}),u.add_annotation_to_model("title",i.title),u.add_annotation_to_model("state",i.state),i.comments.forEach(f=>{u.add_annotation_to_model("comment",f)}),u.store_model(e.id),e.manager.request_with(u)}savePredicateComments(e,i,o){const a=new r2.request_set(this.noctuaUserService.baristaToken,e.id),l=e.graph.get_edge(i.subjectId,i.objectId,i.edge.id),u=l.get_annotations_by_key("comment");l&&u.forEach(f=>{a.remove_annotation_from_fact("comment",f.value(),null,[i.subjectId,i.objectId,i.edge.id])}),a.add_annotation_to_fact("comment",o,null,[i.subjectId,i.objectId,i.edge.id]),a.store_model(e.id),e.manager.request_with(a)}addActivity(e,i,o,r,a=p3.ADD_ACTIVITY){const l=this,u=new r2.request_set(l.noctuaUserService.baristaToken,e.model.id);return e.title||u.add_annotation_to_model("title",r),(0,Zt.each)(i,function(f){l.addIndividual(u,f)}),l.addFact(u,o),l.noctuaUserService.user&&l.noctuaUserService.user.groups.length>0&&u.use_groups([l.noctuaUserService.user.group.id]),e.operation=a,u.store_model(e.id),e.manager.request_with(u)}editConnection(e,i,o){const r=this,a=new r2.request_set(r.noctuaUserService.baristaToken,e.id);return(0,Zt.each)(i,l=>{a.remove_fact([l.subject.uuid,l.object.uuid,l.predicate.edge.id])}),r.addFact(a,o),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&a.use_groups([r.noctuaUserService.user.group.id]),a.store_model(e.id),e.manager.request_with(a)}editActivity(e,i,o,r,a=[]){const l=this,u=new r2.request_set(l.noctuaUserService.baristaToken,e.id);return(0,Zt.each)(i,function(f){l.addIndividual(u,f)}),(0,Zt.each)(a,function(f){u.remove_fact([f.subject.uuid,f.object.uuid,f.predicate.edge.id])}),l.addFact(u,o),(0,Zt.each)(r,function(f){u.remove_individual(f)}),l.noctuaUserService.user&&l.noctuaUserService.user.groups.length>0&&u.use_groups([l.noctuaUserService.user.group.id]),u.store_model(e.id),e.manager.request_with(u)}bulkEditActivity(e){const i=this,o=new r2.request_set(i.noctuaUserService.baristaToken,e.id);return(0,Zt.each)(e.activities,r=>{(0,Zt.each)(r.nodes,a=>{i.bulkEditIndividual(o,e.id,a),(0,Zt.each)(a.predicate.evidence,l=>{i.bulkEditEvidence(o,e.id,l)})})}),i.noctuaUserService.user&&i.noctuaUserService.user.groups.length>0&&o.use_groups([i.noctuaUserService.user.group.id]),e.replaceManager.request_with(o)}bulkEditActivityNode(e,i){const o=this,r=new r2.request_set(o.noctuaUserService.baristaToken,e.id);return o.bulkEditIndividual(r,e.id,i),(0,Zt.each)(i.predicate.evidence,a=>{o.bulkEditEvidence(r,e.id,a)}),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&r.use_groups([o.noctuaUserService.user.group.id]),e.replaceManager.request_with(r)}deleteActivity(e,i,o){const r=this;return(()=>{const l=new r2.request_set(r.noctuaUserService.baristaToken,e.model.id);return(0,Zt.each)(o,function(u){l.remove_fact([u.subject.uuid,u.object.uuid,u.predicate.edge.id])}),(0,Zt.each)(i,function(u){l.remove_individual(u)}),l.store_model(e.id),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&l.use_groups([r.noctuaUserService.user.group.id]),e.manager.request_with(l)})()}deleteEvidence(e,i){const o=this;return(()=>{const a=new r2.request_set(o.noctuaUserService.baristaToken,e.model.id);return a.remove_evidence(i,e.model.id),a.store_model(e.id),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&a.use_groups([o.noctuaUserService.user.group.id]),e.manager.request_with(a)})()}deleteEvidenceAnnotation(e,i,o,r){const a=this;return(()=>{const u=new r2.request_set(a.noctuaUserService.baristaToken,e.model.id);return u.remove_annotation_from_individual(o,r,null,i),u.store_model(e.id),a.noctuaUserService.user&&a.noctuaUserService.user.groups.length>0&&u.use_groups([a.noctuaUserService.user.group.id]),e.manager.request_with(u)})()}addFact(e,i){const o=this;i.forEach(r=>{const a=o.addIndividual(e,r.subject),l=o.addIndividual(e,r.object);a&&l&&(r.predicate.uuid=e.add_fact([a,l,r.predicate.edge.id]),(0,Zt.each)(r.predicate.evidence,function(u){e.add_evidence(u.evidence.id,u.reference,u.with,r.predicate.uuid)}))})}deleteFact(e,i){(0,Zt.each)(i,function(r){(0,Zt.each)(r.predicate.evidence,function(a){e.remove_individual(a.uuid)}),e.remove_individual(r.subject.uuid)})}addIndividual(e,i){if(i.uuid)return i.uuid;if(i.hasValue()){if(i.isComplement){const o=new l4;o.as_complement(i.term.id),i.uuid=e.add_individual(o)}else i.uuid=e.add_individual(i.term.id);return i.uuid}return null}editIndividual(e,i,o,r){o.hasValue()&&r.hasValue()&&(e.remove_type_from_individual(o.classExpression,o.uuid,i.id),e.add_type_to_individual(l4.cls(r.getTerm().id),o.uuid,i.id))}bulkEditIndividual(e,i,o){o.hasValue()&&o.pendingEntityChanges&&(e.remove_type_from_individual(l4.cls(o.pendingEntityChanges.oldValue.id),o.pendingEntityChanges.uuid,i),e.add_type_to_individual(l4.cls(o.pendingEntityChanges.newValue.id),o.pendingEntityChanges.uuid,i))}bulkEditEvidence(e,i,o){o.hasValue()&&o.pendingEvidenceChanges&&(e.remove_type_from_individual(l4.cls(o.pendingEvidenceChanges.oldValue.id),o.uuid,i),e.add_type_to_individual(l4.cls(o.pendingEvidenceChanges.newValue.id),o.pendingEvidenceChanges.uuid,i),this.editUserEvidenceAnnotations(e,o.pendingEvidenceChanges.uuid)),o.hasValue()&&o.pendingReferenceChanges&&(e.remove_annotation_from_individual("source",o.pendingReferenceChanges.oldValue.id,null,o.pendingReferenceChanges.uuid),e.add_annotation_to_individual("source",o.pendingReferenceChanges.newValue.id,null,o.pendingReferenceChanges.uuid),this.editUserEvidenceAnnotations(e,o.pendingReferenceChanges.uuid)),o.hasValue()&&o.pendingWithChanges&&(e.remove_annotation_from_individual("with",o.pendingWithChanges.oldValue.id,null,o.pendingWithChanges.uuid),e.add_annotation_to_individual("with",o.pendingWithChanges.newValue.id,null,o.pendingWithChanges.uuid),this.editUserEvidenceAnnotations(e,o.pendingWithChanges.uuid))}editUserEvidenceAnnotations(e,i){e.remove_annotation_from_individual("provided-by",this.noctuaUserService.user.group.url,null,i),e.add_annotation_to_individual("provided-by",this.noctuaUserService.user.group.url,null,i),e.remove_annotation_from_individual("contributor",this.noctuaUserService.user.orcid,null,i),e.add_annotation_to_individual("contributor",this.noctuaUserService.user.orcid,null,i)}replaceIndividual(e,i,o,r){e.remove_type_from_individual(l4.cls(o.id),o.uuid,i),e.add_type_to_individual(l4.cls(r.id),o.uuid,i)}deleteIndividual(e,i){i.uuid&&e.remove_individual(i.uuid)}getActivityLocations(e){const i=localStorage.getItem(`activityLocations-${e.id}`);if(i){e.manualLayout=!0;const o=JSON.parse(i);e.activities.forEach(r=>{const a=(0,Zt.find)(o,{id:r.id});a&&(r.position.x=a.x,r.position.y=a.y)})}}setActivityLocations(e){const i=e.activities.map(o=>({id:o.id,x:o.position.x,y:o.position.y}));localStorage.setItem(`activityLocations-${e.id}`,JSON.stringify(i))}addActivityLocation(e,i){const o=[...e.activities,i].map(r=>({id:r.id,x:r.position.x,y:r.position.y}));localStorage.setItem(`activityLocations-${e.id}`,JSON.stringify(o))}_graphToActivityDFS(e,i,o,r){const a=this;for(const l of o){const u=l.predicate_id(),f=this.noctuaFormConfigService.shapePredicates.find(Be=>Be===u),w=this.noctuaFormConfigService.termLookupTable[u];if(!f||!w)continue;const T=Ft.causalEdges.map(Be=>Be.id);let U=this.noctuaFormConfigService.shapePredicates.filter(Be=>!T.includes(Be));if(i.activityType===so.bpOnly&&r.term.id===Ft.rootNode.mf.id&&(U=[...U,...Ft.bpOnlyCausalEdges.map(Be=>Be.id)]),!U.includes(u))continue;const ie=l.object_id(),se=a.edgeToEvidence(e,l),Me=a.edgeComments(l),we=a.nodeToActivityNode(e,ie),He=this.noctuaFormConfigService.addActivityNodeShex(i,r,w,we);if(i.updateShapeMenuShex(),He){const Be=i.getEdge(r.id,He.id);Be&&(Be.object.id=we.id,Be.object.uuid=we.uuid,Be.object.term=we.term,Be.object.date=we.date,Be.object.category=we.category,Be.object.rootTypes=we.rootTypes,Be.object.classExpression=we.classExpression,Be.object.setIsComplement(we.isComplement),Be.predicate.isComplement=Be.object.isComplement,Be.predicate.evidence=se,Be.predicate.comments=Me,Be.predicate.uuid=l.id(),a._graphToActivityDFS(e,i,e.get_edges_by_subject(ie),Be.object))}}return i}_compareSources(e,i){return e.value()>i.value()?-1:1}}return t.\u0275fac=function(e){return new(e||t)(qt(p_),qt(ru),qt(yr),qt(Co),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class BVe{constructor(n){this.title=new Do,this.state=new Do,this.group=new Do,this.commentFormArray=new Xu([]),this._metadata=n}createCamForm(n,e){const i=this;n&&(i.title.setValue(n.title),i.state.setValue(n.state),i.group.setValue(e?e.group:""),n.comments.forEach(o=>{i.commentFormArray.push(new Do(o))}))}getError(){}populateConnectorForm(n){n.title=this.title.value,n.state=this.state.value}}class KC{constructor(n){this._lookupFunc=n}get lookupFunc(){return this._lookupFunc()}}class Tee{static getCreateAnnotationsData(n){const e=[];return n.forEach(i=>{e.push([{target:"gp",input:i.gp.term.label,optionId:i.gp.term.id},{target:"goterm",input:i.goterm.term.label,optionId:i.goterm.term.id},{target:"goterm-relation",optionId:i.gpToTermEdge.label},{target:"goterm-evidence-0",input:i.gp.predicate.evidence[0].evidence.label,optionId:i.gp.predicate.evidence[0].evidence.id},{target:"goterm-reference-0",input:i.gp.predicate.evidence[0].reference},{target:"goterm-with-0",input:i.gp.predicate.evidence[0].with}])}),e}static getDataJSON(n){JSON.stringify(n,null,2)}}const GVe=C(72759);let Zr=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.noctuaFormConfigService=e,this.zone=i,this.httpClient=o,this.noctuaUserService=r,this._fb=a,this.noctuaLookupService=l,this._bbopGraphService=u,this.curieService=f,this.searchApi=Er.searchApi,this.cams=[],this.currentMatch=new Pi(null,null),this.onCamChanged=new Io(null),this.camFormGroup=new Io(null),this.camFormGroup$=this.camFormGroup.asObservable(),this.onCamsChanged=new Io(null),this.onCopyModelChanged=new Io(null),this.onCamsCheckoutChanged=new Io(null),this.onSelectedCamChanged=new Io(null),this.onSelectedNodeChanged=new Io(null),this.onSelectedActivityChanged=new Io(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSelectedCamChanged.subscribe(w=>{w&&(this.currentMatch.modelId=w)}),this.onSelectedNodeChanged.subscribe(w=>{w&&(this.currentMatch.uuid=w)})}initializeForm(e){e&&(this.cam=e),this.camForm=this.createCamForm(),this.camFormGroup.next(this._fb.group(this.camForm))}createCamForm(){const i=new KC(this.noctuaLookupService.lookupFunc.bind(this.noctuaLookupService)),o=new BVe(i);return o.createCamForm(this.cam,this.noctuaUserService.user),o}getCam(e){const i=new DO;return this.cam=i,i.graph=null,i.id=e,i.model=Object.assign({},{id:e,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e)}),i.expanded=!0,this._bbopGraphService.getGraphInfo(i,e),i.manager.get_model(i.id),this.onCamChanged.next(i),i}reload(e){this._bbopGraphService.onCamRebuildChange.next(e)}loadCam(e){e.graph=null,e.modifiedStats=new dm,e.rebuildRule.reset(),e.model=Object.assign({},{id:e.id,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e.id)}),this._bbopGraphService.getGraphInfo(e,e.id),this.cam=e,e.manager.get_model(e.id)}loadCamMeta(e){e.graph=null,e.modifiedStats=new dm,e.model=Object.assign({},{id:e.id,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e.id)}),this._bbopGraphService.getGraphInfo(e,e.id)}buildTermsTree(e){return[e.mf,e.bp,e.cc,e.gp,e.other,e.relations,e.evidences,e.evidenceEcos,e.references,e.withs,e.papers,e.contributors,e.dates].map(r=>({id:r.label,frequency:r.frequency,isCategory:!0,label:r.label,children:r.getSortedNodes()}))}addCamAnnotationActivities(e){e.annotationActivities=e.activities.map(o=>{const r=this.noctuaFormConfigService.activityToAnnotation(o);return r.activity=o,r});const i=Tee.getCreateAnnotationsData(e.annotationActivities);Tee.getDataJSON(i)}getStoredModel(e){return this.httpClient.get(`${this.searchApi}/stored?id=${e.id}`)}bulkEditCam(e){const o=[];return o.push(this._bbopGraphService.bulkEditActivity(e)),Ah(o)}deleteActivity(e){const o=e.createDelete();return this._bbopGraphService.deleteActivity(this.cam,o.uuids,o.triples)}updateTermList(e,i){this.noctuaLookupService.termList=this.getUniqueTerms(e),i.termLookup.results=this.noctuaLookupService.termPreLookup(i.type)}updateEvidenceList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.evidenceLookup.results=this.noctuaLookupService.evidencePreLookup()}updateReferenceList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.referenceLookup.results=this.noctuaLookupService.referencePreLookup()}updateWithList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.withLookup.results=this.noctuaLookupService.withPreLookup()}getNodesByType(e){return this.cam.getNodesByType(e)}getNodesByTypeFlat(e){return this.cam.getNodesByTypeFlat(e)}getUniqueTerms(e){const i=this.cam.getTerms(e);return(0,Zt.uniqWith)(i,lee)}getUniqueEvidence(e){const i=this.cam.getEvidences(e);return(0,Zt.uniqWith)(i,hee)}copyModel(e,i,o=!1){const r=this;return r._bbopGraphService.copyModelRaw(e,i,o).subscribe(a=>{const l=r._bbopGraphService.getMetadata(a.data);r.onCopyModelChanged.next(l)})}resetModel(e){return this._bbopGraphService.resetModel(e)}reviewChangesCam(e,i){return e.reviewCamChanges(i)}reviewCamChanges(e){const o=new dm;return this.reviewChangesCam(e,o)&&o.camsCount++,o.updateTotal(),{stats:o}}populateStoredModel(e,i){e.storedGraph=new(0,GVe.graph),e.storedGraph.load_data_basic(i),e.storedActivities=this._bbopGraphService.graphToActivities(e.storedGraph),e.checkStored(),e.reviewCamChanges()}addCamEdit(e){const i=this;e.loading.status=!0,i.getStoredModel(e).pipe(Yu(()=>{e.loading.status=!1})).subscribe({next:o=>{if(!o||!o.storedModel||!o.activeModel)return;i.populateStoredModel(e,o.storedModel);const r=i.reviewCamChanges(e);i.onCamsCheckoutChanged.next(r),e.loading.status=!1}})}loadCams(){this.onCamsChanged.next(this.cams)}updateModel(e,i){const o=this;i&&i.length>0&&i.forEach(r=>{const a=(0,Zt.find)(e,{id:r.data().id});a&&(o._bbopGraphService.rebuild(a,r),a.checkStored())})}expandMatch(e){(0,Zt.each)(this.cams,o=>{o.expanded=!0;const r=o.findActivityByNodeUuid(e);(0,Zt.each)(r,a=>{a.expanded=!0})})}getReplaceObject(e,i,o){const a=(0,Zt.groupBy)(e,"modelId"),l=[];let u;return u=o&&o.name===Ft.findReplaceCategory.options.reference.name?Ll.formatReference(i):null==i?void 0:i.id,(0,Zt.each)(a,(f,w)=>{const T=(0,Zt.find)(this.cams,{id:w});T&&(T.addPendingChanges(e,u,o),l.push(T))}),this.reviewChangesCams(),l}replace(e){return this.reviewChangesCams(),this.bulkEditCams(e)}bulkEditActivityNode(e,i){const o=this,r=[];return r.push(o._bbopGraphService.bulkEditActivityNode(e,i)),Ah(r).pipe(it(a=>o.updateModel([e],a)))}bulkEditCams(e){const i=this,o=[];return(0,Zt.each)(e,r=>{o.push(i._bbopGraphService.bulkEditActivity(r))}),Ah(o).pipe(it(r=>i.updateModel(e,r)))}storeCams(e){const i=this;return Ra(e).pipe(da(o=>i._bbopGraphService.storeCam(o)))}bulkStoredModel(e){const i=this,o=[];return(0,Zt.each)(e,r=>{r.loading=new Md(!0,"Calculating Pending Changes ..."),o.push(i.getStoredModel(r))}),Ah(o)}reviewChangesCams(){const e=this,i=new dm;(0,Zt.each)(this.cams,r=>{e.reviewChangesCam(r,i)&&i.camsCount++}),i.updateTotal(),this.onCamsCheckoutChanged.next({stats:i})}clearHighlight(){(0,Zt.each)(this.cams,e=>e.clearHighlight())}clearCams(){this.cams=[],this.onCamsChanged.next(this.cams)}resetCams(e){const i=this;return Ra(e).pipe(da(o=>i._bbopGraphService.resetModel(o)))}resetMatch(){(0,Zt.each)(this.cams,e=>{e.queryMatch=new PN})}resetLoading(e,i=new Md){(0,Zt.each)(e,o=>{o.loading=i})}reloadCam(e,i){const o=this;Ra([e]).pipe(da(r=>i===Cu.RESET?(r.loading=new Md(!0,"Resetting Model ..."),o.resetCams([r])):i===Cu.STORE?(r.loading=new Md(!0,"Saving Model ..."),o.storeCams([r])):Na),Yu(()=>{o.resetLoading([e])})).subscribe({next:r=>{if(!r||!r.data())return;o.populateStoredModel(e,r.data());const a=o.reviewCamChanges(e);o.onCamsCheckoutChanged.next(a),e.loading.status=!1}})}sortCams(){this.cams.sort(this._compareDateReviewAdded)}applyMatchWeights(e){(0,Zt.each)(e,(o,r)=>{o.applyWeights(1)})}updateDisplayNumber(e){(0,Zt.each)(e,(i,o)=>{i.displayNumber=(o+1).toString(),i.updateActivityDisplayNumber()})}_compareDateReviewAdded(e,i){return e.dateReviewAdded{e._metadata.lookupFunc.termLookup(i,n.evidenceLookup.requestParams).subscribe(o=>{n.evidenceLookup.results=o})}),e.reference.valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{n.referenceLookup.results=e._metadata.lookupFunc.evidenceLookup(i,"reference")}),e.with.valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{n.withLookup.results=e._metadata.lookupFunc.evidenceLookup(i,"with")})}setEvidenceValidator(){this.evidence.setValidators(function YVe(t){return n=>{if(t&&t.hasValue()){if(!n.value)return{[`Evidence for "${t.label}" is required`]:{value:n.value}};if(!n.value.id)return{[`Select correct evidence for "${t.label}" correct value`]:{value:n.value}}}return null}}(this._term))}getErrors(n){this.evidence.errors&&n.push(this.evidence.errors),this.reference.errors&&n.push(this.reference.errors),this.with.errors&&n.push(this.with.errors)}}class UVe{constructor(n){this.edge=new Do,this.relationship=new Do,this.directness=new Do,this.effectDirection=new Do,this.evidenceForms=[],this.evidenceFormArray=new Xu([]),this._fb=new e2,this._metadata=n}createEntityForms(n){const e=this;n.evidence.forEach(i=>{const o=new IO(e._metadata,null,i);e.evidenceForms.push(o),o.onValueChanges(n),e.evidenceFormArray.push(e._fb.group(o))})}updateEvidenceForms(n){const e=this;e.evidenceForms=[],e.evidenceFormArray=new Xu([]),n.evidence.forEach(i=>{const o=new IO(e._metadata,null,i);e.evidenceForms.push(o),o.onValueChanges(n),e.evidenceFormArray.push(e._fb.group(o))})}populateConnectorForm(){const e=[];this.evidenceForms.forEach(i=>{const o=new Ll;i.populateEvidence(o),e.push(o)})}}let NO=(()=>{class t{constructor(e,i,o,r,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=o,this.noctuaLookupService=r,this.bbopGraphService=a,this.connectors=[],this._allowRequestWatch=!1,this.onActivityChanged=new Io(null),this.onLinkChanged=new Io(null),this.connectorFormGroup=new Io(null),this.connectorFormGroup$=this.connectorFormGroup.asObservable(),this.camService.onCamChanged.subscribe(l=>{!l||(this.cam=l)})}initializeForm(e,i){const o=this;if(o._allowRequestWatch=!1,o.subjectActivity=this.cam.findActivityById(e),o.objectActivity=this.cam.findActivityById(i),o.causalConnection=o.cam.getCausalRelation(e,i),this.causalConnection){const r=(0,Zt.cloneDeep)(this.causalConnection.predicate);o.connectorActivity=new TN(o.subjectActivity,o.objectActivity,r),o.connectorActivity.state=f3.editing,o.currentConnectorActivity=(0,Zt.cloneDeep)(this.connectorActivity)}else{const r=o.noctuaFormConfigService.createPredicate(Pi.createEntity(Ft.edge.positivelyRegulates));o.connectorActivity=new TN(o.subjectActivity,o.objectActivity,r),o.connectorActivity.state=f3.creation,o.connectorActivity.addDefaultEvidence()}this.connectorForm=this.createConnectorForm(),this.connectorFormGroup.next(this._fb.group(this.connectorForm)),this.connectorActivity.connectorType===Od.ACTIVITY_ACTIVITY?(this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection),this.connectorForm.directness.setValue(this.connectorActivity.rule.directness)):this.connectorActivity.connectorType===Od.ACTIVITY_MOLECULE?this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship):this.connectorActivity.connectorType===Od.MOLECULE_ACTIVITY&&(this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection)),this._onActivityFormChanges(),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection)}updateEvidence(e){this.connectorForm.updateEvidenceForms(e.predicate),this.connectorFormGroup.next(this._fb.group(this.connectorForm))}createConnectorForm(){const e=this,i=new KC(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),o=new UVe(i);return o.createEntityForms(e.connectorActivity.predicate),o}saveActivity(){const e=this;if(e.connectorActivity.state===f3.editing){const i=e.connectorActivity.createEdit(e.currentConnectorActivity);return e.bbopGraphService.editConnection(e.cam,i.removeTriples,i.addTriples).then(()=>{this.initializeForm(e.subjectActivity.id,e.objectActivity.id)})}{const i=e.connectorActivity.createSave();return e.bbopGraphService.addActivity(e.cam,[],i.triples,"",p3.ADD_CAUSAL_RELATION)}}deleteConnectorEdge(e){const o=e.createDelete();return this.bbopGraphService.deleteActivity(this.cam,[],o.triples)}_onActivityFormChanges(){this.connectorFormGroup.getValue().valueChanges.subscribe(e=>{var i,o;this.connectorActivity.checkConnection(e),(null===(o=null===(i=this.connectorActivity.predicate)||void 0===i?void 0:i.edge)||void 0===o?void 0:o.id)&&this._allowRequestWatch&&this.connectorActivity.state===f3.editing&&this.saveActivity(),this._allowRequestWatch=!0})}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(Co),qt(Zr),qt(Sd),qt(Yc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class AN{constructor(n,e){this.relationship=new Do,this.term=new Do,this.evidenceForms=[],this.evidenceFormArray=new Xu([]),this._fb=new e2,this._metadata=n,this.id=e.id,this.node=e,this.term.setValue(e.getTerm()),this.relationship.setValue(e.predicate.edge),this._onValueChanges(e.termLookup)}createEvidenceForms(n){const e=this;this.setTermValidator(n),n.predicate.evidence.forEach(i=>{const o=new IO(e._metadata,n,i);e.evidenceForms.push(o),o.onValueChanges(n.predicate),e.evidenceFormArray.push(e._fb.group(o))})}refreshEvidenceForms(n){const e=this;e.evidenceForms=[],e.evidenceFormArray=new Xu([]),n.forEach(i=>{const o=new IO(e._metadata,e.node,i);e.evidenceForms.push(o),o.onValueChanges(e.node.predicate),e.evidenceFormArray.push(e._fb.group(o))})}populateTerm(){const n=this;n.relationship.value&&n.node.relationEditable&&(n.node.predicate.edge=n.relationship.value),n.term.value&&n.term.value.id&&(n.node.term=new Pi(n.term.value.id,n.term.value.label),n.node.rootTypes=n.term.value.rootTypes,n.evidenceForms.forEach((e,i)=>{const o=n.node.predicate.evidence[i];o&&e.populateEvidence(o)}))}populateTermEvidenceOnly(){const n=this;n.evidenceForms.forEach((e,i)=>{const o=n.node.predicate.evidence[i];o&&e.populateEvidence(o)})}_onValueChanges(n){const e=this;e.term.valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{e._metadata.lookupFunc.termLookup(i,e.node.termLookup.requestParams).subscribe(o=>{e.node.termLookup.results=o})})}setTermValidator(n){this.term.setValidators("mf"===n.id?function jVe(t){return n=>n.value?n.value.id?null:{[`Selevt ${t.label} correct value`]:{value:n.value}}:{[`${t.label} is required`]:{value:n.value}}}(n):null)}getErrors(n){const e=this;e.term.errors&&n.push(e.term.errors),e.evidenceForms.forEach(i=>{i.getErrors(n)})}}let Pd=(()=>{class t{constructor(e,i,o,r,a,l){this._fb=e,this.zone=i,this.noctuaFormConfigService=o,this.bbopGraphService=r,this.camService=a,this.noctuaLookupService=l,this.entityFormGroup=new Io(null),this.entityFormGroup$=this.entityFormGroup.asObservable(),this.camService.onCamChanged.subscribe(u=>{!u||(this.cam=u)})}initializeForm(e,i){this.currentActivity=(0,Zt.cloneDeep)(e),this.activity=e,this.entity=i,this.entityForm=this.createActivityEntityForm(this.entity),this.entityFormGroup.next(this._fb.group(this.entityForm)),this._onActivityFormChanges()}reinitializeForm(e,i){this.entityForm.term.setValue(e),this.entityForm.refreshEvidenceForms(i),this.entityFormGroup.next(this._fb.group(this.entityForm))}createActivityEntityForm(e){const o=new KC(this.noctuaLookupService.lookupFunc.bind(this.noctuaLookupService)),r=new AN(o,e);return r.createEvidenceForms(e),r}activityEntityFormToActivity(){this.entityForm.populateTerm()}_onActivityFormChanges(){this.entityFormGroup.getValue().valueChanges.subscribe(()=>{})}saveActivity(){const e=this;e.activityEntityFormToActivity(),e.activity instanceof TN&&(e.activity.predicate.evidence=e.entity.predicate.evidence);const i=e.activity.createEdit(e.currentActivity);return e.bbopGraphService.editActivity(e.cam,i.addNodes,i.addTriples,i.removeIds)}addIndividual(){const e=this;e.activityEntityFormToActivity();const i=e.activity.createAddIndividual(e.currentActivity,e.entity.predicate);return e.bbopGraphService.editActivity(e.cam,[e.entity],[i.addTriples],[],[])}saveSearchDatabase(){const e=this,i=e.currentActivity.getEdge(e.entity.predicate.subjectId,e.entity.predicate.objectId),o=e.activity.getEdge(e.entity.predicate.subjectId,e.entity.predicate.objectId);return e.bbopGraphService.editActivity(e.cam,[],[o],[],[i])}addEvidence(){const e=this;e.activityEntityFormToActivity();const i=e.activity.createEditEvidence(e.currentActivity,e.entity.predicate);return e.bbopGraphService.editActivity(e.cam,[],[i.addTriples],[],[i.removeTriples])}createEvidence(e){const i=this;i.entity.predicate.evidence=e;const o=i.activity.createEditEvidence(i.currentActivity,i.entity.predicate);return i.bbopGraphService.editActivity(i.cam,[],[o.addTriples],[],[o.removeTriples])}deleteActivityNode(e,i){const r=e.createActivityNodeDelete(i);return this.bbopGraphService.deleteActivity(this.cam,r.uuids,[])}deleteEvidence(e){return this.bbopGraphService.deleteEvidence(this.cam,e)}deleteEvidenceReference(e,i){return this.bbopGraphService.deleteEvidenceAnnotation(this.cam,e,"source",i)}deleteEvidenceWith(e,i){return this.bbopGraphService.deleteEvidenceAnnotation(this.cam,e,"with",i)}saveActivityReplace(e,i){const o=this;i&&(e.loading=new Md(!0,"Replacing ..."));const r=(0,Zt.cloneDeep)(o.entity);return o.activityEntityFormToActivity(),o.entity.addPendingChanges(r),o.camService.bulkEditActivityNode(e,o.entity)}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(oo),qt(Co),qt(Yc),qt(Zr),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Eee{constructor(n){this.name="",this.isComplement=!1,this.entityForms=[],this.entityGroup=new Xu([]),this._fb=new e2,this._metadata=n}createEntityForms(n){const e=this;this.entityForms=[],n.forEach(i=>{if(i.visible){const o=new AN(e._metadata,i);i.skipEvidenceCheck||o.createEvidenceForms(i),e.entityForms.push(o),e.entityGroup.push(e._fb.group(o))}})}populateActivityNodes(n){this.entityForms.forEach(i=>{i.populateTerm()})}getErrors(n){this.entityForms.forEach(i=>{i.getErrors(n)})}}class WVe{constructor(n){this.entityGroupForms=[],this.bpOnlyEdge=new Do,this.ccOnlyEdge=new Do,this.gp=new Xu([]),this.fd=new Xu([]),this._fb=new e2,this._metadata=n}createMolecularEntityForm(n){const e=this;(0,Zt.each)(n,(i,o)=>{const r=new Eee(this._metadata);this.entityGroupForms.push(r),r.name=o,r.createEntityForms(i.nodes),e.gp.push(e._fb.group(r))})}createFunctionDescriptionForm(n){const e=this;(0,Zt.each)(n,(i,o)=>{const r=new Eee(this._metadata);this.entityGroupForms.push(r),r.name=o,r.isComplement=i.isComplement,r.createEntityForms(i.nodes),e.fd.push(e._fb.group(r))})}populateActivity(n){this.entityGroupForms.forEach(e=>{e.populateActivityNodes(n)}),this.bpOnlyEdge.value&&(n.bpOnlyEdge=new Pi(this.bpOnlyEdge.value.id,this.bpOnlyEdge.value.label))}getErrors(n){this.entityGroupForms.forEach(e=>{e.getErrors(n)})}}let Ts=(()=>{class t{constructor(e,i,o,r,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=o,this.bbopGraphService=r,this.noctuaLookupService=a,this.errors=[],this.camService.onCamChanged.subscribe(l=>{!l||(this.cam=l)}),this.activity=this.noctuaFormConfigService.createActivityModel(so.default),this.onActivityCreated=new Io(null),this.onActivityChanged=new Io(null),this.activityFormGroup=new Io(null),this.activityFormGroup$=this.activityFormGroup.asObservable(),this.initializeForm()}initializeForm(e){const i=this;i.errors=[],i.state=d_.creation,i.currentActivity=null,i.activity.resetPresentation(),i.activityForm=this.createActivityForm(),i.activityFormGroup.next(this._fb.group(this.activityForm)),i.activity.updateShapeMenuShex(e),i.activity.enableSubmit(),i._onActivityFormChanges()}initializeFormData(){this.fakester(this.activity),this.initializeForm()}createActivityForm(){const e=this,i=new KC(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),o=new WVe(i);return o.createFunctionDescriptionForm(e.activity.presentation.fd),o.createMolecularEntityForm(e.activity.presentation.gp),o}activityFormToActivity(){this.activityForm.populateActivity(this.activity)}_onActivityFormChanges(){this.activityFormGroup.getValue().valueChanges.subscribe(()=>{this.activityFormToActivity(),this.activity.enableSubmit()})}getActivityFormErrors(){let e=[];return this.activityForm.getErrors(e),e}setActivityType(e){this.activity=this.noctuaFormConfigService.createActivityModel(e),this.initializeForm()}linkFormNode(e,i){e.uuid=i.uuid,e.term=i.getTerm()}cloneForm(e,i){this.activity=this.noctuaFormConfigService.createActivityModel(e.activityType),i&&(0,Zt.each)(i,function(o){let r=this.activity.getNode(o.id);r&&r.copyValues(o)}),this.initializeForm()}saveActivity(){const e=this;if(e.activityFormToActivity(),this.activity.activityType===so.ccOnly){const i=[],o=e.createCCAnnotations(e.activity);return(0,Zt.each)(o,r=>{const a=r.createSave();i.push(e.bbopGraphService.addActivity(e.cam,a.nodes,a.triples,a.title))}),Ah(i)}{const i=e.activity.createSave();return Ah(e.bbopGraphService.addActivity(e.cam,i.nodes,i.triples,i.title))}}createCCAnnotations(e){const i=this,o=e.getEdges(e.rootNode.id),r=[];return(0,Zt.each)(o,a=>{const l=new QC,u=(0,Zt.cloneDeep)(a.subject),f=(0,Zt.cloneDeep)(a.object),w=(0,Zt.cloneDeep)(a.predicate);l.activityType=e.activityType,l.addNode(u),l.addNodes(f),l.addEdge(u,f,w),i._createCCAnnotationsDFS(e,l,f),r.push(l)}),r}_createCCAnnotationsDFS(e,i,o){const r=this,a=e.getEdges(o.id);(0,Zt.each)(a,l=>{const u=(0,Zt.cloneDeep)(l.object),f=(0,Zt.cloneDeep)(l.predicate);i.addNodes(u),i.addEdge(o,u,f),r._createCCAnnotationsDFS(e,i,u)})}clearForm(){this.activity=this.noctuaFormConfigService.createActivityModel(this.activity.activityType),this.initializeForm()}fakester(e){const i=this;(0,Zt.each)(e.nodes,o=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.termLookup.requestParams,{rows:100})).subscribe(r=>{if(r&&r.length>0){const a=r.length;o.term=Pi.createEntity(r[Math.floor(Math.random()*a)]),(0,Zt.each)(o.predicate.evidence,l=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.predicate.evidenceLookup.requestParams,{rows:100})).subscribe(u=>{if(u&&u.length>0){const f=u.length;l.evidence=Pi.createEntity(u[Math.floor(Math.random()*f)]),l.reference=`PMID:${Math.floor(1e6*Math.random())+1e3}`}})})}})})}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(Co),qt(Zr),qt(Yc),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var f_=(()=>{return(t=f_||(f_={})).ACTIVITY="activity",t.ACTIVITY_CONNECTOR="activity_connector",f_;var t})();let JC=(()=>{class t{constructor(e){this.noctuaFormConfigService=e}buildTermsStats(e){return[e.mf,e.bp,e.cc,e.gp,e.other].map(r=>({name:r.shorthand?r.shorthand:r.label,series:r.getSortedNodes().map(a=>({name:a.term.label,value:a.frequency}))}))}buildTermsDistribution(e){const i=e.reduce((a,l)=>(a.push(...l.nodes),a),[]);return(0,Zt.orderBy)(i,["frequency"],["desc"]).slice(0,20).map(a=>({name:a.term.label,value:a.frequency}))}buildContributionsStats(e){const i=(0,Zt.orderBy)(e,["id"]);let o=0;return[{name:"All Contributors",series:i.map(a=>(o+=a.frequency,{name:new Date(a.label),value:o}))}]}buildAspectPie(e){return e.map(o=>({name:o.label,value:o.frequency}))}buildTermsPie(e){return e.map(o=>({name:o.term.label,value:o.frequency}))}buildRelationsPie(e){return(0,Zt.orderBy)(e,["frequency"],["desc"]).map(r=>({name:r.label,value:r.frequency}))}buildContributorBar(e){return(0,Zt.orderBy)(e,["frequency"],["desc"]).map(r=>({name:r.name,value:r.frequency}))}}return t.\u0275fac=function(e){return new(e||t)(qt(Co))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class qVe{constructor(n){this.gpToTermEdge=new Do,this.extensionEdge=new Do,this.extensionType=new Do,this.entityForms=[],this._fb=new e2,this._metadata=n}createEntityForms(n){const e=this;n.forEach(i=>{const o=new AN(e._metadata,i);i.skipEvidenceCheck||o.createEvidenceForms(i),this.entityForms.push(o);const a={gp:"gp",goterm:"goterm",extension:"extension"}[i.id];a&&(e[a]=this._fb.group(o))})}createMolecularEntityForm(n){(0,Zt.each)(n,(e,i)=>{this.createEntityForms(e.nodes)})}populateActivity(n){this.gpToTermEdge.value&&(n.gpToTermEdge=this.gpToTermEdge.value),this.extensionEdge.value&&(n.extensionEdge=this.extensionEdge.value),this.entityForms.forEach(e=>{e.populateTerm()})}getErrors(n){this.entityForms.forEach(e=>{e.getErrors(n)})}}let RO=(()=>{class t{constructor(e,i,o,r,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=o,this.bbopGraphService=r,this.noctuaLookupService=a,this.errors=[],this.destroy$=new N,this.previousGotermRelation=null,this.camService.onCamChanged.subscribe(l=>{!l||(this.cam=l)}),this.onActivityCreated=new Io(null),this.onActivityChanged=new Io(null),this.annotationFormGroup=new Io(null),this.annotationFormGroup$=this.annotationFormGroup.asObservable(),this.initializeForm()}initializeForm(){this.activity=this.noctuaFormConfigService.createActivityModel(so.simpleAnnoton),this.errors=[],this.currentActivity=null,this.activity.resetPresentation(),this.annotationForm=this.createAnnotationForm(),this.annotationFormGroup.next(this._fb.group(this.annotationForm)),this.activity.enableSubmit(),this.annotationActivity=new wee(this.activity),this._onActivityFormChanges(),this.onActivityChanged.next(this.activity)}initializeFormData(){this.fakester(this.activity),this.initializeForm()}createAnnotationForm(){const e=this,i=new KC(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),o=new qVe(i);return o.createMolecularEntityForm(e.activity.presentation.gp),o}activityFormToActivity(){this.annotationForm.populateActivity(this.annotationActivity)}_onActivityFormChanges(){this.annotationFormGroup.getValue().valueChanges.pipe(Yn(this.destroy$)).subscribe(e=>{var i;this.activityFormToActivity(),this.activity.enableSubmit(),this.annotationActivity.updateAspect();const o=this.noctuaFormConfigService.getTermRelations(this.annotationActivity.gp.rootTypes,this.annotationActivity.goterm.rootTypes,!0),r=this.noctuaFormConfigService.getObjectsRelations(this.annotationActivity.goterm.rootTypes),a=this.noctuaFormConfigService.getTermRelations(this.annotationActivity.goterm.rootTypes,this.annotationActivity.extension.rootTypes);this.annotationActivity.gpToTermEdges=o,this.annotationActivity.extensionEdges=a,r.length>0&&(this.annotationActivity.extension.category=r,this.noctuaFormConfigService.setTermLookup(this.annotationActivity.extension,r)),o.length>0&&this.annotationActivity.gp.hasValue()&&this.annotationActivity.goterm.hasValue()&&(this.destroy$.next(),o.some(u=>{var f;return u.id===(null===(f=this.annotationActivity.gpToTermEdge)||void 0===f?void 0:f.id)})||(this.annotationForm.gpToTermEdge.setValue(o[0]),this.previousGotermRelation=null===(i=this.annotationActivity.gpToTermEdge)||void 0===i?void 0:i.id),this.destroy$=new N,this._onActivityFormChanges())})}getActivityFormErrors(){let e=[];return this.annotationForm.getErrors(e),e}setActivityType(e){this.activity=this.noctuaFormConfigService.createActivityModel(e),this.initializeForm()}cloneForm(e,i){this.activity=this.noctuaFormConfigService.createActivityModel(e.activityType),i&&(0,Zt.each)(i,function(o){let r=this.activity.getNode(o.id);r&&r.copyValues(o)}),this.initializeForm()}saveAnnotation(){const e=this;e.activityFormToActivity(),e.annotationActivity.activityToAnnotation(e.activity);const i=e.annotationActivity.createSave();return Ah(e.bbopGraphService.addActivity(e.cam,i.nodes,i.triples,i.title))}clearForm(){this.initializeForm()}fakester(e){const i=this;(0,Zt.each)(e.nodes,o=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.termLookup.requestParams,{rows:100})).subscribe(r=>{if(r&&r.length>0){const a=r.length;o.term=Pi.createEntity(r[Math.floor(Math.random()*a)]),(0,Zt.each)(o.predicate.evidence,l=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.predicate.evidenceLookup.requestParams,{rows:100})).subscribe(u=>{if(u&&u.length>0){const f=u.length;l.evidence=Pi.createEntity(u[Math.floor(Math.random()*f)]),l.reference=`PMID:${Math.floor(1e6*Math.random())+1e3}`}})})}})})}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(Co),qt(Zr),qt(Yc),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Uc=(()=>{return(t=Uc||(Uc={})).activityForm="activityForm",t.camForm="camForm",t.findReplace="findReplace",t.copyModel="copyModel",t.camTermsSummary="camTermsSummary",t.camStats="camStats",Uc;var t})(),d4=(()=>{return(t=d4||(d4={})).camPreview="camPreview",t.camTable="camTable",d4;var t})(),um=(()=>{return(t=um||(um={})).activityForm="activityForm",t.camForm="camForm",t.termDetail="termDetail",um;var t})();class $Ve{}function XVe(t,n){return t.taxonName{class t{constructor(e){this._router=e,this._init()}get bufferValue(){return this._bufferValue.asObservable()}setBufferValue(e){this._bufferValue.next(e)}get mode(){return this._mode.asObservable()}setMode(e){this._mode.next(e)}get value(){return this._value.asObservable()}setValue(e){this._value.next(e)}get visible(){return this._visible.asObservable()}_init(){this._bufferValue=new Io(0),this._mode=new Io("indeterminate"),this._value=new Io(0),this._visible=new Io(!1),this._router.events.pipe(ca(e=>e instanceof g6)).subscribe(()=>{this.show()}),this._router.events.pipe(ca(e=>e instanceof Gp)).subscribe(()=>{this.hide()})}show(){this._visible.next(!0)}hide(){this._visible.next(!1)}}return t.\u0275fac=function(e){return new(e||t)(qt(A1))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function KVe(t,n){if(1&t&&(er(0),Qe(1,"mat-progress-bar",1),tr()),2&t){const e=Ae();W(1),J("bufferValue",e.bufferValue)("mode",e.mode)("value",e.value)}}let JVe=(()=>{class t{constructor(e){this._noctuaProgressBarService=e,this._unsubscribeAll=new N}ngOnInit(){this._noctuaProgressBarService.bufferValue.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.bufferValue=e}),this._noctuaProgressBarService.mode.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.mode=e}),this._noctuaProgressBarService.value.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.value=e}),this._noctuaProgressBarService.visible.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.visible=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(ZVe))},t.\u0275cmp=vn({type:t,selectors:[["noctua-progress-bar"]],decls:1,vars:1,consts:[[4,"ngIf"],["color","accent",3,"bufferValue","mode","value"]],template:function(e,i){1&e&&ke(0,KVe,2,3,"ng-container",0),2&e&&J("ngIf",i.visible)},directives:[Yi,G9],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}noctua-progress-bar{position:absolute;top:0;left:0;right:0;width:100%;z-index:99998}noctua-progress-bar mat-progress-bar .mat-progress-bar-buffer{background-color:#c5c6cb!important}\n'],encapsulation:2}),t})();var a2=(()=>{return(t=a2||(a2={})).filter="filter",t.relation="relation",t.group="group",t.contributor="contributor",t.organism="organism",t.history="history",t.replace="replace",t.artBasket="artBasket",t.activityForm="activityForm",t.camForm="camForm",t.copyModel="copyModel",t.apps="apps",t.announcement="announcement",t.findReplace="findReplace",t.camTermsSummary="camTermsSummary",t.camStats="camStats",a2;var t})(),Ju=(()=>{return(t=Ju||(Ju={})).camPreview="camPreview",t.camTable="camTable",t.camGraph="camGraph",Ju;var t})(),g3=(()=>{return(t=g3||(g3={})).activityForm="activityForm",t.activityPreview="activityPreview",t.camForm="camForm",t.camTable="camTable",t.activityTable="activityTable",t.activityConnectorTable="activityConnectorTable",t.graphSettings="graphSettings",t.termDetail="termDetail",g3;var t})();class hm{constructor(){this.showAspect=!1,this.showIsExtension=!1,this.showEvidence=!0,this.showEvidenceSummary=!0,this.showReference=!0,this.showEvidenceCode=!0,this.showComments=!0,this.showWith=!0,this.showGroup=!0,this.showContributor=!0,this.showAddEvidenceButton=!1}createSettingsForm(){return new td({showAspect:new Do(this.showAspect),showIsExtension:new Do(this.showIsExtension),showEvidence:new Do(this.showEvidence),showEvidenceSummary:new Do(this.showEvidenceSummary),showEvidenceCode:new Do(this.showEvidenceCode),showReference:new Do(this.showReference),showWith:new Do(this.showWith),showComments:new Do(this.showComments),showGroup:new Do(this.showGroup),showContributor:new Do(this.showContributor)})}populateSettings(n){this.showAspect=n.showAspect,this.showIsExtension=n.showIsExtension,this.showEvidence=n.showEvidence,this.showReference=n.showReference,this.showEvidenceCode=n.showEvidenceCode,this.showEvidenceSummary=n.showEvidenceSummary,this.showWith=n.showWith,this.showComments=n.showComments,this.showGroup=n.showGroup,this.showContributor=n.showContributor}graphSettings(){this.showAspect=!1,this.showIsExtension=!1,this.showEvidence=!0,this.showEvidenceSummary=!0,this.showReference=!0,this.showEvidenceCode=!0,this.showComments=!0,this.showWith=!0,this.showGroup=!1,this.showContributor=!1}}var eh=(()=>{return(t=eh||(eh={})).STANDARD_ANNOTATIONS="noctua-standard-annotations",t.FORM="noctua-form",t.GRAPH_EDITOR="graph-editor",t.VISUAL_PATHWAY_EDITOR="noctua-visual-pathway-editor",eh;var t})();let ul=(()=>{class t{constructor(e,i){this._bbopGraphService=e,this.noctuaUserService=i,this.selectedLeftSidenav=a2.apps;const o=new hm;o.graphSettings(),this.onCamSettingsChanged=new Io(o)}createModel(e){const i=this,o=this._bbopGraphService.registerManager();o.register("rebuild",function(r){},10),o.add_model().then(r=>{const a=r.data().id;let l=new Zd;l=l.append("model_id",a),l=l.append("barista_token",i.noctuaUserService.baristaToken);const u=l.toString();window.open({[eh.GRAPH_EDITOR]:`${Er.noctuaUrl}/editor/graph/${a}?${u}`,[eh.STANDARD_ANNOTATIONS]:`${Er.workbenchUrl}${eh.STANDARD_ANNOTATIONS}?${u}`,[eh.FORM]:`${Er.workbenchUrl}${eh.FORM}?${u}`,[eh.VISUAL_PATHWAY_EDITOR]:`${Er.workbenchUrl}${eh.VISUAL_PATHWAY_EDITOR}?${u}`}[e],"_blank")})}setLeftSidenav(e){this._leftSidenav=e}openLeftSidenav(){return this._leftSidenav.open()}selectLeftSidenav(e){this.selectedLeftSidenav=e}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this._leftDrawer=e}closeLeftDrawer(){return this._leftDrawer.close()}setRightDrawer(e){this._rightDrawer=e}openLeftDrawer(){return this._leftDrawer.open()}openRightDrawer(){return this._rightDrawer.open()}closeRightDrawer(){return this._rightDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this._leftDrawer.toggle()}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)(qt(Yc),qt(yr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Aee=(()=>{class t{constructor(e){this.httpClient=e,this.cursor=0,this.onAnnouncementsChanged=new Io(null),this.onAnnouncementChanged=new Io(null)}getAnnouncement(){return this.httpClient.get(Er.announcementUrl).subscribe(e=>{e&&(e.length>0&&this.onAnnouncementChanged.next(e[this.cursor]),this.onAnnouncementsChanged.next(e))})}}return t.\u0275fac=function(e){return new(e||t)(qt(ru))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Is=(()=>{return(t=Is||(Is={})).filter="filter",t.relation="relation",t.group="group",t.contributor="contributor",t.organism="organism",t.history="history",t.replace="replace",t.artBasket="artBasket",Is;var t})(),fa=(()=>{return(t=fa||(fa={})).home="home",t.cams="cams",t.camsReview="camReview",t.reviewChanges="reviewChanges",fa;var t})(),Fh=(()=>{return(t=Fh||(Fh={})).camForm="camForm",t.copyModel="copyModel",t.announcement="announcement",Fh;var t})(),hl=(()=>{return(t=hl||(hl={})).off="off",t.on="on",t.locked="locked",hl;var t})(),zO=(()=>{return(t=zO||(zO={})).term="term",t.gp="gp",t.reference="reference",zO;var t})();let pl=(()=>{class t{constructor(){this.reviewMode=hl.off,this.isReviewMode=!1,this.reviewLevel=0,this.selectedLeftPanel=Is.filter,this.selectedMiddlePanel=fa.cams}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e,e===fa.cams?this.reviewLevel=0:e===fa.camsReview?this.reviewLevel=1:e===fa.reviewChanges&&(this.reviewLevel=2),this.scrollToTop()}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this.leftDrawer=e}openLeftDrawer(){return this.leftDrawer.open()}closeLeftDrawer(){return this.leftDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this.leftDrawer.toggle()}setRightDrawer(e){this.rightDrawer=e}openRightDrawer(){return this.rightDrawer.open()}closeRightDrawer(){return this.rightDrawer.close()}scrollToTop(){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToTop(0)}))})}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function G0(t){return getComputedStyle(t)}function I2(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function FO(t){var n=document.createElement("div");return n.className=t,n}var Lee="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function u4(t,n){if(!Lee)throw new Error("No element matching method supported");return Lee.call(t,n)}function g_(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function Dee(t,n){return Array.prototype.filter.call(t.children,function(e){return u4(e,n)})}var e1_element_thumb=function(t){return"ps__thumb-"+t},e1_element_rail=function(t){return"ps__rail-"+t},e1_element_consuming="ps__child--consume",e1_state_focus="ps--focus",e1_state_clicking="ps--clicking",e1_state_active=function(t){return"ps--active-"+t},e1_state_scrolling=function(t){return"ps--scrolling-"+t},kee={x:null,y:null};function Iee(t,n){var e=t.element.classList,i=e1_state_scrolling(n);e.contains(i)?clearTimeout(kee[n]):e.add(i)}function Nee(t,n){kee[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(e1_state_scrolling(n))},t.settings.scrollingThreshold)}var ev=function(n){this.element=n,this.handlers={}},Ree={isEmpty:{configurable:!0}};ev.prototype.bind=function(n,e){void 0===this.handlers[n]&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},ev.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(o){return!(!e||o===e)||(i.element.removeEventListener(n,o,!1),!1)})},ev.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},Ree.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(ev.prototype,Ree);var m_=function(){this.eventElements=[]};function HO(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function VO(t,n,e,i,o){var r;if(void 0===i&&(i=!0),void 0===o&&(o=!1),"top"===n)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function tBe(t,n,e,i,o){var r=e[0],a=e[1],l=e[2],u=e[3],f=e[4],w=e[5];void 0===i&&(i=!0),void 0===o&&(o=!1);var T=t.element;t.reach[u]=null,T[l]<1&&(t.reach[u]="start"),T[l]>t[r]-t[a]-1&&(t.reach[u]="end"),n&&(T.dispatchEvent(HO("ps-scroll-"+u)),n<0?T.dispatchEvent(HO("ps-scroll-"+f)):n>0&&T.dispatchEvent(HO("ps-scroll-"+w)),i&&function eBe(t,n){Iee(t,n),Nee(t,n)}(t,u)),t.reach[u]&&(n||o)&&T.dispatchEvent(HO("ps-"+u+"-reach-"+t.reach[u]))}(t,e,r,i,o)}function rl(t){return parseInt(t,10)||0}m_.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new ev(n),this.eventElements.push(e)),e},m_.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},m_.prototype.unbind=function(n,e,i){var o=this.eventElement(n);o.unbind(e,i),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1)},m_.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},m_.prototype.once=function(n,e,i){var o=this.eventElement(n),r=function(a){o.unbind(e,r),i(a)};o.bind(e,r)};var __={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function m3(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.round(i.width),t.containerHeight=Math.round(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(Dee(n,e1_element_rail("x")).forEach(function(o){return g_(o)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(Dee(n,e1_element_rail("y")).forEach(function(o){return g_(o)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function oBe(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,I2(n.scrollbarXRail,e);var o={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?o.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:o.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,I2(n.scrollbarYRail,o),I2(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),I2(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(e1_state_active("x")):(n.classList.remove(e1_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(e1_state_active("y")):(n.classList.remove(e1_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function zee(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function Fee(t,n){var e=n[0],i=n[1],o=n[2],r=n[3],a=n[4],l=n[5],u=n[6],f=n[7],w=n[8],T=t.element,U=null,ie=null,se=null;function Me(Be){Be.touches&&Be.touches[0]&&(Be[o]=Be.touches[0].pageY),T[u]=U+se*(Be[o]-ie),Iee(t,f),m3(t),Be.stopPropagation(),Be.type.startsWith("touch")&&Be.changedTouches.length>1&&Be.preventDefault()}function we(){Nee(t,f),t[w].classList.remove(e1_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",Me)}function He(Be,me){U=T[u],me&&Be.touches&&(Be[o]=Be.touches[0].pageY),ie=Be[o],se=(t[i]-t[e])/(t[r]-t[l]),me?t.event.bind(t.ownerDocument,"touchmove",Me):(t.event.bind(t.ownerDocument,"mousemove",Me),t.event.once(t.ownerDocument,"mouseup",we),Be.preventDefault()),t[w].classList.add(e1_state_clicking),Be.stopPropagation()}t.event.bind(t[a],"mousedown",function(Be){He(Be)}),t.event.bind(t[a],"touchstart",function(Be){He(Be,!0)})}var uBe={"click-rail":function rBe(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,m3(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,m3(t),e.stopPropagation()})},"drag-thumb":function aBe(t){Fee(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Fee(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function sBe(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(u4(n,":hover")||u4(t.scrollbarX,":focus")||u4(t.scrollbarY,":focus"))){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(function nBe(t){return u4(t,"input,[contenteditable]")||u4(t,"select,[contenteditable]")||u4(t,"textarea,[contenteditable]")||u4(t,"button,[contenteditable]")}(a))return}var l=0,u=0;switch(r.which){case 37:l=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:u=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:l=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:u=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:u=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==l||t.settings.suppressScrollY&&0!==u||(n.scrollTop-=u,n.scrollLeft+=l,m3(t),function o(r,a){var l=Math.floor(n.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===l&&a>0||l>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var u=n.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===u&&r<0||u>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}(l,u)&&r.preventDefault())}})},wheel:function cBe(t){var n=t.element;function r(a){var l=function i(a){var l=a.deltaX,u=-1*a.deltaY;return(void 0===l||void 0===u)&&(l=-1*a.wheelDeltaX/6,u=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(l*=10,u*=10),l!=l&&u!=u&&(l=0,u=a.wheelDelta),a.shiftKey?[-u,-l]:[l,u]}(a),u=l[0],f=l[1];if(!function o(a,l,u){if(!__.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(a))return!1;for(var f=a;f&&f!==n;){if(f.classList.contains(e1_element_consuming))return!0;var w=G0(f);if(u&&w.overflowY.match(/(scroll|auto)/)){var T=f.scrollHeight-f.clientHeight;if(T>0&&(f.scrollTop>0&&u<0||f.scrollTop0))return!0}if(l&&w.overflowX.match(/(scroll|auto)/)){var U=f.scrollWidth-f.clientWidth;if(U>0&&(f.scrollLeft>0&&l<0||f.scrollLeft0))return!0}f=f.parentNode}return!1}(a.target,u,f)){var w=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?n.scrollTop-=f*t.settings.wheelSpeed:n.scrollTop+=u*t.settings.wheelSpeed,w=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?n.scrollLeft+=u*t.settings.wheelSpeed:n.scrollLeft-=f*t.settings.wheelSpeed,w=!0):(n.scrollTop-=f*t.settings.wheelSpeed,n.scrollLeft+=u*t.settings.wheelSpeed),m3(t),w=w||function e(a,l){var u=Math.floor(n.scrollTop),f=0===n.scrollTop,w=u+n.offsetHeight===n.scrollHeight,T=0===n.scrollLeft,U=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(l)>Math.abs(a)?f||w:T||U)||!t.settings.wheelPropagation}(u,f),w&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}void 0!==window.onwheel?t.event.bind(n,"wheel",r):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",r)},touch:function lBe(t){if(__.supportsTouch||__.supportsIePointer){var n=t.element,o={},r=0,a={},l=null;__.supportsTouch?(t.event.bind(n,"touchstart",w),t.event.bind(n,"touchmove",U),t.event.bind(n,"touchend",ie)):__.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",w),t.event.bind(n,"pointermove",U),t.event.bind(n,"pointerup",ie)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",w),t.event.bind(n,"MSPointerMove",U),t.event.bind(n,"MSPointerUp",ie)))}function i(se,Me){n.scrollTop-=Me,n.scrollLeft-=se,m3(t)}function u(se){return se.targetTouches?se.targetTouches[0]:se}function f(se){return!(se.pointerType&&"pen"===se.pointerType&&0===se.buttons||!(se.targetTouches&&1===se.targetTouches.length||se.pointerType&&"mouse"!==se.pointerType&&se.pointerType!==se.MSPOINTER_TYPE_MOUSE))}function w(se){if(f(se)){var Me=u(se);o.pageX=Me.pageX,o.pageY=Me.pageY,r=(new Date).getTime(),null!==l&&clearInterval(l)}}function U(se){if(f(se)){var Me=u(se),we={pageX:Me.pageX,pageY:Me.pageY},He=we.pageX-o.pageX,Be=we.pageY-o.pageY;if(function T(se,Me,we){if(!n.contains(se))return!1;for(var He=se;He&&He!==n;){if(He.classList.contains(e1_element_consuming))return!0;var Be=G0(He);if(we&&Be.overflowY.match(/(scroll|auto)/)){var me=He.scrollHeight-He.clientHeight;if(me>0&&(He.scrollTop>0&&we<0||He.scrollTop0))return!0}if(Me&&Be.overflowX.match(/(scroll|auto)/)){var ze=He.scrollWidth-He.clientWidth;if(ze>0&&(He.scrollLeft>0&&Me<0||He.scrollLeft0))return!0}He=He.parentNode}return!1}(se.target,He,Be))return;i(He,Be),o=we;var me=(new Date).getTime(),ze=me-r;ze>0&&(a.x=He/ze,a.y=Be/ze,r=me),function e(se,Me){var we=Math.floor(n.scrollTop),He=n.scrollLeft,Be=Math.abs(se),me=Math.abs(Me);if(me>Be){if(Me<0&&we===t.contentHeight-t.containerHeight||Me>0&&0===we)return 0===window.scrollY&&Me>0&&__.isChrome}else if(Be>me&&(se<0&&He===t.contentWidth-t.containerWidth||se>0&&0===He))return!0;return!0}(He,Be)&&se.preventDefault()}}function ie(){t.settings.swipeEasing&&(clearInterval(l),l=setInterval(function(){t.isInitialized?clearInterval(l):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(l):t.element?(i(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(l):clearInterval(l)},10))}}},tv=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var o in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[o]=e[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var w,f,r=function(){return n.classList.add(e1_state_focus)},a=function(){return n.classList.remove(e1_state_focus)};this.isRtl="rtl"===G0(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(f=n.scrollLeft,n.scrollLeft=-1,w=n.scrollLeft<0,n.scrollLeft=f,w),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new m_,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=FO(e1_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=FO(e1_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=G0(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=rl(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=rl(l.borderLeftWidth)+rl(l.borderRightWidth),I2(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=rl(l.marginLeft)+rl(l.marginRight),I2(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=FO(e1_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=FO(e1_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=G0(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=rl(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function iBe(t){var n=G0(t);return rl(n.width)+rl(n.paddingLeft)+rl(n.paddingRight)+rl(n.borderLeftWidth)+rl(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=rl(u.borderTopWidth)+rl(u.borderBottomWidth),I2(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=rl(u.marginTop)+rl(u.marginBottom),I2(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return uBe[f](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),m3(this)};tv.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,I2(this.scrollbarXRail,{display:"block"}),I2(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=rl(G0(this.scrollbarXRail).marginLeft)+rl(G0(this.scrollbarXRail).marginRight),this.railYMarginHeight=rl(G0(this.scrollbarYRail).marginTop)+rl(G0(this.scrollbarYRail).marginBottom),I2(this.scrollbarXRail,{display:"none"}),I2(this.scrollbarYRail,{display:"none"}),m3(this),VO(this,"top",0,!1,!0),VO(this,"left",0,!1,!0),I2(this.scrollbarXRail,{display:""}),I2(this.scrollbarYRail,{display:""}))},tv.prototype.onScroll=function(n){!this.isAlive||(m3(this),VO(this,"top",this.element.scrollTop-this.lastScrollTop),VO(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},tv.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),g_(this.scrollbarX),g_(this.scrollbarY),g_(this.scrollbarXRail),g_(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},tv.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const hBe=tv;class pBe{constructor(n,e,i,o){this.x=n,this.y=e,this.w=i,this.h=o}}class Hee{constructor(n,e){this.x=n,this.y=e}}let ts=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this._noctuaConfigService=i,this._platform=o,this._router=r,this.isInitialized=!1,this.isMobile=!1,this._animation=null,this._enabled=!1,this._debouncedUpdate=Zt.debounce(this.update,150),this._options={updateOnRouteChange:!1},this._unsubscribeAll=new N}set noctuaPerfectScrollbarOptions(e){this._options=Zt.merge({},this._options,e),setTimeout(()=>{this._destroy()}),setTimeout(()=>{this._init()})}get noctuaPerfectScrollbarOptions(){return this._options}set enabled(e){""===e&&(e=!0),this.enabled!==e&&(this._enabled=e,this.enabled?this._init():this._destroy())}get enabled(){return this._enabled}ngOnInit(){Jc(window,"resize").pipe(Yn(this._unsubscribeAll),Ks(150)).subscribe(()=>{this.update()})}ngAfterViewInit(){this._noctuaConfigService.config.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.enabled=e.customScrollbars}),this.noctuaPerfectScrollbarOptions.updateOnRouteChange&&this._router.events.pipe(Yn(this._unsubscribeAll),ca(e=>e instanceof Gp)).subscribe(()=>{setTimeout(()=>{this.scrollToTop(),this.update()},0)})}ngOnDestroy(){this._destroy(),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_init(){this.isInitialized||((this._platform.ANDROID||this._platform.IOS)&&(this.isMobile=!0),!this.isMobile&&(this.isInitialized=!0,this.ps=new hBe(this.elementRef.nativeElement,Object.assign({},this.noctuaPerfectScrollbarOptions)),this.ps.event.eventElements.forEach(e=>{void 0!==e.handlers.keydown&&e.element.removeEventListener("keydown",e.handlers.keydown[0])})))}_destroy(){!this.isInitialized||!this.ps||(this.ps.destroy(),this.ps=null,this.isInitialized=!1)}_updateOnResize(){this._debouncedUpdate()}documentClick(e){!this.isInitialized||!this.ps||this.ps.update()}update(){!this.isInitialized||this.ps.update()}destroy(){this.ngOnDestroy()}geometry(e="scroll"){return new pBe(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.ps?new Hee(this.ps.reach.x||0,this.ps.reach.y||0):new Hee(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollTo(e,i,o){null==i&&null==o?this.animateScrolling("scrollTop",e,o):(null!=e&&this.animateScrolling("scrollLeft",e,o),null!=i&&this.animateScrolling("scrollTop",i,o))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,o){const r=this.elementRef.nativeElement.querySelector(e);if(!r)return;const a=r.getBoundingClientRect(),l=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",a.left-l.left+this.elementRef.nativeElement.scrollLeft+(i||0),o),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",a.top-l.top+this.elementRef.nativeElement.scrollTop+(i||0),o)}animateScrolling(e,i,o){if(this._animation&&(window.cancelAnimationFrame(this._animation),this._animation=null),o&&"undefined"!=typeof window){if(i!==this.elementRef.nativeElement[e]){let r=0,a=0,l=performance.now(),u=this.elementRef.nativeElement[e];const f=(u-i)/2,w=T=>{a+=Math.PI/(o/(T-l)),r=Math.round(i+f+f*Math.cos(a)),this.elementRef.nativeElement[e]===u&&(a>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=r,u=this.elementRef.nativeElement[e],l=T,this._animation=window.requestAnimationFrame(w)))};window.requestAnimationFrame(w)}}else this.elementRef.nativeElement[e]=i}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Hw),de(rc),de(A1))},t.\u0275dir=St({type:t,selectors:[["","noctuaPerfectScrollbar",""]],hostBindings:function(e,i){1&e&&et("resize",function(){return i._updateOnResize()},!1,Tp)("click",function(r){return i.documentClick(r)},!1,Ep)},inputs:{noctuaPerfectScrollbarOptions:"noctuaPerfectScrollbarOptions",enabled:["noctuaPerfectScrollbar","enabled"]}}),t})();function fBe(t,n){1&t&&(H(0,"a",8),ue(1," More Details "),G()),2&t&&Ro("href",Ae().$implicit.descriptionUrl,ao)}function gBe(t,n){if(1&t&&(H(0,"div")(1,"strong"),ue(2),G(),Qe(3,"br"),ue(4),ke(5,fBe,2,1,"a",7),G()),2&t){const e=n.$implicit;xf("alert alert-",e.level," w-100-p my-8"),W(2),qo(e.title),W(2),Nt(" ",e.description," "),W(1),J("ngIf",e.descriptionUrl)}}let mBe=(()=>{class t{constructor(e,i){this.noctuaSearchMenuService=e,this.noctuaAnnouncementService=i,this._unsubscribeAll=new N}ngOnInit(){this.noctuaAnnouncementService.onAnnouncementsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcements=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}close(){this.sidenav.close()}}return t.\u0275fac=function(e){return new(e||t)(de(pl),de(Aee))},t.\u0275cmp=vn({type:t,selectors:[["noc-announcement-panel"]],inputs:{sidenav:"sidenav"},decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p","p-8"],[3,"class",4,"ngFor","ngForOf"],["target","_banl",3,"href",4,"ngIf"],["target","_banl",3,"href"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Announcements"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ke(10,gBe,6,6,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.announcements))},directives:[nd,tl,D0,Oo,So,ko,Fo,Ir,ts,$o,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}']}),t})();function _Be(t,n){if(1&t){const e=Ln();H(0,"div",7)(1,"div",8)(2,"div",9),ue(3," Create Model In "),G(),Qe(4,"span",3),G(),H(5,"div",14)(6,"div",15)(7,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.STANDARD_ANNOTATIONS)}),ue(8," STANDARD ANNOTATIONS EDITOR "),G(),H(9,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.VISUAL_PATHWAY_EDITOR)}),ue(10," PATHWAY EDITOR "),G(),H(11,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.FORM)}),ue(12," FORM EDITOR "),G(),H(13,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.GRAPH_EDITOR)}),ue(14," GRAPH EDITOR "),G()()()()}2&t&&(W(7),Un("data-cy","create-standard-annotations-button"),W(2),Un("data-cy","create-pathway-button"),W(2),Un("data-cy","create-form-button"),W(2),Un("data-cy","create-graph-button"))}const CBe=function(){return["fas","list-alt"]},vBe=function(){return["fas","sitemap"]};function bBe(t,n){if(1&t&&(H(0,"div",7)(1,"div",8)(2,"div",9),ue(3," Edit In "),G(),Qe(4,"span",3),G(),H(5,"div",17)(6,"div",18)(7,"a",19)(8,"mat-chip",20)(9,"div",21),Qe(10,"fa-icon",22),G(),H(11,"div",23),ue(12," Form Editor "),G()()()(),H(13,"div",18)(14,"a",19)(15,"mat-chip",20)(16,"div",21),Qe(17,"fa-icon",22),G(),H(18,"div",23),ue(19," Graph Editor "),G()()()()()()),2&t){const e=Ae();W(7),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaFormUrl,ao),W(3),J("icon",_i(4,CBe)),W(4),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.graphEditorUrl,ao),W(3),J("icon",_i(5,vBe))}}function xBe(t,n){if(1&t&&(H(0,"div",7)(1,"div",8)(2,"div",9),ue(3," Export As "),G(),Qe(4,"span",3),G(),H(5,"div",17)(6,"div",24)(7,"a",19)(8,"mat-chip",20)(9,"div",23),ue(10," GPAD "),G()()()(),H(11,"div",24)(12,"a",19)(13,"mat-chip",20)(14,"div",23),ue(15," OWL "),G()()()()()()),2&t){const e=Ae();W(7),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.gpadUrl,ao),W(5),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.owlUrl,ao)}}function yBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),ue(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function wBe(t,n){if(1&t&&(H(0,"div",7)(1,"div",8)(2,"div",9),ue(3," Model Workbenches "),G(),Qe(4,"span",3),G(),H(5,"div",10),ke(6,yBe,5,2,"div",11),G()()),2&t){const e=Ae();W(6),J("ngForOf",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.modelWorkbenches)}}function MBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),ue(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function OBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),ue(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function SBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),ue(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function PBe(t,n){if(1&t&&(er(0),ke(1,SBe,5,2,"div",11),tr()),2&t){const e=Ae();W(1),J("ngForOf",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.modelBetaTestWorkbenches)}}let TBe=(()=>{class t{constructor(e,i,o,r){this.noctuaConfigService=e,this.noctuaCommonMenuService=i,this.camService=o,this.noctuaUserService=r,this.WorkbenchId=eh,this.date=new Date,this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)})}createModel(e){this.noctuaCommonMenuService.createModel(e)}close(){this.sidenav.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Co),de(ul),de(Zr),de(yr))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-apps"]],inputs:{sidenav:"sidenav"},decls:30,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-form-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-section-body","p-8"],["class","w-100-p p-4",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","noc-beta"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-section-body","p-8","w-100-p"],["fxLayout","row wrap","fxLayoutAlign","center center",1,"noc-create","w-100-p"],["mat-raised-button","","fxFlex","45",1,"noc-rounded-button","m-4",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-body","p-8"],["fxFlex","50",1,"p-8"],["target","_blank",1,"w-100-p",3,"href"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip"],[1,"noc-icon"],[3,"icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","50",1,"p-4"],[1,"w-100-p","p-4"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Workbenches"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ke(10,_Be,15,4,"div",6),ke(11,bBe,20,6,"div",6),Qe(12,"mat-divider"),ke(13,xBe,16,2,"div",6),ke(14,wBe,7,1,"div",6),H(15,"div",7)(16,"div",8)(17,"div",9),ue(18," Global Workbenches "),G(),Qe(19,"span",3),G(),H(20,"div",10),ke(21,MBe,5,2,"div",11),G()(),H(22,"div",12)(23,"div",8)(24,"div",9),ue(25," Beta Testing Workbenches "),G(),Qe(26,"span",3),G(),H(27,"div",10),ke(28,OBe,5,2,"div",11),ke(29,PBe,2,1,"ng-container",13),G()()()()),2&e&&(W(10),J("ngIf",i.noctuaUserService.user),W(1),J("ngIf",i.cam),W(2),J("ngIf",i.cam),W(1),J("ngIf",i.cam),W(7),J("ngForOf",null==i.noctuaConfigService.globalUrl?null:i.noctuaConfigService.globalUrl.universalWorkbenches),W(7),J("ngForOf",null==i.noctuaConfigService.globalUrl?null:i.noctuaConfigService.globalUrl.universalBetaTestWorkbenches),W(1),J("ngIf",i.cam))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,T2,ps,BX,$o],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled{pointer-events:none;opacity:.3}.mat-row:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected{background-color:#798fb826}.mat-toolbar{height:40px;min-height:40px;max-height:40px}.mat-toolbar mat-toolbar-row{height:40px;min-height:40px;max-height:40px}.mat-toolbar mat-toolbar-row button{color:#eee;border:#ccc solid 1px}.mat-toolbar mat-toolbar-row button:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body{padding:0!important}.noc-drawer .noc-drawer-header{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer .noc-drawer-header .noc-drawer-header-title{font-size:14px;font-weight:700}.noc-drawer .noc-drawer-body{min-height:calc(100% - 90px)}.noc-drawer .noc-drawer-body .noc-draw-body-disabled{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer .noc-drawer-footer{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog{height:100%;width:100%;overflow:hidden}.noc-dialog .noc-dialog-header{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog .noc-dialog-header .noc-dialog-header-title{font-size:14px;font-weight:700}.noc-dialog .noc-dialog-header button{color:#eee;border:#ccc solid 1px}.noc-dialog .noc-dialog-header button:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog .noc-dialog-body{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog .noc-dialog-footer{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section{width:100%;background-color:#fff}.noc-form-section .noc-section-header{height:30px;background-color:#798fb84d}.noc-form-section .noc-section-header .noc-section-heading{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section .noc-section-header .noc-action-button{margin:0;height:30px}.noc-form-section .noc-section-body{padding:4px 8px}.noc-column-toolbar{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar button{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert{padding:10px;font-size:12px;font-style:italic}.noc-card-simple{margin-bottom:20px}.noc-card-simple .noc-header{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple .noc-header .noc-title{font-size:14px;font-weight:700}.noc-card-simple .noc-body{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button:hover{background-color:#ee7979;color:#fff}mwlResizable{box-sizing:border-box}.resize-handle-top,.resize-handle-bottom{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top{top:0}.resize-handle-bottom{bottom:0}.resize-handle-left,.resize-handle-right{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left{left:0}.resize-handle-right{right:0}noc-noctua-apps{display:block;width:450px;min-width:450px;max-width:450px;z-index:100;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}noc-noctua-apps .noc-create{padding:8px}noc-noctua-apps .noc-create button{color:#039be5;font-size:10px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}noc-noctua-apps .noc-cam-form{width:100%;min-width:100%;max-width:100%}noc-noctua-apps .noc-beta{background-color:#fad38a}noc-noctua-apps .noc-header{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}noc-noctua-apps .noc-header mat-icon-button{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}noc-noctua-apps .noc-header .noc-title{font-size:10px;padding:0 14px}noc-noctua-apps .noc-body{padding:0 14px 14px}noc-noctua-apps .noc-drawer-body{padding-bottom:250px}noc-noctua-apps a{display:block;text-decoration:none!important}noc-noctua-apps mat-chip{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;max-width:100%;text-overflow:ellipsis;white-space:nowrap}noc-noctua-apps mat-chip .noc-chip-label{padding:0 8px 0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}noc-noctua-apps mat-chip .noc-chip-label .noc-icon-action{font-size:10px;background-color:transparent}noc-noctua-apps mat-chip .noc-chip-label .noc-icon-action:hover{font-size:14px;color:#222}noc-noctua-apps mat-chip.noc-table-chip{padding:0;height:30px;min-height:30px;max-height:30px;font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}noc-noctua-apps mat-chip.noc-table-chip .noc-icon,noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action{font-size:10px;background-color:transparent}noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action:hover{font-size:14px;color:#222;background-color:#0003}noc-noctua-apps mat-chip.noc-table-chip .noc-icon{background-color:#bbc9cc}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip{border:#bbc9cc solid 1px;background-color:#bbc9cc33}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip .noc-icon{background-color:#bbc9cc}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip .noc-icon{color:#59939e}noc-noctua-apps mat-chip.noc-table-chip.noc-date-chip{border:#aee9f5 solid 1px;background-color:#aee9f533}noc-noctua-apps mat-chip.noc-table-chip.noc-date-chip .noc-icon{background-color:#aee9f5}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-development{border:#f4c89c solid 1px;background-color:#f4c89c33}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-development .noc-icon{background-color:#f4c89c}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-production{border:#b6f1cc solid 1px;background-color:#b6f1cc33}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-production .noc-icon{background-color:#b6f1cc}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-review{border:#d8f6a3 solid 1px;background-color:#d8f6a333}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-review .noc-icon{background-color:#d8f6a3}\n'],encapsulation:2}),t})();class LN extends class EBe{constructor(){this.size=50,this.total=0,this.pageNumber=0,this.pageSizeOptions=[10,25,50,100]}}{}var sd=(()=>{return(t=sd||(sd={})).ids="ids",t.titles="titles",t.gps="gps",t.terms="terms",t.obsoleteTerms="obsoleteTerms",t.pmids="pmids",t.contributors="contributors",t.groups="groups",t.organisms="organisms",t.states="states",t.exactdates="exactdates",t.startdates="startdates",t.enddates="enddates",sd;var t})();class cd{constructor(n){this.camPage=new LN,this.titles=[],this.ids=[],this.gps=[],this.terms=[],this.obsoleteTerms=[],this.pmids=[],this.contributors=[],this.groups=[],this.organisms=[],this.states=[],this.exactdates=[],this.startdates=[],this.enddates=[],this.expand=!0,this.filtersCount=0,n&&(this.camPage=n.camPage||new LN,this.titles=n.titles||[],this.contributors=n.contributors||[],this.groups=n.groups||[],this.pmids=n.pmids||[],this.terms=n.terms||[],this.obsoleteTerms=n.obsoleteTerms||[],this.ids=n.ids||[],this.gps=n.gps||[],this.organisms=n.organisms||[],this.states=n.states||[],this.exactdates=n.exactdates||[],this.startdates=n.startdates||[],this.enddates=n.enddates||[],this.expand=n.expand)}updateFiltersCount(){const n=this;n.filtersCount=n.titles.length+n.ids.length+n.gps.length+n.terms.length+n.obsoleteTerms.length+n.pmids.length+n.contributors.length+n.groups.length+n.organisms.length+n.states.length+n.exactdates.length+n.startdates.length+n.enddates.length}query(n=!0){const e=this,i=[];return n&&(i.push(`offset=${(e.camPage.pageNumber*e.camPage.size).toString()}`),i.push(`limit=${e.camPage.size.toString()}`)),(0,Zt.each)(e.titles,o=>{i.push(`title=${o}`)}),(0,Zt.each)(e.terms,o=>{i.push(`term=${o.id}`)}),(0,Zt.each)(e.obsoleteTerms,o=>{i.push(`term=${o.id}`)}),(0,Zt.each)(e.groups,o=>{i.push(`group=${o.url}`)}),(0,Zt.each)(e.contributors,o=>{i.push(`contributor=${o.orcid}`)}),(0,Zt.each)(e.ids,o=>{i.push(`id=${o}`)}),(0,Zt.each)(e.gps,o=>{i.push(`gp=${o.id}`)}),(0,Zt.each)(e.pmids,o=>{i.push(`pmid=${o}`)}),(0,Zt.each)(e.exactdates,o=>{i.push(`exactdate=${o}`)}),(0,Zt.each)(e.startdates,o=>{i.push(`date=${o}`)}),(0,Zt.each)(e.enddates,o=>{i.push(`dateend=${o}`)}),(0,Zt.each)(e.organisms,o=>{i.push(`taxon=${o.taxonIri}`)}),(0,Zt.each)(e.states,o=>{i.push(`state=${o.name}`)}),e.expand&&i.push("expand"),i.push("debug"),i}build(n=!0){return this.query(n).join("&")}clearSearch(){this.titles=[],this.contributors=[],this.groups=[],this.pmids=[],this.terms=[],this.gps=[],this.organisms=[],this.states=[],this.exactdates=[],this.startdates=[],this.enddates=[]}}var Vee=C(94327);class Bee{constructor(n){this.displaySections=[],this.save(n)}generateHistorySummary(n){const e=this;let o=0;if(n.ids&&n.ids.length>0){const r=n.ids.map(a=>a.label).join(", ");e._addParam("Model Id(s)",r),o++}if(n.contributors&&n.contributors.length>0){const r=n.contributors.map(a=>a.name).join(", ");e._addParam("Contributor(s)",r,"user"),o++}if(n.groups&&n.groups.length>0){const r=n.groups.map(a=>a.name).join(", ");e._addParam("Group(s)",r,"users"),o++}if(n.pmids&&n.pmids.length>0){const r=n.pmids.join(", ");e._addParam("Ref",r),o++}if(n.terms&&n.terms.length>0){const r=n.terms.map(a=>a.label).join(", ");e._addParam("Term(s)",r),o++}if(n.gps&&n.gps.length>0){const r=n.gps.map(a=>a.label).join(", ");e._addParam("GP(s)",r),o++}if(n.organisms&&n.organisms.length>0){const r=n.organisms.map(a=>a.taxonName).join(", ");e._addParam("Organism(s)",r,"paw"),o++}if(n.states&&n.states.length>0){const r=n.states.map(a=>a.label).join(", ");e._addParam("State(s)",r,"tasks"),o++}if(n.exactdates&&n.exactdates.length>0){const r=n.exactdates.join(", ");e._addParam("Date",r,"calendar-day"),o++}n.startdates&&n.startdates.length>0&&n.enddates&&n.enddates.length>0&&(e._addParam("Date Range",`${n.startdates[0]} - ${n.enddates[0]}`,"calendar-week"),o++),0===o&&e._addParam("Default Search","Recent Models","clock")}save(n){this.searchCriteriaString=JSON.stringify(n,void 0,2),this.generateHistorySummary(n)}getSearchCriteria(){return new cd(JSON.parse(this.searchCriteriaString))}_addParam(n,e,i){this.displaySections.push({name:n,value:e,icon:i})}}class Y0{static cleanID(n){return n&&n.replace(/\W/g,"_")}static filterArrayByString(n,e){return""===e?n:(e=e.toLowerCase(),n.filter(i=>this.searchInObj(i,e)))}static searchInObj(n,e){for(const i in n){if(!n.hasOwnProperty(i))continue;const o=n[i];if("string"==typeof o){if(this.searchInString(o,e))return!0}else if(Array.isArray(o)&&this.searchInArray(o,e))return!0;if("object"==typeof o&&this.searchInObj(o,e))return!0}}static searchInArray(n,e){for(const i of n)if("string"==typeof i&&this.searchInString(i,e)||"object"==typeof i&&this.searchInObj(i,e))return!0}static searchInString(n,e){return n.toLowerCase().includes(e)}static generateGUID(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()}static toggleInArray(n,e){-1===e.indexOf(n)?e.push(n):e.splice(e.indexOf(n),1)}static handleize(n){return n.toString().toLowerCase().replace(new RegExp("/s+/g"),"-").replace(new RegExp("/[^w-]+/g"),"").replace(new RegExp("/--+/g"),"-").replace(new RegExp("/^-+/"),"").replace(new RegExp("/-+$/"),"")}}class Gee{constructor(n,e,i){this.id=n,this.title=e,this.dateAdded=i,this.displayId=Y0.cleanID(n)}}class C_{constructor(n){this.cams=[],n&&this.addCamsToBasket(n.cams)}addCamsToBasket(n){const e=this;(0,Zt.each)(n,i=>{if(!(0,Zt.find)(this.cams,{id:i.id})){const r=new Gee(i.id,i.title,i.dateAdded);e.cams.push(r)}}),e.sortCams()}addCamToBasket(n,e){if((0,Zt.find)(this.cams,{id:n}))return null;const r=new Gee(n,e,new Date);return this.cams.push(r),this.sortCams(),r}removeCamFromBasket(n){(0,Zt.remove)(this.cams,{id:n})}clearBasket(){this.cams=[]}sortCams(){this.cams.sort(this._compareDateReviewAdded)}_compareDateReviewAdded(n,e){return n.dateAdded>e.dateAdded?-1:1}}const Xn="rgba(black, 0.87)",Mr="rgba(white, 0.87)",DN={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:Mr,A700:Mr}},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:Mr}},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:"white",900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:"white"}},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:"white",900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:"white",900:"white",A100:Xn,A200:Xn,A400:Xn,A700:Xn}},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:Xn,900:"white",A100:Xn,A200:Xn,A400:Xn,A700:Xn}},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:Xn,900:Xn,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:Xn,900:Xn,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:"white",900:"white",A100:Xn,A200:Xn,A400:Xn,A700:"black"}},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:"white",900:"white",A100:Xn,A200:Xn,A400:"white",A700:"white"}},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:Xn,A400:"white",A700:Mr}},grey:{0:"#ffffff",50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1e3:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrast:{0:Xn,50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Mr,700:Mr,800:Mr,900:Mr,1e3:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Mr}},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:"white",500:"white",600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:Xn,A400:"white",A700:Mr}},"noctua-dark":{50:"#ECECEE",100:"#C5C6CB",200:"#9EA1A9",300:"#7D818C",400:"#5C616F",500:"#3C4252",600:"#353A48",700:"#2D323E",800:"#262933",900:"#1E2129",A100:"#C5C6CB",A200:"#9EA1A9",A400:"#5C616F",A700:"#2D323E",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:Mr,A400:Mr,A700:Mr}},white:{500:"white",contrast:{500:Xn}},black:{500:"black",contrast:{500:"white"}}},ABe=["#ffebee","#ffcdd2","#ef9a9a","#e57373","#ef5350","#f44336","#e53935","#d32f2f","#c62828","#b71c1c","#ff8a80","#ff5252","#ff1744","#d50000","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f","#ff80ab","#ff4081","#f50057","#c51162","#f3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c","#ea80fc","#e040fb","#d500f9","#aa00ff","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92","#b388ff","#7c4dff","#651fff","#6200ea","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e","#8c9eff","#536dfe","#3d5afe","#304ffe","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0d47a1","#82b1ff","#448aff","#2979ff","#2962ff","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b","#80d8ff","#40c4ff","#00b0ff","#0091ea","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064","#84ffff","#18ffff","#00e5ff","#00b8d4","#e0f2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40","#a7ffeb","#64ffda","#1de9b6","#00bfa5","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20","#b9f6ca","#69f0ae","#00e676","#00c853","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e","#ccff90","#b2ff59","#76ff03","#64dd17","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#cddc39","#c0ca33","#afb42b","#9e9d24","#827717","#f4ff81","#eeff41","#c6ff00","#aeea00","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17","#ffff8d","#ffff00","#ffea00","#ffd600","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00","#ffe57f","#ffd740","#ffc400","#ffab00","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100","#ffd180","#ffab40","#ff9100","#ff6d00","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c","#ff9e80","#ff6e40","#ff3d00","#dd2c00","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723","#d7ccc8","#bcaaa4","#8d6e63","#5d4037","#fafafa","#f5f5f5","#eeeeee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121","#ffffff","#eeeeee","#bdbdbd","#616161","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#607d8b","#546e7a","#455a64","#37474f","#263238","#cfd8dc","#b0bec5","#78909c","#455a64"];let kN=(()=>{class t{static getColor(e){return!!DN[e]&&DN[e]}}return t.all=DN,t.presets=ABe,t})(),pm=(()=>{class t{constructor(e,i){this.httpClient=e,this.noctuaUserService=i,this.baristaUrl=Er.globalBaristaLocation,this.searchApi=Er.searchApi,this.onOrganismsChanged=new Io(null)}setup(){const e=this;Ah([this.getUsers(),this.getGroups()]).subscribe(o=>!!o&&(e.noctuaUserService.contributors=e.loadContributors(o[0]),e.noctuaUserService.groups=e.loadGroups(o[1]),!0))}getUsers(){return this.httpClient.get(`${this.baristaUrl}/users`)}getUserInfo(e){const o=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/user_info_by_id/${o}`)}getGroups(){return this.httpClient.get(`${this.baristaUrl}/groups`)}getOrganisms(){return this.httpClient.get(`${this.searchApi}/taxa`).pipe(it(i=>i.taxa))}loadContributors(e){const i=this;return e.map(r=>{const a=new h_;return a.name=r.nickname,a.orcid=r.uri,a.group=r.group,a.initials=i.getInitials(r.nickname),a.color=i.getColor(a.initials),a}).sort(xVe)}loadGroups(e){return e.map(o=>({name:o.label,url:o.id})).sort(wVe)}loadOrganisms(){this.getOrganisms().subscribe(e=>{if(!e)return;const i=e.map(o=>({taxonName:o.label?o.label:"",taxonIri:o.id}));this.onOrganismsChanged.next(i.sort(XVe))})}getInitials(e){const i=e.split(" ");let o=i[0].substring(0,1).toUpperCase();return i.length>1&&(o+=i[i.length-1].substring(0,1).toUpperCase()),o}getColor(e){const i=Object.keys(kN.all),o=(e.charCodeAt(0)-65)%(i.length-5);return o&&o>0?kN.getColor(i[o])[100]:"##bbc9cc"}}return t.\u0275fac=function(e){return new(e||t)(qt(ru),qt(yr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ld=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.httpClient=e,this.noctuaDataService=i,this._bbopGraphService=o,this.noctuaLookupService=r,this.camService=a,this.noctuaFormConfigService=l,this.noctuaUserService=u,this.noctuaSearchMenuService=f,this.curieService=w,this.searchHistory=[],this.contributors=[],this.groups=[],this.organisms=[],this.states=[],this.cams=[],this.searchApi=Er.searchApi,this.separator="@@",this.loading=!1,this.searchSummary={},this.onDetailTermChanged=new Io(null),this.onCamsChanged=new Io([]),this.onCamsPageChanged=new Io(null),this.onSearchHistoryChanged=new Io(null),this.states=this.noctuaFormConfigService.modelState.options,this.searchCriteria=new cd,this.onSearchCriteriaChanged=new Io(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSearchCriteriaChanged.subscribe(T=>{!T||(this.getCams(T).subscribe(U=>{this.cams=U,this.camService.updateDisplayNumber(this.cams),this.onCamsChanged.next(this.cams)}),this.getCamsCount(T).subscribe(U=>{this.camPage=new LN,this.camPage.total=U.n,this.onCamsPageChanged.next(this.camPage)}),this.noctuaSearchMenuService.selectedMiddlePanel===fa.cams&&this.noctuaSearchMenuService.scrollToTop())}),this.loadCamRebuild()}setup(){this.noctuaDataService.loadOrganisms(),this.noctuaDataService.onOrganismsChanged.subscribe(o=>{o&&(this.organisms=o)}),this.searchCriteria.terms.length>0?this.searchFormUrl():this.updateSearch()}searchFormUrl(){const e=this,i=[],o=[...this.searchCriteria.gps,...this.searchCriteria.terms];o.forEach(r=>{i.push(e.noctuaLookupService.getTermDetail(r.id))}),Ah(i).subscribe(r=>{r&&(o.forEach(a=>{const l=(0,Zt.find)(r,{id:a.id});Object.assign(a,l)}),this.updateSearch())})}loadCamRebuild(){const e=this;e._bbopGraphService.onCamRebuildChange.subscribe(i=>{if(!i)return;const o=(0,Zt.find)(e.cams,{id:i.id});!o||!o.expanded||(this.camService.loadCam(o),this.camService.onCamChanged.next(o))})}search(e){this.searchCriteria=new cd,e.title&&this.searchCriteria.titles.push(e.title),e.contributor&&this.searchCriteria.contributors.push(e.contributor),e.group&&this.searchCriteria.groups.push(e.group),e.pmid&&this.searchCriteria.pmids.push(e.pmid),e.term&&this.searchCriteria.terms.push(e.term),e.obsoleteTerm&&this.searchCriteria.obsoleteTerms.push(e.obsoleteTerm),e.id&&this.searchCriteria.ids.push(e.id),e.gp&&this.searchCriteria.gps.push(e.gp),e.organism&&this.searchCriteria.organisms.push(e.organism),e.state&&this.searchCriteria.states.push(e.state),e.exactdate&&this.searchCriteria.exactdates.push(e.exactdate),e.startdate&&this.searchCriteria.exactdates.push(e.startdate),e.enddate&&this.searchCriteria.exactdates.push(e.enddate),this.updateSearch()}getPage(e,i){this.searchCriteria.camPage.pageNumber=e,this.searchCriteria.camPage.size=i,this.updateSearch()}paramsToSearch(e){this.searchCriteria.titles=this.makeArray(e.title),this.searchCriteria.contributors=this.makeArray(e.contributor,sd.contributors),this.searchCriteria.groups=this.makeArray(e.group,sd.groups),this.searchCriteria.pmids=this.makeArray(e.pmid),this.searchCriteria.terms=this.makeArray(e.term,sd.terms),this.searchCriteria.obsoleteTerms=this.makeArray(e.term,sd.obsoleteTerms),this.searchCriteria.gps=this.makeArray(e.gp,sd.gps),this.searchCriteria.organisms=this.makeArray(e.organism,sd.organisms),this.searchCriteria.states=this.makeArray(e.state),this.searchCriteria.exactdates=this.makeArray(e.exactdate),this.searchCriteria.startdates=this.makeArray(e.startdate),this.searchCriteria.enddates=this.makeArray(e.enddate)}makeArray(e,i){let o;switch(Array.isArray(e)&&(o=e),o="string"==typeof e?[e]:[],i){case sd.terms:case sd.gps:return o.map(r=>({id:r,label:r}));case sd.contributors:return o.map(r=>({orcid:r,name:r}));case sd.groups:return o.map(r=>({url:r,name:r}));case sd.organisms:return o.map(r=>({taxonIri:r,taxonName:r}));default:return o}}updateSearch(e=!0,i=!0){if(this.searchCriteria.updateFiltersCount(),this.onSearchCriteriaChanged.next(this.searchCriteria),i&&this.saveHistory(),e)if(this.searchCriteria.filtersCount>0){const o=this.searchCriteria.build(),r=`${window.location.origin}${window.location.pathname}?${o}`;history.pushState({},"",r)}else{const o=`${window.location.origin}${window.location.pathname}`;history.replaceState({},"",o)}}filter(e,i){this.searchCriteria[e].push(i),this.updateSearch()}removeFilterType(e){this.searchCriteria[e]=[],this.updateSearch()}removeFilter(e){this.searchCriteria[e]=null}clearSearchCriteria(){this.searchCriteria=new cd,this.updateSearch()}saveHistory(){const e=new Bee(this.searchCriteria);this.searchHistory.unshift(e),this.onSearchHistoryChanged.next(this.searchHistory)}clearHistory(){this.searchHistory=[],this.onSearchHistoryChanged.next(this.searchHistory)}downloadSearchConfig(){const e=new Blob([JSON.stringify(this.searchCriteria,void 0,2)],{type:"application/json"});(0,Vee.saveAs)(e,"search-filter.json")}uploadSearchConfig(e){this.searchCriteria=new cd,e.titles&&(this.searchCriteria.titles=e.titles),e.ids&&(this.searchCriteria.ids=e.ids),e.contributors&&(this.searchCriteria.contributors=e.contributors),e.groups&&(this.searchCriteria.groups=e.groups),e.pmids&&(this.searchCriteria.pmids=e.pmids),e.terms&&(this.searchCriteria.terms=e.terms),e.obsoleteTerms&&(this.searchCriteria.obsoleteTerms=e.obsoleteTerms),e.gps&&(this.searchCriteria.gps=e.gps),e.organisms&&(this.searchCriteria.organisms=e.organisms),e.states&&(this.searchCriteria.states=e.states),e.exactdates&&(this.searchCriteria.exactdates=e.exactdates),e.startdates&&(this.searchCriteria.startdates=e.startdates),e.enddates&&(this.searchCriteria.enddates=e.enddates),this.updateSearch()}getCams(e){const i=this,o=e.build(),r=`${this.searchApi}/models?${o}`;return i.loading=!0,this.httpClient.get(r).pipe(it(a=>this.addCam(a)),Yu(()=>{i.loading=!1}))}getCamsCount(e){const o=e.build();return this.httpClient.get(`${this.searchApi}/models?${o}&count`).pipe()}addCam(e){const i=this,o=[];return e.models.forEach(r=>{const a=r.id,l=new DO;l.graph=null,l.id=a,l.state=i.noctuaFormConfigService.findModelState(r.state),l.title=r.title,l.date=r.date,l.modified=r["modified-p"],l.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(a)}),l.groups=r.groups.map(u=>(0,Zt.find)(i.noctuaUserService.groups,w=>w.url===u)||{url:u}),l.contributors=r.contributors.map(u=>(0,Zt.find)(i.noctuaUserService.contributors,w=>w.orcid===u)||{orcid:u}),o.push(l)}),o}addCamTerms(e){const i=this,o=[];return e.forEach(r=>{const a=new Pi(i.curieUtil.getCurie(r.id.value),r.label.value);o.push(a)}),o}groupContributors(){return(0,Zt.groupBy)(this.contributors,function(e){return e.group})}filterOrganisms(e){const i=e.toLowerCase();return this.organisms.filter(o=>0===o.taxonName.toLowerCase().indexOf(i))}filterStates(e){const i=e.toLowerCase();return this.states.filter(o=>0===o.name.toLowerCase().indexOf(i))}}return t.\u0275fac=function(e){return new(e||t)(qt(ru),qt(pm),qt(Yc),qt(Sd),qt(Zr),qt(Co),qt(yr),qt(pl),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LBe(t,n){if(1&t){const e=Ln();H(0,"div",7),Qe(1,"span",3),H(2,"button",8),et("click",function(){return Dt(e),Ae().cancel()}),ue(3),G(),H(4,"button",9),et("click",function(){return Dt(e),Ae().confirm()}),ue(5),G()()}if(2&t){const e=Ae();W(3),Nt(" ",e.cancelLabel,""),W(2),Nt(" ",e.confirmLabel," ")}}function DBe(t,n){if(1&t){const e=Ln();H(0,"div",7),Qe(1,"span",3),H(2,"button",10),et("click",function(){return Dt(e),Ae().cancel()}),ue(3,"Close"),G()()}}let IN=(()=>{class t{constructor(e,i){this.dialogRef=e,this._data=i,this.readonlyDialog=!1,this.cancelLabel="Cancel",this.confirmLabel="Confirm",i&&(this.cancelLabel=i.cancelLabel?i.cancelLabel:"Cancel",this.confirmLabel=i.confirmLabel?i.confirmLabel:"Confirm")}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2))},t.\u0275cmp=vn({type:t,selectors:[["noctua-confirm-dialog"]],decls:13,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","",1,"noc-dialog-body"],["mat-dialog-actions","","class","m-0 p-16 noc-dialog-footer","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-raised-button","","color","",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.cancel()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ue(10),G(),ke(11,LBe,6,2,"div",6),ke(12,DBe,4,0,"div",6),G()),2&e&&(W(3),Nt(" ",i.title,""),W(7),Nt(" ",i.message," "),W(1),J("ngIf",!i.readonlyDialog),W(1),J("ngIf",i.readonlyDialog))},directives:[Oo,So,ko,Fo,Ir,oC,Yi,rC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:24px 12px;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-height:90%;display:flex;flex-direction:column}']}),t})(),dd=(()=>{class t{constructor(e,i){this.snackBar=e,this._matDialog=i}openInfoToast(e,i){this.snackBar.open(e,i,{duration:5e3,verticalPosition:"top"})}openConfirmDialog(e,i,o,r){let a=this._matDialog.open(IN,{panelClass:"noc-confirm-dialog",disableClose:!1,width:"600px",data:r});a.componentInstance.title=e,a.componentInstance.message=i,o||(a.componentInstance.readonlyDialog=!0),a.afterClosed().subscribe(l=>{l&&o(l),a=null})}}return t.\u0275fac=function(e){return new(e||t)(qt(vM),qt(iC))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k1=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.zone=e,this.noctuaUserService=i,this._bbopGraphService=o,this._noctuaSearchService=r,this.noctuaSearchMenuService=a,this.confirmDialogService=l,this.httpClient=u,this.camService=f,this.curieService=w,this.artBasket=new C_,this.searchHistory=[],this.searchApi=Er.searchApi,this.loading=!1,this.matchedEntities=[],this.matchedCountCursor=0,this.matchedCount=0,this.filterType={gps:"gps",terms:"terms",pmids:"pmids"};const T=this;this.onArtBasketChanged=new Io(null),this.onResetReview=new Io(!1),this.onClearForm=new Io(!1),this.onReplaceChanged=new Io(!1),this.onCamsPageChanged=new Io(null),this.onCamChanged=new Io([]),this.onCamTermSearch=new Io(null),this.onCamReplaceTermSearch=new Io(null),this.onSearchHistoryChanged=new Io(null),this.searchCriteria=new cd,this.onSearchCriteriaChanged=new Io(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSearchCriteriaChanged.subscribe(U=>{!U||(T.camService.resetMatch(),U.ids.length>0&&T.getCams(U).subscribe(()=>{T.matchedCountCursor=0,T.calculateMatched(),T.camService.applyMatchWeights(T.camService.cams),T.sortMatched(),T.goto(0)}))}),this.camService.onCamsChanged.subscribe(U=>{if(!U)return;const ie=U.map(se=>se.id);this.searchCriteria.ids=ie}),T.loadCamRebuild()}setup(){if(!this.noctuaUserService.user)return void this.clearBasket();const e=localStorage.getItem("artBasket");e&&(this.artBasket=new C_(JSON.parse(e)),this.camService.cams=[],this.addCamsToReview(this.artBasket.cams,this.camService.cams),this.onArtBasketChanged.next(this.artBasket))}loadCamRebuild(){const e=this;e._bbopGraphService.onCamRebuildChange.subscribe(i=>{!i||e.updateStoredCams([i],e.camService.cams)})}addCamsToReview(e,i){const o=this;if(!e||0===e.length)return;const r=e.reduce((a,l)=>((0,Zt.find)(i,{id:l.id})||a.push(l.id),a),[]);o.updateSearch(!0,[...r,...i.map(a=>a.id)]),0!==r.length&&o.searchCamsByIds(r).pipe(Z1(a=>{const l=[];return(0,Zt.each)(a,u=>{const f=(0,Zt.find)(e,{id:u.id});u.expanded=!0,u.dateReviewAdded=f?f.dateAdded:Date.now(),u.title=null==f?void 0:f.title,i.push(u),o.camService.loadCamMeta(u),u.loading=new Md(!0,"Loading Model Activities ..."),l.push(u)}),Ra(l)}),da(a=>o.camService.getStoredModel(a)),Yu(()=>{o.camService.sortCams(),o.camService.updateDisplayNumber(i),o.camService.onCamsChanged.next(i)})).subscribe({next:a=>{if(!a||!a.storedModel||!a.activeModel)return;const l=(0,Zt.find)(i,{id:a.activeModel.id});!l||(o._bbopGraphService.rebuildFromStoredApi(l,a.activeModel),o.camService.populateStoredModel(l,a.storedModel),l.loading.status=!1,o.camService.sortCams(),o.camService.updateDisplayNumber(i),o.camService.onCamsChanged.next(i),o.updateSearch())}})}removeCamFromReview(e){(0,Zt.remove)(this.camService.cams,{id:e.id}),this.updateSearch(),this.artBasket.removeCamFromBasket(e.id),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.camService.updateDisplayNumber(this.camService.cams),this.camService.onCamsChanged.next(this.camService.cams),this.onArtBasketChanged.next(this.artBasket)}reloadCams(e,i,o,r=!1){const a=this;!e||0===e.length||0===e.map(u=>u.id).length||Ra(e).pipe(da(u=>o===Cu.RESET?(u.loading=new Md(!0,"Resetting Model ..."),a.camService.resetCams([u])):o===Cu.STORE?(u.loading=new Md(!0,"Saving Model ..."),a.camService.storeCams([u])):Na),Yu(()=>{a.camService.updateDisplayNumber(i),a.camService.onCamsChanged.next(i),a.camService.resetLoading(e),a._noctuaSearchService.updateSearch(!1,!1),a.onReplaceChanged.next(!0),a.updateSearch(),a.zone.run(()=>{a.camService.resetLoading(i),a.confirmDialogService.openInfoToast("Changes successfully saved.","OK"),a.camService.reviewChangesCams(),r&&a.confirmAfterSave()})})).subscribe({next:u=>{if(!u||!u.data())return;const f=(0,Zt.find)(i,{id:u.data().id});!f||(a.camService.populateStoredModel(f,u.data()),f.loading.status=!1,a.camService.updateDisplayNumber(i),a.camService.onCamsChanged.next(i),a.updateSearch())}})}updateStoredCams(e,i){const o=this;if(!e||0===e.length)return;const r=e.map(a=>a.id);0!==r.length&&o.searchCamsByIds(r).pipe(Z1(a=>{const l=[];return(0,Zt.each)(a,u=>{u.expanded=!0,o.camService.loadCamMeta(u),u.loading.status=!0,l.push(u)}),Ra(l)}),da(a=>((0,Zt.find)(i,{id:a.id}).loading=new Md(!0,"Reloading Model ..."),o.camService.getStoredModel(a))),Yu(()=>{})).subscribe({next:a=>{if(!a||!a.storedModel||!a.activeModel)return;const l=(0,Zt.find)(i,{id:a.activeModel.id});!l||(l.rebuildRule.reset(),o._bbopGraphService.rebuildFromStoredApi(l,a.activeModel),o.camService.populateStoredModel(l,a.storedModel),l.loading.status=!1,o.camService.sortCams(),o.camService.updateDisplayNumber(i),o.camService.onCamsChanged.next(i),o.updateSearch())}})}confirmAfterSave(){const e=this;this.confirmDialogService.openConfirmDialog("Changes successfully saved.","Do you want to clear all your selected models from ART",r=>{r&&(e.noctuaSearchMenuService.selectMiddlePanel(fa.cams),e.noctuaSearchMenuService.selectLeftPanel(Is.filter),e.clear(),e.camService.clearCams(),e.clearBasket(),e.onResetReview.next(!0),e.noctuaSearchMenuService.scrollToTop())},{cancelLabel:"No",confirmLabel:"Yes"})}searchCamsByIds(e){const o=new cd;return o.ids=e,this.camService.resetMatch(),this._noctuaSearchService.getCams(o)}search(e){this.searchCriteria=new cd,e.pmid&&this.searchCriteria.pmids.push(e.pmid),e.term&&this.searchCriteria.terms.push(e.term),e.id&&this.searchCriteria.ids.push(e.id),e.gp&&this.searchCriteria.gps.push(e.gp),this.updateSearch()}findNext(){if(0!==this.matchedCount)return this.matchedCountCursor=(this.matchedCountCursor+1)%this.matchedCount,this.currentMatchedEnity=this.matchedEntities[this.matchedCountCursor],this.camService.expandMatch(this.currentMatchedEnity.uuid),this.camService.currentMatch=this.currentMatchedEnity,!this.currentMatchedEnity.activityDisplayId&&this.matchedCountCursor0)this.searchCriteria.ids=i;else{const o=this.camService.cams.map(r=>r.id);this.searchCriteria.ids=o}this.searchCriteria.updateFiltersCount(),this.onSearchCriteriaChanged.next(this.searchCriteria),e&&this.saveHistory()}filter(e,i){this.searchCriteria[e].push(i),this.updateSearch()}removeFilterType(e){this.searchCriteria[e]=[],this.updateSearch()}removeFilter(e){this.searchCriteria[e]=null}clearSearchCriteria(){this.searchCriteria=new cd,this.updateSearch()}saveHistory(){const e=new Bee(this.searchCriteria);this.searchHistory.unshift(e),this.onSearchHistoryChanged.next(this.searchHistory)}clearHistory(){this.searchHistory=[],this.onSearchHistoryChanged.next(this.searchHistory)}addToArtBasket(e,i){this.artBasket.addCamToBasket(e,i),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.onArtBasketChanged.next(this.artBasket)}clearBasket(){this.artBasket.clearBasket(),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.onArtBasketChanged.next(this.artBasket),this.noctuaSearchMenuService.scrollToTop()}downloadSearchConfig(){const e=new Blob([JSON.stringify(this.searchCriteria,void 0,2)],{type:"application/json"});(0,Vee.saveAs)(e,"search-filter.json")}uploadSearchConfig(e){this.searchCriteria=new cd,e.ids&&(this.searchCriteria.ids=e.ids),e.pmids&&(this.searchCriteria.pmids=e.pmids),e.terms&&(this.searchCriteria.terms=e.terms),e.gps&&(this.searchCriteria.gps=e.gps),this.updateSearch()}getCams(e){const i=this;e.expand=!1;const o=e.build(!1),r=`${this.searchApi}/models?${o}`;return i.loading=!0,this.httpClient.get(r).pipe(it(a=>this.addCam(a)),Yu(()=>{i.loading=!1}))}addCam(e){const i=this,o=[];return(0,Zt.each)(i.camService.cams,r=>r.clearHighlight()),e.models.forEach(r=>{const a=r.id,l=(0,Zt.find)(i.camService.cams,u=>u.id===a);l&&(l.queryMatch=new PN,(0,Zt.each)(r.query_match,(u,f)=>{l.queryMatch.terms.push(...u.map(w=>new Pi(i.curieUtil.getCurie(f),"",null,i.curieUtil.getCurie(w),l.id)))}),l.applyFilter()),o.push(l)}),o}addCamTerms(e){const i=this,o=[];return e.forEach(r=>{const a=new Pi(i.curieUtil.getCurie(r.id.value),r.label.value);o.push(a)}),o}calculateMatchedCountNumber(){return this.camService.cams.reduce((i,o)=>i+o.matchedCount,0)}calculateMatched(){this.matchedEntities=this.camService.cams.reduce((e,i)=>(i.queryMatch&&i.queryMatch.terms&&e.push(...i.queryMatch.terms),e),[]),this.matchedCount=this.matchedEntities.length,this.matchedCountCursor=0}sortMatched(){this.matchedEntities=this.matchedEntities.sort(kHe)}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(yr),qt(Yc),qt(ld),qt(pl),qt(dd),qt(ru),qt(Zr),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const kBe=function F8e(t,n=null){return{type:8,animation:t,options:n}}([ti({opacity:"{{opacity}}",transform:"scale({{scale}}) translate3d({{x}}, {{y}}, {{z}})"}),Mo("{{duration}} {{delay}} cubic-bezier(0.0, 0.0, 0.2, 1)",ti("*"))],{params:{duration:"200ms",delay:"0ms",opacity:"0",scale:"1",x:"0",y:"0",z:"0"}}),sc=[na("animate",[Lo("void => *",[function H8e(t,n=null){return{type:10,animation:t,options:n}}(kBe)])]),na("animateStagger",[cr("50",ti("*")),cr("100",ti("*")),cr("200",ti("*")),Lo("void => 50",qa("@*",[BL("50ms",[Q1()])],{optional:!0})),Lo("void => 100",qa("@*",[BL("100ms",[Q1()])],{optional:!0})),Lo("void => 200",qa("@*",[BL("200ms",[Q1()])],{optional:!0}))]),na("fadeInOut",[cr("0",ti({display:"none",opacity:0})),cr("1",ti({display:"block",opacity:1})),Lo("1 => 0",Mo("300ms ease-out")),Lo("0 => 1",Mo("300ms ease-in"))]),na("slideInOut",[cr("0",ti({height:"0px",display:"none"})),cr("1",ti({height:"*",display:"block"})),Lo("1 => 0",Mo("300ms ease-out")),Lo("0 => 1",Mo("300ms ease-in"))]),na("slideIn",[Lo("void => left",[ti({transform:"translateX(100%)"}),Mo("300ms ease-in",ti({transform:"translateX(0)"}))]),Lo("left => void",[ti({transform:"translateX(0)"}),Mo("300ms ease-in",ti({transform:"translateX(-100%)"}))]),Lo("void => right",[ti({transform:"translateX(-100%)"}),Mo("300ms ease-in",ti({transform:"translateX(0)"}))]),Lo("right => void",[ti({transform:"translateX(0)"}),Mo("300ms ease-in",ti({transform:"translateX(100%)"}))])]),na("slideInLeft",[cr("void",ti({transform:"translateX(-100%)",display:"none"})),cr("*",ti({transform:"translateX(0)",display:"flex"})),Lo("void => *",Mo("300ms")),Lo("* => void",Mo("300ms"))]),na("slideInRight",[cr("void",ti({transform:"translateX(100%)",display:"none"})),cr("*",ti({transform:"translateX(0)",display:"flex"})),Lo("void => *",Mo("300ms")),Lo("* => void",Mo("300ms"))]),na("slideInTop",[cr("void",ti({transform:"translateY(-100%)",display:"none"})),cr("*",ti({transform:"translateY(0)",display:"flex"})),Lo("void => *",Mo("300ms")),Lo("* => void",Mo("300ms"))]),na("slideInBottom",[cr("void",ti({transform:"translateY(100%)",display:"none"})),cr("*",ti({transform:"translateY(0)",display:"flex"})),Lo("void => *",Mo("300ms")),Lo("* => void",Mo("300ms"))]),na("expandCollapse",[cr("void",ti({height:"0px"})),cr("*",ti({height:"*"})),Lo("void => *",Mo("300ms ease-out")),Lo("* => void",Mo("300ms ease-in"))]),na("routerTransitionLeft",[Lo("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(100%)",opacity:0})],{optional:!0}),c9([Pg([qa("noctua-content > :leave",[ti({transform:"translateX(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(-100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])])]),na("routerTransitionRight",[Lo("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(-100%)",opacity:0})],{optional:!0}),c9([Pg([qa("noctua-content > :leave",[ti({transform:"translateX(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(-100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])])]),na("routerTransitionUp",[Lo("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(100%)",opacity:0})],{optional:!0}),Pg([qa("noctua-content > :leave",[ti({transform:"translateY(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(-100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])]),na("routerTransitionDown",[Lo("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(-100%)",opacity:0})],{optional:!0}),c9([Pg([qa("noctua-content > :leave",[ti({transform:"translateY(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(-100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])])]),na("routerTransitionFade",[Lo("* => *",Pg([qa("noctua-content > :enter, noctua-content > :leave ",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({opacity:0})],{optional:!0}),qa("noctua-content > :leave",[ti({opacity:1}),Mo("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({opacity:0}),Mo("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({opacity:1}))],{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0}),qa("noctua-content > :leave",Q1(),{optional:!0})]))])];function IBe(t,n){1&t&&(H(0,"th",21),ue(1," Category "),G())}function NBe(t,n){if(1&t&&(H(0,"td",22),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.category," ")}}function RBe(t,n){1&t&&(H(0,"th",23),ue(1,"Changes"),G())}function zBe(t,n){if(1&t&&(H(0,"td",24),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.count," ")}}function FBe(t,n){1&t&&Qe(0,"tr",25)}function HBe(t,n){1&t&&(H(0,"tr",26),et("click",function(i){return i.stopPropagation()}),G())}function VBe(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"button",28),et("click",function(){return Dt(e),Ae().cancel()}),ue(2),G(),H(3,"button",29),et("click",function(){return Dt(e),Ae().confirm()}),ue(4),G()()}if(2&t){const e=Ae();W(2),Nt(" ",e.cancelLabel,""),W(2),Nt(" ",e.confirmLabel," ")}}function BBe(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"button",28),et("click",function(){return Dt(e),Ae().cancel()}),ue(2,"Close"),G()()}}const GBe=function(){return{value:"50"}};let YBe=(()=>{class t{constructor(e,i,o,r,a,l,u){this._matDialogRef=e,this._data=i,this.noctuaReviewSearchService=o,this.noctuaSearchMenuService=r,this.noctuaUserService=a,this.noctuaFormConfigService=l,this.noctuaActivityFormService=u,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.stats=[],this.title="Review Changes",this.readonlyDialog=!1,this.cancelLabel="Cancel",this.confirmLabel="Confirm",this.displayedColumns=["category","count"],this._unsubscribeAll=new N,i.options&&(this.cancelLabel=i.options.cancelLabel?i.options.cancelLabel:"Cancel",this.confirmLabel=i.options.confirmLabel?i.options.confirmLabel:"Confirm"),this.summary=this._data.summary,this.stats=this.generateStats(this.summary.stats)}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}confirm(){this._matDialogRef.close(!0)}cancel(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(k1),de(pl),de(yr),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-review-changes-dialog"]],decls:31,vars:11,consts:[[1,"dialog-content-wrapper","noc-dialog"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-dialog-body","noc-form-section"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"alert","alert-warning","w-100-p"],[1,"noc-stat-summary","w-100-p"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","250px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["class","m-0 p-16 noc-dialog-footer","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.cancel()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()()(),H(10,"div",6)(11,"div",7)(12,"div",8),ue(13),H(14,"div",9)(15,"span",10),ue(16),G(),ue(17," unsaved changes across "),H(18,"span",10),ue(19),G()()(),H(20,"table",11),er(21,12),ke(22,IBe,2,0,"th",13),ke(23,NBe,2,1,"td",14),tr(),er(24,15),ke(25,RBe,2,0,"th",16),ke(26,zBe,2,1,"td",17),tr(),ke(27,FBe,1,0,"tr",18),ke(28,HBe,1,0,"tr",19),G()()(),ke(29,VBe,5,2,"div",20),ke(30,BBe,3,0,"div",20),G()),2&e&&(W(4),Nt(" ",i.title," "),W(9),Nt(" ",i.message," "),W(3),Nt(" ",null==i.summary?null:i.summary.stats.totalChanges," "),W(3),Nt(" ",null==i.summary?null:i.summary.stats.camsCount," model(s) "),W(1),J("dataSource",i.stats)("@animateStagger",_i(10,GBe)),W(7),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns),W(1),J("ngIf",!i.readonlyDialog),W(1),J("ngIf",i.readonlyDialog))},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,ts,$g,Zf,Qf,Kf,Xf,Jf,Xg,Zg,Qg,Kg,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:400px;min-width:400px;max-width:400px}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}'],data:{animation:sc}}),t})();function UBe(t,n){if(1&t&&(H(0,"div",14),ue(1," It looks like you have pending changes for Annotation Review Tool. .If you leave before saving, your basket changes will be lost. "),H(2,"div",15)(3,"span",16),ue(4),G(),ue(5," unsaved changes across "),H(6,"span",16),ue(7),G()()()),2&t){const e=Ae();W(4),Nt(" ",null==e.summary?null:e.summary.stats.totalChanges," "),W(3),Nt(" ",null==e.summary?null:e.summary.stats.camsCount," models ")}}function jBe(t,n){1&t&&(H(0,"div",17),ue(1," It looks like Annotation Review Tool Basket is not empty. .If you leave, your basket will be cleared. "),G())}function WBe(t,n){if(1&t&&(H(0,"div",29)(1,"div",23),ue(2,"Modified Model: "),G(),ue(3," ("),H(4,"strong",30),ue(5),G(),ue(6," change(s) ) "),Qe(7,"span",4),G()),2&t){const e=Ae().$implicit;W(5),qo(null==e.modifiedStats?null:e.modifiedStats.totalChanges)}}function qBe(t,n){if(1&t&&(H(0,"div",37),ue(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function $Be(t,n){if(1&t&&(H(0,"span",38)(1,"div",39),ue(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function XBe(t,n){if(1&t&&(H(0,"div",31)(1,"div",22)(2,"div",23),ue(3,"Contributors:"),G(),ke(4,qBe,2,4,"div",32),G(),H(5,"div",22)(6,"div",23),ue(7,"Groups:"),G(),ke(8,$Be,3,4,"span",33),G(),H(9,"div",24)(10,"div",23),ue(11,"Open In:"),G(),H(12,"a",34),ue(13," Pathway Editor "),G(),H(14,"span"),ue(15,"\u2022"),G(),H(16,"a",35),ue(17," Form Editor "),G(),H(18,"span"),ue(19,"\u2022"),G(),H(20,"a",36),ue(21," Graph Editor "),G()()()),2&t){const e=Ae().$implicit;W(4),J("ngForOf",e.contributors),W(4),J("ngForOf",e.groups),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)}}const QBe=function(){return["fas","angle-double-down"]};function ZBe(t,n){1&t&&(H(0,"span"),ue(1,"More Details "),Qe(2,"fa-icon",40),G()),2&t&&(W(2),J("icon",_i(1,QBe)))}const KBe=function(){return["fas","angle-double-up"]};function JBe(t,n){1&t&&(H(0,"span"),ue(1,"Less Details "),Qe(2,"fa-icon",40),G()),2&t&&(W(2),J("icon",_i(1,KBe)))}const eGe=function(t){return{"noc-selected":t}};function tGe(t,n){if(1&t){const e=Ln();H(0,"div",18),ke(1,WBe,8,1,"div",19),H(2,"div",20)(3,"div",21)(4,"div",22)(5,"div",23),ue(6,"Title:"),G(),ue(7),G(),H(8,"div",24)(9,"div",23),ue(10,"State:"),G(),ue(11),G(),ke(12,XBe,22,5,"div",25),H(13,"div",26)(14,"a",27),et("click",function(o){const a=Dt(e).$implicit;return o.stopPropagation(),a.moreDetail=!a.moreDetail}),ke(15,ZBe,3,2,"span",28),ke(16,JBe,3,2,"span",28),G()()(),Qe(17,"span",4),G()()}if(2&t){const e=n.$implicit,i=Ae();J("ngClass",wo(7,eGe,e.id===(null==i.camService.currentMatch?null:i.camService.currentMatch.modelId))),W(1),J("ngIf",e.modified),W(6),Nt(" ",e.title," "),W(4),Nt(" ",null==e.state?null:e.state.label," "),W(1),J("ngIf",e.moreDetail),W(3),J("ngIf",!e.moreDetail),W(1),J("ngIf",e.moreDetail)}}let nGe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T,U){this._matDialogRef=e,this.zone=i,this.camService=o,this.noctuaConfigService=r,this.confirmDialogService=a,this.noctuaSearchDialogService=l,this.noctuaUserService=u,this.noctuaSearchMenuService=f,this.noctuaSearchService=w,this.noctuaFormConfigService=T,this.noctuaReviewSearchService=U,this.cams=[],this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e)})}ngAfterViewInit(){setTimeout(()=>{this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e)})},1)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}reviewChanges(){const e=this;e.camService.reviewChangesCams(),e.noctuaSearchMenuService.selectLeftPanel(Is.artBasket),e.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview),e.noctuaSearchMenuService.reviewMode=hl.on,e.noctuaSearchMenuService.isReviewMode=!0,this.close()}logout(){this.noctuaReviewSearchService.clear(),this.camService.clearCams(),this.noctuaReviewSearchService.clearBasket(),this._matDialogRef.close(!0)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(oo),de(Zr),de(Co),de(dd),de(U0),de(yr),de(pl),de(ld),de(Co),de(k1))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-unsaved-dialog"]],decls:22,vars:3,consts:[[1,"dialog-content-wrapper","noc-dialog"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-dialog-body"],["class","alert alert-danger w-100-p",4,"ngIf"],["class","alert alert-warning w-100-p",4,"ngIf"],["class","noc-group-row","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-raised-button","","color","warn",3,"click"],[1,"alert","alert-danger","w-100-p"],[1,"noc-stat-summary","w-100-p"],[1,"noc-number"],[1,"alert","alert-warning","w-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-row",3,"ngClass"],["class","noc-modified-header w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],["class","w-100-p",4,"ngIf"],[1,"noc-item"],[1,"noc-more-details-button",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-modified-header","w-100-p"],[1,"mr-4"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],[3,"icon"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Unsaved Changes (Annotation Review Tool) "),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()()(),H(10,"div",6),ke(11,UBe,8,2,"div",7),ke(12,jBe,2,0,"div",8),ke(13,tGe,18,9,"div",9),G(),H(14,"div",10)(15,"button",11),et("click",function(){return i.close()}),ue(16,"Cancel"),G(),Qe(17,"span",4),H(18,"button",12),et("click",function(){return i.reviewChanges()}),ue(19,"Review Changes"),G(),H(20,"button",13),et("click",function(){return i.logout()}),ue(21,"Logout Anyway"),G()()()),2&e&&(W(11),J("ngIf",(null==i.summary?null:i.summary.stats.totalChanges)>0),W(1),J("ngIf",0===(null==i.summary?null:i.summary.stats.totalChanges)),W(1),J("ngForOf",i.cams))},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,ts,Yi,$o,ds,ac,Tl,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{min-height:40px;max-height:500px;border-bottom:#CCC solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}'],data:{animation:sc}}),t})(),U0=(()=>{class t{constructor(e,i){this.snackBar=e,this._matDialog=i}openInfoToast(e,i){this.snackBar.open(e,i,{duration:1e4,verticalPosition:"top"})}openConfirmDialog(e,i){this.dialogRef=this._matDialog.open(IN,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCamReviewChangesDialog(e,i,o){let r=this._matDialog.open(YBe,{panelClass:"noc-cams-review-changes-dialog",data:{summary:i,options:o}});o&&o.title&&(r.componentInstance.title=o.title),o&&o.message&&(r.componentInstance.message=o.message),e||(r.componentInstance.readonlyDialog=!0),r.afterClosed().subscribe(a=>{a&&e(a),r=null})}openCamsUnsavedDialog(e){this.dialogRef=this._matDialog.open(nGe,{panelClass:"noc-cams-unsaved-dialog",data:{}}),this.dialogRef.afterClosed().subscribe(i=>{i&&e(i)})}}return t.\u0275fac=function(e){return new(e||t)(qt(vM),qt(iC))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iGe(t,n){1&t&&(H(0,"a",36),ue(1," More Details "),G()),2&t&&Ro("href",Ae(2).announcement.descriptionUrl,ao)}function oGe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",31)(2,"div",32)(3,"div",33)(4,"strong"),ue(5),G(),ue(6),ke(7,iGe,2,1,"a",34),G(),H(8,"button",35),et("click",function(){return Dt(e),Ae().openAnnouncements()}),ue(9," View More "),G()()(),tr()}if(2&t){const e=Ae();W(1),xf("noc-announcement alert alert-",e.announcement.level,""),W(4),qo(e.announcement.title),W(1),Nt(" ",e.announcement.description," "),W(1),J("ngIf",e.announcement.descriptionUrl),W(1),J("matTooltipPosition","below")("matTooltipShowDelay",1500)}}function rGe(t,n){1&t&&Qe(0,"mat-progress-bar",37)}function aGe(t,n){if(1&t&&(er(0),H(1,"a",38),ue(2," Noctua "),G(),H(3,"a",39),ue(4," Form Editor "),G(),tr()),2&t){const e=Ae();W(1),Ro("href",e.noctuaConfigService.noctuaUrl,ao),W(2),Ro("href",e.noctuaConfigService.homeUrl,ao)}}function sGe(t,n){if(1&t&&(H(0,"div",40)(1,"div",41)(2,"a",42),ue(3," Noctua "),G(),H(4,"a",42),ue(5," Form Editor "),G(),ue(6),G(),H(7,"div",43),ue(8," Testing Version. Visit "),H(9,"a",44),ue(10," Noctua "),G(),ue(11," for production version "),G()()),2&t){const e=Ae();W(2),Ro("href",e.noctuaConfigService.noctuaUrl,ao),W(2),Ro("href",e.noctuaConfigService.homeUrl,ao),W(2),Nt(" (",e.betaText,") ")}}function cGe(t,n){if(1&t&&(H(0,"button",45)(1,"div",46)(2,"div",47)(3,"div",48),ue(4),G(),H(5,"div",49),ue(6),G()(),H(7,"mat-icon"),ue(8,"arrow_drop_down"),G()()()),2&t){const e=Ae();J("matMenuTriggerFor",Di(40)),W(4),Nt(" ",e.noctuaUserService.user.name," "),W(2),Nt(" ",null==e.noctuaUserService.user||null==e.noctuaUserService.user.group?null:e.noctuaUserService.user.group.label," ")}}function lGe(t,n){if(1&t&&(H(0,"div")(1,"a",50),ue(2," Login "),G()()),2&t){const e=Ae();W(1),Ro("href",e.noctuaConfigService.loginUrl,ao)}}const dGe=function(t,n){return{"noc-dev":t,"noc-beta":n}},uGe=function(){return["fab","github"]},hGe=function(){return["fab","twitter"]},pGe=function(){return["fab","facebook"]};let fGe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this.router=e,this.camService=i,this.noctuaCommonMenuService=o,this.noctuaAnnouncementService=r,this.noctuaUserService=a,this.noctuaSearchDialogService=l,this.noctuaConfigService=u,this.noctuaActivityFormService=f,this.noctuaReviewSearchService=w,this.noctuaSearchMenuService=T,this.ActivityType=so,this.noctuaFormUrl="",this.loginUrl="",this.logoutUrl="",this.noctuaUrl="",this.isBeta=Er.isBeta,this.isDev=Er.isDev,this.betaText="",this._unsubscribeAll=new N,this.router.events.pipe(Yn(this._unsubscribeAll)).subscribe(U=>{U instanceof g6&&(this.showLoadingBar=!0),U instanceof Gp&&(this.showLoadingBar=!1)})}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)}),this.noctuaAnnouncementService.onAnnouncementsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcements=e)}),this.noctuaAnnouncementService.onAnnouncementChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcement=e)}),this.isDev&&this.isBeta?this.betaText="beta dev":this.isDev?this.betaText="dev":this.isBeta&&(this.betaText="beta")}openApps(){this.noctuaCommonMenuService.selectLeftSidenav(a2.apps),this.noctuaCommonMenuService.openLeftSidenav()}openAnnouncements(){this.noctuaCommonMenuService.selectLeftSidenav(a2.announcement),this.noctuaCommonMenuService.openLeftSidenav()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(Uc.camForm),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(Uc.activityForm),this.noctuaCommonMenuService.openLeftDrawer()}logout(){var e;const i=this;(null===(e=i.artBasket)||void 0===e?void 0:e.cams.length)>0?this.noctuaSearchDialogService.openCamsUnsavedDialog(r=>{r&&(window.location.href=i.noctuaConfigService.logoutUrl)}):window.location.href=i.noctuaConfigService.logoutUrl}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(A1),de(Zr),de(ul),de(Aee),de(yr),de(U0),de(Co),de(Ts),de(k1),de(pl))},t.\u0275cmp=vn({type:t,selectors:[["noctua-toolbar"]],decls:47,vars:20,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",3,"ngClass"],["class","loading-bar","color","accent","mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","200px",1,"noc-br","h-100-p"],["fxLayout","row","fxLayoutAlign","start",1,"noc-logo","pl-8"],["href","http://geneontology.org/","target","_blank"],["src","assets/images/logos/go-logo.large.png"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","180px",1,"noc-logo","pl-0","h-100-p"],["mat-icon-button","","matTooltip","Open Workbenches Menu",1,"noc-br","noc-apps-button",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,""],["class","noc-beta-logo","fxLayout","column","fxLayoutAlign","center start ",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-br","pr-12"],["mat-icon-button","","href","https://github.com/geneontology","target","blank"],[3,"icon"],["mat-icon-button","","href","https://twitter.com/news4go","target","blank"],["mat-icon-button","","href","https://www.facebook.com/pages/Gene-Ontology/305908656519","target","blank"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-br","pl-12","pr-12"],["mat-button","",1,"",3,"matMenuTriggerFor"],["aboutMenu","matMenu"],["href","http://geneontology.org/docs/introduction-to-go-resource/","target","_blank","mat-menu-item",""],["href","http://geneontology.org/docs/gocam-overview/","target","_blank","mat-menu-item",""],["helpMenu","matMenu"],["href","http://wiki.geneontology.org/index.php/Noctua","target","_blank","mat-menu-item",""],["mat-button","","class","noc-name-button",3,"matMenuTriggerFor",4,"ngIf"],["userMenu","matMenu"],["mat-button","",1,"red-500-fg","w-100-p",3,"click"],["fxLayout","row","fxLayoutAlign","start",1,"noc-bl","noc-logo"],["href","https://www.alliancegenome.org","target","_blank"],["src","assets/images/logos/alliance-logo.png"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-announcement-header"],["fxFlex",""],["target","_banl",3,"href",4,"ngIf"],["mat-stroked-button","","matTooltip","Open Announcements",1,"noc-rounded-button","ml-8","noc-sm",3,"matTooltipPosition","matTooltipShowDelay","click"],["target","_banl",3,"href"],["color","accent","mode","indeterminate",1,"loading-bar"],["target","_blank",1,"noc-main-logo",3,"href"],["target"," _blank",1,"noc-sub-logo",3,"href"],["fxLayout","column","fxLayoutAlign","center start ",1,"noc-beta-logo"],[1,"noc-title"],["target","_blank",1,"",3,"href"],[1,"noc-description"],["href","http://noctua.geneontology.org/","target","_blank",1,""],["mat-button","",1,"noc-name-button",3,"matMenuTriggerFor"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-info"],[1,"noc-name","text-truncate"],[1,"noc-group-name","text-truncate"],["mat-button","",1,"noc-login-button",3,"href"]],template:function(e,i){if(1&e&&(H(0,"div",0),ke(1,oGe,10,8,"ng-container",1),H(2,"mat-toolbar",2),ke(3,rGe,1,0,"mat-progress-bar",3),H(4,"div",4)(5,"div",5)(6,"a",6),Qe(7,"img",7),G()()(),H(8,"div",8)(9,"button",9),et("click",function(){return i.openApps()}),H(10,"mat-icon",10),ue(11,"apps"),G()(),ke(12,aGe,5,2,"ng-container",1),ke(13,sGe,12,3,"div",11),G(),H(14,"div",12)(15,"div",13)(16,"a",14),Qe(17,"fa-icon",15),G(),H(18,"a",16),Qe(19,"fa-icon",15),G(),H(20,"a",17),Qe(21,"fa-icon",15),G()(),H(22,"div",18)(23,"a",19),ue(24," About "),G(),H(25,"mat-menu",null,20)(27,"a",21),ue(28," About The GO "),G(),H(29,"a",22),ue(30," About GO-CAM "),G()(),H(31,"a",19),ue(32," Help "),G(),H(33,"mat-menu",null,23)(35,"a",24),ue(36," Noctua User's Guide "),G()()(),H(37,"div",13),ke(38,cGe,9,3,"button",25),H(39,"mat-menu",10,26)(41,"a",27),et("click",function(){return i.logout()}),ue(42," Logout "),G()(),ke(43,lGe,3,1,"div",1),G()(),H(44,"div",28)(45,"a",29),Qe(46,"img",30),G()()()()),2&e){const o=Di(26),r=Di(34);W(1),J("ngIf",i.announcement),W(1),J("ngClass",x0(14,dGe,i.isDev,i.isBeta)),W(1),J("ngIf",i.showLoadingBar),W(6),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(3),J("ngIf",!i.isBeta&&!i.isDev),W(1),J("ngIf",i.isDev||i.isBeta),W(4),J("icon",_i(17,uGe)),W(2),J("icon",_i(18,hGe)),W(2),J("icon",_i(19,pGe)),W(2),J("matMenuTriggerFor",o),W(8),J("matMenuTriggerFor",r),W(7),J("ngIf",i.noctuaUserService.user),W(5),J("ngIf",!i.noctuaUserService.user)}},directives:[Oo,So,Yi,ko,Fo,Tl,Kp,ds,ac,G9,Ir,V9,ps,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{position:relative;display:flex;flex:0 0 auto;z-index:4;border-bottom:2px solid #3b5998}[_nghost-%COMP%] .noc-logo-filler[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-logo-filler[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-announcement[_ngcontent-%COMP%]{padding:0 10px 0 5px;height:50px;min-height:50px;max-height:50px;color:inherit;position:relative;padding:5px!important;margin-bottom:0!important}[_nghost-%COMP%] .noc-announcement[_ngcontent-%COMP%] noc-announcement-header[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:1000px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{padding:0 10px 0 5px;background-color:#fff;height:50px;min-height:50px;max-height:50px;color:inherit;position:relative}[_nghost-%COMP%] .mat-toolbar.noc-dev[_ngcontent-%COMP%]{background-color:#fad38a}[_nghost-%COMP%] .mat-toolbar.noc-beta[_ngcontent-%COMP%]{background-color:#fdcbbc}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;line-height:20px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#555}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:10px;font-style:italic}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row.noc-subtoolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;height:30px;line-height:30px;padding-left:8px;padding-right:8px;font-size:12px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-apps-button[_ngcontent-%COMP%]{margin-right:12px;border-radius:0!important;height:50px;min-height:50px;max-height:50px;width:50px;min-width:50px;max-width:50px;line-height:55px;color:#3b5998}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-apps-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:30px;width:30px;min-width:30px;max-width:30px;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;width:100%}[_nghost-%COMP%] .noc-announcement-button[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px;height:50px;min-height:50px;max-height:50px;font-size:28px;color:#3b599880}[_nghost-%COMP%] .noc-announcement-button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-announcement-button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:20px;height:20px;color:#fff;background-color:#2b463b;font-size:10px;text-align:center;line-height:20px}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;text-align:left;text-transform:initial;line-height:20px;font-size:12px}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%] .noc-info[_ngcontent-%COMP%]{margin-right:5px;max-width:150px;overflow:hidden}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%] .noc-info[_ngcontent-%COMP%] .noc-group-name[_ngcontent-%COMP%]{font-size:10px;color:#888}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%]{height:100%;padding:5px 0}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]{cursor:pointer;font-size:20px;text-decoration:none!important;text-align:left;color:#555}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]:hover{color:#000}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%]{margin-right:4px;font-weight:700}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{padding:0 12px}[_nghost-%COMP%] .noc-login-button[_ngcontent-%COMP%]{background-color:#52a16c;color:#fff}[_nghost-%COMP%] .noc-create-button[_ngcontent-%COMP%]{background-color:#3b5998b3!important}']}),t})();function gGe(t,n){1&t&&Qe(0,"router-outlet")}let mGe=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["noctua-content"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(e,i){1&e&&ke(0,gGe,1,0,"router-outlet",0),2&e&&J("ngIf",!0)},directives:[Yi,SD],styles:["content{position:relative;display:flex;z-index:1;flex:1 0 auto}content>*:not(router-outlet){display:flex;flex:1 0 auto;width:100%;min-width:100%}\n"],encapsulation:2}),t})(),NN=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["app-footer"]],decls:21,vars:0,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"footer"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","50%",1,"",2,"padding-left","0px"],[1,"mr-16"],["href","/",1,"",2,"color","white !important"],["href","http://help.geneontology.org","target","blank",1,"",2,"color","white !important"],["href","/docs/go-citation-policy/",1,"",2,"color","white !important"],["fxFlex",""],["fxFlex","40%",1,"",2,"text-align","right"],[1,""],["href"," http://www.obofoundry.org/","rel","external","title","Open Biological Ontologies","target","blank",1,"footer__link"],["href","https://projectreporter.nih.gov/project_info_details.cfm?aid=9209989","rel","external","title","National Human Genome Research Institute grant 2U41HG002273-17","target","blank",1,"footer__link"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),ue(4,"Home"),G()(),H(5,"div",2)(6,"a",4),ue(7,"Contact us"),G()(),H(8,"div",2)(9,"a",5),ue(10,"Citation and Terms of Use"),G()()(),Qe(11,"span",6),H(12,"div",7)(13,"small",8),ue(14," Copyright \xa9 1999-2020 Member of the "),H(15,"a",9),ue(16,"Open Biological Ontologies Foundry"),G(),ue(17," The Gene Ontology Consortium is supported by a P41 grant from the National Human Genome Research Institute (NHGRI) [grant "),H(18,"a",10),ue(19," U41 HG002273"),G(),ue(20,"] "),G()()())},directives:[Oo,So,ko],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%] .footer[_ngcontent-%COMP%]{background:#1A237E;background:linear-gradient(to right,#0E2A3B 0%,#34306B 100%);padding:20px;color:#fff}']}),t})(),_Ge=(()=>{class t{constructor(e){this._httpClient=e,this.date=new Date,this._unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(ru))},t.\u0275cmp=vn({type:t,selectors:[["quick-panel"]],decls:23,vars:12,consts:[["cdkFocusRegionStart","",1,"date"],["matSubheader","","cdkFocusInit",""],[1,"secondary-text","mat-display-1","mb-0","p-16"],[1,"mb-12"],["fxLayout","row","fxLayoutAlign","start start"],[1,"mat-subheading-1"],["cdkFocusRegionEnd",""],["matSubheader",""]],template:function(e,i){1&e&&(H(0,"mat-list",0)(1,"h3",1)(2,"span"),ue(3,"Today"),G()(),H(4,"div",2)(5,"div",3),ue(6),y0(7,"date"),G(),H(8,"div",4)(9,"span"),ue(10),y0(11,"date"),G(),H(12,"span",5),ue(13,"th"),G(),H(14,"span"),ue(15),y0(16,"date"),G()()()(),Qe(17,"mat-divider",6),H(18,"mat-list")(19,"h3",7)(20,"span"),ue(21,"Events"),G()()(),Qe(22,"mat-divider")),2&e&&(W(6),Nt(" ",my(7,3,i.date,"EEEE")," "),W(4),Nt(" ",my(11,6,i.date,"d"),""),W(5),Nt(" ",my(16,9,i.date,"MMMM"),""))},directives:[lSe,hSe,Oo,So,BX],pipes:[oU],styles:["quick-panel{display:flex;width:280px;min-width:280px;max-width:280px;z-index:100;flex-direction:column}quick-panel .mat-slide-toggle-content{flex:1}\n"],encapsulation:2}),t})();const CGe=["leftSidenav"];function vGe(t,n){1&t&&Qe(0,"noc-announcement-panel",10),2&t&&(Ae(),J("sidenav",Di(3)))}function bGe(t,n){1&t&&Qe(0,"noc-noctua-apps",10),2&t&&(Ae(),J("sidenav",Di(3)))}function xGe(t,n){1&t&&Qe(0,"app-footer",11)}function yGe(t,n){1&t&&Qe(0,"quick-panel")}let wGe=(()=>{class t{constructor(e,i){this._noctuaConfigService=e,this.noctuaCommonMenuService=i,this.LeftPanel=a2,this._unsubscribeAll=new N}ngOnInit(){this._noctuaConfigService.config.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.noctuaConfig=e}),this.noctuaCommonMenuService.setLeftSidenav(this.leftSidenav)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Hw),de(ul))},t.\u0275cmp=vn({type:t,selectors:[["layout-noctua"]],viewQuery:function(e,i){if(1&e&&_o(CGe,7),2&e){let o;fi(o=gi())&&(i.leftSidenav=o.first)}},decls:14,vars:5,consts:[["id","noctua-main"],[1,"h-100-p",3,"ngSwitch"],["leftSidenav",""],[3,"sidenav",4,"ngSwitchCase"],["id","noctua-main-content"],[1,"above"],["id","wrapper"],[1,"content-wrapper"],["id","footer",4,"ngIf"],[4,"ngIf"],[3,"sidenav"],["id","footer"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-sidenav-container")(2,"mat-sidenav",1,2),ke(4,vGe,1,1,"noc-announcement-panel",3),ke(5,bGe,1,1,"noc-noctua-apps",3),G(),H(6,"div",4),er(7),Qe(8,"noctua-toolbar",5),tr(),H(9,"div",6)(10,"div",7),Qe(11,"noctua-content"),G()()()(),ke(12,xGe,1,0,"app-footer",8),ke(13,yGe,1,0,"quick-panel",9),G()),2&e&&(W(2),J("ngSwitch",i.noctuaCommonMenuService.selectedLeftSidenav),W(2),J("ngSwitchCase",i.LeftPanel.announcement),W(1),J("ngSwitchCase",i.LeftPanel.apps),W(7),J("ngIf",!1),W(1),J("ngIf",!1))},directives:[dq,lq,bd,iu,mBe,TBe,fGe,mGe,Yi,NN,_Ge],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}vertical-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1}vertical-layout-1 #main.boxed{max-width:1200px;margin:0 auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}vertical-layout-1 #main>.container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0}vertical-layout-1 #main>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0}vertical-layout-1 #main>.container>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;transform:translateZ(0);overflow-x:hidden;overflow-y:auto}vertical-layout-1 #main>.container>.container>.container content.inner-scroll{flex:1 1 0%;min-height:0}vertical-layout-1 #main>.container>.container>.container content.inner-scroll>*:not(router-outlet){flex:1 1 0%}\n'],encapsulation:2}),t})(),MGe=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaSplashScreen=e,this._renderer=i,this._elementRef=o,this.noctuaConfigService=r,this.noctuaUserService=a,this.platform=l,this.document=u,(this.platform.ANDROID||this.platform.IOS)&&(this.document.body.className+=" is-mobile"),this._unsubscribeAll=new N}onFocus(e){this.noctuaUserService.getUser()}ngOnInit(){this.noctuaConfigService.config.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.noctuaConfig=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}addClass(e){this._renderer.addClass(this._elementRef.nativeElement,e)}removeClass(e){this._renderer.removeClass(this._elementRef.nativeElement,e)}}return t.\u0275fac=function(e){return new(e||t)(de(Eq),de(yl),de(Ti),de(Hw),de(yr),de(rc),de(vr))},t.\u0275cmp=vn({type:t,selectors:[["noctua-root"]],hostBindings:function(e,i){1&e&&et("focus",function(r){return i.onFocus(r)},!1,Tp)},decls:3,vars:0,template:function(e,i){1&e&&(Qe(0,"noctua-progress-bar"),er(1),Qe(2,"layout-noctua"),tr())},directives:[JVe,wGe],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}#noctua-main{display:flex;flex-direction:column;width:100%;height:100%}#noctua-main>.mat-sidenav-container{display:flex;flex:1;overflow:auto}#noctua-main>.mat-sidenav-container>.mat-sidenav-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content{display:flex;flex:1;overflow:hidden;height:100vh}@media (max-width: 959px){#noctua-main>.mat-sidenav-container>.mat-sidenav-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content{height:auto!important}}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content{display:flex;flex:1;flex-direction:column;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper{display:flex;position:relative;flex:1;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content{position:relative;display:flex;flex:1;flex-direction:row;width:100%;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content>*:not(router-outlet):not(.ps__scrollbar-x-rail):not(.ps__scrollbar-y-rail),#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content>*:not(router-outlet):not(.ps__scrollbar-x-rail):not(.ps__scrollbar-y-rail){display:flex;flex:1;width:100%;min-width:100%}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content>*.ng-animating .mat-tab-body,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content>*.ng-animating .mat-tab-body{height:100vh}#noctua-main[noctua-layout-mode=boxed]{max-width:1200px;margin:0 auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.active{background-color:#777577}#footer{background:#efefef;height:10%}\n'],encapsulation:2}),t})(),OGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,L0,du,zf,LM,D1]]}),t})(),SGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[xd,D1]]}),t})(),nv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[xd,D1]]}),t})(),PGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Uk,hM,_M,D1]]}),t})(),TGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[],imports:[[xd,du,L0,k6,qw,uI,D1]]}),t})(),EGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Uk,hM,_M,D1]]}),t})(),Yee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[xd,D1,SGe,nv,PGe,TGe,EGe,OGe]]}),t})(),AGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Yee],Yee]}),t})();var RN=function(t,n){return(RN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(t,n)};function Uee(t,n){function e(){this.constructor=t}RN(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var s2=function(){return s2=Object.assign||function(n){for(var e,i=1,o=arguments.length;i0)&&!(o=i.next()).done;)r.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}function zN(){for(var t=[],n=0;n2&&C3("box");var e=w_(n);return new g4(t,jO(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&C3("shallowBox"),vs.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&C3("array");var e=w_(n);return new b3(t,jO(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&C3("shallowArray"),vs.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&C3("map");var e=w_(n);return new eS(t,jO(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&C3("shallowMap"),vs.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&C3("set");var e=w_(n);return new nS(t,jO(e),e.name)},object:function(t,n,e){"string"==typeof arguments[1]&&C3("object");var i=w_(e);return bte({},t,n,i)},shallowObject:function(t,n){return"string"==typeof arguments[1]&&C3("shallowObject"),vs.object(t,{},{name:n,deep:!1})},ref:Jee,shallow:$Ge,deep:jN,struct:XGe},vs=function QGe(t,n,e){if("string"==typeof arguments[1])return jN.apply(null,arguments);if(JO(t))return t;var i=b_(t)?vs.object(t,n,e):Array.isArray(t)?vs.array(t,n):x_(t)?vs.map(t,n):ov(t)?vs.set(t,n):t;if(i!==t)return i;Ea(!1)};function C3(t){Ea("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(ete).forEach(function(t){return vs[t]=ete[t]});var WO=Qee(!1,function(t,n,e,i,o){!function VYe(t,n,e){var i=tR(t);e.name=i.name+"."+n,e.context=t,i.values[n]=new m4(e),Object.defineProperty(t,n,function GYe(t){return Dte[t]||(Dte[t]={configurable:fo.computedConfigurable,enumerable:!1,get:function(){return kte(this).read(this,t)},set:function(n){kte(this).write(this,t,n)}})}(n))}(t,n,s2({get:e.get,set:e.set},o[0]||{}))}),ZGe=WO({equals:y_.structural}),t1=function(n,e,i){if("string"==typeof e||null!==n&&"object"==typeof n&&1===arguments.length)return WO.apply(null,arguments);var o="object"==typeof e?e:{};return o.get=n,o.set="function"==typeof e?e:o.set,o.name=o.name||n.name||"",new m4(o)};t1.struct=ZGe;var bs=(()=>{return(t=bs||(bs={}))[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",bs;var t})(),th=(()=>{return(t=th||(th={}))[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",th;var t})(),qO=function t(n){this.cause=n};function cv(t){return t instanceof qO}function WN(t){switch(t.dependenciesState){case bs.UP_TO_DATE:return!1;case bs.NOT_TRACKING:case bs.STALE:return!0;case bs.POSSIBLY_STALE:for(var n=M_(),e=t.observing,i=e.length,o=0;o0;fo.computationDepth>0&&n&&Ea(!1),!fo.allowStateChanges&&(n||"strict"===fo.enforceActions)&&Ea(!1)}function tte(t,n,e){var i=ite(!0);rte(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++fo.runId;var r,o=fo.trackingDerivation;if(fo.trackingDerivation=t,!0===fo.disableErrorBoundaries)r=n.call(e);else try{r=n.call(e)}catch(a){r=new qO(a)}return fo.trackingDerivation=o,function KGe(t){for(var n=t.observing,e=t.observing=t.newObserving,i=bs.UP_TO_DATE,o=0,r=t.unboundDepsCount,a=0;ai&&(i=l.dependenciesState);for(e.length=o,t.newObserving=null,r=n.length;r--;)0===(l=n[r]).diffValue&<e(l,t),l.diffValue=0;for(;o--;){var l;1===(l=e[o]).diffValue&&(l.diffValue=0,aYe(l,t))}i!==bs.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}(t),ote(i),r}function qN(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)lte(n[e],t);t.dependenciesState=bs.NOT_TRACKING}function nte(t){var n=M_(),e=t();return p4(n),e}function M_(){var t=fo.trackingDerivation;return fo.trackingDerivation=null,t}function p4(t){fo.trackingDerivation=t}function ite(t){var n=fo.allowStateReads;return fo.allowStateReads=t,n}function ote(t){fo.allowStateReads=t}function rte(t){if(t.dependenciesState!==bs.UP_TO_DATE){t.dependenciesState=bs.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=bs.UP_TO_DATE}}var XO=0,JGe=1;function f4(t,n){var e=function(){return ate(t,n,this,arguments)};return e.isMobxAction=!0,e}function ate(t,n,e,i){var o=function eYe(t,n,e){var i=ud()&&!!t,o=0;if(i){o=Date.now();var r=e&&e.length||0,a=new Array(r);if(r>0)for(var l=0;l0&&!t.__mobxGlobals&&(QO=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new lv).version&&(QO=!1),QO?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new lv):(setTimeout(function(){Ea("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new lv));function aYe(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function lte(t,n){if(1===t.observers.length)t.observers.length=0,dte(t);else{var e=t.observers,i=t.observersIndexes,o=e.pop();if(o!==n){var r=i[n.__mapid]||0;r?i[o.__mapid]=r:delete i[o.__mapid],e[r]=o}delete i[n.__mapid]}}function dte(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,fo.pendingUnobservations.push(t))}function Vh(){fo.inBatch++}function Bh(){if(0==--fo.inBatch){gte();for(var t=fo.pendingUnobservations,n=0;n0&&dte(t),!1)}function hte(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===th.BREAK){var e=[];pte(function bYe(t,n){return xte(Wh(t,n))}(t),e,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+n.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(t instanceof m4?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+e.join("\n")+"\n*/\n ")()}}function pte(t,n,e){n.length>=1e3?n.push("(and many more)"):(n.push(""+new Array(e).join("\t")+t.name),t.dependencies&&t.dependencies.forEach(function(i){return pte(i,n,e+1)}))}var ZO=function(){function t(n,e,i,o){void 0===n&&(n="Reaction@"+c2()),void 0===o&&(o=!1),this.name=n,this.onInvalidate=e,this.errorHandler=i,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=bs.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+c2(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=th.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,fo.pendingReactions.push(this),gte())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Vh(),this._isScheduled=!1,WN(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&ud()&&_m({name:this.name,type:"scheduled-reaction"})}catch(n){this.reportExceptionInDerivation(n)}}Bh()}},t.prototype.track=function(n){Vh();var i,e=ud();e&&(i=Date.now(),Gh({name:this.name,type:"reaction"})),this._isRunning=!0;var o=tte(this,n,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&qN(this),cv(o)&&this.reportExceptionInDerivation(o.cause),e&&Yh({time:Date.now()-i}),Bh()},t.prototype.reportExceptionInDerivation=function(n){var e=this;if(this.errorHandler)this.errorHandler(n,this);else{if(fo.disableErrorBoundaries)throw n;var i="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";fo.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(i,n),ud()&&_m({type:"error",name:this.name,message:i,error:""+n}),fo.globalReactionErrorHandlers.forEach(function(o){return o(n,e)})}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Vh(),qN(this),Bh()))},t.prototype.getDisposer=function(){var n=this.dispose.bind(this);return n.$mobx=this,n},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(n){void 0===n&&(n=!1),function EYe(){for(var t=[],n=0;n0||fo.isRunningReactions||function(t){t()}(dYe)}function dYe(){fo.isRunningReactions=!0;for(var t=fo.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var e=t.splice(0),i=0,o=e.length;i",n):2===arguments.length&&"function"==typeof e?f4(n,e):1===arguments.length&&"string"==typeof n?mte(n):!0!==o?mte(e).apply(null,arguments):void(n[e]=f4(n.name||e,i.value))};function ZN(t,n,e){gm(t,n,f4(n,e.bind(t)))}function dv(t,n){void 0===n&&(n=FN);var o,e=n&&n.name||t.name||"Autorun@"+c2();if(n.scheduler||n.delay){var r=_te(n),a=!1;o=new ZO(e,function(){a||(a=!0,r(function(){a=!1,o.isDisposed||o.track(l)}))},n.onError,n.requiresObservable)}else o=new ZO(e,function(){this.track(l)},n.onError,n.requiresObservable);function l(){t(o)}return o.schedule(),o.getDisposer()}ns.bound=function mYe(t,n,e,i){return!0===i?(ZN(t,n,e.value),null):e?{configurable:!0,enumerable:!1,get:function(){return ZN(this,n,e.value||e.initializer.call(this)),this[n]},set:fYe}:{enumerable:!1,configurable:!0,set:function(o){ZN(this,n,o)},get:function(){}}};var _Ye=function(t){return t()};function _te(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:_Ye}function S_(t,n,e){void 0===e&&(e=FN),"boolean"==typeof e&&(e={fireImmediately:e});var f,i=e.name||"Reaction@"+c2(),o=ns(i,e.onError?function CYe(t,n){return function(){try{return n.apply(this,arguments)}catch(e){t.call(this,e)}}}(e.onError,n):n),r=!e.scheduler&&!e.delay,a=_te(e),l=!0,u=!1,w=e.compareStructural?y_.structural:e.equals||y_.default,T=new ZO(i,function(){l||r?U():u||(u=!0,a(U))},e.onError,e.requiresObservable);function U(){if(u=!1,!T.isDisposed){var ie=!1;T.track(function(){var se=t(T);ie=l||!w(f,se),f=se}),l&&e.fireImmediately&&o(f,T),!l&&!0===ie&&o(f,T),l&&(l=!1)}}return T.schedule(),T.getDisposer()}function Cte(t,n,e){return vte("onBecomeUnobserved",t,n,e)}function vte(t,n,e,i){var o="function"==typeof i?Wh(n,e):Wh(n),r="function"==typeof i?i:e,a=o[t];return"function"!=typeof a?Ea(!1):(o[t]=function(){a.call(this),r.call(this)},function(){o[t]=a})}function bte(t,n,e,i){var r=(i=w_(i)).defaultDecorator||(!1===i.deep?Jee:jN);mm(t),tR(t,i.name,r.enhancer),Vh();try{for(var o in n){var a=Object.getOwnPropertyDescriptor(n,o),u=(e&&o in e?e[o]:a.get?WO:r)(t,o,a,!0);u&&Object.defineProperty(t,o,u)}}finally{Bh()}return t}function xte(t){var n={name:t.name};return t.observing&&t.observing.length>0&&(n.dependencies=function kGe(t){var n=[];return t.forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}(t.observing).map(xte)),n}function Ote(t,n){if(null==t)return!1;if(void 0!==n){if(z2(t)){var e=t.$mobx;return e.values&&!!e.values[n]}return!1}return z2(t)||!!t.$mobx||UN(t)||KO(t)||O_(t)}function JO(t){return 1!==arguments.length&&Ea(!1),Ote(t)}function AYe(t){switch(t.length){case 0:return fo.trackingDerivation;case 1:return Wh(t[0]);case 2:return Wh(t[0],t[1])}}function v3(t,n){void 0===n&&(n=void 0),Vh();try{return t.apply(n)}finally{Bh()}}function j0(t){return void 0!==t.interceptors&&t.interceptors.length>0}function hv(t,n){var e=t.interceptors||(t.interceptors=[]);return e.push(n),HN(function(){var i=e.indexOf(n);-1!==i&&e.splice(i,1)})}function W0(t,n){var e=M_();try{var i=t.interceptors;if(i)for(var o=0,r=i.length;o0}function pv(t,n){var e=t.changeListeners||(t.changeListeners=[]);return e.push(n),HN(function(){var i=e.indexOf(n);-1!==i&&e.splice(i,1)})}function jh(t,n){var e=M_(),i=t.changeListeners;if(i){for(var o=0,r=(i=i.slice()).length;o0?n.map(this.dehancer):n},t.prototype.intercept=function(n){return hv(this,n)},t.prototype.observe=function(n,e){return void 0===e&&(e=!1),e&&n({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),pv(this,n)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(n){if("number"!=typeof n||n<0)throw new Error("[mobx.array] Out of range: "+n);var e=this.values.length;if(n!==e)if(n>e){for(var i=new Array(n-e),o=0;o0&&n+e+1>KN&&eR(n+e+1)},t.prototype.spliceWithArray=function(n,e,i){var o=this;$O(this.atom);var r=this.values.length;if(void 0===n?n=0:n>r?n=r:n<0&&(n=Math.max(0,r+n)),e=1===arguments.length?r-n:null==e?0:Math.max(0,Math.min(e,r-n)),void 0===i&&(i=BO),j0(this)){var a=W0(this,{object:this.array,type:"splice",index:n,removedCount:e,added:i});if(!a)return BO;e=a.removedCount,i=a.added}var l=(i=0===i.length?i:i.map(function(f){return o.enhancer(f,void 0)})).length-e;this.updateArrayLength(r,l);var u=this.spliceItemsIntoValues(n,e,i);return(0!==e||0!==i.length)&&this.notifyArraySplice(n,i,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(n,e,i){var o;if(i.length<1e4)return(o=this.values).splice.apply(o,zN([n,e],i));var r=this.values.slice(n,n+e);return this.values=this.values.slice(0,n).concat(i,this.values.slice(n+e)),r},t.prototype.notifyArrayChildUpdate=function(n,e,i){var o=!this.owned&&ud(),r=Uh(this),a=r||o?{object:this.array,type:"update",index:n,newValue:e,oldValue:i}:null;o&&Gh(s2({},a,{name:this.atom.name})),this.atom.reportChanged(),r&&jh(this,a),o&&Yh()},t.prototype.notifyArraySplice=function(n,e,i){var o=!this.owned&&ud(),r=Uh(this),a=r||o?{object:this.array,type:"splice",index:n,removed:i,added:e,removedCount:i.length,addedCount:e.length}:null;o&&Gh(s2({},a,{name:this.atom.name})),this.atom.reportChanged(),r&&jh(this,a),o&&Yh()},t}(),b3=function(t){function n(e,i,o,r){void 0===o&&(o="ObservableArray@"+c2()),void 0===r&&(r=!1);var a=t.call(this)||this,l=new Pte(o,i,a,r);if(iv(a,"$mobx",l),e&&e.length){var u=$N(!0);a.spliceWithArray(0,0,e),XN(u)}return kYe&&Object.defineProperty(l.array,"0",NYe),a}return Uee(n,t),n.prototype.intercept=function(e){return this.$mobx.intercept(e)},n.prototype.observe=function(e,i){return void 0===i&&(i=!1),this.$mobx.observe(e,i)},n.prototype.clear=function(){return this.splice(0)},n.prototype.concat=function(){for(var e=[],i=0;i-1&&(this.splice(i,1),!0)},n.prototype.move=function(e,i){function o(l){if(l<0)throw new Error("[mobx.array] Index out of bounds: "+l+" is negative");var u=this.$mobx.values.length;if(l>=u)throw new Error("[mobx.array] Index out of bounds: "+l+" is not smaller than "+u)}if(o.call(this,e),o.call(this,i),e!==i){var a,r=this.$mobx.values;a=e{class t{constructor(e,i){this.templateRef=e,this.viewContainer=i,this.templateBindings={}}ngOnInit(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.shouldDetach()&&this.view.detach(),this.autoDetect(this.view)}shouldDetach(){return this.treeMobxAutorun&&this.treeMobxAutorun.detach}autoDetect(e){this.dispose=dv(()=>e.detectChanges())}ngOnDestroy(){this.dispose&&this.dispose()}}return t.\u0275fac=function(e){return new(e||t)(de(Oc),de(oc))},t.\u0275dir=St({type:t,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),t})();const I1={TOGGLE_ACTIVE:(t,n,e)=>n&&n.toggleActivated(),TOGGLE_ACTIVE_MULTI:(t,n,e)=>n&&n.toggleActivated(!0),TOGGLE_SELECTED:(t,n,e)=>n&&n.toggleSelected(),ACTIVATE:(t,n,e)=>n.setIsActive(!0),DEACTIVATE:(t,n,e)=>n.setIsActive(!1),SELECT:(t,n,e)=>n.setIsSelected(!0),DESELECT:(t,n,e)=>n.setIsSelected(!1),FOCUS:(t,n,e)=>n.focus(),TOGGLE_EXPANDED:(t,n,e)=>n.hasChildren&&n.toggleExpanded(),EXPAND:(t,n,e)=>n.expand(),COLLAPSE:(t,n,e)=>n.collapse(),DRILL_DOWN:(t,n,e)=>t.focusDrillDown(),DRILL_UP:(t,n,e)=>t.focusDrillUp(),NEXT_NODE:(t,n,e)=>t.focusNextNode(),PREVIOUS_NODE:(t,n,e)=>t.focusPreviousNode(),MOVE_NODE:(t,n,e,{from:i,to:o})=>{e.ctrlKey?t.copyNode(i,o):t.moveNode(i,o)}},A_={mouse:{click:I1.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:I1.TOGGLE_EXPANDED,checkboxClick:I1.TOGGLE_SELECTED,drop:I1.MOVE_NODE},keys:{39:I1.DRILL_DOWN,37:I1.DRILL_UP,40:I1.NEXT_NODE,38:I1.PREVIOUS_NODE,32:I1.TOGGLE_ACTIVE,13:I1.TOGGLE_ACTIVE}};class Fte{constructor(n={}){var e,i,o,r,a,l,u,f,w,T,U,ie,se,Me,we,He,Be,me,ze,qe,rt,xt,Ut,jt,an,pn,yn,Kt,kn,ri,Rn,ni,Jn,Oi,qn,Wi,Ai,Bi,lo,nr,Nr,ro,ki,jn,yi,Ii,Vn,Ei,Zo,Sa,$a,Cr,gs,Ec,Nl,dh,Ac,Js,F3,R4;this.options=n,this.actionMapping={mouse:{click:null!==(r=null===(o=null===(i=null===(e=this.options)||void 0===e?void 0:e.actionMapping)||void 0===i?void 0:i.mouse)||void 0===o?void 0:o.click)&&void 0!==r?r:A_.mouse.click,dblClick:null!==(f=null===(u=null===(l=null===(a=this.options)||void 0===a?void 0:a.actionMapping)||void 0===l?void 0:l.mouse)||void 0===u?void 0:u.dblClick)&&void 0!==f?f:A_.mouse.dblClick,contextMenu:null!==(ie=null===(U=null===(T=null===(w=this.options)||void 0===w?void 0:w.actionMapping)||void 0===T?void 0:T.mouse)||void 0===U?void 0:U.contextMenu)&&void 0!==ie?ie:A_.mouse.contextMenu,expanderClick:null!==(He=null===(we=null===(Me=null===(se=this.options)||void 0===se?void 0:se.actionMapping)||void 0===Me?void 0:Me.mouse)||void 0===we?void 0:we.expanderClick)&&void 0!==He?He:A_.mouse.expanderClick,checkboxClick:null!==(qe=null===(ze=null===(me=null===(Be=this.options)||void 0===Be?void 0:Be.actionMapping)||void 0===me?void 0:me.mouse)||void 0===ze?void 0:ze.checkboxClick)&&void 0!==qe?qe:A_.mouse.checkboxClick,drop:null!==(jt=null===(Ut=null===(xt=null===(rt=this.options)||void 0===rt?void 0:rt.actionMapping)||void 0===xt?void 0:xt.mouse)||void 0===Ut?void 0:Ut.drop)&&void 0!==jt?jt:A_.mouse.drop,dragStart:null!==(Kt=null===(yn=null===(pn=null===(an=this.options)||void 0===an?void 0:an.actionMapping)||void 0===pn?void 0:pn.mouse)||void 0===yn?void 0:yn.dragStart)&&void 0!==Kt?Kt:void 0,drag:null!==(ni=null===(Rn=null===(ri=null===(kn=this.options)||void 0===kn?void 0:kn.actionMapping)||void 0===ri?void 0:ri.mouse)||void 0===Rn?void 0:Rn.drag)&&void 0!==ni?ni:void 0,dragEnd:null!==(Wi=null===(qn=null===(Oi=null===(Jn=this.options)||void 0===Jn?void 0:Jn.actionMapping)||void 0===Oi?void 0:Oi.mouse)||void 0===qn?void 0:qn.dragEnd)&&void 0!==Wi?Wi:void 0,dragOver:null!==(nr=null===(lo=null===(Bi=null===(Ai=this.options)||void 0===Ai?void 0:Ai.actionMapping)||void 0===Bi?void 0:Bi.mouse)||void 0===lo?void 0:lo.dragOver)&&void 0!==nr?nr:void 0,dragLeave:null!==(jn=null===(ki=null===(ro=null===(Nr=this.options)||void 0===Nr?void 0:Nr.actionMapping)||void 0===ro?void 0:ro.mouse)||void 0===ki?void 0:ki.dragLeave)&&void 0!==jn?jn:void 0,dragEnter:null!==(Ei=null===(Vn=null===(Ii=null===(yi=this.options)||void 0===yi?void 0:yi.actionMapping)||void 0===Ii?void 0:Ii.mouse)||void 0===Vn?void 0:Vn.dragEnter)&&void 0!==Ei?Ei:void 0,mouseOver:null!==(Cr=null===($a=null===(Sa=null===(Zo=this.options)||void 0===Zo?void 0:Zo.actionMapping)||void 0===Sa?void 0:Sa.mouse)||void 0===$a?void 0:$a.mouseOver)&&void 0!==Cr?Cr:void 0,mouseOut:null!==(dh=null===(Nl=null===(Ec=null===(gs=this.options)||void 0===gs?void 0:gs.actionMapping)||void 0===Ec?void 0:Ec.mouse)||void 0===Nl?void 0:Nl.mouseOut)&&void 0!==dh?dh:void 0},keys:{39:I1.DRILL_DOWN,37:I1.DRILL_UP,40:I1.NEXT_NODE,38:I1.PREVIOUS_NODE,32:I1.TOGGLE_ACTIVE,13:I1.TOGGLE_ACTIVE}},(null===(Js=null===(Ac=this.options)||void 0===Ac?void 0:Ac.actionMapping)||void 0===Js?void 0:Js.keys)&&(this.actionMapping.keys=Object.assign(Object.assign({},this.actionMapping.keys),this.options.actionMapping.keys)),n.rtl&&(this.actionMapping.keys[39]=(null===(F3=n.actionMapping)||void 0===F3?void 0:F3.keys[39])||I1.DRILL_UP,this.actionMapping.keys[37]=(null===(R4=n.actionMapping)||void 0===R4?void 0:R4.keys[37])||I1.DRILL_DOWN)}get hasChildrenField(){return this.options.hasChildrenField||"hasChildren"}get childrenField(){return this.options.childrenField||"children"}get displayField(){return this.options.displayField||"name"}get idField(){return this.options.idField||"id"}get isExpandedField(){return this.options.isExpandedField||"isExpanded"}get getChildren(){return this.options.getChildren}get levelPadding(){return this.options.levelPadding||0}get useVirtualScroll(){return this.options.useVirtualScroll}get animateExpand(){return this.options.animateExpand}get animateSpeed(){return this.options.animateSpeed||1}get animateAcceleration(){return this.options.animateAcceleration||1.2}get scrollOnActivate(){return void 0===this.options.scrollOnActivate||this.options.scrollOnActivate}get rtl(){return!!this.options.rtl}get rootId(){return this.options.rootId}get useCheckbox(){return this.options.useCheckbox}get useTriState(){return void 0===this.options.useTriState||this.options.useTriState}get scrollContainer(){return this.options.scrollContainer}get allowDragoverStyling(){return void 0===this.options.allowDragoverStyling||this.options.allowDragoverStyling}getNodeClone(n){if(this.options.getNodeClone)return this.options.getNodeClone(n);const e=Object.assign({},n.data);return e.id&&delete e.id,e}allowDrop(n,e,i){return this.options.allowDrop instanceof Function?this.options.allowDrop(n,e,i):void 0===this.options.allowDrop||this.options.allowDrop}allowDrag(n){return this.options.allowDrag instanceof Function?this.options.allowDrag(n):this.options.allowDrag}nodeClass(n){return this.options.nodeClass?this.options.nodeClass(n):""}nodeHeight(n){if(n.data.virtual)return 0;let e=this.options.nodeHeight||22;return"function"==typeof e&&(e=e(n)),e+(0===n.index?2:1)*this.dropSlotHeight}get dropSlotHeight(){return"number"==typeof this.options.dropSlotHeight?this.options.dropSlotHeight:2}}const Dl={toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",initialized:"initialized",updateData:"updateData",moveNode:"moveNode",copyNode:"copyNode",event:"event",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",stateChange:"stateChange"};var Ad=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},Fs=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let Hte=(()=>{class t{constructor(e,i,o,r){this.data=e,this.parent=i,this.treeModel=o,this.position=0,this.allowDrop=(a,l)=>this.options.allowDrop(a,{parent:this,index:0},l),this.allowDragoverStyling=()=>this.options.allowDragoverStyling,null==this.id&&(this.id=function wUe(){return Math.floor(1e13*Math.random())}()),this.index=r,this.getField("children")&&this._initChildren(),this.autoLoadChildren()}get isHidden(){return this.treeModel.isHidden(this)}get isExpanded(){return this.treeModel.isExpanded(this)}get isActive(){return this.treeModel.isActive(this)}get isFocused(){return this.treeModel.isNodeFocused(this)}get isSelected(){return this.isSelectable()?this.treeModel.isSelected(this):this.children.some(e=>e.isSelected)}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):this.children.every(e=>e.isAllSelected)}get isPartiallySelected(){return this.isSelected&&!this.isAllSelected}get level(){return this.parent?this.parent.level+1:0}get path(){return this.parent?[...this.parent.path,this.id]:[]}get elementRef(){throw"Element Ref is no longer supported since introducing virtual scroll\n\n You may use a template to obtain a reference to the element"}get originalNode(){return this._originalNode}get hasChildren(){return!!(this.getField("hasChildren")||this.children&&this.children.length>0)}get isCollapsed(){return!this.isExpanded}get isLeaf(){return!this.hasChildren}get isRoot(){return this.parent.data.virtual}get realParent(){return this.isRoot?null:this.parent}get options(){return this.treeModel.options}fireEvent(e){this.treeModel.fireEvent(e)}get displayField(){return this.getField("display")}get id(){return this.getField("id")}set id(e){this.setField("id",e)}getField(e){return this.data[this.options[`${e}Field`]]}setField(e,i){this.data[this.options[`${e}Field`]]=i}_findAdjacentSibling(e,i=!1){const o=this._getParentsChildren(i),r=o.indexOf(this);return o.length>r+e?o[r+e]:null}findNextSibling(e=!1){return this._findAdjacentSibling(1,e)}findPreviousSibling(e=!1){return this._findAdjacentSibling(-1,e)}getVisibleChildren(){return this.visibleChildren}get visibleChildren(){return(this.children||[]).filter(e=>!e.isHidden)}getFirstChild(e=!1){let i=e?this.visibleChildren:this.children;return null!=i&&i.length?i[0]:null}getLastChild(e=!1){let i=e?this.visibleChildren:this.children;return null!=i&&i.length?i[i.length-1]:null}findNextNode(e=!0,i=!1){return e&&this.isExpanded&&this.getFirstChild(i)||this.findNextSibling(i)||this.parent&&this.parent.findNextNode(!1,i)}findPreviousNode(e=!1){let i=this.findPreviousSibling(e);return i?i._getLastOpenDescendant(e):this.realParent}_getLastOpenDescendant(e=!1){const i=this.getLastChild(e);return this.isCollapsed||!i?this:i._getLastOpenDescendant(e)}_getParentsChildren(e=!1){return this.parent&&(e?this.parent.getVisibleChildren():this.parent.children)||[]}getIndexInParent(e=!1){return this._getParentsChildren(e).indexOf(this)}isDescendantOf(e){return this===e||this.parent&&this.parent.isDescendantOf(e)}getNodePadding(){return this.options.levelPadding*(this.level-1)+"px"}getClass(){return[this.options.nodeClass(this),`tree-node-level-${this.level}`].join(" ")}onDrop(e){this.mouseAction("drop",e.event,{from:e.element,to:{parent:this,index:0,dropOnNode:!0}})}allowDrag(){return this.options.allowDrag(this)}loadNodeChildren(){return this.options.getChildren?Promise.resolve(this.options.getChildren(this)).then(e=>{e&&(this.setField("children",e),this._initChildren(),this.options.useTriState&&this.treeModel.isSelected(this)&&this.setIsSelected(!0),this.children.forEach(i=>{i.getField("isExpanded")&&i.hasChildren&&i.expand()}))}).then(()=>{this.fireEvent({eventName:Dl.loadNodeChildren,node:this})}):Promise.resolve()}expand(){return this.isExpanded||this.toggleExpanded(),this}collapse(){return this.isExpanded&&this.toggleExpanded(),this}doForAll(e){Promise.resolve(e(this)).then(()=>{this.children&&this.children.forEach(i=>i.doForAll(e))})}expandAll(){this.doForAll(e=>e.expand())}collapseAll(){this.doForAll(e=>e.collapse())}ensureVisible(){return this.realParent&&(this.realParent.expand(),this.realParent.ensureVisible()),this}toggleExpanded(){return this.setIsExpanded(!this.isExpanded),this}setIsExpanded(e){return this.hasChildren&&this.treeModel.setExpandedNode(this,e),this}autoLoadChildren(){this.handler=S_(()=>this.isExpanded,e=>{!this.children&&this.hasChildren&&e&&this.loadNodeChildren()},{fireImmediately:!0})}dispose(){this.children&&this.children.forEach(e=>e.dispose()),this.handler&&this.handler(),this.parent=null,this.children=null}setIsActive(e,i=!1){return this.treeModel.setActiveNode(this,e,i),e&&this.focus(this.options.scrollOnActivate),this}isSelectable(){return this.isLeaf||!this.children||!this.options.useTriState}setIsSelected(e){return this.isSelectable()?this.treeModel.setSelectedNode(this,e):this.visibleChildren.forEach(i=>i.setIsSelected(e)),this}toggleSelected(){return this.setIsSelected(!this.isSelected),this}toggleActivated(e=!1){return this.setIsActive(!this.isActive,e),this}setActiveAndVisible(e=!1){return this.setIsActive(!0,e).ensureVisible(),setTimeout(this.scrollIntoView.bind(this)),this}scrollIntoView(e=!1){this.treeModel.virtualScroll.scrollIntoView(this,e)}focus(e=!0){let i=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(this),e&&this.scrollIntoView(),i&&this.fireEvent({eventName:Dl.blur,node:i}),this.fireEvent({eventName:Dl.focus,node:this}),this}blur(){let e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:Dl.blur,node:this}),this}setIsHidden(e){this.treeModel.setIsHidden(this,e)}hide(){this.setIsHidden(!0)}show(){this.setIsHidden(!1)}mouseAction(e,i,o=null){this.treeModel.setFocus(!0);const a=this.options.actionMapping.mouse[e];a&&a(this.treeModel,this,i,o)}getSelfHeight(){return this.options.nodeHeight(this)}_initChildren(){this.children=this.getField("children").map((e,i)=>new t(e,this,this.treeModel,i))}}return Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isHidden",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isExpanded",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isActive",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isFocused",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isSelected",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isAllSelected",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isPartiallySelected",null),Ad([vs,Fs("design:type",Array)],t.prototype,"children",void 0),Ad([vs,Fs("design:type",Number)],t.prototype,"index",void 0),Ad([vs,Fs("design:type",Object)],t.prototype,"position",void 0),Ad([vs,Fs("design:type",Number)],t.prototype,"height",void 0),Ad([t1,Fs("design:type",Number),Fs("design:paramtypes",[])],t.prototype,"level",null),Ad([t1,Fs("design:type",Array),Fs("design:paramtypes",[])],t.prototype,"path",null),Ad([t1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"visibleChildren",null),Ad([ns,Fs("design:type",Function),Fs("design:paramtypes",[Object]),Fs("design:returntype",void 0)],t.prototype,"setIsSelected",null),Ad([ns,Fs("design:type",Function),Fs("design:paramtypes",[]),Fs("design:returntype",void 0)],t.prototype,"_initChildren",null),t})();var xs=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},vo=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let is=(()=>{class t{constructor(){this.options=new Fte,this.eventNames=Object.keys(Dl),this.expandedNodeIds={},this.selectedLeafNodeIds={},this.activeNodeIds={},this.hiddenNodeIds={},this.focusedNodeId=null,this.firstUpdate=!0,this.subscriptions=[]}fireEvent(e){e.treeModel=this,this.events[e.eventName].emit(e),this.events.event.emit(e)}subscribe(e,i){const o=this.events[e].subscribe(i);this.subscriptions.push(o)}getFocusedNode(){return this.focusedNode}getActiveNode(){return this.activeNodes[0]}getActiveNodes(){return this.activeNodes}getVisibleRoots(){return this.virtualRoot.visibleChildren}getFirstRoot(e=!1){const i=e?this.getVisibleRoots():this.roots;return null!=i&&i.length?i[0]:null}getLastRoot(e=!1){const i=e?this.getVisibleRoots():this.roots;return null!=i&&i.length?i[i.length-1]:null}get isFocused(){return t.focusedTree===this}isNodeFocused(e){return this.focusedNode===e}isEmptyTree(){return this.roots&&0===this.roots.length}get focusedNode(){return this.focusedNodeId?this.getNodeById(this.focusedNodeId):null}get expandedNodes(){return Object.keys(this.expandedNodeIds).filter(i=>this.expandedNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get activeNodes(){return Object.keys(this.activeNodeIds).filter(i=>this.activeNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get hiddenNodes(){return Object.keys(this.hiddenNodeIds).filter(i=>this.hiddenNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get selectedLeafNodes(){return Object.keys(this.selectedLeafNodeIds).filter(i=>this.selectedLeafNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}getNodeByPath(e,i=null){if(!e)return null;if(i=i||this.virtualRoot,0===e.length)return i;if(!i.children)return null;const o=e.shift(),r=i.children.find(a=>a.id===o);return r?this.getNodeByPath(e,r):null}getNodeById(e){const i=e.toString();return this.getNodeBy(o=>o.id.toString()===i)}getNodeBy(e,i=null){if(!(i=i||this.virtualRoot).children)return null;const o=i.children.find(e);if(o)return o;for(let r of i.children){const a=this.getNodeBy(e,r);if(a)return a}}isExpanded(e){return this.expandedNodeIds[e.id]}isHidden(e){return this.hiddenNodeIds[e.id]}isActive(e){return this.activeNodeIds[e.id]}isSelected(e){return this.selectedLeafNodeIds[e.id]}ngOnDestroy(){this.dispose(),this.unsubscribeAll()}dispose(){this.virtualRoot&&this.virtualRoot.dispose()}unsubscribeAll(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions=[]}setData({nodes:e,options:i=null,events:o=null}){i&&(this.options=new Fte(i)),o&&(this.events=o),e&&(this.nodes=e),this.update()}update(){let e={id:this.options.rootId,virtual:!0,[this.options.childrenField]:this.nodes};this.dispose(),this.virtualRoot=new Hte(e,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:Dl.updateData})}setFocusedNode(e){this.focusedNodeId=e?e.id:null}setFocus(e){t.focusedTree=e?this:null}doForAll(e){this.roots.forEach(i=>i.doForAll(e))}focusNextNode(){let e=this.getFocusedNode(),i=e?e.findNextNode(!0,!0):this.getFirstRoot(!0);i&&i.focus()}focusPreviousNode(){let e=this.getFocusedNode(),i=e?e.findPreviousNode(!0):this.getLastRoot(!0);i&&i.focus()}focusDrillDown(){let e=this.getFocusedNode();if(e&&e.isCollapsed&&e.hasChildren)e.toggleExpanded();else{let i=e?e.getFirstChild(!0):this.getFirstRoot(!0);i&&i.focus()}}focusDrillUp(){let e=this.getFocusedNode();if(e)if(e.isExpanded)e.toggleExpanded();else{let i=e.realParent;i&&i.focus()}}setActiveNode(e,i,o=!1){o?this._setActiveNodeMulti(e,i):this._setActiveNodeSingle(e,i),i?(e.focus(this.options.scrollOnActivate),this.fireEvent({eventName:Dl.activate,node:e}),this.fireEvent({eventName:Dl.nodeActivate,node:e})):(this.fireEvent({eventName:Dl.deactivate,node:e}),this.fireEvent({eventName:Dl.nodeDeactivate,node:e}))}setSelectedNode(e,i){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[e.id]:i}),i?(e.focus(),this.fireEvent({eventName:Dl.select,node:e})):this.fireEvent({eventName:Dl.deselect,node:e})}setExpandedNode(e,i){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:i}),this.fireEvent({eventName:Dl.toggleExpanded,node:e,isExpanded:i})}expandAll(){this.roots.forEach(e=>e.expandAll())}collapseAll(){this.roots.forEach(e=>e.collapseAll())}setIsHidden(e,i){this.hiddenNodeIds=Object.assign({},this.hiddenNodeIds,{[e.id]:i})}setHiddenNodeIds(e){this.hiddenNodeIds=e.reduce((i,o)=>Object.assign(i,{[o]:!0}),{})}performKeyAction(e,i){const o=this.options.actionMapping.keys[i.keyCode];return!!o&&(i.preventDefault(),o(this,e,i),!0)}filterNodes(e,i=!0){let o;if(!e)return this.clearFilter();if(e&&"string"==typeof e.valueOf())o=a=>-1!==a.displayField.toLowerCase().indexOf(e.toLowerCase());else{if(!e||"function"!=typeof e)return console.error("Don't know what to do with filter",e),void console.error("Should be either a string or function");o=e}const r={};this.roots.forEach(a=>this._filterNode(r,a,o,i)),this.hiddenNodeIds=r,this.fireEvent({eventName:Dl.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:Dl.changeFilter})}moveNode(e,i){const o=e.getIndexInParent(),r=e.parent;if(!this.canMoveNode(e,i,o))return;const a=r.getField("children");i.parent.getField("children")||i.parent.setField("children",[]);const l=i.parent.getField("children"),u=a.splice(o,1)[0];let f=r===i.parent&&i.index>o?i.index-1:i.index;l.splice(f,0,u),r.treeModel.update(),i.parent.treeModel!==r.treeModel&&i.parent.treeModel.update(),this.fireEvent({eventName:Dl.moveNode,node:u,to:{parent:i.parent.data,index:f},from:{parent:r.data,index:o}})}copyNode(e,i){const o=e.getIndexInParent();if(!this.canMoveNode(e,i,o))return;i.parent.getField("children")||i.parent.setField("children",[]);const r=i.parent.getField("children"),a=this.options.getNodeClone(e);r.splice(i.index,0,a),e.treeModel.update(),i.parent.treeModel!==e.treeModel&&i.parent.treeModel.update(),this.fireEvent({eventName:Dl.copyNode,node:a,to:{parent:i.parent.data,index:i.index}})}getState(){return{expandedNodeIds:this.expandedNodeIds,selectedLeafNodeIds:this.selectedLeafNodeIds,activeNodeIds:this.activeNodeIds,hiddenNodeIds:this.hiddenNodeIds,focusedNodeId:this.focusedNodeId}}setState(e){!e||Object.assign(this,{expandedNodeIds:e.expandedNodeIds||{},selectedLeafNodeIds:e.selectedLeafNodeIds||{},activeNodeIds:e.activeNodeIds||{},hiddenNodeIds:e.hiddenNodeIds||{},focusedNodeId:e.focusedNodeId})}subscribeToState(e){dv(()=>e(this.getState()))}canMoveNode(e,i,o){return o||e.getIndexInParent(),(e.parent!==i.parent||o!==i.index)&&!i.parent.isDescendantOf(e)}calculateExpandedNodes(){this._calculateExpandedNodes()}_filterNode(e,i,o,r){let a=o(i);return i.children&&i.children.forEach(l=>{this._filterNode(e,l,o,r)&&(a=!0)}),a||(e[i.id]=!0),r&&a&&i.ensureVisible(),a}_calculateExpandedNodes(e=null){(e=e||this.virtualRoot).data[this.options.isExpandedField]&&(this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:!0})),e.children&&e.children.forEach(i=>this._calculateExpandedNodes(i))}_setActiveNodeSingle(e,i){this.activeNodes.filter(o=>o!==e).forEach(o=>{this.fireEvent({eventName:Dl.deactivate,node:o}),this.fireEvent({eventName:Dl.nodeDeactivate,node:o})}),this.activeNodeIds=i?{[e.id]:!0}:{}}_setActiveNodeMulti(e,i){this.activeNodeIds=Object.assign({},this.activeNodeIds,{[e.id]:i})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t.focusedTree=null,t})();xs([vs,vo("design:type",Array)],is.prototype,"roots",void 0),xs([vs,vo("design:type",Object)],is.prototype,"expandedNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"selectedLeafNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"activeNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"hiddenNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"focusedNodeId",void 0),xs([vs,vo("design:type",Hte)],is.prototype,"virtualRoot",void 0),xs([t1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"focusedNode",null),xs([t1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"expandedNodes",null),xs([t1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"activeNodes",null),xs([t1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"hiddenNodes",null),xs([t1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"selectedLeafNodes",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setData",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"update",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setFocusedNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setFocus",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"doForAll",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusNextNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusPreviousNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusDrillDown",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusDrillUp",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object,Object]),vo("design:returntype",void 0)],is.prototype,"setActiveNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"setSelectedNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"setExpandedNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"expandAll",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"collapseAll",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"setIsHidden",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setHiddenNodeIds",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"filterNodes",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"clearFilter",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"moveNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"copyNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setState",null);let oR=(()=>{class t{constructor(){this._draggedElement=null}set(e){this._draggedElement=e}get(){return this._draggedElement}isDragging(){return!!this.get()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({factory:function(){return new t},token:t,providedIn:"root"}),t})();var y3=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},f1=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let qh=(()=>{class t{constructor(e){this.treeModel=e,this.yBlocks=0,this.x=0,this.viewportHeight=null,this.viewport=null,e.virtualScroll=this,this._dispose=[dv(()=>this.fixScroll())]}get y(){return 150*this.yBlocks}get totalHeight(){return this.treeModel.virtualRoot?this.treeModel.virtualRoot.height:0}fireEvent(e){this.treeModel.fireEvent(e)}init(){const e=this.recalcPositions.bind(this);e(),this._dispose=[...this._dispose,S_(()=>this.treeModel.roots,e),S_(()=>this.treeModel.expandedNodeIds,e),S_(()=>this.treeModel.hiddenNodeIds,e)],this.treeModel.subscribe(Dl.loadNodeChildren,e)}isEnabled(){return this.treeModel.options.useVirtualScroll}_setYBlocks(e){this.yBlocks=e}recalcPositions(){this.treeModel.virtualRoot.height=this._getPositionAfter(this.treeModel.getVisibleRoots(),0)}_getPositionAfter(e,i){let o=i;return e.forEach(r=>{r.position=o,o=this._getPositionAfterNode(r,o)}),o}_getPositionAfterNode(e,i){let o=e.getSelfHeight()+i;return e.children&&e.isExpanded&&(o=this._getPositionAfter(e.visibleChildren,o)),e.height=o-i,o}clear(){this._dispose.forEach(e=>e())}setViewport(e){Object.assign(this,{viewport:e,x:e.scrollLeft,yBlocks:Math.round(e.scrollTop/150),viewportHeight:e.getBoundingClientRect?e.getBoundingClientRect().height:0})}scrollIntoView(e,i,o=!0){if(e.options.scrollContainer){const r=e.options.scrollContainer,a=r.getBoundingClientRect().height,l=r.getBoundingClientRect().top,u=this.viewport.getBoundingClientRect().top+e.position-l;(i||ur.scrollTop+a)&&(r.scrollTop=o?u-a/2:u)}else(i||e.positionthis.y+this.viewportHeight)&&this.viewport&&(this.viewport.scrollTop=o?e.position-this.viewportHeight/2:e.position,this._setYBlocks(Math.floor(this.viewport.scrollTop/150)))}getViewportNodes(e){if(!e)return[];const i=e.filter(u=>!u.isHidden);if(!this.isEnabled())return i;if(!this.viewportHeight||!i.length)return[];const o=i.slice(-1)[0];if(!o.height&&0===o.position)return[];const r=Bte(i,u=>u.position+500>this.y||u.position+u.height>this.y),a=Bte(i,u=>u.position-500>this.y+this.viewportHeight,r),l=[];for(let u=r;u<=a;u++)l.push(i[u]);return l}fixScroll(){const e=Math.max(0,this.totalHeight-this.viewportHeight);this.y<0&&this._setYBlocks(0),this.y>e&&this._setYBlocks(e/150)}}return t.\u0275fac=function(e){return new(e||t)(qt(is))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function Bte(t,n,e=0){let i=e,o=t.length-1;for(;i!==o;){let r=Math.floor((i+o)/2);n(t[r])?o=r:i=i===r?o:r}return i}y3([vs,f1("design:type",Object)],qh.prototype,"yBlocks",void 0),y3([vs,f1("design:type",Object)],qh.prototype,"x",void 0),y3([vs,f1("design:type",Object)],qh.prototype,"viewportHeight",void 0),y3([t1,f1("design:type",Object),f1("design:paramtypes",[])],qh.prototype,"y",null),y3([t1,f1("design:type",Object),f1("design:paramtypes",[])],qh.prototype,"totalHeight",null),y3([ns,f1("design:type",Function),f1("design:paramtypes",[Object]),f1("design:returntype",void 0)],qh.prototype,"_setYBlocks",null),y3([ns,f1("design:type",Function),f1("design:paramtypes",[]),f1("design:returntype",void 0)],qh.prototype,"recalcPositions",null),y3([ns,f1("design:type",Function),f1("design:paramtypes",[Object]),f1("design:returntype",void 0)],qh.prototype,"setViewport",null),y3([ns,f1("design:type",Function),f1("design:paramtypes",[Object,Object,Object]),f1("design:returntype",void 0)],qh.prototype,"scrollIntoView",null);let MUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-loading-component"]],inputs:{template:"template",node:"node"},decls:2,vars:5,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ke(0,$Ye,2,0,"span",0),Fc(1,1)),2&e&&(J("ngIf",!i.template),W(1),J("ngTemplateOutlet",i.template)("ngTemplateOutletContext",wo(3,XYe,i.node)))},directives:[Yi,Sg],encapsulation:2}),t})(),OUe=(()=>{class t{constructor(e,i){this.elementRef=e,this.virtualScroll=i,this.setViewport=this.throttle(()=>{this.virtualScroll.setViewport(this.elementRef.nativeElement)},17),this.scrollEventHandler=this.setViewport.bind(this)}ngOnInit(){this.virtualScroll.init()}ngAfterViewInit(){setTimeout(()=>{this.setViewport(),this.virtualScroll.fireEvent({eventName:Dl.initialized})}),this.elementRef.nativeElement.addEventListener("scroll",this.scrollEventHandler)}ngOnDestroy(){this.virtualScroll.clear(),this.elementRef.nativeElement.removeEventListener("scroll",this.scrollEventHandler)}getTotalHeight(){return this.virtualScroll.isEnabled()&&this.virtualScroll.totalHeight+"px"||"auto"}throttle(e,i){let o=0;return function(){let r=Date.now();r-o>=i&&(e(),o=r)}}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(qh))},t.\u0275cmp=vn({type:t,selectors:[["tree-viewport"]],features:[mo([qh])],ngContentSelectors:ZYe,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(e,i){1&e&&(ls(),ke(0,QYe,3,2,"ng-container",0)),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_],encapsulation:2}),t})(),rR=(()=>{class t{constructor(e,i){this.treeModel=e,this.treeDraggedElement=i,e.eventNames.forEach(o=>this[o]=new In),e.subscribeToState(o=>this.stateChange.emit(o))}set nodes(e){}set options(e){}set focused(e){this.treeModel.setFocus(e)}set state(e){this.treeModel.setState(e)}onKeydown(e){if(!this.treeModel.isFocused||["input","textarea"].includes(document.activeElement.tagName.toLowerCase()))return;const i=this.treeModel.getFocusedNode();this.treeModel.performKeyAction(i,e)}onMousedown(e){(function i(o,r){return!o||o.localName!==r&&i(o.parentElement,r)})(e.target,"tree-root")&&this.treeModel.setFocus(!1)}ngOnChanges(e){(e.options||e.nodes)&&this.treeModel.setData({options:e.options&&e.options.currentValue,nodes:e.nodes&&e.nodes.currentValue,events:this.pick(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}pick(e,i){return i.reduce((o,r)=>(e&&e.hasOwnProperty(r)&&(o[r]=e[r]),o),{})}}return t.\u0275fac=function(e){return new(e||t)(de(is),de(oR))},t.\u0275cmp=vn({type:t,selectors:[["Tree"],["tree-root"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,KYe,5),mr(o,JYe,5),mr(o,eUe,5),mr(o,tUe,5)),2&e){let r;fi(r=gi())&&(i.loadingTemplate=r.first),fi(r=gi())&&(i.treeNodeTemplate=r.first),fi(r=gi())&&(i.treeNodeWrapperTemplate=r.first),fi(r=gi())&&(i.treeNodeFullTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&_o(nUe,5),2&e){let o;fi(o=gi())&&(i.viewportComponent=o.first)}},hostBindings:function(e,i){1&e&&et("keydown",function(r){return i.onKeydown(r)},!1,D5)("mousedown",function(r){return i.onMousedown(r)},!1,D5)},inputs:{nodes:"nodes",options:"options",focused:"focused",state:"state"},outputs:{toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",updateData:"updateData",initialized:"initialized",moveNode:"moveNode",copyNode:"copyNode",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",event:"event",stateChange:"stateChange"},features:[mo([is]),Yo],decls:5,vars:6,consts:[["viewport",""],[1,"angular-tree-component"],[3,"nodes","treeModel","templates",4,"ngIf"],["class","empty-tree-drop-slot",3,"dropIndex","node",4,"ngIf"],[3,"nodes","treeModel","templates"],[1,"empty-tree-drop-slot",3,"dropIndex","node"]],template:function(e,i){1&e&&(H(0,"tree-viewport",null,0)(2,"div",1),ke(3,oUe,1,8,"tree-node-collection",2),ke(4,rUe,1,2,"tree-node-drop-slot",3),G()()),2&e&&(W(2),po("node-dragging",i.treeDraggedElement.isDragging())("angular-tree-component-rtl",i.treeModel.options.rtl),W(1),J("ngIf",i.treeModel.roots),W(1),J("ngIf",i.treeModel.isEmptyTree()))},directives:function(){return[OUe,Yi,L_,Gte]},encapsulation:2}),t})(),SUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["TreeNode"],["tree-node"]],inputs:{node:"node",index:"index",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"class","tree-node","tree-node-expanded","tree-node-collapsed","tree-node-leaf","tree-node-active","tree-node-focused",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"dropIndex","node",4,"ngIf"],[3,"node","index","templates"],[3,"node","templates"],[3,"dropIndex","node"]],template:function(e,i){1&e&&ke(0,cUe,3,8,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:function(){return[E_,Yi,Gte,NUe,EUe,Sg]},encapsulation:2}),t})(),PUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-content"]],inputs:{node:"node",index:"index",template:"template"},decls:2,vars:7,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ke(0,lUe,2,1,"span",0),Fc(1,1)),2&e&&(J("ngIf",!i.template),W(1),J("ngTemplateOutlet",i.template)("ngTemplateOutletContext",M2(3,dUe,i.node,i.node,i.index)))},directives:[Yi,Sg],encapsulation:2}),t})(),Gte=(()=>{class t{onDrop(e){this.node.mouseAction("drop",e.event,{from:e.element,to:{parent:this.node,index:this.dropIndex}})}allowDrop(e,i){return this.node.options.allowDrop(e,{parent:this.node,index:this.dropIndex},i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["TreeNodeDropSlot"],["tree-node-drop-slot"]],inputs:{node:"node",dropIndex:"dropIndex"},decls:1,vars:2,consts:[[1,"node-drop-slot",3,"treeAllowDrop","allowDragoverStyling","treeDrop"]],template:function(e,i){1&e&&(H(0,"div",0),et("treeDrop",function(r){return i.onDrop(r)}),G()),2&e&&J("treeAllowDrop",i.allowDrop.bind(i))("allowDragoverStyling",!0)},directives:function(){return[fv]},encapsulation:2}),t})(),TUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-expander"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["class","toggle-children-wrapper",3,"toggle-children-wrapper-expanded","toggle-children-wrapper-collapsed","click",4,"ngIf"],["class","toggle-children-placeholder",4,"ngIf"],[1,"toggle-children-wrapper",3,"click"],[1,"toggle-children"],[1,"toggle-children-placeholder"]],template:function(e,i){1&e&&ke(0,pUe,3,2,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_,Yi],encapsulation:2}),t})(),EUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-children"]],inputs:{node:"node",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"tree-children","tree-children-no-padding",4,"treeAnimateOpen","treeAnimateOpenSpeed","treeAnimateOpenAcceleration","treeAnimateOpenEnabled"],[3,"nodes","templates","treeModel",4,"ngIf"],["class","tree-node-loading",3,"padding-left","template","node",4,"ngIf"],[3,"nodes","templates","treeModel"],[1,"tree-node-loading",3,"template","node"]],template:function(e,i){1&e&&ke(0,_Ue,2,4,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:function(){return[E_,zUe,Yi,L_,MUe]},encapsulation:2}),t})();const LUe=Object.assign(function AUe(...t){return ns(...t)},ns),kUe=Object.assign(function DUe(...t){return t1(...t)},t1),Yte=Object.assign(function IUe(...t){return vs(...t)},vs);var oS=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},Cm=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let L_=(()=>{class t{constructor(){this._dispose=[]}get nodes(){return this._nodes}set nodes(e){this.setNodes(e)}get marginTop(){const e=this.viewportNodes&&this.viewportNodes.length&&this.viewportNodes[0];return(e&&e.parent?e.position-e.parent.position-e.parent.getSelfHeight():0)+"px"}setNodes(e){this._nodes=e}ngOnInit(){this.virtualScroll=this.treeModel.virtualScroll,this._dispose=[S_(()=>this.virtualScroll.getViewportNodes(this.nodes).map(e=>e.index),e=>{this.viewportNodes=e.map(i=>this.nodes[i])},{compareStructural:!0,fireImmediately:!0}),S_(()=>this.nodes,e=>{this.viewportNodes=this.virtualScroll.getViewportNodes(e)})]}ngOnDestroy(){this._dispose.forEach(e=>e())}trackNode(e,i){return i.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-collection"]],inputs:{nodes:"nodes",treeModel:"treeModel",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"node","index","templates",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","index","templates"]],template:function(e,i){1&e&&ke(0,vUe,3,4,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_,$o,SUe],encapsulation:2}),t})();oS([Yte,Cm("design:type",Object)],L_.prototype,"_nodes",void 0),oS([Yte,Cm("design:type",Array)],L_.prototype,"viewportNodes",void 0),oS([kUe,Cm("design:type",String),Cm("design:paramtypes",[])],L_.prototype,"marginTop",null),oS([LUe,Cm("design:type",Function),Cm("design:paramtypes",[Object]),Cm("design:returntype",void 0)],L_.prototype,"setNodes",null);let NUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-wrapper"]],inputs:{node:"node",index:"index",templates:"templates"},decls:2,vars:8,consts:[["class","node-wrapper",3,"padding-left",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node-wrapper"],[3,"node",4,"ngIf"],[3,"node"],[1,"node-content-wrapper",3,"treeAllowDrop","allowDragoverStyling","treeDrag","treeDragEnabled","click","dblclick","mouseover","mouseout","contextmenu","treeDrop","treeDropDragOver","treeDropDragLeave","treeDropDragEnter"],[3,"node","index","template"]],template:function(e,i){1&e&&(ke(0,xUe,5,15,"div",0),Fc(1,1)),2&e&&(J("ngIf",!i.templates.treeNodeWrapperTemplate),W(1),J("ngTemplateOutlet",i.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",gy(3,zte,i.node,i.node,i.index,i.templates)))},directives:function(){return[Yi,RUe,TUe,rS,fv,PUe,Sg]},encapsulation:2}),t})(),RUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-checkbox"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["type","checkbox",1,"tree-node-checkbox",3,"checked","indeterminate","click"]],template:function(e,i){1&e&&ke(0,yUe,2,2,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_],encapsulation:2}),t})();const Ute="is-dragging-over",jte="is-dragging-over-disabled";let fv=(()=>{class t{constructor(e,i,o,r){this.el=e,this.renderer=i,this.treeDraggedElement=o,this.ngZone=r,this.allowDragoverStyling=!0,this.onDropCallback=new In,this.onDragOverCallback=new In,this.onDragLeaveCallback=new In,this.onDragEnterCallback=new In,this._allowDrop=(a,l)=>!0,this.dragOverEventHandler=this.onDragOver.bind(this),this.dragEnterEventHandler=this.onDragEnter.bind(this),this.dragLeaveEventHandler=this.onDragLeave.bind(this)}set treeAllowDrop(e){this._allowDrop=e instanceof Function?e:(i,o)=>e}allowDrop(e){return this._allowDrop(this.treeDraggedElement.get(),e)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("dragover",this.dragOverEventHandler),e.addEventListener("dragenter",this.dragEnterEventHandler),e.addEventListener("dragleave",this.dragLeaveEventHandler)})}ngOnDestroy(){let e=this.el.nativeElement;e.removeEventListener("dragover",this.dragOverEventHandler),e.removeEventListener("dragenter",this.dragEnterEventHandler),e.removeEventListener("dragleave",this.dragLeaveEventHandler)}onDragOver(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.addDisabledClass():void 0;this.onDragOverCallback.emit({event:e,element:this.treeDraggedElement.get()}),e.preventDefault(),this.allowDragoverStyling&&this.addClass()}onDragEnter(e){!this.allowDrop(e)||(e.preventDefault(),this.onDragEnterCallback.emit({event:e,element:this.treeDraggedElement.get()}))}onDragLeave(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.removeDisabledClass():void 0;this.onDragLeaveCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass()}onDrop(e){!this.allowDrop(e)||(e.preventDefault(),this.onDropCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass(),this.treeDraggedElement.set(null))}addClass(){this.renderer.addClass(this.el.nativeElement,Ute)}removeClass(){this.renderer.removeClass(this.el.nativeElement,Ute)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,jte)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,jte)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(yl),de(oR),de(oo))},t.\u0275dir=St({type:t,selectors:[["","treeDrop",""]],hostBindings:function(e,i){1&e&&et("drop",function(r){return i.onDrop(r)})},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),t})(),rS=(()=>{class t{constructor(e,i,o,r){this.el=e,this.renderer=i,this.treeDraggedElement=o,this.ngZone=r,this.dragEventHandler=this.onDrag.bind(this)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("drag",this.dragEventHandler)})}ngDoCheck(){this.renderer.setAttribute(this.el.nativeElement,"draggable",this.treeDragEnabled?"true":"false")}ngOnDestroy(){this.el.nativeElement.removeEventListener("drag",this.dragEventHandler)}onDragStart(e){e.dataTransfer.setData("text",e.target.id),this.treeDraggedElement.set(this.draggedElement),this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragStart",e)}onDrag(e){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("drag",e)}onDragEnd(){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragEnd"),this.treeDraggedElement.set(null)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(yl),de(oR),de(oo))},t.\u0275dir=St({type:t,selectors:[["","treeDrag",""]],hostBindings:function(e,i){1&e&&et("dragstart",function(r){return i.onDragStart(r)})("dragend",function(){return i.onDragEnd()})},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),t})(),zUe=(()=>{class t{constructor(e,i,o){this.renderer=e,this.templateRef=i,this.viewContainerRef=o}set isOpen(e){e?(this._show(),this.isEnabled&&!1===this._isOpen&&this._animateOpen()):this.isEnabled?this._animateClose():this._hide(),this._isOpen=!!e}_show(){this.innerElement||(this.innerElement=this.viewContainerRef.createEmbeddedView(this.templateRef).rootNodes[0])}_hide(){this.viewContainerRef.clear(),this.innerElement=null}_animateOpen(){let e=this.animateSpeed,i=this.animateAcceleration,o=0;this.renderer.setStyle(this.innerElement,"max-height","0"),setTimeout(()=>{const r=setInterval(()=>{if(!this._isOpen||!this.innerElement)return clearInterval(r);o+=e;const a=Math.round(o);this.renderer.setStyle(this.innerElement,"max-height",`${a}px`);const l=this.innerElement.getBoundingClientRect?this.innerElement.getBoundingClientRect().height:0;e*=i,i*=1.005,l{if(this._isOpen||!this.innerElement)return clearInterval(r);o-=e,this.renderer.setStyle(this.innerElement,"max-height",`${o}px`),e*=i,i*=1.005,o<=0&&(this.viewContainerRef.clear(),this.innerElement=null,clearInterval(r))},17)}}return t.\u0275fac=function(e){return new(e||t)(de(yl),de(Oc),de(oc))},t.\u0275dir=St({type:t,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),t})(),aS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[],imports:[[va]]}),t})();function FUe(t,n){if(1&t){const e=Ln();H(0,"div",19)(1,"button",20),et("click",function(){Dt(e);const o=Ae(2);return o.openActivityForm(o.ActivityType.default)}),H(2,"mat-icon",21),ue(3," add "),G(),ue(4," Create Activity "),G(),H(5,"button",22)(6,"mat-icon",21),ue(7,"arrow_drop_down "),G()(),H(8,"mat-menu",23,24)(10,"a",25),et("click",function(){Dt(e);const o=Ae(2);return o.openActivityForm(o.ActivityType.bpOnly)}),ue(11," Create New BP Annotation "),G(),H(12,"a",25),et("click",function(){Dt(e);const o=Ae(2);return o.openActivityForm(o.ActivityType.ccOnly)}),ue(13," Create New CC Annotation "),G()()()}if(2&t){const e=Di(9);W(5),J("matMenuTriggerFor",e)}}const qte=function(){return["fas","pen"]};function HUe(t,n){if(1&t){const e=Ln();H(0,"div",26)(1,"div",27)(2,"strong"),ue(3,"Title: "),G(),ue(4),G(),H(5,"div",28),et("click",function(){return Dt(e),Ae(2).openCamForm()}),Qe(6,"fa-icon",6),G()()}if(2&t){const e=Ae(2);W(4),Nt("",e.cam.title," "),W(2),J("icon",_i(2,qte))}}const VUe=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},BUe=function(){return["fas","tasks"]};function GUe(t,n){if(1&t){const e=Ln();H(0,"div",29)(1,"mat-chip",30)(2,"div",31),Qe(3,"fa-icon",6),G(),H(4,"div",32),ue(5),G(),H(6,"div",28),et("click",function(){return Dt(e),Ae(2).openCamForm()}),Qe(7,"fa-icon",6),G()()()}if(2&t){const e=Ae(2);W(1),J("ngClass",M2(4,VUe,"development"===e.cam.state.name,"production"===e.cam.state.name,"review"===e.cam.state.name)),W(2),J("icon",_i(8,BUe)),W(2),Nt(" ",e.cam.state.label," "),W(2),J("icon",_i(9,qte))}}const YUe=function(){return["fas","calendar-day"]};function UUe(t,n){if(1&t){const e=Ln();H(0,"div",33)(1,"mat-chip",34),et("click",function(){return Dt(e),Ae(2).openCamForm()}),H(2,"div",31),Qe(3,"fa-icon",6),G(),H(4,"div",32),ue(5),G()()()}if(2&t){const e=Ae(2);W(3),J("icon",_i(2,YUe)),W(2),Nt(" ",e.cam.date," ")}}const jUe=function(){return["fas","user"]};function WUe(t,n){if(1&t){const e=Ln();H(0,"mat-chip",35),et("click",function(){return Dt(e),Ae(2).openCamForm()}),H(1,"div",31),Qe(2,"fa-icon",6),G(),H(3,"div",32),ue(4),G()()}if(2&t){const e=n.$implicit;W(2),J("icon",_i(2,jUe)),W(2),Nt(" ",e.name," ")}}const qUe=function(){return["fas","comment"]},$Ue=function(){return["fas","clone"]},XUe=function(){return["fas","cog"]};function QUe(t,n){if(1&t){const e=Ln();H(0,"div",1),ke(1,FUe,14,1,"div",2),ke(2,HUe,7,3,"div",3),H(3,"div",4)(4,"button",5),et("click",function(){return Dt(e),Ae().openCamForm()}),Qe(5,"fa-icon",6),H(6,"div",7),ue(7),G()()(),H(8,"div",8)(9,"button",9),et("click",function(){return Dt(e),Ae().openCopyModel()}),Qe(10,"fa-icon",6),G()(),ke(11,GUe,8,10,"div",10),ke(12,UUe,6,3,"div",11),H(13,"div",12)(14,"mat-chip-list"),ke(15,WUe,5,3,"mat-chip",13),G()(),H(16,"div",14)(17,"button",15),ue(18," EXPORT AS "),G(),H(19,"mat-menu",null,16)(21,"a",17),ue(22," GPAD "),G(),H(23,"a",17),ue(24," OWL "),G()()(),H(25,"button",18),et("click",function(){return Dt(e),Ae().openSettings()}),Qe(26,"fa-icon",6),G()()}if(2&t){const e=Di(20),i=Ae();W(1),J("ngIf",i.noctuaCommonMenuService.selectedMiddlePanel===i.RightPanel.camTable&&i.camToolbarOptions.showCreateButton),W(1),J("ngIf",i.cam.title),W(2),Ro("matTooltip",null==i.cam?null:i.cam.comment),J("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(17,qUe)),W(2),Nt(" ",null==i.cam?null:i.cam.comments.length," "),W(2),J("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(18,$Ue)),W(1),J("ngIf",i.cam.state),W(1),J("ngIf",i.cam.date),W(3),J("ngForOf",i.cam.contributors),W(2),J("matMenuTriggerFor",e),W(4),J("href",null==i.cam||null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.gpadUrl,ao),W(2),J("href",null==i.cam||null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.owlUrl,ao),W(3),J("icon",_i(19,XUe))}}let aR=(()=>{class t{constructor(e,i,o,r){this.camService=e,this.noctuaActivityFormService=i,this.noctuaFormConfigService=o,this.noctuaCommonMenuService=r,this.ActivityType=so,this.LeftPanel=a2,this.MiddlePanel=Ju,this.RightPanel=g3,this._unsubscribeAll=new N}ngOnInit(){}openGraph(){this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camGraph)}openTable(){this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camTable)}openPreview(){this.noctuaCommonMenuService.selectMiddlePanel(Ju.camPreview)}openLeftDrawer(e){this.noctuaCommonMenuService.selectLeftPanel(e)}selectMiddlePanel(e){this.noctuaCommonMenuService.selectMiddlePanel(e)}openRightDrawer(e){this.noctuaCommonMenuService.selectRightPanel(e),this.noctuaCommonMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaCommonMenuService.toggleLeftDrawer(e)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openSettings(){this.openRightDrawer(g3.graphSettings)}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(a2.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(a2.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(a2.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(Ts),de(Co),de(ul))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-toolbar"]],inputs:{cam:"cam",camToolbarOptions:["options","camToolbarOptions"]},decls:1,vars:1,consts:[["class","noc-cam-heading","fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-heading"],["class","","fxFlex","180px",4,"ngIf"],["class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-br","noc-bl","px-4"],["mat-icon-button","",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],[1,"noc-comments-badge"],[1,"noc-br","px-4"],["mat-icon-button","","color","","matTooltip","Make a copy of this model",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltipPosition","matTooltipShowDelay","click"],["class","noc-model-state","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-date noc-br mr-8","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxFlex","115px","fxLayout","row","fxLayoutAlign","start center"],["mat-stroked-button","","color","primary",1,"noc-edit-button","noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],["exportMenu","matMenu"],["target","_blank","mat-menu-item","",3,"href"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"click"],["fxFlex","180px",1,""],["mat-flat-button","","color","primary",1,"noc-rounded-button","noc-half-button","noc-r","noc-sm",3,"click"],[1,""],["mat-flat-button","","fxFlex","35px","color","primary",1,"noc-rounded-button","noc-half-button","noc-l","noc-sm","mr-8","p-0",3,"matMenuTriggerFor"],["xPosition","before"],["createOptions","matMenu"],["mat-menu-item","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],[1,"text-truncate","pr-8"],[1,"noc-icon-action",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-state-chip",3,"ngClass"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date","noc-br","mr-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-date-chip",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"click"]],template:function(e,i){1&e&&ke(0,QUe,27,20,"div",0),2&e&&J("ngIf",i.cam)},directives:[Yi,ko,Oo,So,Fo,Ir,il,Ql,nl,ps,Tl,T2,ds,ac,A6,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] noc-cam-table[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] noc-activity-connector[_ngcontent-%COMP%]{display:block;width:600px;min-width:600px;max-width:600px}[_nghost-%COMP%] noc-graph-settings[_ngcontent-%COMP%]{display:block;width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] noc-graph-activity-table[_ngcontent-%COMP%]{display:block;min-width:400px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]{font-size:18px;color:#5872a7}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]:hover{font-size:20px;color:#3b5998}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;margin-right:5px;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;color:#798fb84d}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}']}),t})();const vm="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function $te(t,n,e,i){const o=n.querySelectorAll(t);if(o.length){const r=e.querySelectorAll(t);for(let a=0;a{i[o]=(e[o]||0)-(n[o]||0)}),i}const ene="resize-active";let ije=(()=>{class t{constructor(e,i,o,r){this.platformId=e,this.renderer=i,this.elm=o,this.zone=r,this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Kte,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new In,this.resizing=new In,this.resizeEnd=new In,this.mouseup=new N,this.mousedown=new N,this.mousemove=new N,this.destroy$=new N,this.pointerEventListeners=D_.getInstance(i,r)}ngOnInit(){const e=kr(this.pointerEventListeners.pointerDown,this.mousedown),i=kr(this.pointerEventListeners.pointerMove,this.mousemove).pipe(Ps(({event:f})=>{if(r)try{f.preventDefault()}catch(w){}}),_l()),o=kr(this.pointerEventListeners.pointerUp,this.mouseup);let r;const a=()=>{r&&r.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(r.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},l=()=>Object.assign(Object.assign({},Kte),this.resizeCursors);e.pipe(da(f=>{function w(ie){return{clientX:ie.clientX-f.clientX,clientY:ie.clientY-f.clientY}}const T=()=>{const ie={x:1,y:1};return r&&(this.resizeSnapGrid.left&&r.edges.left?ie.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&r.edges.right&&(ie.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&r.edges.top?ie.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&r.edges.bottom&&(ie.y=+this.resizeSnapGrid.bottom)),ie};function U(ie,se){return{x:Math.ceil(ie.clientX/se.x),y:Math.ceil(ie.clientY/se.y)}}return kr(i.pipe(Ja(1)).pipe(it(ie=>[,ie])),i.pipe(function ZUe(){return ve((t,n)=>{let e,i=!1;t.subscribe($e(n,o=>{const r=e;e=o,i&&n.next([r,o]),i=!0}))})}())).pipe(it(([ie,se])=>[ie&&w(ie),w(se)])).pipe(ca(([ie,se])=>{if(!ie)return!0;const Me=T(),we=U(ie,Me),He=U(se,Me);return we.x!==He.x||we.y!==He.y})).pipe(it(([,ie])=>{const se=T();return{clientX:Math.round(ie.clientX/se.x)*se.x,clientY:Math.round(ie.clientY/se.y)*se.y}})).pipe(Yn(kr(o,e)))})).pipe(ca(()=>!!r)).pipe(it(({clientX:f,clientY:w})=>Zte(r.startingRect,r.edges,f,w))).pipe(ca(f=>this.allowNegativeResizes||!!(f.height&&f.width&&f.height>0&&f.width>0))).pipe(ca(f=>!this.validateResize||this.validateResize({rectangle:f,edges:sS({edges:r.edges,initialRectangle:r.startingRect,newRectangle:f})})),Yn(this.destroy$)).subscribe(f=>{r&&r.clonedNode&&(this.renderer.setStyle(r.clonedNode,"height",`${f.height}px`),this.renderer.setStyle(r.clonedNode,"width",`${f.width}px`),this.renderer.setStyle(r.clonedNode,"top",`${f.top}px`),this.renderer.setStyle(r.clonedNode,"left",`${f.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:sS({edges:r.edges,initialRectangle:r.startingRect,newRectangle:f}),rectangle:f})}),r.currentRect=f}),e.pipe(it(({edges:f})=>f||{}),ca(f=>Object.keys(f).length>0),Yn(this.destroy$)).subscribe(f=>{r&&a();const w=function eje(t,n){let e=0,i=0;const o=t.nativeElement.style,a=["transform","-ms-transform","-moz-transform","-o-transform"].map(l=>o[l]).find(l=>!!l);if(a&&a.includes("translate")&&(e=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),i=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===n)return{height:t.nativeElement.offsetHeight,width:t.nativeElement.offsetWidth,top:t.nativeElement.offsetTop-i,bottom:t.nativeElement.offsetHeight+t.nativeElement.offsetTop-i,left:t.nativeElement.offsetLeft-e,right:t.nativeElement.offsetWidth+t.nativeElement.offsetLeft-e};{const l=t.nativeElement.getBoundingClientRect();return{height:l.height,width:l.width,top:l.top-i,bottom:l.bottom-i,left:l.left-e,right:l.right-e,scrollTop:t.nativeElement.scrollTop,scrollLeft:t.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);r={edges:f,startingRect:w,currentRect:w};const T=l(),U=Jte(r.edges,T);this.renderer.setStyle(document.body,"cursor",U),this.setElementClass(this.elm,ene,!0),this.enableGhostResize&&(r.clonedNode=function KUe(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();return n.removeAttribute("id"),e.forEach(o=>{o.removeAttribute("id")}),"canvas"===i?Qte(t,n):("input"===i||"select"===i||"textarea"===i)&&Xte(t,n),$te("canvas",t,n,Qte),$te("input, textarea, select",t,n,Xte),n}(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(r.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(r.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(r.clonedNode,"left",`${r.startingRect.left}px`),this.renderer.setStyle(r.clonedNode,"top",`${r.startingRect.top}px`),this.renderer.setStyle(r.clonedNode,"height",`${r.startingRect.height}px`),this.renderer.setStyle(r.clonedNode,"width",`${r.startingRect.width}px`),this.renderer.setStyle(r.clonedNode,"cursor",Jte(r.edges,T)),this.renderer.addClass(r.clonedNode,"resize-ghost-element"),r.clonedNode.scrollTop=r.startingRect.scrollTop,r.clonedNode.scrollLeft=r.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:sS({edges:f,initialRectangle:w,newRectangle:w}),rectangle:Zte(w,{},0,0)})})}),o.pipe(Yn(this.destroy$)).subscribe(()=>{r&&(this.renderer.removeClass(this.elm.nativeElement,ene),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:sS({edges:r.edges,initialRectangle:r.startingRect,newRectangle:r.currentRect}),rectangle:r.currentRect})}),a(),r=null)})}ngOnDestroy(){ll(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(e,i,o){o?this.renderer.addClass(e.nativeElement,i):this.renderer.removeClass(e.nativeElement,i)}}return t.\u0275fac=function(e){return new(e||t)(de(Hc),de(yl),de(Ti),de(oo))},t.\u0275dir=St({type:t,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]}),t})();class D_{constructor(n,e){this.pointerDown=new Wt(i=>{let o,r;return e.runOutsideAngular(()=>{o=n.listen("document","mousedown",a=>{i.next({clientX:a.clientX,clientY:a.clientY,event:a})}),vm&&(r=n.listen("document","touchstart",a=>{i.next({clientX:a.touches[0].clientX,clientY:a.touches[0].clientY,event:a})}))}),()=>{o(),vm&&r()}}).pipe(_l()),this.pointerMove=new Wt(i=>{let o,r;return e.runOutsideAngular(()=>{o=n.listen("document","mousemove",a=>{i.next({clientX:a.clientX,clientY:a.clientY,event:a})}),vm&&(r=n.listen("document","touchmove",a=>{i.next({clientX:a.targetTouches[0].clientX,clientY:a.targetTouches[0].clientY,event:a})}))}),()=>{o(),vm&&r()}}).pipe(_l()),this.pointerUp=new Wt(i=>{let o,r,a;return e.runOutsideAngular(()=>{o=n.listen("document","mouseup",l=>{i.next({clientX:l.clientX,clientY:l.clientY,event:l})}),vm&&(r=n.listen("document","touchend",l=>{i.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}),a=n.listen("document","touchcancel",l=>{i.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}))}),()=>{o(),vm&&(r(),a())}}).pipe(_l())}static getInstance(n,e){return D_.instance||(D_.instance=new D_(n,e)),D_.instance}}let tne=(()=>{class t{constructor(e,i,o,r){this.renderer=e,this.element=i,this.zone=o,this.resizableDirective=r,this.resizeEdges={},this.eventListeners={},this.destroy$=new N}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),vm&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),kr(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,i,o){e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",r=>{this.onMousemove(r,r.targetTouches[0].clientX,r.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",r=>{this.onMousemove(r,r.clientX,r.clientY)})),this.resizable.mousedown.next({clientX:i,clientY:o,edges:this.resizeEdges})}onMouseup(e,i){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:i,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(e,i,o){this.resizable.mousemove.next({clientX:i,clientY:o,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return Jc(this.element.nativeElement,e).pipe(Yn(this.destroy$))}}return t.\u0275fac=function(e){return new(e||t)(de(yl),de(Ti),de(oo),de(ije,8))},t.\u0275dir=St({type:t,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),t})(),oje=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();var ho=C(32960);const rje=C(61759),nne=C(33837),aje=C(99572).jquery,sje=C(42023);let cje=(()=>{class t{constructor(e,i,o){this.noctuaFormConfigService=e,this.noctuaUserService=i,this.curieService=o,this.minervaDefinitionName=Er.globalMinervaDefinitionName,this.separator="@@",this.cams=[],this.loading=!1,this.searchSummary={},this.onCamsChanged=new Io({}),this.onCamChanged=new Io({}),this.curieUtil=this.curieService.getCurieUtil()}registerManager(){let e=new aje(rje);e.method("POST");let i=new sje(Er.globalBaristaLocation,this.minervaDefinitionName,null,e,"async");return i.register("prerun",()=>{}),i.register("postrun",()=>{},9),i.register("manager_error",u=>{console.log("There was a manager error ("+u.message_type()+"): "+u.message())},10),i.register("warning",u=>{alert("Warning: "+u.message()+"; your operation was likely not performed")},10),i.register("error",u=>{u.message()&&-1!==u.message().indexOf("InsufficientPermissionsException")?alert("Error: it seems like you do not have permission to perform that operation. Did you remember to login?"):u.message()&&-1!==u.message().indexOf("token")?alert("Error: it seems like you have a bad token..."):(console.log("error:",u,u.message_type(),u.message()),u.message().includes("UnknownIdentifierException"))},10),i.register("meta",function(u){console.log("---------",u)},10),i}foo(e){let i=this.registerManager();var o=new nne.request("meta","sparql");o.special("query",e);var r=new nne.request_set("MYTOKEN",null);r.add(o),i.request_with(r)}}return t.\u0275fac=function(e){return new(e||t)(qt(Co),qt(yr),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lje=C(6268);let dje=(()=>{class t{constructor(e,i,o,r,a){this.noctuaFormConfigService=e,this.noctuaUserService=i,this.httpClient=o,this.sparqlMinervaService=r,this.curieService=a,this.minervaDefinitionName=Er.globalMinervaDefinitionName,this.separator="@@",this.baseUrl=Er.spaqrlApiUrl,this.wikidataSparqlUrl=Er.wikidataSparqlUrl,this.cams=[],this.loading=!1,this.linker=new lje.linker,this.searchSummary={},this.curieUtil=this.curieService.getCurieUtil()}getPubmedInfo(e){const i=this,o=this.buildPubmedInfoQuery(e),r=`${this.wikidataSparqlUrl}?query=${encodeURIComponent(o)}&formart=json`;return this.httpClient.get(r).pipe(it(a=>a.results),it(a=>a.bindings),Ps(a=>console.dir(a)),it(a=>this.addArticles(a,e)),Ps(a=>console.dir(a)),Yu(()=>{i.loading=!1}))}addArticles(e,i){const o=this,r=[];return e.forEach(a=>{const l=new EN;l.title=a.title.value,l.author=a.author.value,l.link=o.linker.url(`${Ft.evidenceDB.options.pmid.name}:${i}`),a.date&&(l.date=a.date.value),r.push(l)}),r}getAllContributors(){const e=this.buildAllContributorsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(it(o=>o.results),it(o=>o.bindings),Ps(o=>console.dir(o)),it(o=>this.addContributor(o)),Ps(o=>console.dir(o)))}getAllOrganisms(){const e=this.buildOrganismsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(it(o=>o.results),it(o=>o.bindings),Ps(o=>console.dir(o)),it(o=>this.addOrganism(o)),Ps(o=>console.dir(o)))}getAllGroups(){const e=this.buildAllGroupsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(it(o=>o.results),it(o=>o.bindings),Ps(o=>console.dir(o)),it(o=>this.addGroup(o)),Ps(o=>console.dir(o)))}getModelMeta(e){const i=this.buildModelMetaQuery(e),o=`${this.baseUrl}?query=${encodeURIComponent(i)}`;return this.httpClient.get(o).pipe(it(r=>r.results),it(r=>r.bindings),Ps(r=>console.dir(r)),it(r=>this.addCam(r)),Ps(r=>console.dir(r)))}getModelTerms(e){const i=this.buildModelTermsQuery(e),o=`${this.baseUrl}?query=${encodeURIComponent(i)}`;return this.httpClient.get(o).pipe(it(r=>r.results),it(r=>r.bindings),Ps(r=>console.dir(r)),it(r=>this.addCamTerms(r)),Ps(r=>console.dir(r)))}addCam(e){const i=this,o=[];return e.forEach(r=>{const a=i.curieUtil.getCurie(r.model.value),l=new DO;l.graph=null,l.id=a,l.state=i.noctuaFormConfigService.findModelState(r.modelState.value),l.title=r.modelTitle.value,l.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(a)}),r.date&&(l.date=r.date.value),r.groups&&null!==r.groups.value&&(l.groups=r.groups.value.split(i.separator).map(function(u){return(0,Zt.find)(i.noctuaUserService.groups,w=>w.url===u)||{url:u}})),r.contributors&&""!==r.contributors.value&&(l.contributors=r.contributors.value.split(i.separator).map(u=>(0,Zt.find)(i.noctuaUserService.contributors,w=>w.orcid===u)||{orcid:u})),o.push(l)}),o}addCamTerms(e){const i=this,o=[];return e.forEach(r=>{const a=new Pi(i.curieUtil.getCurie(r.id.value),r.label.value);o.push(a)}),o}addContributor(e){const i=[];return e.forEach(o=>{const r=new h_;r.orcid=o.orcid.value,r.name=o.name.value,r.cams=o.cams.value,r.group={url:o.affiliations.value},i.push(r)}),i}addGroup(e){const i=[];return e.forEach(o=>{i.push({url:o.url.value,name:o.name.value,cams:o.cams.value,contributorsCount:o.contributors.value,contributors:o.orcids.value.split("@@").map(function(r){return{orcid:r}})})}),i}addOrganism(e){const i=[];return e.forEach(o=>{const r=new $Ve;r.taxonIri=o.taxonIri.value,r.taxonName=o.taxonName.value,r.cams=o.cams.value,i.push(r)}),i}addGroupContributors(e,i){(0,Zt.each)(e,o=>{(0,Zt.each)(o.contributors,r=>{const a=(0,Zt.find)(i,{orcid:r.orcid});r.name=a.name,r.cams=a.cams})})}buildAllContributorsQuery(){const e=new ho.Query;return e.prefix((0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("has_affiliation","")).select("?orcid ?name",'(GROUP_CONCAT(distinct ?organization;separator="@@") AS ?organizations)','(GROUP_CONCAT(distinct ?affiliation;separator="@@") AS ?affiliations)',"(COUNT(distinct ?cam) AS ?cams)").where((0,ho.triple)("?cam","",""),(0,ho.triple)("?cam","dc:contributor","?orcid"),"BIND( IRI(?orcid) AS ?orcidIRI)",(0,ho.optional)((0,ho.triple)("?orcidIRI","rdfs:label","?name"),(0,ho.triple)("?orcidIRI","","?organization"),(0,ho.triple)("?orcidIRI","has_affiliation:","?affiliation")),"BIND(IF(bound(?name), ?name, ?orcid) as ?name)").groupBy("?orcid ?name").orderBy("?name","ASC"),e.build()}buildOrganismsQuery(){const e=new ho.Query,i=new ho.Query;return i.graph("?model","?model metago:graphType metago:noctuaCam",(0,ho.triple)("?s","enabled_by:","?entity"),(0,ho.triple)("?entity","rdf:type","?identifier"),"FILTER(?identifier != owl:NamedIndividual)"),e.prefix((0,ho.prefix)("rdf",""),(0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("owl",""),(0,ho.prefix)("enabled_by",""),(0,ho.prefix)("in_taxon","")).select("distinct ?taxonIri ?taxonName","(COUNT(distinct ?model) AS ?cams)").where(i,(0,ho.triple)("?identifier","rdfs:subClassOf","?v0"),(0,ho.triple)("?v0","owl:onProperty","in_taxon:"),(0,ho.triple)("?v0","owl:someValuesFrom","?taxonIri"),(0,ho.triple)("?taxonIri","rdfs:label","?taxonName")).groupBy("?taxonIri ?taxonName").orderBy("?taxonName","ASC"),e.build()}buildAllGroupsQuery(){return'\n PREFIX metago: \n PREFIX dc: \n PREFIX rdfs: \n PREFIX has_affiliation: \n PREFIX hint: \n\n SELECT distinct ?name ?url (GROUP_CONCAT(distinct ?orcidIRI;separator="@@") AS ?orcids) \n (COUNT(distinct ?orcidIRI) AS ?contributors)\n (COUNT(distinct ?cam) AS ?cams)\n WHERE \n {\n ?cam metago:graphType metago:noctuaCam .\n ?cam dc:contributor ?orcid .\n BIND( IRI(?orcid) AS ?orcidIRI ). \n ?orcidIRI has_affiliation: ?url .\n ?url rdfs:label ?name . \n hint:Prior hint:runLast true .\n }\n GROUP BY ?url ?name'}buildPubmedInfoQuery(e){const i=new ho.Query;return i.prefix((0,ho.prefix)("wd",""),(0,ho.prefix)("wdt","")).select("?rtcl ?title ?author ?journal ?date").where((0,ho.triple)("?rtcl","wdt:P698",`"${e}"`),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P1476","?title")),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P2093","?author")),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P1433","?journal")),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P577","?date"))),i.build()}buildModelMetaQuery(e){const i=new ho.Query,o=new ho.Query;return o.graph("?model","?model dc:date ?date; dc:title ?modelTitle; modelState: ?modelState; providedBy: ?providedBy; dc:contributor ?orcid"),i.prefix((0,ho.prefix)("rdf",""),(0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("gomodel",""),(0,ho.prefix)("owl",""),(0,ho.prefix)("GO",""),(0,ho.prefix)("BP",""),(0,ho.prefix)("MF",""),(0,ho.prefix)("CC",""),(0,ho.prefix)("modelState",""),(0,ho.prefix)("providedBy",""),(0,ho.prefix)("vcard",""),(0,ho.prefix)("has_affiliation",""),(0,ho.prefix)("enabled_by",""),(0,ho.prefix)("evidence",""),(0,ho.prefix)("in_taxon",""),(0,ho.prefix)("obo","")).select("distinct ?model ?modelTitle ?modelState ?date",'(GROUP_CONCAT(distinct ?entity;separator="@@") as ?entities)','(GROUP_CONCAT(distinct ?orcid;separator="@@") as ?contributors)','(GROUP_CONCAT(distinct ?providedBy;separator="@@") as ?groups)').where(`VALUES ?model { ${e} }`,o).groupBy("?model ?modelTitle ?modelState ?date"),i.build()}buildModelTermsQuery(e){const i=new ho.Query,o=new ho.Query;return o.graph("?model",(0,ho.triple)("?entity","rdf:type","owl:NamedIndividual"),(0,ho.triple)("?entity","rdf:type","?id")),i.prefix((0,ho.prefix)("rdf",""),(0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("gomodel",""),(0,ho.prefix)("definition",""),(0,ho.prefix)("owl",""),(0,ho.prefix)("GO",""),(0,ho.prefix)("BP",""),(0,ho.prefix)("MF",""),(0,ho.prefix)("CC",""),(0,ho.prefix)("modelState",""),(0,ho.prefix)("providedBy",""),(0,ho.prefix)("vcard",""),(0,ho.prefix)("has_affiliation",""),(0,ho.prefix)("enabled_by",""),(0,ho.prefix)("evidence",""),(0,ho.prefix)("in_taxon",""),(0,ho.prefix)("obo","")).select("distinct ?goclasses ?id ?label ?definition").where(`VALUES ?model { ${e} }`,o,"VALUES ?goclasses { BP: MF: CC: }",(0,ho.triple)("?id","rdfs:subClassOf+","?goclasses"),(0,ho.triple)("?id","rdfs:label","?label"),(0,ho.triple)("?id","definition:"," ?definition")).groupBy("?goclasses ?id ?label ?definition"),i.build()}getXSD(e){return'"'+e+'"^^xsd:string'}}return t.\u0275fac=function(e){return new(e||t)(qt(Co),qt(yr),qt(ru),qt(cje),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function uje(t,n){1&t&&(H(0,"div",34),ue(1," Log in to Continue "),G())}function hje(t,n){if(1&t&&(H(0,"mat-option",35),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function pje(t,n){if(1&t&&(H(0,"mat-option",35),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function fje(t,n){1&t&&(H(0,"div",36),ue(1," No comments yet "),G())}const gje=function(){return["far","trash-alt"]};function mje(t,n){if(1&t){const e=Ln();H(0,"div",37)(1,"div",38)(2,"div",39)(3,"mat-form-field",40)(4,"mat-label"),ue(5,"Comment"),G(),Qe(6,"textarea",41),G(),H(7,"button",42),et("click",function(){const r=Dt(e).index;return Ae(2).deleteComment(r)}),Qe(8,"fa-icon",43),G()()()()}if(2&t){const e=n.index;W(6),J("formControlName",e),W(2),J("icon",_i(2,gje))}}function _je(t,n){if(1&t&&(H(0,"div",44),ue(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function Cje(t,n){if(1&t&&(H(0,"span",45)(1,"div",46),ue(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function vje(t,n){if(1&t){const e=Ln();H(0,"div",7),ke(1,uje,2,0,"div",8),H(2,"div",9)(3,"div",10)(4,"div",11),ue(5," Model Information "),G(),Qe(6,"span",3),G(),H(7,"div",12)(8,"div",13)(9,"mat-form-field",14)(10,"mat-label"),ue(11,"Title"),G(),Qe(12,"textarea",15),G()(),H(13,"div",13)(14,"mat-form-field",14)(15,"mat-label"),ue(16,"State"),G(),H(17,"mat-select",16),ke(18,hje,2,2,"mat-option",17),G()()(),H(19,"div",13)(20,"mat-form-field",14)(21,"mat-label"),ue(22,"Group"),G(),H(23,"mat-select",18),ke(24,pje,2,2,"mat-option",17),G()()()()(),H(25,"div",9)(26,"div",19)(27,"div",11),ue(28," Model Comments "),G(),Qe(29,"span",3),H(30,"button",20),et("click",function(){return Dt(e),Ae().addComment()}),ue(31," Add "),G()(),H(32,"div",12),ke(33,fje,2,0,"div",21),H(34,"div",13),ke(35,mje,9,3,"div",22),G()()(),H(36,"div",9)(37,"div",10)(38,"div",11),ue(39," Model Information "),G(),Qe(40,"span",3),G(),H(41,"div",12)(42,"div",23)(43,"div",24)(44,"div",25)(45,"div",26),ue(46,"Title:"),G(),ue(47),G(),H(48,"div",27)(49,"div",26),ue(50,"State:"),G(),ue(51),G(),H(52,"div",28)(53,"div",25)(54,"div",26),ue(55,"Contributors:"),G(),ke(56,_je,2,4,"div",29),G(),H(57,"div",25)(58,"div",26),ue(59,"Groups:"),G(),ke(60,Cje,3,4,"span",30),G(),H(61,"div",27)(62,"div",26),ue(63,"Open In:"),G(),H(64,"a",31),ue(65," Pathway Editor "),G(),H(66,"span"),ue(67,"\u2022"),G(),H(68,"a",32),ue(69," Form Editor "),G(),H(70,"span"),ue(71,"\u2022"),G(),H(72,"a",33),ue(73," Graph Editor "),G()()()()()()()()}if(2&t){const e=Ae();W(1),J("ngIf",!e.noctuaUserService.user),W(17),J("ngForOf",e.noctuaFormConfigService.modelState.options),W(6),J("ngForOf",null==e.noctuaUserService.user?null:e.noctuaUserService.user.groups),W(9),J("ngIf",0===(null==e.cam?null:e.cam.comments.length)),W(2),J("ngForOf",null==e.commentFormArray?null:e.commentFormArray.controls),W(12),Nt(" ",e.cam.title," "),W(4),Nt(" ",null==e.cam.state?null:e.cam.state.label," "),W(5),J("ngForOf",e.cam.contributors),W(4),J("ngForOf",e.cam.groups),W(4),J("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.graphEditorUrl,ao)}}function bje(t,n){if(1&t){const e=Ln();H(0,"div",47),Qe(1,"span",3),H(2,"button",48),et("click",function(){return Dt(e),Ae().save()}),ue(3,"Save"),G()()}if(2&t){const e=Ae();W(2),J("disabled",!e.camFormGroup.valid)}}let cS=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.sparqlService=i,this.camService=o,this.bbopGraphService=r,this.noctuaFormConfigService=a,this._unsubscribeAll=new N}ngOnInit(){this.camFormSub=this.camService.camFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.camFormGroup=e,this.commentFormArray=e.get("commentFormArray"))}),this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)})}addComment(){this.commentFormArray.push(new Do)}deleteComment(e){this.commentFormArray.removeAt(e),this.save()}save(){const e=this.camFormGroup.value,i={title:e.title,state:e.state.name,comments:e.commentFormArray};this.bbopGraphService.saveModelGroup(this.cam,e.group.id),this.bbopGraphService.saveCamAnnotations(this.cam,i)}termDisplayFn(e){return e?e.label:void 0}close(){this.panelDrawer.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(dje),de(Zr),de(Yc),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-form"]],inputs:{panelDrawer:"panelDrawer"},decls:11,vars:3,consts:[["name","camFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["class","noc-drawer-body w-100-p","noctuaPerfectScrollbar","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","noc-drawer-footer noc-submit-row",4,"ngIf"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["fxLayout","column",1,"p-4"],["appearance","outline",1,"noc-sm"],["type","text","matInput","","formControlName","title","rows","2"],["placeholder","","formControlName","state","required",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","","formControlName","group","required",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","pr-8"],["mat-stroked-button","","type","submit","color","primary",1,"noc-xs","noc-rounded-button",3,"click"],["class","noc-no-info",4,"ngIf"],["formArrayName","commentFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[3,"value"],[1,"noc-no-info"],["formArrayName","commentFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["fxFlex","",1,"noc-form-field-container"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","rows","2",3,"formControlName"],["mat-icon-button","",1,"noc-delete-float-button",3,"click"],[3,"icon"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"disabled","click"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Model Details"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),ke(9,vje,74,12,"div",5),ke(10,bje,4,1,"div",6),G()),2&e&&(J("formGroup",i.camFormGroup),W(9),J("ngIf",i.camFormGroup),W(1),J("ngIf",i.camFormGroup))},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,Yi,ts,id,yd,E2,ed,Pl,Xl,qg,sM,$o,J1,k0,ps,Tl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:350px;min-width:350px;max-width:350px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%] .noc-delete-float-button[_ngcontent-%COMP%]{margin-top:5px;visibility:hidden}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]:hover .noc-delete-float-button[_ngcontent-%COMP%]{visibility:visible}']}),t})();function xje(t,n){if(1&t&&(H(0,"div",17)(1,"div",18)(2,"div"),ue(3),G()(),H(4,"div",19)(5,"div",20),ue(6),G()(),H(7,"div",18)(8,"div"),ue(9),G()()()),2&t){const e=Ae().$implicit;W(3),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label,""),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," "),W(3),qo(null==e.meta||null==e.meta.objectNode?null:e.meta.objectNode.label)}}function yje(t,n){if(1&t&&(H(0,"div",21)(1,"div",18),ue(2),G(),H(3,"div",22)(4,"div",20),ue(5),G()()()),2&t){const e=Ae().$implicit;W(2),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label," "),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," ")}}function wje(t,n){if(1&t&&(H(0,"div",11)(1,"div",12),ue(2),G(),H(3,"div",13)(4,"div",14)(5,"strong"),ue(6),G(),ue(7),G(),ke(8,xje,10,3,"div",15),ke(9,yje,6,2,"div",16),G()()),2&t){const e=n.$implicit,i=n.index,o=Ae();W(2),Nt(" ",i+1," "),W(4),qo(null==e.meta?null:e.meta.aspect),W(1),Nt(": ",e.message," "),W(1),J("ngIf",e.type===o.ErrorType.relation),W(1),J("ngIf",e.type===o.ErrorType.cardinality)}}let Mje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.ErrorType=El,this.ErrorLevel=Al,this._unsubscribeAll=new N,this.errors=this._data.errors}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-activity-errors"]],decls:17,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start stretch",1,""],["class","noc-error-row","fxLayout","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["mat-raised-button","","color","",1,"mr-8",3,"click"],["fxLayout","row",1,"noc-error-row"],[1,"noc-number"],["fxFlex","",1,"noc-error-row-body"],[1,"noc-heading"],["class","pb-10","fxLayout","row",4,"ngIf"],["class","pb-10","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row",1,"pb-10"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-node-card"],["fxLayout","column","fxLayoutAlign","center stretch","fxFlex","",1,"noc-edge-card"],[1,"noc-line"],["fxLayout","row","fxLayoutAlign","center center",1,"pb-10"],["fxFlex","","fxLayout","column","fxLayoutAlign","center stretch",1,"noc-edge-card"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Errors"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()()(),H(10,"div",6)(11,"div",7),ke(12,wje,10,5,"div",8),G()(),H(13,"div",9),Qe(14,"span",4),H(15,"button",10),et("click",function(){return i.close()}),ue(16,"Close"),G()()()),2&e&&(W(12),J("ngForOf",i.errors))},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,oC,ts,$o,Yi,rC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%]{border-bottom:#CCC double 1px;width:100%}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{padding:18px 2px;width:40px;min-width:40px;max-width:40px;background-color:#ddd;font-size:12px;text-align:center}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-error-row-body[_ngcontent-%COMP%]{padding:8px 10px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding:8px 0;font-size:14px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card[_ngcontent-%COMP%]{padding:5px;height:100px;min-height:100px;max-height:100px;width:250px;min-width:250px;max-width:250px;border:#AAA double 2px;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-lg[_ngcontent-%COMP%]{height:100px;min-height:100px;max-height:100px;width:150px;min-width:150px;max-width:150px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-long[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-edge-card[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding-top:15px;height:35px;min-height:35px;max-height:35px;width:100%;min-width:100%;max-width:100%;border-bottom:#AAA solid 2px;text-align:center}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})(),Oje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.searchFormData={},this.cam={},this._unsubscribeAll=new N,this.cam=this._data.cam,this.searchForm=this.createAnswerForm()}ngOnInit(){}close(){this._matDialogRef.close()}createAnswerForm(){return new td({annotatedEntity:new Do(this.cam.annotatedEntity.id),term:new Do(this.cam.term.id),evidence:new Do(this.cam.evidence.id),reference:new Do(this.cam.reference.label),with:new Do(this.cam.with)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-before-save"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start center",1,"w-100-p"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Add Evidence"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G()()()(),H(9,"div",6),Qe(10,"div",7),G(),H(11,"div",8),Qe(12,"span",4),H(13,"button",9),et("click",function(){return i.close()}),ue(14,"Cancel"),G(),H(15,"button",10),ue(16,"Save"),G()()())},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,oC,ts,rC],styles:[""]}),t})(),Sje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.searchFormData={},this.cam={},this._unsubscribeAll=new N,this.cam=this._data.cam,this.searchForm=this.createAnswerForm()}ngOnInit(){}close(){this._matDialogRef.close()}createAnswerForm(){return new td({annotatedEntity:new Do(this.cam.annotatedEntity.id),term:new Do(this.cam.term.id),evidence:new Do(this.cam.evidence.id),reference:new Do(this.cam.reference.label),with:new Do(this.cam.with)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-create-from-existing"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start center",1,"w-100-p"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Add Evidence"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G()()()(),H(9,"div",6),Qe(10,"div",7),G(),H(11,"div",8),Qe(12,"span",4),H(13,"button",9),et("click",function(){return i.close()}),ue(14,"Cancel"),G(),H(15,"button",10),ue(16,"Save"),G()()())},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,oC,ts,rC],styles:[""]}),t})();function Pje(t,n){if(1&t&&(H(0,"mat-radio-button",18)(1,"div",19),ue(2),G(),H(3,"div",20)(4,"small"),ue(5),G()()()),2&t){const e=n.$implicit;J("value",e),W(2),Nt(" ",null==e.term?null:e.term.label," "),W(3),qo(null==e.term?null:e.term.id)}}function Tje(t,n){if(1&t&&(H(0,"div",15)(1,"div",16),ue(2),G(),ke(3,Pje,6,3,"mat-radio-button",17),G()),2&t){const e=n.$implicit;W(2),Nt(" ",e.title," "),W(1),J("ngForOf",e.activityNodes)}}let Eje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this._unsubscribeAll=new N,this.nodes=this._data.nodes}ngOnInit(){}save(){this._matDialogRef.close({activityNode:this.selectedActivityNode})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-link-to-existing"]],decls:23,vars:2,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","noc-right-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngModel","ngModelChange"],["class","noc-radio-group-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-radio-group-section"],[1,"noc-title"],["class","mb-8",3,"value",4,"ngFor","ngForOf"],[1,"mb-8",3,"value"],[1,"h4"],[1,""]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Choose from Exisiting Node"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()()(),H(10,"div",6)(11,"div",7)(12,"div",8),ue(13," Select Node "),G()(),H(14,"div",9)(15,"mat-radio-group",10),et("ngModelChange",function(r){return i.selectedActivityNode=r}),ke(16,Tje,4,2,"div",11),G()()(),H(17,"div",12),Qe(18,"span",4),H(19,"button",13),et("click",function(){return i.close()}),ue(20,"Cancel"),G(),H(21,"button",14),et("click",function(){return i.save()}),ue(22,"Done"),G()()()),2&e&&(W(15),J("ngModel",i.selectedActivityNode),W(1),J("ngForOf",i.nodes))},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,ts,gM,Pl,aM,$o,mM],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:16px;padding:8px 8px 8px 0}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%] radio-button[_ngcontent-%COMP%]{border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%;max-height:65vh;overflow:auto}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}']}),t})();function Aje(t,n){if(1&t){const e=Ln();H(0,"mat-header-cell",30)(1,"mat-checkbox",31),et("change",function(o){Dt(e);const r=Ae();return o?r.masterToggle():null}),G()()}if(2&t){const e=Ae();W(1),J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Lje(t,n){if(1&t){const e=Ln();H(0,"mat-cell",30)(1,"mat-checkbox",32),et("click",function(o){return o.stopPropagation()})("change",function(o){const a=Dt(e).$implicit,l=Ae();return o?l.selection.toggle(a):null}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("checked",i.selection.isSelected(e))}}function Dje(t,n){1&t&&(H(0,"mat-header-cell",33),ue(1,"Evidence"),G())}function kje(t,n){if(1&t&&(H(0,"mat-cell",33)(1,"p",34),ue(2),G()()),2&t){const e=n.$implicit;W(2),qo(null==e.evidence?null:e.evidence.label)}}function Ije(t,n){1&t&&(H(0,"mat-header-cell",35),ue(1,"Reference"),G())}function Nje(t,n){if(1&t&&(H(0,"mat-cell",35)(1,"p",34),ue(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.reference)}}function Rje(t,n){1&t&&(H(0,"mat-header-cell",35),ue(1,"With"),G())}function zje(t,n){if(1&t&&(H(0,"mat-cell",35)(1,"p",34),ue(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.with)}}function Fje(t,n){1&t&&(H(0,"mat-header-cell",4),ue(1,"Assigned By"),G())}function Hje(t,n){if(1&t&&(H(0,"mat-cell",4)(1,"p",34),ue(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.assignedBy)}}function Vje(t,n){1&t&&Qe(0,"mat-header-row")}function Bje(t,n){if(1&t){const e=Ln();H(0,"mat-row",36),et("click",function(){const r=Dt(e).$implicit;return Ae().selection.toggle(r)}),G()}}const Gje=function(){return{value:"50"}};let Yje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.evidence=[],this.displayedColumns=["select","evidence","reference","with"],this.selection=new Qu(!0,[]),this._unsubscribeAll=new N,this.evidence=this._data.evidence,this.dataSource=new EM(this.evidence)}ngOnInit(){}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}save(){this._matDialogRef.close({evidences:this.selection.selected})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-select-evidence"]],decls:40,vars:5,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","noc-right-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["matSort","","noctuaPerfectScrollbar","",1,"noc-evidence-table","w-100-p",3,"dataSource"],["table",""],["matColumnDef","select",1,""],["fxFlex","30px",4,"matHeaderCellDef"],["fxFlex","30px",4,"matCellDef"],["cdkColumnDef","evidence"],["fxFlex","40%",4,"cdkHeaderCellDef"],["fxFlex","40%",4,"cdkCellDef"],["cdkColumnDef","reference"],["fxFlex","20%",4,"cdkHeaderCellDef"],["fxFlex","20%",4,"cdkCellDef"],["cdkColumnDef","with"],["cdkColumnDef","assignedBy"],["fxFlex","",4,"cdkHeaderCellDef"],["fxFlex","",4,"cdkCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxFlex","30px"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["fxFlex","40%"],[1,""],["fxFlex","20%"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Clone Evidence"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()()(),H(10,"div",6)(11,"div",7)(12,"div",8),ue(13," Select Evidence "),G()(),H(14,"div",9)(15,"mat-table",10,11),er(17,12),ke(18,Aje,2,2,"mat-header-cell",13),ke(19,Lje,2,1,"mat-cell",14),tr(),er(20,15),ke(21,Dje,2,0,"mat-header-cell",16),ke(22,kje,3,1,"mat-cell",17),tr(),er(23,18),ke(24,Ije,2,0,"mat-header-cell",19),ke(25,Nje,3,1,"mat-cell",20),tr(),er(26,21),ke(27,Rje,2,0,"mat-header-cell",19),ke(28,zje,3,1,"mat-cell",20),tr(),er(29,22),ke(30,Fje,2,0,"mat-header-cell",23),ke(31,Hje,3,1,"mat-cell",24),tr(),ke(32,Vje,1,0,"mat-header-row",25),ke(33,Bje,1,0,"mat-row",26),G()()(),H(34,"div",27),Qe(35,"span",4),H(36,"button",28),et("click",function(){return i.close()}),ue(37,"Cancel"),G(),H(38,"button",29),et("click",function(){return i.save()}),ue(39,"Done"),G()()()),2&e&&(W(15),J("dataSource",i.dataSource)("@animateStagger",_i(4,Gje)),W(17),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns))},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,ts,$g,gQ,Zf,Qf,Kf,Uf,Xf,Jf,Ih,$f,qf,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%]{background-color:#eee;border-right:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%]{font-size:10px;color:#555;padding:10px 0;border-bottom:rgba(59,89,152,.2) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:12px;width:12px;min-width:12px;max-width:12px;height:12px;min-height:12px;max-height:12px;display:none}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%]{color:#000;font-weight:700}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:initial}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%;max-height:65vh;overflow:auto}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();const Uje=function(t){return{"noc-term-selected":t}};function jje(t,n){if(1&t){const e=Ln();H(0,"div",34),et("click",function(){const r=Dt(e).$implicit;return Ae().selectActivityNode(r)}),H(1,"mat-icon",35),ue(2,"check_circle"),G(),ue(3),G()}if(2&t){const e=n.$implicit,i=Ae();J("ngClass",wo(2,Uje,e.getTerm().id===(null==i.selectedActivityNode?null:i.selectedActivityNode.getTerm().id))),W(3),Nt(" ",e.getTerm().label," ")}}function Wje(t,n){if(1&t){const e=Ln();H(0,"mat-header-cell",36)(1,"mat-checkbox",37),et("change",function(o){Dt(e);const r=Ae();return o?r.masterToggle():null}),G()()}if(2&t){const e=Ae();W(1),J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function qje(t,n){if(1&t){const e=Ln();H(0,"mat-cell",36)(1,"mat-checkbox",38),et("click",function(o){return o.stopPropagation()})("change",function(o){const a=Dt(e).$implicit,l=Ae();return o?l.selection.toggle(a):null}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("checked",i.selection.isSelected(e))}}function $je(t,n){1&t&&(H(0,"mat-header-cell",39),ue(1,"Evidence"),G())}function Xje(t,n){if(1&t&&(H(0,"small"),ue(1),G()),2&t){const e=n.$implicit,i=Ae().$implicit;W(1),cy(" ",null==e?null:e.label," : ",null==i.term?null:i.term.label," ")}}function Qje(t,n){if(1&t&&(H(0,"span"),ue(1," Ext: "),ke(2,Xje,2,2,"small",41),Qe(3,"br"),G()),2&t){const e=n.$implicit;W(2),J("ngForOf",e.relations)}}function Zje(t,n){if(1&t&&(H(0,"mat-cell",39)(1,"p",40),ue(2),Qe(3,"br"),ke(4,Qje,4,1,"span",41),G()()),2&t){const e=n.$implicit;W(2),Nt(" ",null==e.evidence?null:e.evidence.label," "),W(2),J("ngForOf",e.evidenceExts)}}function Kje(t,n){1&t&&(H(0,"mat-header-cell",42),ue(1,"Reference"),G())}function Jje(t,n){if(1&t&&(H(0,"mat-cell",42)(1,"p",40),ue(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.reference)}}function eWe(t,n){1&t&&(H(0,"mat-header-cell",42),ue(1,"With"),G())}function tWe(t,n){if(1&t&&(H(0,"mat-cell",42)(1,"p",40),ue(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.with)}}function nWe(t,n){1&t&&(H(0,"mat-header-cell",3),ue(1,"Assigned By"),G())}function iWe(t,n){1&t&&(H(0,"span"),ue(1,",\xa0"),G())}function oWe(t,n){if(1&t&&(H(0,"span")(1,"p",43),et("click",function(i){return i.stopPropagation()}),ue(2),G(),ke(3,iWe,2,0,"span",44),G()),2&t){const e=n.$implicit,i=n.last;W(2),Nt(" ",e.name," "),W(1),J("ngIf",!i)}}function rWe(t,n){if(1&t&&(H(0,"mat-cell",3),ke(1,oWe,4,2,"span",41),G()),2&t){const e=n.$implicit;W(1),J("ngForOf",e.groups)}}function aWe(t,n){1&t&&Qe(0,"mat-header-row")}function sWe(t,n){if(1&t){const e=Ln();H(0,"mat-row",43),et("click",function(){const r=Dt(e).$implicit;return Ae().selection.toggle(r)}),G()}}const cWe=function(){return{value:"50"}};let lWe=(()=>{class t{constructor(e,i,o,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.noctuaLookupService=r,this.evidence=[],this.activityNodes=[],this.displayedColumns=["select","evidence","reference","with","assignedBy"],this.selection=new Qu(!0,[]),this._unsubscribeAll=new N,this.evidence=this._data.evidence,this.searchCriteria=this._data.searchCriteria,this.initialize()}ngOnInit(){}initialize(){this.noctuaLookupService.companionLookup(this.searchCriteria.gpNode.id,this.searchCriteria.aspect,this.searchCriteria.params).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{this.activityNodes=i})}selectActivityNode(e){this.selectedActivityNode=e,this.dataSource=new EM(e.predicate.evidence)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}save(){this._matDialogRef.close({term:this.selectedActivityNode,evidences:this.selection.selected})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co),de(Sd))},t.\u0275cmp=vn({type:t,selectors:[["app-search-database"]],decls:54,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["fxFlex","200px","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-left-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading","w-100-p"],[1,"text-truncate"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["class","noc-term-box","fxLayout","row","fxLayoutAlign","start center",3,"ngClass","click",4,"ngFor","ngForOf"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-right-panel","noc-form-section"],[1,"noc-section-heading"],["matSort","","noctuaPerfectScrollbar","",1,"noc-evidence-table","w-100-p",3,"dataSource"],["table",""],["matColumnDef","select",1,""],["fxFlex","30px",4,"matHeaderCellDef"],["fxFlex","30px",4,"matCellDef"],["cdkColumnDef","evidence"],["fxFlex","40%",4,"cdkHeaderCellDef"],["fxFlex","40%",4,"cdkCellDef"],["cdkColumnDef","reference"],["fxFlex","20%",4,"cdkHeaderCellDef"],["fxFlex","20%",4,"cdkCellDef"],["cdkColumnDef","with"],["cdkColumnDef","assignedBy"],["fxFlex","",4,"cdkHeaderCellDef"],["fxFlex","",4,"cdkCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-term-box",3,"ngClass","click"],["fkFlex","25px",1,"green-300-fg","mr-4"],["fxFlex","30px"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["fxFlex","40%"],[1,""],[4,"ngFor","ngForOf"],["fxFlex","20%"],[3,"click"],[4,"ngIf"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Search Annotations"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),ue(13," Select Term "),H(14,"div",9)(15,"small"),ue(16,"Please select below"),G()()()(),H(17,"div",10),ke(18,jje,4,4,"div",11),G()(),H(19,"div",12)(20,"div",7)(21,"div",13),ue(22," Select Evidence "),H(23,"small"),ue(24,"(optional)"),G(),H(25,"div",9)(26,"small"),ue(27),G()()()(),H(28,"div",10)(29,"mat-table",14,15),er(31,16),ke(32,Wje,2,2,"mat-header-cell",17),ke(33,qje,2,1,"mat-cell",18),tr(),er(34,19),ke(35,$je,2,0,"mat-header-cell",20),ke(36,Zje,5,2,"mat-cell",21),tr(),er(37,22),ke(38,Kje,2,0,"mat-header-cell",23),ke(39,Jje,3,1,"mat-cell",24),tr(),er(40,25),ke(41,eWe,2,0,"mat-header-cell",23),ke(42,tWe,3,1,"mat-cell",24),tr(),er(43,26),ke(44,nWe,2,0,"mat-header-cell",27),ke(45,rWe,2,1,"mat-cell",28),tr(),ke(46,aWe,1,0,"mat-header-row",29),ke(47,sWe,1,0,"mat-row",30),G()()()(),H(48,"div",31),Qe(49,"span",3),H(50,"button",32),et("click",function(){return i.close()}),ue(51,"Cancel"),G(),H(52,"button",33),et("click",function(){return i.save()}),ue(53,"Done"),G()()()),2&e&&(W(18),J("ngForOf",i.activityNodes),W(9),qo(null==i.selectedActivityNode?null:i.selectedActivityNode.getTerm().label),W(2),J("dataSource",i.dataSource)("@animateStagger",_i(6,cWe)),W(17),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns))},directives:[Oo,So,ko,Fo,Ir,ts,$o,ds,ac,$g,gQ,Zf,Qf,Kf,Uf,Xf,Jf,Ih,$f,qf,Yi,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%]{background-color:#eee;border-right:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%]{font-size:10px;color:#555;padding:10px 0;border-bottom:rgba(59,89,152,.2) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:12px;width:12px;min-width:12px;max-width:12px;height:12px;min-height:12px;max-height:12px;display:none}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%]{color:#000;font-weight:700}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:initial}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();function ine(t){this._context=t}function gv(t){return new ine(t)}function one(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function lS(t){this._context=t}function rne(t,n){this._basis=new lS(t),this._beta=n}ine.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},lS.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:one(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:one(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},rne.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var u,i=t[0],o=n[0],r=t[e]-i,a=n[e]-o,l=-1;++l<=e;)this._basis.point(this._beta*t[l]+(1-this._beta)*(i+(u=l/e)*r),this._beta*n[l]+(1-this._beta)*(o+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const dWe=function t(n){function e(i){return 1===n?new lS(i):new rne(i,n)}return e.beta=function(i){return t(+i)},e}(.85);function ane(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function sR(t,n){this._context=t,this._k=(1-n)/6}sR.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:ane(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:ane(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const uWe=function t(n){function e(i){return new sR(i,n)}return e.tension=function(i){return t(+i)},e}(0),sne=Math.abs,Ld=Math.atan2,bm=Math.cos,hWe=Math.max,cR=Math.min,q0=Math.sin,k_=Math.sqrt,Dd=1e-12,mv=Math.PI,dS=mv/2,uS=2*mv;function pWe(t){return t>1?0:t<-1?mv:Math.acos(t)}function cne(t){return t>=1?dS:t<=-1?-dS:Math.asin(t)}function lne(t,n){this._context=t,this._alpha=n}lne.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:!function fWe(t,n,e){var i=t._x1,o=t._y1,r=t._x2,a=t._y2;if(t._l01_a>Dd){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Dd){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,w=3*t._l23_a*(t._l23_a+t._l12_a);r=(r*f+t._x1*t._l23_2a-n*t._l12_2a)/w,a=(a*f+t._y1*t._l23_2a-e*t._l12_2a)/w}t._context.bezierCurveTo(i,o,r,a,t._x2,t._y2)}(this,t,n)}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=n}};const gWe=function t(n){function e(i){return n?new lne(i,n):new sR(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function dne(t){return t<0?-1:1}function une(t,n,e){var i=t._x1-t._x0,o=n-t._x1,r=(t._y1-t._y0)/(i||o<0&&-0),a=(e-t._y1)/(o||i<0&&-0),l=(r*o+a*i)/(i+o);return(dne(r)+dne(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(l))||0}function hne(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function lR(t,n,e){var i=t._x0,r=t._x1,a=t._y1,l=(r-i)/3;t._context.bezierCurveTo(i+l,t._y0+l*n,r-l,a-l*e,r,a)}function hS(t){this._context=t}function pne(t){this._context=new fne(t)}function fne(t){this._context=t}function mWe(t){return new hS(t)}function _We(t){return new pne(t)}function gne(t){this._context=t}function mne(t){var n,i,e=t.length-1,o=new Array(e),r=new Array(e),a=new Array(e);for(o[0]=0,r[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)o[n]=(a[n]-o[n+1])/r[n];for(r[e-1]=(t[e]+o[e-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};let _ne=(()=>{class t{constructor(){this.layout="dagre",this.curveType="Bundle",this.curve=gv,this.interpolationTypes=["Bundle","Cardinal","Catmull Rom","Linear","Monotone X","Monotone Y","Natural","Step","Step After","Step Before"],this.draggingEnabled=!0,this.panningEnabled=!0,this.zoomEnabled=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.panOnZoom=!1,this.autoZoom=!0,this.autoCenter=!0,this.update$=new N,this.center$=new N,this.zoomToFit$=new N,this.layoutSettings={edgePadding:100,nodePadding:100,orientation:"LR"}}set nodes(e){this._nodes=[...e],this.update$.next(!0)}get nodes(){return this._nodes}set edges(e){this._edges=[...e],this.update$.next(!0)}get edges(){return this._edges}ngOnInit(){this.setInterpolationType(this.curveType),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},10)}setInterpolationType(e){this.curveType=e,"Bundle"===e&&(this.curve=dWe.beta(1)),"Cardinal"===e&&(this.curve=uWe),"Catmull Rom"===e&&(this.curve=gWe),"Linear"===e&&(this.curve=gv),"Monotone X"===e&&(this.curve=mWe),"Monotone Y"===e&&(this.curve=_We),"Natural"===e&&(this.curve=CWe),"Step"===e&&(this.curve=vWe),"Step After"===e&&(this.curve=xWe),"Step Before"===e&&(this.curve=bWe)}getStyles(e){return{"background-color":e.data.backgroundColor}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["noc-graph-preview"]],inputs:{nodes:"nodes",edges:"edges"},decls:8,vars:20,consts:[[1,"w-100-p","h-100-p","noc-graph-holder"],[3,"links","nodes","curve","layout","nodeWidth","nodeHeight","layoutSettings","draggingEnabled","panningEnabled","enableZoom","zoomSpeed","minZoomLevel","maxZoomLevel","panOnZoom","autoZoom","autoCenter","update$","center$","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["xmlns","http://www.w3.org/2000/xhtml","width","120","height","50",1,"node"],["width","120","height","50"],["xmlns","http://www.w3.org/1999/xhtml",1,"cardContainer",3,"ngStyle"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"],["class","linkMidpoint",4,"ngIf"],[1,"linkMidpoint"],["alignment-baseline","central"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"ngx-graph",1),ke(2,yWe,2,0,"ng-template",null,2,tu),ke(4,wWe,4,2,"ng-template",null,3,tu),ke(6,OWe,5,4,"ng-template",null,4,tu),G()()),2&e&&(W(1),J("links",i.edges)("nodes",i.nodes)("curve",i.curve)("layout",i.layout)("nodeWidth",120)("nodeHeight",50)("layoutSettings",i.layoutSettings)("curve",i.curve)("draggingEnabled",i.draggingEnabled)("panningEnabled",i.panningEnabled)("enableZoom",i.zoomEnabled)("zoomSpeed",i.zoomSpeed)("minZoomLevel",i.minZoomLevel)("maxZoomLevel",i.maxZoomLevel)("panOnZoom",i.panOnZoom)("autoZoom",i.autoZoom)("autoCenter",i.autoCenter)("update$",i.update$)("center$",i.center$)("zoomToFit$",i.zoomToFit$))},directives:[jRe,Og,pI,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;height:100%;background-color:#f2f2f2;background-size:10px 10px;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px),linear-gradient(to bottom,rgba(0,0,0,.1) 1px,transparent 1px)}[_nghost-%COMP%] .noc-graph-holder[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .cardContainer[_ngcontent-%COMP%]{padding:4px;height:50px;width:120px;display:block;border:#3b5998 solid 1px;background-color:#cce3fa;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .cardContainer[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;text-align:center;font-size:20px;margin-top:4px;margin-bottom:8px}[_nghost-%COMP%] .linkMidpoint[_ngcontent-%COMP%] ellipse[_ngcontent-%COMP%]{fill:#fff;stroke:#000;stroke-width:1}[_nghost-%COMP%] .linkMidpoint[_ngcontent-%COMP%] text[_ngcontent-%COMP%]{stroke:transparent;fill:#000;text-anchor:middle;font-size:10px}']}),t})();function SWe(t,n){if(1&t&&Qe(0,"noc-graph-preview",9),2&t){const e=Ae();J("nodes",null==e.noctuaActivityFormService.activity?null:e.noctuaActivityFormService.activity.graphPreview.nodes)("edges",null==e.noctuaActivityFormService.activity?null:e.noctuaActivityFormService.activity.graphPreview.edges)}}let PWe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this.noctuaFormConfigService=i,this.noctuaActivityFormService=o,this.evidence=[],this.activityNodes=[],this.displayedColumns=["select","evidence","reference","with","assignedBy"],this.selection=new Qu(!0,[]),this._unsubscribeAll=new N}ngOnInit(){this.preview()}preview(){this.noctuaActivityFormService.activity.setPreview()}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["app-preview-activity"]],decls:15,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["class","noc-graph-preview",3,"nodes","edges",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],[1,"noc-graph-preview",3,"nodes","edges"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Preview"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ke(10,SWe,1,2,"noc-graph-preview",6),G(),H(11,"div",7),Qe(12,"span",3),H(13,"button",8),et("click",function(){return i.close()}),ue(14,"Close"),G()()()),2&e&&(W(10),J("ngIf",i.noctuaActivityFormService.activity))},directives:[Oo,So,ko,Fo,Ir,Yi,_ne],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();class fS extends class TWe{constructor(){this.expansionModel=new Qu(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let o=this.dataNodes.indexOf(n)+1;othis._trackByValue(n)))}}const gS=new ui("CDK_TREE_NODE_OUTLET_NODE");let _v=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(gS,8))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class EWe{constructor(n){this.$implicit=n}}let mS=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),w3=(()=>{class t{constructor(e,i){this._differs=e,this._changeDetectorRef=i,this._onDestroy=new N,this._levels=new Map,this.viewChange=new Io({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const e=this._nodeDefs.filter(i=>!i.when);this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let e;lM(this._dataSource)?e=this._dataSource.connect(this):Jk(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=rr(this._dataSource)),e&&(this._dataSubscription=e.pipe(Yn(this._onDestroy)).subscribe(i=>this.renderNodeChanges(i)))}renderNodeChanges(e,i=this._dataDiffer,o=this._nodeOutlet.viewContainer,r){const a=i.diff(e);!a||(a.forEachOperation((l,u,f)=>{if(null==l.previousIndex)this.insertNode(e[f],f,o,r);else if(null==f)o.remove(u),this._levels.delete(l.item);else{const w=o.get(u);o.move(w,f)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(r=>r.when&&r.when(i,e))||this._defaultNodeDef}insertNode(e,i,o,r){const a=this._getNodeDef(e,i),l=new EWe(e);l.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==r&&this._levels.has(r)?this._levels.get(r)+1:0,this._levels.set(e,l.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,l,i),$0.mostRecentTreeNode&&($0.mostRecentTreeNode.data=e)}}return t.\u0275fac=function(e){return new(e||t)(de(nu),de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["cdk-tree"]],contentQueries:function(e,i,o){if(1&e&&mr(o,mS,5),2&e){let r;fi(r=gi())&&(i._nodeDefs=r)}},viewQuery:function(e,i){if(1&e&&_o(_v,7),2&e){let o;fi(o=gi())&&(i._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[_v],encapsulation:2}),t})(),$0=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new N,this._dataChanges=new N,t.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(e){this._elementRef.nativeElement.setAttribute("role",e)}get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function AWe(t){let n=t.parentElement;for(;n&&!LWe(n);)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?Vc(n.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.mostRecentTreeNode=null,t.\u0275fac=function(e){return new(e||t)(de(Ti),de(w3))},t.\u0275dir=St({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(e,i){2&e&&Un("aria-expanded",i.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t})();function LWe(t){const n=t.classList;return!(!(null==n?void 0:n.contains("cdk-nested-tree-node"))&&!(null==n?void 0:n.contains("cdk-tree")))}const DWe=/([A-Za-z%]+)$/;let uR=(()=>{class t{constructor(e,i,o,r){this._treeNode=e,this._tree=i,this._element=o,this._dir=r,this._destroyed=new N,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(Yn(this._destroyed)).subscribe(()=>this._setPadding(!0)),e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?`${i*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){const i=this._paddingIndent();if(i!==this._currentPadding||e){const o=this._element.nativeElement,r=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",a="paddingLeft"===r?"paddingRight":"paddingLeft";o.style[r]=i||"",o.style[a]="",this._currentPadding=i}}_setLevelInput(e){this._level=Vc(e,null),this._setPadding()}_setIndentInput(e){let i=e,o="px";if("string"==typeof e){const r=e.split(DWe);i=r[0],o=r[1]||o}this.indentUnits=o,this._indent=Vc(i),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(de($0),de(w3),de(Ti),de(Sl,8))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),hR=(()=>{class t{constructor(e,i){this._tree=e,this._treeNode=i,this._recursive=!1}get recursive(){return this._recursive}set recursive(e){this._recursive=no(e)}_toggle(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(de(w3),de($0))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,i){1&e&&et("click",function(r){return i._toggle(r)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),kWe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const IWe=Hg(E0($0));let pR=(()=>{class t extends IWe{constructor(e,i,o){super(e,i),this.tabIndex=Number(o)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(w3),Yl("tabindex"))},t.\u0275dir=St({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[mo([{provide:$0,useExisting:t}]),ei]}),t})(),fR=(()=>{class t extends mS{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[mo([{provide:mS,useExisting:t}]),ei]}),t})(),gR=(()=>{class t extends uR{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[mo([{provide:uR,useExisting:t}]),ei]}),t})(),mR=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}}return t.\u0275fac=function(e){return new(e||t)(de(oc),de(gS,8))},t.\u0275dir=St({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[mo([{provide:_v,useExisting:t}])]}),t})(),_R=(()=>{class t extends w3{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-tree"]],viewQuery:function(e,i){if(1&e&&_o(mR,7),2&e){let o;fi(o=gi())&&(i._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[mo([{provide:w3,useExisting:t}]),ei],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[mR],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),CR=(()=>{class t extends hR{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[mo([{provide:hR,useExisting:t}]),ei]}),t})(),RWe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[kWe,Xo],Xo]}),t})();class zWe{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){const r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,o):a.pipe(Ja(1)).subscribe(l=>{this._flattenChildren(l,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,a)=>{let l=o.slice();l.push(a!=n.length-1),this._flattenNode(r,e+1,i,l)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let a=!0;for(let l=0;l<=this.getLevel(r);l++)a=a&&o[l];a&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}}class FWe extends rX{constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new Io([]),this._expandedData=new Io([]),this._data=new Io([]),i&&(this.data=i)}get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(n){return kr(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(it(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}const Cne=function(t){return{"background-highlight":t}};function HWe(t,n){if(1&t){const e=Ln();H(0,"mat-tree-node",18)(1,"div",19),Qe(2,"button",20),H(3,"mat-checkbox",21),et("change",function(){const r=Dt(e).$implicit;return Ae(2).evidenceLeafItemSelectionToggle(r)}),G(),H(4,"div",22),ue(5),G(),H(6,"div",23),ue(7),G(),H(8,"div",23),ue(9),G(),H(10,"div",3),ue(11),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);J("ngClass",wo(6,Cne,i.activeAnnotation===e.short_name)),W(3),J("checked",i.checklistSelection.isSelected(e)),W(2),Nt(" ",null==e.evidence||null==e.evidence.evidence?null:e.evidence.evidence.label," "),W(2),Nt(" ",null==e.evidence?null:e.evidence.reference," "),W(2),Nt(" ",null==e.evidence?null:e.evidence.with," "),W(2),Nt(" ",null==e.evidence||null==e.evidence.assignedBy?null:e.evidence.assignedBy.label," ")}}const VWe=function(){return["fas","chevron-right"]};function BWe(t,n){1&t&&Qe(0,"fa-icon",28),2&t&&J("icon",_i(1,VWe))}const GWe=function(){return["fas","chevron-down"]};function YWe(t,n){1&t&&Qe(0,"fa-icon",28),2&t&&J("icon",_i(1,GWe))}function UWe(t,n){if(1&t&&(H(0,"mat-tree-node",24)(1,"button",25),ke(2,BWe,1,2,"fa-icon",26),ke(3,YWe,1,2,"fa-icon",26),G(),ue(4),H(5,"small"),ue(6),G(),ue(7,") "),Qe(8,"span",3),H(9,"div",27),ue(10),G()()),2&t){const e=n.$implicit,i=Ae(2);J("ngClass",wo(6,Cne,i.activeAnnotation===e.short_name)),W(2),J("ngIf",!i.treeControl.isExpanded(e)),W(1),J("ngIf",i.treeControl.isExpanded(e)),W(1),Nt(" ",null==e.activityNode||null==e.activityNode.term?null:e.activityNode.term.label," ("),W(2),qo(null==e.activityNode||null==e.activityNode.term?null:e.activityNode.term.id),W(4),Nt(" ",e.count," ")}}function jWe(t,n){if(1&t&&(H(0,"div",13)(1,"mat-tree",14,15),ke(3,HWe,12,8,"mat-tree-node",16),ke(4,UWe,11,8,"mat-tree-node",17),G()()),2&t){const e=Ae();W(1),J("dataSource",e.dataSource)("treeControl",e.treeControl),W(3),J("matTreeNodeDefWhen",e.hasChild)}}class vne{}class WWe{constructor(){this.count=0}}let qWe=(()=>{class t{constructor(e,i,o,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.noctuaLookupService=r,this.activityNodes=[],this.selection=new Qu(!0,[]),this.selectedParent=null,this.checklistSelection=new Qu(!0),this.getLevel=a=>a.level,this.isExpandable=a=>a.expandable,this.getChildren=a=>a.children,this.hasChild=(a,l)=>l.expandable,this.transformer=(a,l)=>{const u=new WWe;return u.activityNode=a.activityNode,u.evidence=a.evidence,u.level=l,u.expandable=!!a.children,u.count=a.children?a.children.length:0,u},this._unsubscribeAll=new N,this.searchCriteria=this._data.searchCriteria}ngOnInit(){this.initialize(),this.treeFlattener=new zWe(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new fS(this.getLevel,this.isExpandable),this.dataSource=new FWe(this.treeControl,this.treeFlattener)}initialize(){this.noctuaLookupService.companionLookup(this.searchCriteria.gpNode.id,this.searchCriteria.aspect,this.searchCriteria.params).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{this.activityNodes=i,this.dataSource.data=this._buildAnnotationTree(this.activityNodes)})}save(){const e=[];(0,Zt.each)(this.checklistSelection.selected,i=>{i.evidence&&e.push(i.evidence)}),this._matDialogRef.close({evidences:e})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}descendantsAllSelected(e){return this.treeControl.getDescendants(e).every(r=>this.checklistSelection.isSelected(r))}descendantsPartiallySelected(e){return this.treeControl.getDescendants(e).some(r=>this.checklistSelection.isSelected(r))&&!this.descendantsAllSelected(e)}evidenceItemSelectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i),i.every(o=>this.checklistSelection.isSelected(o)),this.checkAllParentsSelection(e)}evidenceLeafItemSelectionToggle(e){this.checklistSelection.toggle(e),this.checkAllParentsSelection(e)}checkAllParentsSelection(e){let i=this.getParentNode(e);for(;i;)this.checkRootNodeSelection(i),i=this.getParentNode(i)}checkRootNodeSelection(e){const i=this.checklistSelection.isSelected(e),r=this.treeControl.getDescendants(e).every(a=>this.checklistSelection.isSelected(a));i&&!r?this.checklistSelection.deselect(e):!i&&r&&this.checklistSelection.select(e)}getParentNode(e){const i=this.getLevel(e);if(i<1)return null;for(let r=this.treeControl.dataNodes.indexOf(e)-1;r>=0;r--){const a=this.treeControl.dataNodes[r];if(this.getLevel(a){const r=new vne;return r.activityNode=o,r.children=o.predicate.evidence.map(a=>{const l=new vne;return l.evidence=a,l}),r})}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co),de(Sd))},t.\u0275cmp=vn({type:t,selectors:[["app-search-evidence"]],decls:22,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["class","noc-section-body w-100-p","noctuaPerfectScrollbar","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],[3,"dataSource","treeControl"],["tree",""],["class","ann-tree-node","matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","10",3,"ngClass",4,"matTreeNodeDef"],["fxLayout","row","class","ann-tree-node text-truncate","matTreeNodePadding","","matTreeNodePaddingIndent","10",3,"ngClass",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","10",1,"ann-tree-node",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p"],["mat-icon-button","","disabled","",1,"ann-icon-button"],[1,"checklist-leaf-node","mr-8",3,"checked","change"],["fxFlex","30%"],["fxFlex","20%"],["fxLayout","row","matTreeNodePadding","","matTreeNodePaddingIndent","10",1,"ann-tree-node","text-truncate",3,"ngClass"],["mat-icon-button","","matTreeNodeToggle","",1,""],[3,"icon",4,"ngIf"],["fxFlex","100px",1,""],[3,"icon"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Search Evidence"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),ue(13),Qe(14,"small"),G()(),ke(15,jWe,5,3,"div",9),G()(),H(16,"div",10),Qe(17,"span",3),H(18,"button",11),et("click",function(){return i.close()}),ue(19,"Cancel"),G(),H(20,"button",12),et("click",function(){return i.save()}),ue(21,"Done"),G()()()),2&e&&(W(13),Nt(" Selected Evidence : ",i.checklistSelection.selected.length," "),W(2),J("ngIf",i.dataSource.data))},directives:[Oo,So,ko,Fo,Ir,Yi,ts,_R,fR,pR,CR,gR,ds,ac,Uf,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{background-color:#eee}[_nghost-%COMP%] .noc-term-box[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-term-box[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%]{padding:12px 8px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();function $We(t,n){if(1&t&&(H(0,"div",17)(1,"div",18)(2,"div"),ue(3),G()(),H(4,"div",19)(5,"div",20),ue(6),G()(),H(7,"div",18)(8,"div"),ue(9),G()()()),2&t){const e=Ae().$implicit;W(3),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label,""),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," "),W(3),qo(null==e.meta||null==e.meta.objectNode?null:e.meta.objectNode.label)}}function XWe(t,n){if(1&t&&(H(0,"div",21)(1,"div",18),ue(2),G(),H(3,"div",22)(4,"div",20),ue(5),G()()()),2&t){const e=Ae().$implicit;W(2),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label," "),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," ")}}function QWe(t,n){if(1&t&&(H(0,"div",11)(1,"div",12),ue(2),G(),H(3,"div",13)(4,"div",14)(5,"strong"),ue(6),G(),ue(7),G(),ke(8,$We,10,3,"div",15),ke(9,XWe,6,2,"div",16),G()()),2&t){const e=n.$implicit,i=n.index,o=Ae();W(2),Nt(" ",i+1," "),W(4),qo(null==e.meta?null:e.meta.aspect),W(1),Nt(": ",e.message," "),W(1),J("ngIf",e.type===o.ErrorType.relation),W(1),J("ngIf",e.type===o.ErrorType.cardinality)}}let ZWe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.ErrorType=El,this.ErrorLevel=Al,this._unsubscribeAll=new N,this.errors=this._data.errors}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-cam-errors"]],decls:17,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start stretch",1,""],["class","noc-error-row","fxLayout","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["mat-raised-button","","color","",1,"mr-8",3,"click"],["fxLayout","row",1,"noc-error-row"],[1,"noc-number"],["fxFlex","",1,"noc-error-row-body"],[1,"noc-heading"],["class","pb-10","fxLayout","row",4,"ngIf"],["class","pb-10","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row",1,"pb-10"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-node-card"],["fxLayout","column","fxLayoutAlign","center stretch","fxFlex","",1,"noc-edge-card"],[1,"noc-line"],["fxLayout","row","fxLayoutAlign","center center",1,"pb-10"],["fxFlex","","fxLayout","column","fxLayoutAlign","center stretch",1,"noc-edge-card"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),ue(4," Violations"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()()(),H(10,"div",6)(11,"div",7),ke(12,QWe,10,5,"div",8),G()(),H(13,"div",9),Qe(14,"span",4),H(15,"button",10),et("click",function(){return i.close()}),ue(16,"Close"),G()()()),2&e&&(W(12),J("ngForOf",i.errors))},directives:[Kp,Zp,ko,Oo,So,Fo,Ir,oC,ts,$o,Yi,rC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%]{border-bottom:#CCC double 1px;width:100%}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{padding:18px 2px;width:40px;min-width:40px;max-width:40px;background-color:#ddd;font-size:12px;text-align:center}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-error-row-body[_ngcontent-%COMP%]{padding:8px 10px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding:8px 0;font-size:14px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card[_ngcontent-%COMP%]{padding:5px;height:100px;min-height:100px;max-height:100px;width:250px;min-width:250px;max-width:250px;border:#AAA double 2px;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-lg[_ngcontent-%COMP%]{height:100px;min-height:100px;max-height:100px;width:150px;min-width:150px;max-width:150px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-long[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-edge-card[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding-top:15px;height:35px;min-height:35px;max-height:35px;width:100%;min-width:100%;max-width:100%;border-bottom:#AAA solid 2px;text-align:center}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})();function KWe(t,n){1&t&&Qe(0,"noc-activity-form",1),2&t&&J("closeDialog",Ae().closeDialog)}function JWe(t,n){1&t&&Qe(0,"noc-activity-connector",1),2&t&&J("closeDialog",Ae().closeDialog)}let bne=(()=>{class t{constructor(e,i,o,r){this._matDialogRef=e,this.activityFormService=i,this._data=o,this.noctuaFormConfigService=r,this.FormType=f_,this.closeDialog=this.close.bind(this),this._unsubscribeAll=new N,this.formType=o.formType}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(Ts),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-create-activity-dialog"]],decls:2,vars:2,consts:[[3,"closeDialog",4,"ngIf"],[3,"closeDialog"]],template:function(e,i){1&e&&(ke(0,KWe,1,1,"noc-activity-form",0),ke(1,JWe,1,1,"noc-activity-connector",0)),2&e&&(J("ngIf",i.formType===i.FormType.ACTIVITY),W(1),J("ngIf",i.formType===i.FormType.ACTIVITY_CONNECTOR))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%]{position:relative;height:400px!important;min-height:400px!important;max-height:400px!important}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;width:100%;min-width:100%;max-width:100%;height:100%!important;min-height:100%!important;max-height:100%!important}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})();class vR{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const xne=new ui("referenceDropdownData");function eqe(t,n){if(1&t&&(H(0,"mat-option",9),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function tqe(t,n){if(1&t&&(H(0,"div",10)(1,"div",11)(2,"a",12),et("click",function(i){return i.stopPropagation()}),ue(3),G()(),H(4,"div",13)(5,"mat-icon",14),ue(6,"person"),G(),H(7,"span"),ue(8),G()(),H(9,"div",15)(10,"mat-icon",14),ue(11,"date_range"),G(),H(12,"span"),ue(13),G()()()),2&t){const e=Ae();W(2),Ro("href",e.article.link,ao),W(1),Nt(" ",e.article.title," "),W(5),qo(e.article.author),W(5),qo(e.article.date)}}let nqe=(()=>{class t{constructor(e,i,o,r,a,l){this.dialogRef=e,this.data=i,this.noctuaLookupService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this._unsubscribeAll=new N,this.formControl=i.formControl}ngOnInit(){this.evidenceDBForm=this._createEvidenceDBForm(),this._onValueChange()}clearValues(){}save(){const e=this,i=this.evidenceDBForm.value.db,o=this.evidenceDBForm.value.accession,r=[];let a=!0;if(""===o.trim()){const l=new wd(Al.error,El.general,`${i.name} accession is required`);r.push(l),e.noctuaFormDialogService.openActivityErrorsDialog(r),a=!1}a&&(this.formControl.setValue(i.name+":"+o.trim()),this.close())}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}_createEvidenceDBForm(){return new td({db:new Do(this.noctuaFormConfigService.evidenceDBs.selected),accession:new Do("",[P6.required])})}_onValueChange(){const e=this;e.evidenceDBForm.valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(1e3)).subscribe(i=>{e.article=null,e._updateArticle(i)})}close(){this.dialogRef.close()}_updateArticle(e){const i=this;if(e.db.name===Ft.evidenceDB.options.pmid.name&&e.accession){const o=e.accession.trim();if(""===o)return;this.noctuaLookupService.getPubmedInfo(o).pipe(Yn(this._unsubscribeAll)).subscribe(r=>{i.article=r})}}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(vR),de(xne),de(Sd),de(jc),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-reference-dropdown"]],decls:15,vars:3,consts:[["novalidate","","fxLayout","column","fxLayoutAlign","start stretch",1,"pl-8","pr-8","w-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["appearance","outline","fxFlex","100px",1,"noc-sm","mr-12"],["placeholder","","formControlName","db"],[3,"value",4,"ngFor","ngForOf"],["appearance","outline","fxFlex","",1,"noc-sm","w-100-p"],["matInput","","formControlName","accession","type","text","placeholder","Accession","autocomplete","off"],["mat-icon-button","",3,"click"],["class","noc-article-info","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],[3,"value"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-article-info"],[1,"noc-article-title","w-100-p"],["target","_blank",3,"href","click"],[1,"noc-article-author","w-100-p"],[1,"s-16","mr-4"],[1,"noc-article-date","w-100-p"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),ke(4,eqe,2,2,"mat-option",4),G()(),H(5,"mat-form-field",5),Qe(6,"input",6),G(),H(7,"button",7),et("click",function(){return i.close()}),H(8,"mat-icon"),ue(9,"cancel"),G()(),H(10,"button",7),et("click",function(){return i.save()}),H(11,"mat-icon"),ue(12,"check_circle"),G()()(),H(13,"div",1),ke(14,tqe,14,4,"div",8),G()()),2&e&&(J("formGroup",i.evidenceDBForm),W(4),J("ngForOf",i.noctuaFormConfigService.evidenceDBs.options),W(10),J("ngIf",i.article))},directives:[nd,tl,Oo,So,Gc,id,ko,qg,Pl,Xl,$o,J1,E2,ed,Fo,Ir,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const iqe={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let xm=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const o=Object.assign(Object.assign({},iqe),i);o.positionStrategy=this._getPosition(e);const a=this.createOverlay(o),l=new vR(a);return this.attachDialogContainer(a,o,l),a.backdropClick().subscribe(f=>l.close()),l}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(vR,i),o.set(xne,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(nqe,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}getLink(){}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oqe(t,n){if(1&t&&(H(0,"a",31),et("click",function(i){return i.stopPropagation()}),ue(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function rqe(t,n){if(1&t&&(H(0,"span"),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function aqe(t,n){if(1&t&&(H(0,"mat-option",25)(1,"div",6)(2,"div",26),ue(3),G(),Qe(4,"span",3),H(5,"div",27)(6,"strong"),ue(7),G()(),H(8,"div",28),ke(9,oqe,2,2,"a",29),ke(10,rqe,2,1,"span",30),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(4),Nt(" ",e.xref," "),W(2),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function sqe(t,n){if(1&t&&(H(0,"mat-option",25)(1,"div",6)(2,"div",26),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function cqe(t,n){if(1&t&&(H(0,"mat-option",25)(1,"div",6)(2,"div",26),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}let lqe=(()=>{class t{constructor(e,i,o,r,a,l){this._matDialogRef=e,this._noctuaActivityEntityService=i,this.camService=o,this.inlineReferenceService=r,this._data=a,this.noctuaFormConfigService=l,this._fb=new e2,this.searchFormData={},this.cam={},this._unsubscribeAll=new N,this.evidenceFormGroup=this.createEvidenceForm()}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createEvidenceForm(){return this.entity=mu([]),this.entityForm=this._noctuaActivityEntityService.createActivityEntityForm(this.entity),this._fb.group(this.entityForm).get("evidenceFormArray").at(0)}clearValues(){this.entity.clearValues()}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.evidenceFormGroup.controls[i]}})}updateEvidenceList(){this.camService.updateEvidenceList(null,this.entity)}updateReferenceList(){this.camService.updateReferenceList(null,this.entity)}updateWithList(){this.camService.updateWithList(null,this.entity)}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}save(){this.entityForm.populateTermEvidenceOnly(),this._matDialogRef.close(this.entity.predicate.evidence)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(Pd),de(Zr),de(xm),de(t2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-add-evidence"]],decls:45,vars:8,consts:[[1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[3,"formGroup"],["fxFlex","250px",1,"noc-edit-field","p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"noc-term-label"],[1,"noc-term-id","mr-8"],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href","click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Add Evidence "),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5)(10,"div",6),er(11,7),H(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),ue(15,"Evidence"),G(),H(16,"textarea",10),et("focus",function(){return i.updateEvidenceList()}),G(),H(17,"mat-autocomplete",11,12),ke(19,aqe,11,5,"mat-option",13),G()()(),H(20,"div",14)(21,"mat-form-field",9)(22,"mat-label"),ue(23,"Reference"),G(),H(24,"textarea",15),et("focus",function(){return i.updateReferenceList()}),G(),H(25,"button",16),et("click",function(r){return i.openAddReference(r,"reference")}),H(26,"mat-icon"),ue(27,"playlist_add"),G()(),H(28,"mat-autocomplete",17,18),ke(30,sqe,4,2,"mat-option",13),G()()(),H(31,"div",19)(32,"mat-form-field",9)(33,"mat-label"),ue(34,"With"),G(),H(35,"textarea",20),et("focus",function(){return i.updateWithList()}),G(),H(36,"mat-autocomplete",17,21),ke(38,cqe,4,2,"mat-option",13),G()()(),tr(),G()(),H(39,"div",22),Qe(40,"span",3),H(41,"button",23),et("click",function(){return i.close()}),ue(42,"Cancel"),G(),H(43,"button",24),et("click",function(){return i.save()}),ue(44,"Save"),G()()()),2&e){const o=Di(18),r=Di(29),a=Di(37);W(11),J("formGroup",i.evidenceFormGroup),W(5),J("matAutocomplete",o),W(1),J("displayWith",i.evidenceDisplayFn),W(2),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.evidenceLookup.results),W(5),J("matAutocomplete",r),W(6),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.referenceLookup.results),W(5),J("matAutocomplete",a),W(3),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.withLookup.results)}},directives:[Oo,So,ko,Fo,Ir,tl,Gc,id,yd,E2,ed,kh,Pl,Xl,I0,$o,J1,Yi,E6],styles:[""]}),t})(),dqe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this.noctuaFormConfigService=i,this._data=o,this._unsubscribeAll=new N,this.cam=o.cam,this.camForm=this.createCamForm(this.cam)}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createCamForm(e){return new td({title:new Do("Copy of "+(null==e?void 0:e.title))})}save(){this._matDialogRef.close(this.camForm.value)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(Co),de(t2))},t.\u0275cmp=vn({type:t,selectors:[["app-confirm-copy-model"]],decls:23,vars:1,consts:[[1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-section","w-100-p"],[3,"formGroup"],["fxFlex","",1,"noc-edit-field","p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","title","rows","2"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Edit Title & Confirm Copy"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5)(10,"div",6),er(11,7),H(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),ue(15,"Title"),G(),Qe(16,"textarea",10),G()(),tr(),G()(),H(17,"div",11),Qe(18,"span",3),H(19,"button",12),et("click",function(){return i.close()}),ue(20,"Cancel"),G(),H(21,"button",13),et("click",function(){return i.save()}),ue(22,"Save"),G()()()),2&e&&(W(11),J("formGroup",i.camForm))},directives:[Oo,So,ko,Fo,Ir,tl,Gc,id,yd,E2,ed,Pl,Xl],styles:[""]}),t})();function uqe(t,n){1&t&&(H(0,"div",17),ue(1," No comments yet "),G())}const hqe=function(){return["far","trash-alt"]};function pqe(t,n){if(1&t){const e=Ln();H(0,"div",18)(1,"div",19)(2,"div",20)(3,"mat-form-field",21)(4,"mat-label"),ue(5,"Comment"),G(),Qe(6,"textarea",22),G(),H(7,"button",23),et("click",function(){const r=Dt(e).index;return Ae().deleteComment(r)}),Qe(8,"fa-icon",24),G()()()()}if(2&t){const e=n.index;W(6),J("formControlName",e),W(2),J("icon",_i(2,hqe))}}let fqe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this.noctuaFormConfigService=i,this._data=o,this._unsubscribeAll=new N,this.predicate=o.predicate,this.commentsFormGroup=this.createForm(),this.commentsFormArray=this.commentsFormGroup.get("commentsFormArray")}ngOnInit(){this.predicate.comments.forEach(e=>{this.commentsFormArray.push(new Do(e))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createForm(){return new td({commentsFormArray:new Xu([])})}addComment(){this.commentsFormArray.push(new Do)}deleteComment(e){this.commentsFormArray.removeAt(e),this.save()}save(){this._matDialogRef.close(this.commentsFormGroup.value.commentsFormArray)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(od),de(Co),de(t2))},t.\u0275cmp=vn({type:t,selectors:[["app-comments"]],decls:27,vars:3,consts:[["name","commentsFormGroup",1,"dialog-content-wrapper","noc-dialog",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","pr-8"],[1,"noc-section-heading"],["mat-stroked-button","","type","submit","color","primary",1,"noc-xs","noc-rounded-button",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["class","noc-no-info",4,"ngIf"],["fxLayout","column",1,"p-4"],["formArrayName","commentsFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[1,"noc-no-info"],["formArrayName","commentsFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["fxFlex","",1,"noc-form-field-container"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","rows","2",3,"formControlName"],["mat-icon-button","",1,"noc-delete-float-button",3,"click"],[3,"icon"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Comments"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),ue(13," Comments "),G(),Qe(14,"span",3),H(15,"button",9),et("click",function(){return i.addComment()}),ue(16," Add "),G()(),H(17,"div",10),ke(18,uqe,2,0,"div",11),H(19,"div",12),ke(20,pqe,9,3,"div",13),G()()()(),H(21,"div",14),Qe(22,"span",3),H(23,"button",15),et("click",function(){return i.close()}),ue(24,"Cancel"),G(),H(25,"button",16),et("click",function(){return i.save()}),ue(26,"Save"),G()()()),2&e&&(J("formGroup",i.commentsFormGroup),W(18),J("ngIf",0===(null==i.predicate?null:i.predicate.comments.length)),W(2),J("ngForOf",null==i.commentsFormArray?null:i.commentsFormArray.controls))},directives:[nd,tl,Gc,Oo,So,ko,Fo,Ir,Yi,$o,k0,id,yd,E2,ed,Pl,Xl,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%] .noc-delete-float-button[_ngcontent-%COMP%]{margin-top:5px;visibility:hidden}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]:hover .noc-delete-float-button[_ngcontent-%COMP%]{visibility:visible}']}),t})(),jc=(()=>{class t{constructor(e,i,o){this.zone=e,this.snackBar=i,this._matDialog=o}openInfoToast(e,i){this.zone.run(()=>{this.snackBar.open(e,i,{duration:1e4,verticalPosition:"top"})})}openConfirmDialog(e,i){this.dialogRef=this._matDialog.open(IN,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCreateActivityDialog(e){this.dialogRef=this._matDialog.open(bne,{panelClass:"noc-activity-create-dialog",data:{formType:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openActivityErrorsDialog(e){this.dialogRef=this._matDialog.open(Mje,{panelClass:"activity-errors-dialog",data:{errors:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openCamErrorsDialog(e){this.dialogRef=this._matDialog.open(ZWe,{panelClass:"cam-errors-dialog",data:{errors:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openAddEvidenceDialog(e){this.dialogRef=this._matDialog.open(lqe,{panelClass:"noc-add-evidence-dialog",data:{},width:"600px"}),this.dialogRef.afterClosed().subscribe(i=>{i&&e(i)})}openBeforeSaveDialog(e){this.dialogRef=this._matDialog.open(Oje,{panelClass:"before-save-dialog",data:{cam:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openConfirmCopyModelDialog(e,i){this.dialogRef=this._matDialog.open(dqe,{panelClass:"noc-confirm-copy-model-dialog",data:{cam:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCommentsDialog(e,i){this.dialogRef=this._matDialog.open(fqe,{panelClass:"noc-comments-dialog",data:{predicate:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCreateFromExistingDialog(e){this.dialogRef=this._matDialog.open(Sje,{panelClass:"create-from-existing-dialog",data:{cam:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openLinkToExistingDialogComponent(e,i){this.dialogRef=this._matDialog.open(Eje,{panelClass:"noc-link-to-existing-dialog",data:e}),this.dialogRef.afterClosed().subscribe(o=>{i(o)})}openSelectEvidenceDialog(e,i){this.dialogRef=this._matDialog.open(Yje,{panelClass:"noc-select-evidence-dialog",data:{evidence:e}}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openSearchDatabaseDialog(e,i){this.dialogRef=this._matDialog.open(lWe,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openSearchEvidenceDialog(e,i){this.dialogRef=this._matDialog.open(qWe,{panelClass:"noc-search-evidence-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openPreviewActivityDialog(){this.dialogRef=this._matDialog.open(PWe,{panelClass:"noc-preview-activity-dialog",width:"600px"})}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(vM),qt(iC))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function gqe(t,n){1&t&&(H(0,"div",28),ue(1," Log in to Continue "),G())}function mqe(t,n){if(1&t&&(H(0,"div",29),ue(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function _qe(t,n){if(1&t&&(H(0,"span",30)(1,"div",31),ue(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function Cqe(t,n){1&t&&(H(0,"div",32),ue(1," No info yet "),G())}function vqe(t,n){1&t&&(H(0,"div",32),ue(1," Working on it ... "),G())}function bqe(t,n){if(1&t&&(H(0,"div",29),ue(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function xqe(t,n){if(1&t&&(H(0,"span",30)(1,"div",31),ue(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function yqe(t,n){if(1&t&&(H(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15),ue(4,"ID:"),G(),ue(5),G(),H(6,"div",14)(7,"div",15),ue(8,"Title:"),G(),ue(9),G(),H(10,"div",16)(11,"div",15),ue(12,"State:"),G(),ue(13),G(),H(14,"div",17)(15,"div",14)(16,"div",15),ue(17,"Contributors:"),G(),ke(18,bqe,2,4,"div",18),G(),H(19,"div",14)(20,"div",15),ue(21,"Groups:"),G(),ke(22,xqe,3,4,"span",19),G(),H(23,"div",16)(24,"div",15),ue(25,"Open In:"),G(),H(26,"a",20),ue(27," Pathway Editor "),G(),H(28,"span"),ue(29,"\u2022"),G(),H(30,"a",21),ue(31," Form Editor "),G(),H(32,"span"),ue(33,"\u2022"),G(),H(34,"a",22),ue(35," Graph Editor "),G()()()()()),2&t){const e=Ae();W(5),Nt(" ",e.duplicatedCam.id," "),W(4),Nt(" ",e.duplicatedCam.title," "),W(4),Nt(" ",null==e.duplicatedCam.state?null:e.duplicatedCam.state.label," "),W(5),J("ngForOf",e.duplicatedCam.contributors),W(4),J("ngForOf",e.duplicatedCam.groups),W(4),J("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.graphEditorUrl,ao)}}let _S=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaUserService=e,this.ngZone=i,this.camService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaSearchMenuService=l,this.noctuaCommonMenuService=u,this.loading=!1,this.includeEvidence=!1,this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCopyModelChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.loading=!1,this.ngZone.run(()=>{this.duplicatedCam=e})})}ngOnDestroy(){this.camService.onCopyModelChanged.next(null),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}copyModel(){this.noctuaFormDialogService.openConfirmCopyModelDialog(this.cam,o=>{o?(this.loading=!0,this.camService.copyModel(this.cam,null==o?void 0:o.title,this.includeEvidence)):this.loading=!1})}close(){"left"===this.panelSide?this.noctuaCommonMenuService.selectLeftPanel(Uc.camForm):"right"===this.panelSide&&this.noctuaSearchMenuService.selectRightPanel(null),this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(oo),de(Zr),de(jc),de(Co),de(pl),de(ul))},t.\u0275cmp=vn({type:t,selectors:[["noc-copy-model"]],inputs:{panelDrawer:"panelDrawer",panelSide:"panelSide"},decls:70,vars:13,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","mb-20"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"example-margin",3,"ngModel","ngModelChange"],["class","noc-item noc-no-info","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-item-body w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"click"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item","noc-no-info"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Copy Model"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ke(10,gqe,2,0,"div",6),H(11,"div",7)(12,"div",8)(13,"div",9),ue(14," Model Information "),G(),Qe(15,"span",3),G()(),H(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"div",14)(21,"div",15),ue(22,"ID:"),G(),ue(23),G(),H(24,"div",14)(25,"div",15),ue(26,"Title:"),G(),ue(27),G(),H(28,"div",16)(29,"div",15),ue(30,"State:"),G(),ue(31),G(),H(32,"div",17)(33,"div",14)(34,"div",15),ue(35,"Contributors:"),G(),ke(36,mqe,2,4,"div",18),G(),H(37,"div",14)(38,"div",15),ue(39,"Groups:"),G(),ke(40,_qe,3,4,"span",19),G(),H(41,"div",16)(42,"div",15),ue(43,"Open In:"),G(),H(44,"a",20),ue(45," Pathway Editor "),G(),H(46,"span"),ue(47,"\u2022"),G(),H(48,"a",21),ue(49," Form Editor "),G(),H(50,"span"),ue(51,"\u2022"),G(),H(52,"a",22),ue(53," Graph Editor "),G()()(),H(54,"div")(55,"mat-checkbox",23),et("ngModelChange",function(r){return i.includeEvidence=r}),ue(56,"Include Evidence"),G()()()()()(),H(57,"div",7)(58,"div",8)(59,"div",9),ue(60," Duplicated Model Information "),G(),Qe(61,"span",3),G(),H(62,"div",11),ke(63,Cqe,2,0,"div",24),ke(64,vqe,2,0,"div",24),ke(65,yqe,36,8,"div",25),G()()(),H(66,"div",26),Qe(67,"span",3),H(68,"button",27),et("click",function(){return i.copyModel()}),ue(69,"Copy Model"),G()()()),2&e&&(W(10),J("ngIf",!i.noctuaUserService.user),W(13),Nt(" ",i.cam.id," "),W(4),Nt(" ",i.cam.title," "),W(4),Nt(" ",null==i.cam.state?null:i.cam.state.label," "),W(5),J("ngForOf",i.cam.contributors),W(4),J("ngForOf",i.cam.groups),W(4),J("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.graphEditorUrl,ao),W(3),J("ngModel",i.includeEvidence),W(8),J("ngIf",!i.duplicatedCam),W(1),J("ngIf",i.loading),W(1),J("ngIf",i.duplicatedCam))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,$o,Tl,Uf,Pl,aM],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:350px;min-width:350px;max-width:350px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}']}),t})();class bR{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const yne=new ui("withDropdownData");function wqe(t,n){if(1&t){const e=Ln();H(0,"div")(1,"div",10)(2,"mat-form-field",14),Qe(3,"input",15),G(),H(4,"button",7),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae().addNewProject(o.controls.projects)}),H(5,"mat-icon"),ue(6,"add"),G()(),H(7,"button",7),et("click",function(){const r=Dt(e).index,a=Ae().$implicit;return Ae().deleteProject(a.controls.projects,r)}),H(8,"mat-icon"),ue(9,"delete_forever"),G()()()()}if(2&t){const e=n.index;Ae(2);const i=Di(4);W(1),J("formGroupName",e),W(2),J("matAutocomplete",i)}}function Mqe(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"a",17),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae().addNewProject(o.controls.projects)}),ue(2," Add With/From "),G()()}}function Oqe(t,n){if(1&t&&(H(0,"div",9)(1,"div",10)(2,"div",11),ke(3,wqe,10,2,"div",12),ke(4,Mqe,3,0,"div",13),G()()()),2&t){const e=n.$implicit,i=n.index;W(1),J("formGroupName",i),W(2),J("ngForOf",e.get("projects").controls),W(1),J("ngIf",0===e.get("projects").controls.length)}}function Sqe(t,n){if(1&t&&(H(0,"mat-option",18),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e," ")}}let Pqe=(()=>{class t{constructor(e,i,o,r,a,l,u){this.fb=e,this.dialogRef=i,this.data=o,this.noctuaLookupService=r,this.noctuaFormDialogService=a,this.noctuaFormConfigService=l,this.noctuaActivityFormService=u,this.weeks=[],this.connectedTo=[],this.indata={companies:[{projects:[{projectName:"WB:145787"}]}]},this.options=QVe,this._unsubscribeAll=new N,this.formControl=o.formControl,this.myForm=this.fb.group({companies:this.fb.array([])});const f=this.formControl.value;f&&f.split(",").map(U=>U.split("|")),this.weeks=[{id:"week-1",weeklist:["item 1","item 2","item 3","item 4","item 5"]},{id:"week-2",weeklist:["item 1","item 2","item 3","item 4","item 5"]}];for(let w of this.weeks)this.connectedTo.push(w.id)}_filter(e){const i=e.toLowerCase();return this.options.filter(o=>o.toLowerCase().includes(i))}ngOnInit(){this.evidenceDBForm=this._createEvidenceDBForm()}clearValues(){}addNewCompany(){this.myForm.controls.companies.push(this.fb.group({company:[""],projects:this.fb.array([])}))}deleteCompany(e){this.myForm.controls.companies.removeAt(e)}addNewProject(e,i){const o=new Do(i);e.push(this.fb.group({projectName:o})),this._onValueChange(o)}deleteProject(e,i){e.removeAt(i)}setCompanies(){let e=this.myForm.controls.companies;this.indata.companies.forEach(i=>{e.push(this.fb.group({projects:this.setProjects(i)}))})}setProjects(e){let i=new Xu([]);return e.projects.forEach(o=>{this.addNewProject(i,o.projectName)}),i}drop(e){e.previousContainer===e.container?rZ(e.container.data,e.previousIndex,e.currentIndex):function QLe(t,n,e,i){const o=_C(e,t.length-1),r=_C(i,n.length);t.length&&n.splice(r,0,t.splice(o,1)[0])}(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}save(){const i=[];let o=!0;const r=this.myForm.value.companies.map(a=>a.projects.map(l=>{if(!l.projectName.includes(":")){const u=new wd(Al.error,El.general,`${l.projectName} wrong format, Did you forget ':'`);i.push(u),o=!1}return l.projectName}).join("|")).join(",");o?(this.formControl.setValue(r),this.close()):this.noctuaFormDialogService.openActivityErrorsDialog(i)}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}_createEvidenceDBForm(){return new td({db:new Do(this.noctuaFormConfigService.evidenceDBs.selected),accession:new Do("",[P6.required])})}_onValueChange(e){this.filteredOptions=e.valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400),Sc(""),it(o=>this._filter(o)))}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(e2),de(bR),de(yne),de(Sd),de(jc),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-with-dropdown"]],decls:16,vars:5,consts:[["novalidate","","fxLayout","column","fxLayoutAlign","start stretch",1,"pl-8","pr-8","w-100-p",3,"formGroup"],["formArrayName","companies","fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"noc-form-secion","w-100-p"],["class","noc-with-group",4,"ngFor","ngForOf"],["withAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",3,"click"],["fxLayout","row","fxLayoutAlign","end center",1,"w-100-p"],["mat-icon-button","",3,"click"],["mat-icon-button","","color","primary",3,"click"],[1,"noc-with-group"],[3,"formGroupName"],["formArrayName","projects"],[4,"ngFor","ngForOf"],["class","p-16",4,"ngIf"],["appearance","outline","fxFlex","",1,"noc-sm","w-100-p"],["matInput","","formControlName","projectName","type","text","placeholder","Accession","autocomplete","off",3,"matAutocomplete"],[1,"p-16"],[3,"click"],[3,"value"]],template:function(e,i){if(1&e&&(H(0,"form",0)(1,"div",1),ke(2,Oqe,5,3,"div",2),H(3,"mat-autocomplete",null,3),ke(5,Sqe,2,2,"mat-option",4),y0(6,"async"),G(),H(7,"button",5),et("click",function(){return i.addNewCompany()}),ue(8,"Add Group"),G(),Qe(9,"br")(10,"br"),G(),H(11,"div",6)(12,"button",7),et("click",function(){return i.close()}),ue(13," Cancel "),G(),H(14,"button",8),et("click",function(){return i.save()}),ue(15," Ok "),G()()()),2&e){let o;J("formGroup",i.myForm),W(2),J("ngForOf",null==(o=i.myForm.get("companies"))?null:o.controls),W(3),J("ngForOf",bg(6,3,i.filteredOptions))}},directives:[nd,tl,Oo,So,Gc,k0,ts,$o,Gf,id,ko,E2,ed,kh,Pl,Xl,Fo,Ir,Yi,I0,J1],pipes:[Iy],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-form-secion[_ngcontent-%COMP%]{max-height:500px}[_nghost-%COMP%] .noc-form-secion[_ngcontent-%COMP%] .noc-with-group[_ngcontent-%COMP%]{border:#74725c solid 1px;margin-bottom:16px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const Tqe={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let xR=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const o=Object.assign(Object.assign({},Tqe),i);o.positionStrategy=this._getPosition(e);const a=this.createOverlay(o),l=new bR(a);return this.attachDialogContainer(a,o,l),a.backdropClick().subscribe(f=>l.close()),l}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(bR,i),o.set(yne,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(Pqe,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}getLink(){}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class yR{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const wne=new ui("detailDropdownData");function Eqe(t,n){if(1&t){const e=Ln();H(0,"div"),ue(1),H(2,"small"),ue(3),G(),H(4,"a",12),et("click",function(){const r=Dt(e).$implicit;return Ae().useTerm(r)}),ue(5," Use "),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label,""),W(2),Nt("(",e.id,")")}}let Aqe=(()=>{class t{constructor(e,i,o,r){this.dialogRef=e,this.data=i,this.noctuaFormDialogService=o,this.noctuaFormConfigService=r,this._unsubscribeAll=new N,this.formControl=i.formControl,this.termDetail=i.termDetail}ngOnInit(){}clearValues(){}save(){const i=this.evidenceDBForm.value.db,o=this.evidenceDBForm.value.accession;let a=!0;""===o.trim()&&(this.noctuaFormDialogService.openActivityErrorsDialog([]),a=!1),a&&(this.formControl.setValue(i.name+":"+o.trim()),this.close())}useTerm(e){this.formControl.setValue(e)}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yR),de(wne),de(jc),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-detail-dropdown"]],decls:30,vars:5,consts:[[1,"noc-item-details","noc-drawer","w-100-p",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-header-title"],[1,"text-truncate"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close Selected Item",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-body","w-100-p"],[1,"noc-section-row"],[1,"noc-title"],[1,"noc-description"],[4,"ngFor","ngForOf"],[1,"noc-footer","w-100-p"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),et("click",function(r){return r.stopPropagation()}),H(1,"div",1)(2,"div",2)(3,"div",3),ue(4),G()(),Qe(5,"span",4),H(6,"button",5),et("click",function(r){return r.stopPropagation(),i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," Close "),G()(),H(10,"div",6)(11,"div",7)(12,"div",8),ue(13," Term "),G(),H(14,"div",9),ue(15),H(16,"small"),ue(17),G()()(),H(18,"div",7)(19,"div",8),ue(20," Definition "),G(),H(21,"div",9),ue(22),G()(),H(23,"div",7)(24,"div",8),ue(25," Is A Type Of "),G(),H(26,"div",9),ke(27,Eqe,6,2,"div",10),G()()(),H(28,"div",11),Qe(29,"span",4),G()()),2&e&&(W(4),Nt(" ",i.termDetail.label," "),W(11),Nt(" ",i.termDetail.label," "),W(2),Nt("(",i.termDetail.id,")"),W(5),Nt(" ",i.termDetail.description," "),W(5),J("ngForOf",i.termDetail.rootTypes))},directives:[Oo,So,ko,Fo,Ir,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%]{max-height:500px;min-height:400px;background-color:#faf9e9}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:transparent;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;z-index:10001}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-header-title[_ngcontent-%COMP%]{max-width:200px;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:10px 8px;height:400px}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:transparent;border-top:1px solid #CCC;z-index:10002;box-shadow:none}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%]{padding:10px 0}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-bottom:8px;font-weight:700;font-size:14px;text-transform:uppercase}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const Lqe={hasBackdrop:!1,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let wR=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const o=Object.assign(Object.assign({},Lqe),i);this.dialogRef&&this.dialogRef.close(),o.positionStrategy=this._getPosition(e);const a=this.createOverlay(o),l=new yR(a);return this.attachDialogContainer(a,o,l),a.backdropClick().subscribe(f=>l.close()),this.dialogRef=l,l}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(yR,i),o.set(wne,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(Aqe,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center"}])}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dqe=["evidenceDBreferenceMenuTrigger"];function kqe(t,n){1&t&&Qe(0,"div",19)}function Iqe(t,n){if(1&t&&(H(0,"div",17),ke(1,kqe,1,0,"div",18),G()),2&t){const e=Ae();W(1),J("ngIf",2===e.entity.treeLevel)}}function Nqe(t,n){1&t&&Qe(0,"div",23)}function Rqe(t,n){1&t&&Qe(0,"div",24)}function zqe(t,n){if(1&t&&(H(0,"div",20),ke(1,Nqe,1,0,"div",21),ke(2,Rqe,1,0,"div",22),G()),2&t){const e=Ae();W(1),J("ngIf",3===e.entity.treeLevel),W(1),J("ngIf",e.entity.treeLevel<3)}}function Fqe(t,n){1&t&&Qe(0,"div",23)}function Hqe(t,n){1&t&&Qe(0,"div",24)}function Vqe(t,n){if(1&t&&(H(0,"div",25),ke(1,Fqe,1,0,"div",21),ke(2,Hqe,1,0,"div",22),G()),2&t){const e=Ae();W(1),J("ngIf",4===e.entity.treeLevel),W(1),J("ngIf",e.entity.treeLevel<4)}}function Bqe(t,n){1&t&&Qe(0,"div",23)}function Gqe(t,n){1&t&&Qe(0,"div",24)}function Yqe(t,n){if(1&t&&(H(0,"div",25),ke(1,Bqe,1,0,"div",21),ke(2,Gqe,1,0,"div",22),G()),2&t){const e=Ae();W(1),J("ngIf",5===e.entity.treeLevel),W(1),J("ngIf",e.entity.treeLevel<5)}}function Uqe(t,n){if(1&t&&(H(0,"a",35),et("click",function(i){return i.stopPropagation()}),ue(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function jqe(t,n){if(1&t&&(H(0,"span"),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}const Wqe=function(){return["fas","chevron-right"]};function qqe(t,n){if(1&t){const e=Ln();H(0,"mat-option",26)(1,"div",27)(2,"div",28),ue(3),G(),Qe(4,"span",29),H(5,"div",30),ke(6,Uqe,2,2,"a",31),ke(7,jqe,2,1,"span",32),G(),H(8,"button",33),et("click",function(o){const a=Dt(e).$implicit;return Ae().openTermDetails(o,a)}),Qe(9,"fa-icon",34),G()()()}if(2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),J("ngIf",e.link),W(1),J("ngIf",!e.link),W(2),J("icon",_i(5,Wqe))}}function $qe(t,n){if(1&t&&(H(0,"a",35),et("click",function(i){return i.stopPropagation()}),ue(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function Xqe(t,n){if(1&t&&(H(0,"span"),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function Qqe(t,n){if(1&t&&(H(0,"mat-option",26)(1,"div",27)(2,"div",28),ue(3),G(),Qe(4,"span",29),H(5,"div",60)(6,"strong"),ue(7),G()(),H(8,"div",30),ke(9,$qe,2,2,"a",31),ke(10,Xqe,2,1,"span",32),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(4),Nt(" ",e.xref," "),W(2),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function Zqe(t,n){if(1&t&&(H(0,"mat-option",26)(1,"div",27)(2,"div",28),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function Kqe(t,n){if(1&t&&(H(0,"mat-option",26)(1,"div",27)(2,"div",28),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function Jqe(t,n){1&t&&(H(0,"button",61)(1,"mat-icon"),ue(2,"more_vert"),G()()),2&t&&(Ae(),J("matMenuTriggerFor",Di(32)))}function e$e(t,n){if(1&t){const e=Ln();H(0,"button",55),et("click",function(){Dt(e);const o=Ae(2);return o.openSearchDatabaseDialog(o.entity)}),ue(1," Search Annotations "),G()}}function t$e(t,n){if(1&t){const e=Ln();H(0,"button",55),et("click",function(){Dt(e);const o=Ae(2);return o.toggleIsComplement(o.entity)}),ue(1," NOT Qualifier "),G()}}function n$e(t,n){1&t&&(H(0,"button",54),ue(1," Add an Extension "),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(42)))}function i$e(t,n){if(1&t){const e=Ln();H(0,"button",55),et("click",function(){return Dt(e),Ae(2).addRootTerm()}),ue(1," Add Root Term "),G()}}function o$e(t,n){if(1&t){const e=Ln();H(0,"button",62),et("click",function(){const r=Dt(e).$implicit;return Ae(2).insertEntityShex(r)}),ue(1),H(2,"div",63),ue(3),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",null==e?null:e.label," "),W(2),Nt(" ",null==e?null:e.rangeLabel," ")}}function r$e(t,n){if(1&t){const e=Ln();H(0,"div",36)(1,"div",37)(2,"div",38)(3,"mat-form-field",5)(4,"mat-label"),ue(5,"Evidence"),G(),H(6,"textarea",39),et("focus",function(){Dt(e);const o=Ae();return o.updateEvidenceList(o.entity)}),G(),H(7,"mat-autocomplete",40,41),ke(9,Qqe,11,5,"mat-option",10),G()()(),H(10,"div",42)(11,"mat-form-field",5)(12,"mat-label"),ue(13,"Reference"),G(),H(14,"textarea",43),et("focus",function(){return Dt(e),Ae().updateReferenceList()}),G(),H(15,"button",44),et("click",function(o){const a=Dt(e).$implicit;return Ae().openAddReference(o,a,"reference")}),H(16,"mat-icon"),ue(17,"playlist_add"),G()(),H(18,"mat-autocomplete",45,46),ke(20,Zqe,4,2,"mat-option",10),G()()(),H(21,"div",47)(22,"mat-form-field",5)(23,"mat-label"),ue(24,"With"),G(),H(25,"textarea",48),et("focus",function(){return Dt(e),Ae().updateWithList()}),G(),H(26,"mat-autocomplete",45,49),ke(28,Kqe,4,2,"mat-option",10),G()()(),Qe(29,"span",29),ke(30,Jqe,3,1,"button",13),H(31,"mat-menu",50,51),ke(33,e$e,2,0,"button",52),ke(34,t$e,2,0,"button",52),ke(35,n$e,2,1,"button",53),H(36,"button",54),ue(37,"Evidence"),G(),ke(38,i$e,2,0,"button",52),H(39,"button",55),et("click",function(){return Dt(e),Ae().clearValues()}),ue(40," Clear Values "),G()(),H(41,"mat-menu",14,56),ke(43,o$e,4,2,"button",16),G(),H(44,"mat-menu",57,58)(46,"button",55),et("click",function(){return Dt(e),Ae().addEvidence()}),ue(47," Add Evidence "),G(),H(48,"button",59),et("click",function(){const r=Dt(e).index;return Ae().removeEvidence(r)}),ue(49," Remove Evidence "),G(),H(50,"button",55),et("click",function(){return Dt(e),Ae().openSelectEvidenceDialog()}),ue(51," Clone Evidence "),G()()()()}if(2&t){const e=n.index,i=Di(8),o=Di(19),r=Di(27),a=Di(45),l=Ae();W(1),J("formGroupName",e),W(5),J("matAutocomplete",i),W(1),J("displayWith",l.evidenceDisplayFn),W(2),J("ngForOf",null==l.entity||null==l.entity.predicate?null:l.entity.predicate.evidenceLookup.results),W(5),J("matAutocomplete",o),W(6),J("ngForOf",null==l.entity||null==l.entity.predicate?null:l.entity.predicate.referenceLookup.results),W(5),J("matAutocomplete",r),W(3),J("ngForOf",null==l.entity||null==l.entity.predicate?null:l.entity.predicate.withLookup.results),W(2),J("ngIf",!l.displayAddButton),W(3),J("ngIf",l.entity.aspect),W(1),J("ngIf",!0),W(1),J("ngIf",(null==l.entity.insertMenuNodes?null:l.entity.insertMenuNodes.length)>0),W(1),J("matMenuTriggerFor",a),W(2),J("ngIf",l.entity.aspect),W(5),J("ngForOf",l.entity.insertMenuNodes)}}const a$e=function(){return["fas","plus"]};function s$e(t,n){1&t&&(H(0,"button",61),Qe(1,"fa-icon",34),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(19)),W(1),J("icon",_i(2,a$e)))}function c$e(t,n){if(1&t){const e=Ln();H(0,"button",62),et("click",function(){const r=Dt(e).$implicit;return Ae().insertEntityShex(r)}),ue(1),H(2,"div",63),ue(3),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",null==e?null:e.label," "),W(2),Nt(" ",null==e?null:e.rangeLabel," ")}}let l$e=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaFormDialogService=e,this.camService=i,this.inlineReferenceService=o,this.inlineDetailService=r,this.inlineWithService=a,this.noctuaFormConfigService=l,this.noctuaActivityFormService=u,this.activityNodeType=$n,this.displayAddButton=!1,this.unsubscribeAll=new N}ngOnInit(){this.entity=this.noctuaActivityFormService.activity.getNode(this.entityFormGroup.get("id").value),this.friendNodes=this.camService.getNodesByType(this.entity.type),this.noctuaActivityFormService.activity.activityType===so.ccOnly&&1===this.entity.treeLevel&&(this.displayAddButton=!0),this.noctuaActivityFormService.activity.activityType===so.proteinComplex&&this.entity.type===$n.GoProteinContainingComplex&&(this.displayAddButton=!0)}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}addEvidence(){this.entity.predicate.addEvidence(),this.noctuaActivityFormService.initializeForm()}useTerm(e,i){const o=this;switch(o.entity.term=e.term,o.entity.type){case $n.GoBiologicalProcess:case $n.GoCellularComponent:o.entity.linkedNode=!0,o.entity.uuid=e.uuid,o.noctuaActivityFormService.activity.insertSubgraph(i,o.entity,e)}o.noctuaActivityFormService.initializeForm()}removeEvidence(e){this.entity.predicate.removeEvidence(e),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(e){const o=[];let r=!0;(0,Zt.each)(e.nodeGroup.nodes,function(a){if(a.isExtension){r=!1;const u=new wd(Al.error,El.general,`Cannot add 'NOT Qualifier', Remove Extension'${a.label}'`,{aspect:a.label});o.push(u)}}),r?(e.toggleIsComplement(),this.noctuaActivityFormService.initializeForm()):this.noctuaFormDialogService.openActivityErrorsDialog(o)}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o&&o.hasValue()){const a=l=>{l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&(e.predicate.setEvidence(l.evidences),l.evidences.forEach(u=>{u.evidenceExts.forEach(f=>{})})),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new wd(Al.error,El.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}openSearchEvidenceDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o){const a=function(l){l&&l.evidences&&(e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchEvidenceDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}linkNode(e){const i=this,o=this.camService.getNodesByType(e.type);i.noctuaFormDialogService.openLinkToExistingDialogComponent({entity:e,nodes:o},function(l){if(l.activityNode){const u=l.activityNode;e.uuid=u.uuid,e.term=u.term,e.linkedNode=!0,i.noctuaActivityFormService.initializeForm()}})}unlinkNode(e){e.linkedNode=!1,e.uuid=null}openSearchModels(){}insertEntityShex(e){this.noctuaFormConfigService.insertActivityNodeShex(this.noctuaActivityFormService.activity,this.entity,e),this.noctuaActivityFormService.initializeForm()}addRootTerm(){const e=this,i=(0,Zt.find)(Ft.rootNode,o=>o.aspect===e.entity.aspect);if(i){e.entity.term=new Pi(i.id,i.label),e.noctuaActivityFormService.initializeForm();const o=new Ll;o.setEvidence(new Pi(Ft.evidenceAutoPopulate.nd.evidence.id,Ft.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ft.evidenceAutoPopulate.nd.reference,e.entity.predicate.setEvidence([o]),e.noctuaActivityFormService.initializeForm()}}clearValues(){this.entity.clearValues(),this.noctuaActivityFormService.initializeForm()}removeNode(){const e=this;e.noctuaActivityFormService.activity.removeNode(e.entity),e.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(){const e=this,i=this.camService.getUniqueEvidence(e.noctuaActivityFormService.activity);e.noctuaFormDialogService.openSelectEvidenceDialog(i,r=>{r.evidences&&r.evidences.length>0&&(e.entity.predicate.setEvidence(r.evidences),e.noctuaActivityFormService.initializeForm())})}updateMenu(e){this.noctuaActivityFormService.initializeForm(e.rootTypes)}updateTermList(){this.camService.updateTermList(this.noctuaActivityFormService.activity,this.entity)}updateEvidenceList(){this.camService.updateEvidenceList(this.noctuaActivityFormService.activity,this.entity)}updateReferenceList(){this.camService.updateReferenceList(this.noctuaActivityFormService.activity,this.entity)}updateWithList(){this.camService.updateWithList(this.noctuaActivityFormService.activity,this.entity)}openAddReference(e,i,o){e.stopPropagation(),this.inlineReferenceService.open(e.target,{data:{formControl:i.controls[o]}})}openAddWith(e,i,o){e.stopPropagation(),this.inlineWithService.open(e.target,{data:{formControl:i.controls[o]}})}unselectItemDisplay(){this.selectedItemDisplay=null}openTermDetails(e,i){e.stopPropagation(),this.inlineDetailService.open(e.target,{data:{termDetail:i,formControl:this.entityFormGroup.controls.term}})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}referenceDisplayFn(e){return"string"==typeof e?e:e&&e.reference?e.reference:void 0}withDisplayFn(e){return"string"==typeof e?e:e&&e.with?e.with:void 0}}return t.\u0275fac=function(e){return new(e||t)(de(jc),de(Zr),de(xm),de(wR),de(xR),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-entity-form"]],viewQuery:function(e,i){if(1&e&&_o(Dqe,7,il),2&e){let o;fi(o=gi())&&(i.evidenceDBreferenceMenuTrigger=o.first)}},inputs:{entityFormGroup:"entityFormGroup"},decls:21,vars:12,consts:[["fxLayout","row","fxLayoutAlign","start stretch",1,"w-100-p",3,"formGroup"],["class","noc-tree-input noc-level-1","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","noc-tree-input noc-level-2","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["class","noc-tree-input noc-level-3","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","flex","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","term","row","2",3,"matAutocomplete","focus"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["termAuto","matAutocomplete"],["fxFlex","400px",1,""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60%","fxLayout","column","fxLayoutAlign","start stretch"],["formArrayName","evidenceFormArray",4,"ngFor","ngForOf"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor",4,"ngIf"],[1,"noc-extensions-menu-panel"],["ccOnlyAddMenu","matMenu"],["mat-menu-item","","fxLayout","column","fxLayoutAlign","start start","class","w-100-p",3,"click",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-tree-input","noc-level-1"],["class","noc-tree-line line-m","fxFlex","",4,"ngIf"],["fxFlex","",1,"noc-tree-line","line-m"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-tree-input","noc-level-2"],["class","noc-tree-line line-t","fxFlex","50%",4,"ngIf"],["class","noc-tree-line iine-b","fxFlex","50%",4,"ngIf"],["fxFlex","50%",1,"noc-tree-line","line-t"],["fxFlex","50%",1,"noc-tree-line","iine-b"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-tree-input","noc-level-3"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],["fxFlex",""],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"noc-term-detail-trigger","noc-rounded-button","noc-sm","ml-8",3,"click"],[3,"icon"],["target","_blank",3,"href","click"],["formArrayName","evidenceFormArray"],["fxLayout","row","fxLayoutAlign","start stretch",1,"w-100-p",3,"formGroupName"],["fxFlex","55",1,"p-4"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],["fxFlex","25",1,"p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","20",1,"p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],[1,"noc-dropdown-menu","noc-menu-panel"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"],["addMenu","matMenu"],[1,"noc-menu-panel"],["evidenceMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"noc-term-id","mr-8"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor"],["mat-menu-item","","fxLayout","column","fxLayoutAlign","start start",1,"w-100-p",3,"click"],[1,"noc-terms-description"]],template:function(e,i){if(1&e&&(H(0,"div",0),ke(1,Iqe,2,1,"div",1),ke(2,zqe,3,2,"div",2),ke(3,Vqe,3,2,"div",3),ke(4,Yqe,3,2,"div",3),H(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),ue(8),G(),H(9,"textarea",6),et("focus",function(){return i.updateTermList()}),ue(10," "),G(),H(11,"mat-autocomplete",7,8),et("optionSelected",function(r){return i.updateMenu(r.option.value)}),H(13,"div",9),ke(14,qqe,10,6,"mat-option",10),G()()()(),H(15,"div",11),ke(16,r$e,52,15,"div",12),G(),ke(17,s$e,2,3,"button",13),H(18,"mat-menu",14,15),ke(20,c$e,4,2,"button",16),G()()),2&e){const o=Di(12);let r;J("formGroup",i.entityFormGroup),W(1),J("ngIf",i.entity.treeLevel>1),W(1),J("ngIf",i.entity.treeLevel>2),W(1),J("ngIf",i.entity.treeLevel>3),W(1),J("ngIf",i.entity.treeLevel>4),W(4),qo(i.entity.label),W(1),J("matAutocomplete",o),W(2),J("displayWith",i.termDisplayFn),W(3),J("ngForOf",null==i.entity?null:i.entity.termLookup.results),W(2),J("ngForOf",null==(r=i.entityFormGroup.get("evidenceFormArray"))?null:r.controls),W(1),J("ngIf",i.displayAddButton),W(3),J("ngForOf",i.entity.insertMenuNodes)}},directives:[Oo,So,tl,Gc,Yi,ko,id,yd,E2,ed,kh,Pl,Xl,I0,$o,J1,Fo,ps,k0,Gf,E6,Ir,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-tree-input.noc-level-1[_ngcontent-%COMP%]{border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line[_ngcontent-%COMP%]{width:100%;border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-t[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-left:rgba(0,0,0,.2) dotted 2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-m[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-form-chip-row[_ngcontent-%COMP%]{padding:8px 5px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%]{padding:0 0 0 8px;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-mf[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-mf[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-bp[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-bp[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-cc[_ngcontent-%COMP%]{border:rgba(211,181,245,.8) solid 1px;background-color:#d3b5f533}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-cc[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d3b5f5cc}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] textarea[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function d$e(t,n){1&t&&(H(0,"span"),ue(1," Activity Unit Form "),G())}function u$e(t,n){1&t&&(H(0,"span"),ue(1," BP Annotation Form "),G())}function h$e(t,n){1&t&&(H(0,"span"),ue(1," CC Annotation Form "),G())}function p$e(t,n){1&t&&(H(0,"span"),ue(1," Molecule Form "),G())}function f$e(t,n){1&t&&(H(0,"span"),ue(1," Protein Complex Form "),G())}function g$e(t,n){1&t&&(H(0,"div",24),ue(1," Log in to Continue "),G())}function m$e(t,n){1&t&&(H(0,"div",25),ue(1," Note that this should be used rarely, and only in the case where the activity cannot be ascribed to a single subunit of a complex "),G())}function _$e(t,n){if(1&t&&(H(0,"div",28),Qe(1,"noc-entity-form",29),G()),2&t){const e=n.$implicit;J("formGroupName",Ae().index),W(1),J("entityFormGroup",e)}}function C$e(t,n){if(1&t&&(H(0,"div",26),ke(1,_$e,2,2,"div",27),G()),2&t){const e=n.$implicit;let i;xf("mat-elevation-z1 noc-term-group mb-4 px-8 pt-4 ",e.get("name").value,""),J("formArrayName","gp"),W(1),J("ngForOf",null==(i=e.get("entityGroup"))?null:i.controls)}}function v$e(t,n){if(1&t&&(H(0,"mat-option",37),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function b$e(t,n){if(1&t&&(H(0,"div",30)(1,"div",31)(2,"mat-form-field",32)(3,"mat-label")(4,"strong"),ue(5,"(readonly)"),G(),ue(6," Molecular Function "),G(),Qe(7,"input",33),G()(),H(8,"div",34)(9,"mat-form-field",32)(10,"mat-label"),ue(11,"Choose Causal Relation"),G(),H(12,"mat-select",35),ke(13,v$e,2,2,"mat-option",36),G()()()()),2&t){const e=Ae();W(7),J("readonly",!0),W(6),J("ngForOf",e.noctuaFormConfigService.bpOnlyEdges.options)}}function x$e(t,n){1&t&&(H(0,"div",42)(1,"div"),ue(2,"IS NOT"),G()())}function y$e(t,n){if(1&t&&(er(0,43),Qe(1,"noc-entity-form",44),tr()),2&t){const e=n.$implicit;J("formGroupName",Ae().index),W(1),J("entityFormGroup",e)}}function w$e(t,n){if(1&t&&(H(0,"div",38),ke(1,x$e,3,0,"div",39),H(2,"div",40),ke(3,y$e,2,2,"ng-container",41),G()()),2&t){const e=n.$implicit;let i,o;xf("mat-elevation-z1 noc-term-group mb-4 px-8 ",e.get("name").value,""),J("formArrayName","fd"),W(1),J("ngIf",null==(i=e.get("isComplement"))?null:i.value),W(2),J("ngForOf",null==(o=e.get("entityGroup"))?null:o.controls)}}function M$e(t,n){if(1&t){const e=Ln();H(0,"button",45),et("click",function(){return Dt(e),Ae().checkErrors()}),ue(1,' Why is the "Save" button disabled? '),G()}}const O$e=function(){return{right:!0}};let MR=(()=>{class t{constructor(e,i,o,r){this.noctuaFormDialogService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaActivityFormService=r,this.ActivityState=d_,this.ActivityType=so,this.resizeStyle={},this.searchCriteria={},this.activityFormData=[],this.descriptionSectionTitle="Function Description",this.annotatedSectionTitle="Gene Product",this._unsubscribeAll=new N}ngOnInit(){this.activityFormSub=this.noctuaActivityFormService.activityFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.activityFormGroup=e,this.currentActivity=this.noctuaActivityFormService.currentActivity,this.activity=this.noctuaActivityFormService.activity,this.state=this.noctuaActivityFormService.state,this.molecularEntity=this.activityFormGroup.get("molecularEntity"),this.activity.activityType===so.ccOnly?this.descriptionSectionTitle="Localization Description":this.activity.activityType===so.molecule?(this.annotatedSectionTitle="Small Molecule",this.descriptionSectionTitle="Location (optional)"):this.descriptionSectionTitle="Function Description")})}resizeValidate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<50||e.rectangle.height<50))}onResizeEnd(e){this.resizeStyle={width:`${e.rectangle.width}px`}}checkErrors(){this.noctuaFormDialogService.openActivityErrorsDialog(this.noctuaActivityFormService.activity.submitErrors)}save(){const e=this;e.noctuaActivityFormService.saveActivity().subscribe(()=>{e.noctuaFormDialogService.openInfoToast("Annotation successfully created.","OK"),e.noctuaActivityFormService.clearForm(),this.closeDialog&&this.closeDialog()})}preview(){this.noctuaFormDialogService.openPreviewActivityDialog()}clear(){this.noctuaActivityFormService.clearForm()}createExample(){this.noctuaActivityFormService.initializeFormData()}termDisplayFn(e){return e?e.label:void 0}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(jc),de(yr),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-form"]],inputs:{panelDrawer:"panelDrawer",closeDialog:"closeDialog"},decls:45,vars:18,consts:[[1,"h-100-p"],["name","activityFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["mwlResizeHandle","",1,"resize-handle-right",3,"resizeEdges"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],[3,"ngSwitch"],[4,"ngSwitchCase"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-activity-form"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["class","alert alert-warning w-100-p mb-0",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["mat-icon-button","",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-0"],[3,"formArrayName","class",4,"ngFor","ngForOf"],["class","mat-elevation-z1 noc-term-group mb-4 px-8 mf","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch",3,"formArrayName","class",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["mat-button","","color","warn","class","noc-rounded-button noc-sm",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","submit","mat-raised-button","","color","primary",1,"",3,"disabled","click"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[1,"alert","alert-warning","w-100-p","mb-0"],[3,"formArrayName"],["class","",3,"formGroupName",4,"ngFor","ngForOf"],[1,"",3,"formGroupName"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"entityFormGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"mat-elevation-z1","noc-term-group","mb-4","px-8","mf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","value","molecular_function (GO:0003674)",3,"readonly"],["fxFlex","600px","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["placeholder","","formControlName","bpOnlyEdge"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxLayout","row","fxLayoutAlign","start stretch",3,"formArrayName"],["class","noc-group-side-heading","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],[1,"w-100-p"],[3,"formGroupName",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-group-side-heading"],[3,"formGroupName"],[1,"",3,"entityFormGroup"],["mat-button","","color","warn",1,"noc-rounded-button","noc-sm",3,"click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"form",1),Qe(2,"div",2),H(3,"div",3)(4,"div",4),er(5,5),ke(6,d$e,2,0,"span",6),ke(7,u$e,2,0,"span",6),ke(8,h$e,2,0,"span",6),ke(9,p$e,2,0,"span",6),ke(10,f$e,2,0,"span",6),tr(),G(),Qe(11,"span",7),H(12,"button",8),et("click",function(){return i.close()}),H(13,"mat-icon"),ue(14,"close"),G(),ue(15," Close "),G()(),H(16,"div",9),ke(17,g$e,2,0,"div",10),H(18,"div",11),ke(19,m$e,2,0,"div",12),H(20,"div",13)(21,"div",14),ue(22),G(),Qe(23,"span",7),H(24,"button",15),et("click",function(){return i.createExample()}),ue(25," . "),G()(),H(26,"div",16),ke(27,C$e,2,5,"div",17),G()(),H(28,"div",11)(29,"div",13)(30,"div",14),ue(31),G(),Qe(32,"span",7),G(),H(33,"div",16),ke(34,b$e,14,2,"div",18),ke(35,w$e,4,6,"div",19),G()()(),H(36,"div",20),ke(37,M$e,2,0,"button",21),Qe(38,"span",7),H(39,"button",22),et("click",function(){return i.preview()}),ue(40,"Preview"),G(),H(41,"button",22),et("click",function(){return i.clear()}),ue(42,"Clear"),G(),H(43,"button",23),et("click",function(){return i.save()}),ue(44,"Save"),G()()()()),2&e){let o,r;W(1),J("formGroup",i.activityFormGroup),W(1),J("resizeEdges",_i(17,O$e)),W(3),J("ngSwitch",i.noctuaActivityFormService.activity.activityType),W(1),J("ngSwitchCase",i.ActivityType.default),W(1),J("ngSwitchCase",i.ActivityType.bpOnly),W(1),J("ngSwitchCase",i.ActivityType.ccOnly),W(1),J("ngSwitchCase",i.ActivityType.molecule),W(1),J("ngSwitchCase",i.ActivityType.proteinComplex),W(7),J("ngIf",!i.noctuaUserService.user),W(2),J("ngIf",i.noctuaActivityFormService.activity.activityType===i.ActivityType.proteinComplex),W(3),Nt(" ",i.annotatedSectionTitle," "),W(5),J("ngForOf",null==(o=i.activityFormGroup.get("gp"))?null:o.controls),W(4),Nt(" ",i.descriptionSectionTitle," "),W(3),J("ngIf",i.noctuaActivityFormService.activity.activityType===i.ActivityType.bpOnly),W(1),J("ngForOf",null==(r=i.activityFormGroup.get("fd"))?null:r.controls),W(2),J("ngIf",i.noctuaActivityFormService.activity.submitErrors.length>0),W(6),J("disabled",i.noctuaActivityFormService.activity.submitErrors.length>0)}},directives:[nd,tl,Oo,So,Gc,tne,bd,iu,ko,Fo,Ir,ts,Yi,$o,k0,Gf,l$e,id,yd,E2,qg,Pl,Xl,J1],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:40px;min-width:40px;max-width:40px;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] noc-entity-form[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{padding-right:8px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px;background-color:#ddd;font-size:10px;text-align:center}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:250px;height:100px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:12px;color:#777}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{background-color:#fff;border-left:#fff solid 5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.mf[_ngcontent-%COMP%]{border-left-color:#7cd488cc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.bp[_ngcontent-%COMP%]{border-left-color:#f4c89ccc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.cc[_ngcontent-%COMP%]{border-left-color:#d3b5f5cc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;border-right:rgba(0,0,0,.12) solid 1px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-tree-input.noc-level-0[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%]{margin:0;padding-top:20px;padding-bottom:8px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:0;bottom:auto!important;left:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] .md-errors-spacer[_ngcontent-%COMP%]{visibility:hidden;display:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function S$e(t,n){if(1&t&&(H(0,"mat-option",29),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function P$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),ue(2,"Find What "),H(3,"strong"),ue(4,"(Ontology Term)"),G()(),Qe(5,"textarea",31),G()),2&t){Ae(2);const e=Di(3);W(5),J("matAutocomplete",e)}}function T$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),ue(2,"Find What "),H(3,"strong"),ue(4,"(Gene Product)"),G()(),Qe(5,"textarea",31),G()),2&t){Ae(2);const e=Di(3);W(5),J("matAutocomplete",e)}}function E$e(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",30)(1,"mat-label"),ue(2,"Find What "),H(3,"strong"),ue(4,"(Reference)"),G()(),Qe(5,"textarea",32),H(6,"button",33),et("click",function(o){return Dt(e),Ae(2).openAddReference(o,"findWhat")}),H(7,"mat-icon"),ue(8,"playlist_add"),G()()()}}function A$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),ue(2,"Replace With "),H(3,"strong"),ue(4,"(Ontology Term)"),G()(),Qe(5,"textarea",34),G()),2&t){Ae(2);const e=Di(6);W(5),J("matAutocomplete",e)}}function L$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),ue(2,"Replace With "),H(3,"strong"),ue(4,"(Gene Product)"),G()(),Qe(5,"textarea",34),G()),2&t){Ae(2);const e=Di(6);W(5),J("matAutocomplete",e)}}function D$e(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",30)(1,"mat-label"),ue(2,"Replace With "),H(3,"strong"),ue(4,"(Reference)"),G()(),Qe(5,"textarea",35),H(6,"button",33),et("click",function(o){return Dt(e),Ae(2).openAddReference(o,"replaceWith")}),H(7,"mat-icon"),ue(8,"playlist_add"),G()()()}}function k$e(t,n){1&t&&(H(0,"div",36),ue(1," No Results "),G())}function I$e(t,n){if(1&t&&(H(0,"div",37),ue(1),G()),2&t){const e=Ae(2);W(1),cy(" ",e.noctuaReviewSearchService.matchedCountCursor+1," of ",e.noctuaReviewSearchService.matchedCount," ")}}const Mne=function(){return["far","times-circle"]},Cv=function(t){return{"noc-disabled":t}},N$e=function(){return["fas","angle-double-left"]},R$e=function(){return["fas","angle-left"]},z$e=function(){return["fas","angle-right"]},F$e=function(){return["fas","angle-double-right"]};function H$e(t,n){if(1&t){const e=Ln();H(0,"form",7)(1,"mat-form-field",8)(2,"mat-label"),ue(3,"Category"),G(),H(4,"mat-select",9),ke(5,S$e,2,2,"mat-option",10),G()(),H(6,"div",11)(7,"button",12),et("click",function(o){Dt(e);const r=Ae();return o.stopPropagation(),r.clearFind()}),Qe(8,"fa-icon",13),G(),ke(9,P$e,6,1,"mat-form-field",14),ke(10,T$e,6,1,"mat-form-field",15),ke(11,E$e,9,0,"mat-form-field",15),G(),H(12,"div",16)(13,"button",12),et("click",function(o){Dt(e);const r=Ae();return o.stopPropagation(),r.clearReplace()}),Qe(14,"fa-icon",13),G(),ke(15,A$e,6,1,"mat-form-field",14),ke(16,L$e,6,1,"mat-form-field",15),ke(17,D$e,9,0,"mat-form-field",15),G(),H(18,"div",17)(19,"div",18),Qe(20,"span",19),ke(21,k$e,2,0,"div",20),ke(22,I$e,2,2,"div",21),H(23,"div",22)(24,"button",23),et("click",function(){return Dt(e),Ae().goto("first")}),Qe(25,"fa-icon",13),G(),H(26,"button",24),et("click",function(){return Dt(e),Ae().findPrevious()}),Qe(27,"fa-icon",13),G(),H(28,"button",25),et("click",function(){return Dt(e),Ae().findNext()}),Qe(29,"fa-icon",13),G(),H(30,"button",23),et("click",function(){return Dt(e),Ae().goto("last")}),Qe(31,"fa-icon",13),G()()(),H(32,"div",26)(33,"button",27),et("click",function(){return Dt(e),Ae().replace()}),ue(34," Replace "),G(),H(35,"button",28),et("click",function(){return Dt(e),Ae().replaceAll()}),ue(36," Replace All "),G()()()()}if(2&t){const e=Ae();J("formGroup",e.searchForm),W(4),J("compareWith",e.compareCategory),W(1),J("ngForOf",e.categories.options),W(3),J("icon",_i(22,Mne)),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.term),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.gp),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.reference),W(1),J("ngClass",wo(23,Cv,0===e.noctuaReviewSearchService.matchedCount||!e.displayReplaceForm.replaceSection)),W(2),J("icon",_i(25,Mne)),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.term),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.gp),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.reference),W(1),J("ngClass",wo(26,Cv,0===e.noctuaReviewSearchService.matchedCount)),W(3),J("ngIf",0===e.noctuaReviewSearchService.matchedCount),W(1),J("ngIf",e.noctuaReviewSearchService.matchedCount>0),W(2),J("ngClass",wo(28,Cv,0===e.noctuaReviewSearchService.matchedCountCursor)),W(1),J("icon",_i(30,N$e)),W(2),J("icon",_i(31,R$e)),W(2),J("icon",_i(32,z$e)),W(1),J("ngClass",wo(33,Cv,e.noctuaReviewSearchService.matchedCountCursor===e.noctuaReviewSearchService.matchedCount-1)),W(1),J("icon",_i(35,F$e)),W(1),J("ngClass",wo(36,Cv,!e.displayReplaceForm.replaceActions))}}function V$e(t,n){if(1&t&&(H(0,"mat-option",38)(1,"div",39)(2,"div",40),ue(3),G(),Qe(4,"span",19),H(5,"div",41),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function B$e(t,n){if(1&t&&(H(0,"mat-option",38)(1,"div",39)(2,"div",40),ue(3),G(),Qe(4,"span",19),H(5,"div",41),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}let One=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this.zone=e,this.bbopGraphService=i,this.camService=o,this.confirmDialogService=r,this.noctuaReviewSearchService=a,this.noctuaUserService=l,this.noctuaLookupService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=w,this.inlineReferenceService=T,this.ActivityType=so,this.ArtReplaceCategory=zO,this.cams=[],this.displayReplaceForm={replaceSection:!1,replaceActions:!1},this.noctuaFormConfig=Ft,this.textboxDetail={placeholder:""},this._unsubscribeAll=new N,this.categories=(0,Zt.cloneDeep)(this.noctuaFormConfigService.findReplaceCategories),this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(U=>{!U||(this.cams=U)}),this.gpNode=mu([Jl]),this.termNode=mu([p1,Kl,rd,jC,l3,l_])}ngOnInit(){this.selectedCategory=this.categories.selected,this.resetForm(this.selectedCategory),this.noctuaReviewSearchService.onCamTermSearch.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.clearFind(),this.searchForm.controls.findWhat.setValue(e),this.findSelected(e))}),this.noctuaReviewSearchService.onCamReplaceTermSearch.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.searchForm.controls.replaceWith.setValue(e)}),this.noctuaReviewSearchService.onClearForm.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.clearFind()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}resetForm(e){this.searchForm=this.createSearchForm(e),this.noctuaReviewSearchService.clear(),this.camService.clearHighlight(),this.calculateEnableReplace(this.selectedCategory),this.onValueChanges(),this.onNodeValueChange(e)}resetTermNode(){this.termNode=mu([p1,Kl,rd,jC,l3,l_])}createSearchForm(e){return this.selectedCategory=e,new td({findWhat:new Do,replaceWith:new Do,category:new Do(e)})}getClosure(e){return[Jl,p1,Kl,rd,jC,l3,l_,h1,UC,yN].filter(r=>e.find(a=>a.id===r.category))}search(e){let i;this.noctuaReviewSearchService.clear(),this.selectedCategory.name===Ft.findReplaceCategory.options.term.name?i=this.noctuaReviewSearchService.filterType.terms:this.selectedCategory.name===Ft.findReplaceCategory.options.gp.name?i=this.noctuaReviewSearchService.filterType.gps:this.selectedCategory.name===Ft.findReplaceCategory.options.reference.name&&(i=this.noctuaReviewSearchService.filterType.pmids),this.noctuaReviewSearchService.searchCriteria[i]=[e],this.noctuaReviewSearchService.updateSearch()}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.searchForm.controls[i]}})}replace(){const e=this,r=e.camService.getReplaceObject([this.noctuaReviewSearchService.currentMatchedEnity],this.searchForm.value.replaceWith,e.selectedCategory);e.replaceCams(r)}replaceAll(){const e=this,i=this.searchForm.value,o=(0,Zt.groupBy)(this.noctuaReviewSearchService.matchedEntities,"modelId"),r=Object.keys(o).length;let l=i.replaceWith;this.confirmDialogService.openConfirmDialog("Confirm ReplaceAll?",`Replace ${this.noctuaReviewSearchService.matchedCount} occurrences across ${r} model(s)`,f=>{if(f){const w=e.camService.getReplaceObject(this.noctuaReviewSearchService.matchedEntities,l,e.selectedCategory);e.camService.resetLoading(w,new Md(!0,"Loading...")),e.replaceCams(w)}})}findNext(){this.noctuaReviewSearchService.findNext()}findPrevious(){this.noctuaReviewSearchService.findPrevious()}goto(e){this.noctuaReviewSearchService.goto(e)}findSelected(e){const i=this.getClosure(e.rootTypes);this.findNode.termLookup.results=[],i&&(this.replaceNode=mu(i)),this.search(this.searchForm.value.findWhat),this.searchForm.patchValue({replaceWith:null})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}clearFind(){const e=this;e.searchForm.patchValue({findWhat:null,replaceWith:null}),e.noctuaReviewSearchService.clear(),e.camService.clearHighlight(),e.calculateEnableReplace(e.selectedCategory)}clearReplace(){const e=this;e.searchForm.patchValue({replaceWith:null}),e.calculateEnableReplace(e.selectedCategory)}onValueChanges(){const e=this;this.searchForm.get("category").valueChanges.pipe(Yn(this._unsubscribeAll),Cs()).subscribe(i=>{i&&(e.selectedCategory=i,e.searchForm.patchValue({findWhat:null,replaceWith:null}),e.calculateEnableReplace(e.selectedCategory),e.resetForm(i))})}onNodeValueChange(e){const i=this,o=i.noctuaLookupService.lookupFunc();e.name===Ft.findReplaceCategory.options.term.name?(i.findNode=i.termNode,i.textboxDetail.placeholder="Ontology Term"):e.name===Ft.findReplaceCategory.options.gp.name?(i.findNode=i.gpNode,i.textboxDetail.placeholder="Gene Product"):e.name===Ft.findReplaceCategory.options.reference.name&&(i.findNode=null,i.textboxDetail.placeholder="Reference"),i.findNode?(this.findNode.termLookup.results=[],this.searchForm.get("findWhat").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400)).subscribe(r=>{if(r){const a=i.findNode.termLookup;o.termLookup(r,a.requestParams).subscribe(l=>{a.results=l}),i.searchForm.patchValue({replaceWith:null}),i.calculateEnableReplace(e)}}),this.searchForm.get("replaceWith").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400)).subscribe(r=>{if(r&&i.replaceNode){const a=i.replaceNode.termLookup;o.termLookup(r,a.requestParams).subscribe(l=>{a.results=l}),i.calculateEnableReplace(e)}})):(this.searchForm.get("findWhat").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(1e3)).subscribe(r=>{if(r&&r.includes(":")&&Ll.checkReference){const a=Ll.formatReference(r);i.search(a),i.calculateEnableReplace(e)}}),this.searchForm.get("replaceWith").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400)).subscribe(r=>{r&&r.includes(":")&&i.calculateEnableReplace(e)}))}calculateEnableReplace(e){const i=this,o=i.searchForm.value,r=o.findWhat,a=o.replaceWith;e.name===Ft.findReplaceCategory.options.reference.name?(i.displayReplaceForm.replaceSection=r&&Ll.checkReference(r),i.displayReplaceForm.replaceActions=a&&Ll.checkReference(a)):(i.displayReplaceForm.replaceSection=r&&r.id,i.displayReplaceForm.replaceActions=a&&a.id)}compareCategory(e,i){return!(!e||!i)&&e.name===i.name}replaceCams(e){const i=this;this.camService.replace(e).pipe(Ja(1),Sf(o=>Na),Yu(()=>{i.zone.run(()=>{i.camService.resetLoading(e),i.noctuaReviewSearchService.onReplaceChanged.next(!0),i.camService.reviewChangesCams()})})).subscribe(()=>{})}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Yc),de(Zr),de(dd),de(k1),de(yr),de(Sd),de(Co),de(Ts),de(xm))},t.\u0275cmp=vn({type:t,selectors:[["noc-review-form"]],decls:8,vars:5,consts:[[1,"noc-search-form","w-100-p"],["class","noc-section-body pt-8 w-100-p","fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",3,"formGroup",4,"ngIf"],[1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["findAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],[1,"noc-term-autocomplete",3,"displayWith"],["replaceAuto","matAutocomplete"],["fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",1,"noc-section-body","pt-8","w-100-p",3,"formGroup"],["appearance","outline",1,"noc-sm","mb-4","noc-review-input"],["placeholder","","formControlName","category",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-activity-group-row","mb-4","w-100-p"],["mat-icon-button","","aria-label","Clear",1,"noc-text-clear",3,"click"],[3,"icon"],["appearance","outline","class","noc-sm noc-review-input",4,"ngIf"],["appearance","outline","class","noc-sm noc-review-input",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-activity-group-row","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-group-row","mt-8","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","",1,"noc-review-actions"],["fxFlex",""],["class","noc-matched-count",4,"ngIf"],["class","noc-matched-count mr-8",4,"ngIf"],[1,"mr-8"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"ngClass","click"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"click"],["mat-icon-button","","color","primary",1,"noc-icon-button","noc-rotate-90",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-review-actions",3,"ngClass"],["mat-raised-button","","color","warn",1,"noc-sm","mr-4","noc-review-btn",3,"click"],["mat-raised-button","","color","warn",1,"noc-sm","noc-review-btn",3,"click"],[3,"value"],["appearance","outline",1,"noc-sm","noc-review-input"],["type","text","matInput","","formControlName","findWhat",3,"matAutocomplete"],["type","text","matInput","","formControlName","findWhat"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],["type","text","matInput","","formControlName","replaceWith",3,"matAutocomplete"],["type","text","matInput","","formControlName","replaceWith"],[1,"noc-matched-count"],[1,"noc-matched-count","mr-8"],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,H$e,37,38,"form",1),G(),H(2,"mat-autocomplete",2,3),et("optionSelected",function(r){return i.findSelected(r.option.value)}),ke(4,V$e,7,3,"mat-option",4),G(),H(5,"mat-autocomplete",5,6),ke(7,B$e,7,3,"mat-option",4),G()),2&e&&(W(1),J("ngIf",i.searchForm),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.findNode?null:i.findNode.termLookup.results),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.replaceNode?null:i.replaceNode.termLookup.results))},directives:[Yi,nd,tl,Oo,So,Gc,id,yd,qg,Pl,Xl,$o,J1,Fo,ps,E2,ed,kh,E6,Ir,ds,ac,ko,I0],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{border-bottom:#ddd solid 1px}[_nghost-%COMP%] .noc-cams[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding:8px 12px;height:80px;min-height:80px;max-height:80px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff}[_nghost-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%] .noc-text-clear[_ngcontent-%COMP%]{background-color:#fff;position:absolute;right:10px;top:-5px;width:25px;min-width:25px;max-width:25px;height:15px;min-height:15px;max-height:15px;font-size:14px;line-height:14px;z-index:2}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%]{padding:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;margin-bottom:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#f2f2f2;font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-matched-count[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-items:center;align-items:center;padding:0 8px;height:100%;font-size:12px}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px;height:30px;min-height:30px;max-height:30px;line-height:28px;font-size:18px}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-review-btn[_ngcontent-%COMP%]{padding:0 8px;height:30px;line-height:28px;font-size:12px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}'],data:{animation:sc}}),t})();function G$e(t,n){1&t&&(H(0,"div",11),ue(1," Log in to Continue "),G())}function Y$e(t,n){1&t&&(H(0,"th",24),ue(1," Category "),G())}function U$e(t,n){if(1&t&&(H(0,"td",25),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.category," ")}}function j$e(t,n){1&t&&(H(0,"th",26),ue(1,"Changes"),G())}function W$e(t,n){if(1&t&&(H(0,"td",27),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.count," ")}}function q$e(t,n){1&t&&Qe(0,"tr",28)}function $$e(t,n){1&t&&(H(0,"tr",29),et("click",function(i){return i.stopPropagation()}),G())}function X$e(t,n){if(1&t&&(H(0,"div",12)(1,"div",13)(2,"span",14),ue(3),G(),ue(4," changes on this model "),G(),H(5,"table",15),er(6,16),ke(7,Y$e,2,0,"th",17),ke(8,U$e,2,1,"td",18),tr(),er(9,19),ke(10,j$e,2,0,"th",20),ke(11,W$e,2,1,"td",21),tr(),ke(12,q$e,1,0,"tr",22),ke(13,$$e,1,0,"tr",23),G()()),2&t){const e=Ae();W(3),Nt(" ",null==e.summary?null:e.summary.stats.totalChanges," "),W(2),J("dataSource",e.stats),W(7),J("matHeaderRowDef",e.displayedColumns),W(1),J("matRowDefColumns",e.displayedColumns)}}let Sne=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.zone=e,this.camService=i,this.confirmDialogService=o,this.noctuaSearchDialogService=r,this.noctuaUserService=a,this.noctuaReviewSearchService=l,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.MiddlePanel=fa,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.displayedColumns=["category","count"],this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e,this.stats=this.generateStats(this.summary.stats))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}backToReview(){this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview)}close(){this.panelDrawer.close()}reviewCamChanges(e){const r=this.camService.reviewCamChanges(e);this.noctuaSearchDialogService.openCamReviewChangesDialog(a=>{},r)}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Zr),de(dd),de(U0),de(yr),de(k1),de(pl),de(ld),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-find-replace"]],inputs:{panelDrawer:"panelDrawer"},decls:15,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"pt-4","px-12"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["class","noc-stats-results","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"noc-stat-summary"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","200px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),ue(4," Find and Replace"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," CLOSE "),G()(),Qe(10,"noc-review-form",6),G(),H(11,"div",7),ke(12,G$e,2,0,"div",8),ke(13,X$e,14,4,"div",9),G(),Qe(14,"div",10),G()),2&e&&(W(12),J("ngIf",!i.noctuaUserService.user),W(1),J("ngIf",(null==i.summary?null:i.summary.stats.totalChanges)>0))},directives:[Oo,So,ko,Fo,Ir,One,ts,Yi,$g,Zf,Qf,Kf,Xf,Jf,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:280px;min-height:280px;max-height:280px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{position:relative;min-height:40px;max-height:500px;border-bottom:#ccc solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:100px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}']}),t})();const Q$e=["tree"],Z$e=function(){return["fas","caret-right"]};function K$e(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,Z$e))}const J$e=function(){return["fas","caret-down"]};function eXe(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,J$e))}function tXe(t,n){if(1&t){const e=Ln();H(0,"button",17),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,K$e,1,2,"fa-icon",18),ke(2,eXe,1,2,"fa-icon",18),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function nXe(t,n){1&t&&Qe(0,"div",20)}function iXe(t,n){if(1&t){const e=Ln();H(0,"div",21)(1,"div"),ue(2),G(),Qe(3,"span",3),H(4,"div",22),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae().openSearch(o.data)}),ue(5),G()()}if(2&t){const e=Ae().$implicit;W(2),Nt(" ",e.data.label," "),W(3),Nt(" ",e.data.frequency," ")}}const CS=function(){return["fas","info-circle"]},oXe=function(){return["fas","bars"]};function rXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",26),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().search(o.data)}),ue(2),G(),Qe(3,"span",3),H(4,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),ue(5),G(),H(6,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(7,"fa-icon",19),G(),H(8,"button",29),Qe(9,"fa-icon",19),G(),H(10,"mat-menu",30,31)(12,"button",32),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),ue(13," Find in Model "),G(),H(14,"button",32),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().searchModels(o.data)}),ue(15," Search Models "),G(),H(16,"button",32),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().searchModelsByContributor(o.data)}),ue(17," Search My Models "),G()(),tr()}if(2&t){const e=Di(11),i=Ae(2).$implicit;W(2),Nt(" ",null==i.data.term?null:i.data.term.label," "),W(3),Nt(" ",i.data.frequency," "),W(2),J("icon",_i(5,CS)),W(1),J("matMenuTriggerFor",e),W(1),J("icon",_i(6,oXe))}}function aXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",33)(2,"div",34),ue(3),G(),H(4,"div",35)(5,"a",36),et("click",function(o){return o.stopPropagation()}),ue(6),G()(),H(7,"div",35),ue(8),G()(),H(9,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),ue(10),G(),H(11,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(12,"fa-icon",19),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(3),Nt(" ",null==e.data.evidence?null:e.data.evidence.label," "),W(2),Ro("href",null==e.data.referenceEntity?null:e.data.referenceEntity.url,ao),W(1),Nt(" ",null==e.data.referenceEntity?null:e.data.referenceEntity.label," "),W(2),Nt(" ",null==e.data.withEntity?null:e.data.withEntity.label," "),W(2),Nt(" ",e.data.frequency," "),W(2),J("icon",_i(6,CS))}}function sXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",26),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().search(o.data)}),ue(2),G(),Qe(3,"span",3),H(4,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),ue(5),G(),H(6,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(7,"fa-icon",19),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(2),Nt(" ",e.data.label," "),W(3),Nt(" ",e.data.frequency," "),W(2),J("icon",_i(3,CS))}}function cXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",26),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().search(o.data)}),ue(2),G(),Qe(3,"span",3),H(4,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),ue(5),G(),H(6,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(7,"fa-icon",19),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(2),Nt(" ",e.data.name," "),W(3),Nt(" ",e.data.frequency," "),W(2),J("icon",_i(3,CS))}}function lXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",33)(2,"div",37),ue(3),G(),H(4,"div",35)(5,"a",36),et("click",function(o){return o.stopPropagation()}),ue(6),G()(),H(7,"div",38)(8,"mat-icon",39),ue(9,"person"),G(),H(10,"span",3),ue(11),G()(),H(12,"div",40)(13,"mat-icon",39),ue(14,"date_range"),G(),H(15,"span"),ue(16),G()()(),H(17,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),ue(18),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(3),Nt(" ",e.data.title," "),W(2),Ro("href",e.data.link,ao),W(1),Nt(" ",e.data.id," "),W(5),qo(e.data.author),W(5),qo(e.data.date),W(2),Nt(" ",e.data.frequency," ")}}function dXe(t,n){if(1&t&&(H(0,"div",23),er(1,24),ke(2,rXe,18,7,"ng-container",25),ke(3,aXe,13,7,"ng-container",25),ke(4,sXe,8,4,"ng-container",25),ke(5,cXe,8,4,"ng-container",25),ke(6,lXe,19,6,"ng-container",25),tr(),G()),2&t){const e=Ae().$implicit,i=Ae();W(1),J("ngSwitch",e.data.entityType),W(1),J("ngSwitchCase",i.EntityType.ACTIVITY_NODE),W(1),J("ngSwitchCase",i.EntityType.EVIDENCE),W(1),J("ngSwitchCase",i.EntityType.ENTITY),W(1),J("ngSwitchCase",i.EntityType.CONTRIBUTOR),W(1),J("ngSwitchCase",i.EntityType.ARTICLE)}}function uXe(t,n){if(1&t){const e=Ln();H(0,"div",11),ke(1,tXe,3,2,"button",12),ke(2,nXe,1,0,"div",13),H(3,"div",14),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),ke(4,iXe,6,2,"div",15),ke(5,dXe,7,6,"div",16),G()()}if(2&t){const e=n.$implicit;Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(1),J("ngIf",e.data.isCategory),W(1),J("ngIf",!e.data.isCategory)}}let Pne=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this.noctuaLookupService=e,this._bbopGraphService=i,this.noctuaCommonMenuService=o,this.camService=r,this.noctuaSearchDialogService=a,this.noctuaUserService=l,this.noctuaReviewSearchService=u,this.noctuaSearchMenuService=f,this.noctuaSearchService=w,this.noctuaFormConfigService=T,this.MiddlePanel=fa,this.EntityType=H0,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.treeOptions={allowDrag:!1,allowDrop:!1},this._unsubscribeAll=new N}ngOnInit(){this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{if(!e)return;this.cam=e,this.termsSummary=this._bbopGraphService.getTerms(this.cam.graph),this.treeNodes=this.camService.buildTermsTree(this.termsSummary);const i=this.termsSummary.papers.nodes.map(o=>Ll.getReferenceNumber(o.id));this.noctuaLookupService.addPubmedInfos(i)}),this.noctuaLookupService.onArticleCacheReady.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.termsSummary.papers.nodes.forEach(i=>{const o=this.noctuaLookupService.articleCache[i.id];o&&(i.title=o.title,i.link=o.link,i.author=o.author,i.date=o.date)})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openSearch(e){this.noctuaLookupService.getTermDetail(e.term.id).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.openLeftDrawer())})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[e.term],this.noctuaReviewSearchService.updateSearch()}searchModels(e){const i=new cd;i.terms=[e.term];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}searchModelsByContributor(e){const i=new cd;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}openTermDetail(e){this.noctuaSearchService.onDetailTermChanged.next(e),this.noctuaCommonMenuService.selectRightPanel(um.termDetail),this.noctuaCommonMenuService.openRightDrawer()}onTreeLoad(){}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Sd),de(Yc),de(ul),de(Zr),de(U0),de(yr),de(k1),de(pl),de(ld),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-terms"]],viewQuery:function(e,i){if(1&e&&_o(Q$e,5),2&e){let o;fi(o=gi())&&(i.tree=o.first)}},inputs:{panelDrawer:"panelDrawer"},decls:16,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],[1,"noc-tree-container"],[1,"noc-tree"],[3,"nodes","options","initialized"],["tree",""],["treeNodeWrapperTemplate",""],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["class","noc-term-row noc-category-row","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-term-row","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[3,"icon",4,"ngIf"],[3,"icon"],[1,"noc-expander-placeholder"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row","noc-category-row"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-aspect-badge",3,"click"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"noc-title",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-badge",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-icon",3,"click"],["mat-icon-button","",1,"noc-icon-button",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["optionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch"],[1,"noc-title"],[1,"noc-subtitle"],["target","_blank",3,"href","click"],[1,"noc-article-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-article-author"],[1,"s-16","mr-4"],[1,"noc-article-date"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Terms"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"tree-root",8,9),et("initialized",function(){return i.onTreeLoad()}),ke(14,uXe,6,13,"ng-template",null,10,tu),G()()()()()),2&e&&(W(12),J("nodes",i.treeNodes)("options",i.treeOptions))},directives:[Oo,So,ko,Fo,Ir,ts,rR,Yi,ps,rS,fv,bd,iu,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 30px)}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding:12px 8px;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-subtitle[_ngcontent-%COMP%]{font-size:10px;color:#777}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:10px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{font-size:10px;max-height:60px;color:#777;overflow:hidden}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-aspect-badge[_ngcontent-%COMP%]{margin:2px 5px;width:20px;min-width:20px;max-width:20px;color:#777;border-radius:6px;font-size:8px;font-weight:700;border:#000 solid 1px;border-top:none;border-bottom:none}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-aspect-badge[_ngcontent-%COMP%]{margin:2px 5px;width:30px;min-width:30px;max-width:30px;color:#777;border-radius:6px;font-size:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;color:#777}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-category-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function kl(t,n){const e=kN.getColor(t);return e?e[n]:null}function hXe(){}function OR(t){return null==t?hXe:function(){return this.querySelector(t)}}function fXe(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function gXe(){return[]}function Tne(t){return null==t?gXe:function(){return this.querySelectorAll(t)}}function Ene(t){return function(){return this.matches(t)}}function Ane(t){return function(n){return n.matches(t)}}var CXe=Array.prototype.find;function bXe(){return this.firstElementChild}var yXe=Array.prototype.filter;function wXe(){return Array.from(this.children)}function Lne(t){return new Array(t.length)}function vS(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function TXe(t){return function(){return t}}function EXe(t,n,e,i,o,r){for(var l,a=0,u=n.length,f=r.length;an?1:t>=n?0:NaN}vS.prototype={constructor:vS,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var SR="http://www.w3.org/1999/xhtml";const Dne={svg:"http://www.w3.org/2000/svg",xhtml:SR,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bS(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Dne.hasOwnProperty(n)?{space:Dne[n],local:t}:t}function WXe(t){return function(){this.removeAttribute(t)}}function qXe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $Xe(t,n){return function(){this.setAttribute(t,n)}}function XXe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function QXe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function ZXe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function kne(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function JXe(t){return function(){this.style.removeProperty(t)}}function eQe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function tQe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function I_(t,n){return t.style.getPropertyValue(n)||kne(t).getComputedStyle(t,null).getPropertyValue(n)}function iQe(t){return function(){delete this[t]}}function oQe(t,n){return function(){this[t]=n}}function rQe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ine(t){return t.trim().split(/^|\s+/)}function PR(t){return t.classList||new Nne(t)}function Nne(t){this._node=t,this._names=Ine(t.getAttribute("class")||"")}function Rne(t,n){for(var e=PR(t),i=-1,o=n.length;++i=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function RQe(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,o=n.length;e=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Vne=[null];function vu(t,n){this._groups=t,this._parents=n}function Bne(){return new vu([[document.documentElement]],Vne)}vu.prototype=Bne.prototype={constructor:vu,select:function pXe(t){"function"!=typeof t&&(t=OR(t));for(var n=this._groups,e=n.length,i=new Array(e),o=0;o=me&&(me=Be+1);!(qe=we[me])&&++me=0;)(a=i[o])&&(r&&4^a.compareDocumentPosition(r)&&r.parentNode.insertBefore(a,r),r=a);return this},sort:function FXe(t){function n(T,U){return T&&U?t(T.__data__,U.__data__):!T-!U}t||(t=HXe);for(var e=this._groups,i=e.length,o=new Array(i),r=0;r1?this.each((null==n?JXe:"function"==typeof n?tQe:eQe)(t,n,null==e?"":e)):I_(this.node(),t)},property:function aQe(t,n){return arguments.length>1?this.each((null==n?iQe:"function"==typeof n?rQe:oQe)(t,n)):this.node()[t]},classed:function dQe(t,n){var e=Ine(t+"");if(arguments.length<2){for(var i=PR(this.node()),o=-1,r=e.length;++o{}};function Gne(){for(var i,t=0,n=arguments.length,e={};t=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function WQe(t,n){for(var o,e=0,i=t.length;e0)for(var o,r,e=new Array(o),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?wS(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?wS(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=QQe.exec(t))?new F2(n[1],n[2],n[3],1):(n=ZQe.exec(t))?new F2(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=KQe.exec(t))?wS(n[1],n[2],n[3],n[4]):(n=JQe.exec(t))?wS(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=eZe.exec(t))?Kne(n[1],n[2]/100,n[3]/100,1):(n=tZe.exec(t))?Kne(n[1],n[2]/100,n[3]/100,n[4]):Wne.hasOwnProperty(t)?Xne(Wne[t]):"transparent"===t?new F2(NaN,NaN,NaN,0):null}function Xne(t){return new F2(t>>16&255,t>>8&255,255&t,1)}function wS(t,n,e,i){return i<=0&&(t=n=e=NaN),new F2(t,n,e,i)}function oZe(t){return t instanceof bv||(t=ym(t)),t?new F2((t=t.rgb()).r,t.g,t.b,t.opacity):new F2}function MS(t,n,e,i){return 1===arguments.length?oZe(t):new F2(t,n,e,null==i?1:i)}function F2(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function Qne(){return`#${Mm(this.r)}${Mm(this.g)}${Mm(this.b)}`}function Zne(){const t=OS(this.opacity);return`${1===t?"rgb(":"rgba("}${wm(this.r)}, ${wm(this.g)}, ${wm(this.b)}${1===t?")":`, ${t})`}`}function OS(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function wm(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mm(t){return((t=wm(t))<16?"0":"")+t.toString(16)}function Kne(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new $h(t,n,e,i)}function Jne(t){if(t instanceof $h)return new $h(t.h,t.s,t.l,t.opacity);if(t instanceof bv||(t=ym(t)),!t)return new $h;if(t instanceof $h)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,o=Math.min(n,e,i),r=Math.max(n,e,i),a=NaN,l=r-o,u=(r+o)/2;return l?(a=n===r?(e-i)/l+6*(e0&&u<1?0:a,new $h(a,l,u,t.opacity)}function $h(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function eie(t){return(t=(t||0)%360)<0?t+360:t}function SS(t){return Math.max(0,Math.min(1,t||0))}function LR(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function tie(t,n,e,i,o){var r=t*t,a=r*t;return((1-3*t+3*r-a)*n+(4-6*r+3*a)*e+(1+3*t+3*r-3*a)*i+a*o)/6}AR(bv,ym,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:qne,formatHex:qne,formatHex8:function nZe(){return this.rgb().formatHex8()},formatHsl:function iZe(){return Jne(this).formatHsl()},formatRgb:$ne,toString:$ne}),AR(F2,MS,jne(bv,{brighter(t){return t=null==t?yS:Math.pow(yS,t),new F2(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new F2(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new F2(wm(this.r),wm(this.g),wm(this.b),OS(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:Qne,formatHex:Qne,formatHex8:function rZe(){return`#${Mm(this.r)}${Mm(this.g)}${Mm(this.b)}${Mm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zne,toString:Zne})),AR($h,function aZe(t,n,e,i){return 1===arguments.length?Jne(t):new $h(t,n,e,null==i?1:i)},jne(bv,{brighter(t){return t=null==t?yS:Math.pow(yS,t),new $h(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new $h(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,o=2*e-i;return new F2(LR(t>=240?t-240:t+120,o,i),LR(t,o,i),LR(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new $h(eie(this.h),SS(this.s),SS(this.l),OS(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=OS(this.opacity);return`${1===t?"hsl(":"hsla("}${eie(this.h)}, ${100*SS(this.s)}%, ${100*SS(this.l)}%${1===t?")":`, ${t})`}`}}));const DR=t=>()=>t;function iie(t,n){var e=n-t;return e?function nie(t,n){return function(e){return t+e*n}}(t,e):DR(isNaN(t)?n:t)}const PS=function t(n){var e=function dZe(t){return 1==(t=+t)?iie:function(n,e){return e-n?function lZe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):DR(isNaN(n)?e:n)}}(n);function i(o,r){var a=e((o=MS(o)).r,(r=MS(r)).r),l=e(o.g,r.g),u=e(o.b,r.b),f=iie(o.opacity,r.opacity);return function(w){return o.r=a(w),o.g=l(w),o.b=u(w),o.opacity=f(w),o+""}}return i.gamma=t,i}(1);function oie(t){return function(n){var a,l,e=n.length,i=new Array(e),o=new Array(e),r=new Array(e);for(a=0;a=1?(e=1,n-1):Math.floor(e*n),o=t[i],r=t[i+1];return tie((e-i/n)*n,i>0?t[i-1]:2*o-r,o,r,ie&&(r=n.slice(e,r),l[a]?l[a]+=r:l[++a]=r),(i=i[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:Xh(i,o)})),e=IR.lastIndex;return e=0&&t._call.call(void 0,n),t=t._next;--R_}()}finally{R_=0,function xZe(){for(var t,e,n=TS,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:TS=e);Ov=t,RR(i)}(),Sm=0}}function bZe(){var t=Sv.now(),n=t-ES;n>1e3&&(AS-=n,ES=t)}function RR(t){R_||(wv&&(wv=clearTimeout(wv)),t-Sm>24?(t<1/0&&(wv=setTimeout(uie,t-Sv.now()-AS)),Mv&&(Mv=clearInterval(Mv))):(Mv||(ES=Sv.now(),Mv=setInterval(bZe,1e3)),R_=1,lie(uie)))}function hie(t,n,e){var i=new LS;return i.restart(o=>{i.stop(),t(o+n)},n=null==n?0:+n,e),i}LS.prototype=die.prototype={constructor:LS,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?NR():+e)+(null==n?0:+n),!this._next&&Ov!==this&&(Ov?Ov._next=this:TS=this,Ov=this),this._call=t,this._time=e,RR()},stop:function(){this._call&&(this._call=null,this._time=1/0,RR())}};var yZe=Une("start","end","cancel","interrupt"),wZe=[];function IS(t,n,e,i,o,r){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function MZe(t,n,e){var o,i=t.__transition;function a(f){var w,T,U,ie;if(1!==e.state)return u();for(w in i)if((ie=i[w]).name===e.name){if(3===ie.state)return hie(a);4===ie.state?(ie.state=6,ie.timer.stop(),ie.on.call("interrupt",t,t.__data__,ie.index,ie.group),delete i[w]):+w0)throw new Error("too late; already scheduled");return e}function Q0(t,n){var e=Qh(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Qh(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function VR(t,n){var i,o,a,e=t.__transition,r=!0;if(e){for(a in n=null==n?null:n+"",e)(i=e[a]).name===n?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[a]):r=!1;r&&delete t.__transition}}var NS,_ie=180/Math.PI,BR={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Cie(t,n,e,i,o,r){var a,l,u;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(u=t*e+n*i)&&(e-=t*u,i-=n*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i180?w+=360:w-f>180&&(f+=360),U.push({i:T.push(o(T)+"rotate(",null,i)-2,x:Xh(f,w)})):w&&T.push(o(T)+"rotate("+w+i)}(f.rotate,w.rotate,T,U),function l(f,w,T,U){f!==w?U.push({i:T.push(o(T)+"skewX(",null,i)-2,x:Xh(f,w)}):w&&T.push(o(T)+"skewX("+w+i)}(f.skewX,w.skewX,T,U),function u(f,w,T,U,ie,se){if(f!==T||w!==U){var Me=ie.push(o(ie)+"scale(",null,",",null,")");se.push({i:Me-4,x:Xh(f,T)},{i:Me-2,x:Xh(w,U)})}else(1!==T||1!==U)&&ie.push(o(ie)+"scale("+T+","+U+")")}(f.scaleX,f.scaleY,w.scaleX,w.scaleY,T,U),f=w=null,function(ie){for(var we,se=-1,Me=U.length;++se=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?HR:Q0;return function(){var a=r(this,t),l=a.on;l!==i&&(o=(i=l).copy()).on(n,e),a.on=o}}var dKe=vv.prototype.constructor;function xie(t){return function(){this.style.removeProperty(t)}}function _Ke(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function CKe(t,n,e){var i,o;function r(){var a=n.apply(this,arguments);return a!==o&&(i=(o=a)&&_Ke(t,a,e)),i}return r._value=n,r}function wKe(t){return function(n){this.textContent=t.call(this,n)}}function MKe(t){var n,e;function i(){var o=t.apply(this,arguments);return o!==e&&(n=(e=o)&&wKe(o)),n}return i._value=t,i}var TKe=0;function M3(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function yie(){return++TKe}var O3=vv.prototype;M3.prototype=function EKe(t){return vv().transition(t)}.prototype={constructor:M3,select:function cKe(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=OR(t));for(var i=this._groups,o=i.length,r=new Array(o),a=0;a()=>t;function IKe(t,{sourceEvent:n,target:e,selection:i,mode:o,dispatch:r}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function NKe(t){t.stopImmediatePropagation()}function UR(t){t.preventDefault(),t.stopImmediatePropagation()}var wie={name:"drag"},jR={name:"space"},z_={name:"handle"},F_={name:"center"};const{abs:Mie,max:kd,min:Id}=Math;function Oie(t){return[+t[0],+t[1]]}function WR(t){return[Oie(t[0]),Oie(t[1])]}var RS={name:"x",handles:["w","e"].map(Pv),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},zS={name:"y",handles:["n","s"].map(Pv),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},S3=(["n","w","e","s","nw","ne","sw","se"].map(Pv),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),Sie={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Pie={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},zKe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},FKe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Pv(t){return{type:t}}function HKe(t){return!t.ctrlKey&&!t.button}function VKe(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function BKe(){return navigator.maxTouchPoints||"ontouchstart"in this}function qR(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function GKe(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Tv(t,n){return null==t||null==n?NaN:tn?1:t>=n?0:NaN}function UKe(t,n){return null==t||null==n?NaN:nt?1:n>=t?0:NaN}function XR(t){let n,e,i;function o(l,u,f=0,w=l.length){if(f>>1;e(l[T],u)<0?f=T+1:w=T}while(fTv(t(l),u),i=(l,u)=>t(l)-u):(n=t===Tv||t===UKe?t:jKe,e=t,i=t),{left:o,center:function a(l,u,f=0,w=l.length){const T=o(l,u,f,w-1);return T>f&&i(l[T-1],u)>-i(l[T],u)?T-1:T},right:function r(l,u,f=0,w=l.length){if(f>>1;e(l[T],u)<=0?f=T+1:w=T}while(f=WKe?10:r>=qKe?5:r>=$Ke?2:1;let l,u,f;return o<0?(f=Math.pow(10,-o)/a,l=Math.round(t*f),u=Math.round(n*f),l/fn&&--u,f=-f):(f=Math.pow(10,o)*a,l=Math.round(t/f),u=Math.round(n/f),l*fn&&--u),u(t(r=new Date(+r)),r),o.ceil=r=>(t(r=new Date(r-1)),n(r,1),t(r),r),o.round=r=>{const a=o(r),l=o.ceil(r);return r-a(n(r=new Date(+r),null==a?1:Math.floor(a)),r),o.range=(r,a,l)=>{const u=[];if(r=o.ceil(r),l=null==l?1:Math.floor(l),!(r0))return u;let f;do{u.push(f=new Date(+r)),n(r,l),t(r)}while(fg1(a=>{if(a>=a)for(;t(a),!r(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;n(a,-1),!r(a););else for(;--l>=0;)for(;n(a,1),!r(a););}),e&&(o.count=(r,a)=>(ez.setTime(+r),tz.setTime(+a),t(ez),t(tz),Math.floor(e(ez,tz))),o.every=r=>(r=Math.floor(r),isFinite(r)&&r>0?r>1?o.filter(i?a=>i(a)%r==0:a=>o.count(0,a)%r==0):o:null)),o}const HS=g1(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);HS.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?g1(n=>{n.setTime(Math.floor(n/t)*t)},(n,e)=>{n.setTime(+n+e*t)},(n,e)=>(e-n)/t):HS:null);const H_=g1(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*P3)},(t,n)=>(n-t)/P3,t=>t.getUTCSeconds()),nz=g1(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*P3)},(t,n)=>{t.setTime(+t+n*nh)},(t,n)=>(n-t)/nh,t=>t.getMinutes()),Eie=g1(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*nh)},(t,n)=>(n-t)/nh,t=>t.getUTCMinutes()),iz=g1(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*P3-t.getMinutes()*nh)},(t,n)=>{t.setTime(+t+n*T3)},(t,n)=>(n-t)/T3,t=>t.getHours()),Aie=g1(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*T3)},(t,n)=>(n-t)/T3,t=>t.getUTCHours()),oz=g1(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nh)/E3,t=>t.getDate()-1),Lie=(g1(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/E3,t=>t.getUTCDate()-1),g1(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/E3,t=>Math.floor(t/E3)));function Pm(t){return g1(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,e)=>{n.setDate(n.getDate()+7*e)},(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*nh)/KR)}const rz=Pm(0);function Tm(t){return g1(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+7*e)},(n,e)=>(e-n)/KR)}Pm(1),Pm(2),Pm(3),Pm(4),Pm(5),Pm(6);const Die=Tm(0),az=(Tm(1),Tm(2),Tm(3),Tm(4),Tm(5),Tm(6),g1(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear()),t=>t.getMonth())),kie=g1(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()),VS=g1(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());VS.every=t=>isFinite(t=Math.floor(t))&&t>0?g1(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e*t)}):null;const sz=g1(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Iie(t,n,e,i,o,r){const a=[[H_,1,P3],[H_,5,5e3],[H_,15,15e3],[H_,30,3e4],[r,1,nh],[r,5,5*nh],[r,15,15*nh],[r,30,30*nh],[o,1,T3],[o,3,3*T3],[o,6,6*T3],[o,12,12*T3],[i,1,E3],[i,2,2*E3],[e,1,KR],[n,1,2592e6],[n,3,7776e6],[t,1,JR]];function u(f,w,T){const U=Math.abs(w-f)/T,ie=XR(([,,we])=>we).right(a,U);if(ie===a.length)return t.every(ZR(f/JR,w/JR,T));if(0===ie)return HS.every(Math.max(ZR(f,w,T),1));const[se,Me]=a[U/a[ie-1][2]isFinite(t=Math.floor(t))&&t>0?g1(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null;const[Uun,jun]=Iie(sz,kie,Die,Lie,Aie,Eie),[cJe,lJe]=Iie(VS,az,rz,oz,iz,nz);var cz=new Date,lz=new Date;function A3(t,n,e,i){function o(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return o.floor=function(r){return t(r=new Date(+r)),r},o.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},o.round=function(r){var a=o(r),l=o.ceil(r);return r-a0))return u;do{u.push(f=new Date(+r)),n(r,l),t(r)}while(f=a)for(;t(a),!r(a);)a.setTime(a-1)},function(a,l){if(a>=a)if(l<0)for(;++l<=0;)for(;n(a,-1),!r(a););else for(;--l>=0;)for(;n(a,1),!r(a););})},e&&(o.count=function(r,a){return cz.setTime(+r),lz.setTime(+a),t(cz),t(lz),Math.floor(e(cz,lz))},o.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?o.filter(i?function(a){return i(a)%r==0}:function(a){return o.count(0,a)%r==0}):o:null}),o}function Em(t){return A3(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/6048e5})}var Rie=Em(0),BS=Em(1),V_=(Em(2),Em(3),Em(4)),zie=(Em(5),Em(6),A3(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const Fie=zie;function Am(t){return A3(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/6048e5})}var Hie=Am(0),GS=Am(1),B_=(Am(2),Am(3),Am(4)),Vie=(Am(5),Am(6),A3(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1));const Bie=Vie;var uz=A3(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});uz.every=function(t){return isFinite(t=Math.floor(t))&&t>0?A3(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Av=uz;var hz=A3(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});hz.every=function(t){return isFinite(t=Math.floor(t))&&t>0?A3(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Lv=hz;function pz(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function fz(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Dv(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var G_,noe,Gie={"-":"",_:" ",0:"0"},N1=/^\s*\d+/,vJe=/^%/,bJe=/[\\^$*+?|[\]().{}]/g;function Es(t,n,e){var i=t<0?"-":"",o=(i?-t:t)+"",r=o.length;return i+(r[n.toLowerCase(),e]))}function yJe(t,n,e){var i=N1.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function wJe(t,n,e){var i=N1.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function MJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function OJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function SJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function Yie(t,n,e){var i=N1.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function Uie(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function PJe(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function TJe(t,n,e){var i=N1.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function EJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function jie(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function AJe(t,n,e){var i=N1.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function Wie(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function LJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function DJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function kJe(t,n,e){var i=N1.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function IJe(t,n,e){var i=N1.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function NJe(t,n,e){var i=vJe.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function RJe(t,n,e){var i=N1.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function zJe(t,n,e){var i=N1.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function qie(t,n){return Es(t.getDate(),n,2)}function FJe(t,n){return Es(t.getHours(),n,2)}function HJe(t,n){return Es(t.getHours()%12||12,n,2)}function VJe(t,n){return Es(1+Bie.count(Av(t),t),n,3)}function $ie(t,n){return Es(t.getMilliseconds(),n,3)}function BJe(t,n){return $ie(t,n)+"000"}function GJe(t,n){return Es(t.getMonth()+1,n,2)}function YJe(t,n){return Es(t.getMinutes(),n,2)}function UJe(t,n){return Es(t.getSeconds(),n,2)}function jJe(t){var n=t.getDay();return 0===n?7:n}function WJe(t,n){return Es(Hie.count(Av(t)-1,t),n,2)}function Xie(t){var n=t.getDay();return n>=4||0===n?B_(t):B_.ceil(t)}function qJe(t,n){return t=Xie(t),Es(B_.count(Av(t),t)+(4===Av(t).getDay()),n,2)}function $Je(t){return t.getDay()}function XJe(t,n){return Es(GS.count(Av(t)-1,t),n,2)}function QJe(t,n){return Es(t.getFullYear()%100,n,2)}function ZJe(t,n){return Es((t=Xie(t)).getFullYear()%100,n,2)}function KJe(t,n){return Es(t.getFullYear()%1e4,n,4)}function JJe(t,n){var e=t.getDay();return Es((t=e>=4||0===e?B_(t):B_.ceil(t)).getFullYear()%1e4,n,4)}function eet(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Es(n/60|0,"0",2)+Es(n%60,"0",2)}function Qie(t,n){return Es(t.getUTCDate(),n,2)}function tet(t,n){return Es(t.getUTCHours(),n,2)}function net(t,n){return Es(t.getUTCHours()%12||12,n,2)}function iet(t,n){return Es(1+Fie.count(Lv(t),t),n,3)}function Zie(t,n){return Es(t.getUTCMilliseconds(),n,3)}function oet(t,n){return Zie(t,n)+"000"}function ret(t,n){return Es(t.getUTCMonth()+1,n,2)}function aet(t,n){return Es(t.getUTCMinutes(),n,2)}function set(t,n){return Es(t.getUTCSeconds(),n,2)}function cet(t){var n=t.getUTCDay();return 0===n?7:n}function det(t,n){return Es(Rie.count(Lv(t)-1,t),n,2)}function Kie(t){var n=t.getUTCDay();return n>=4||0===n?V_(t):V_.ceil(t)}function uet(t,n){return t=Kie(t),Es(V_.count(Lv(t),t)+(4===Lv(t).getUTCDay()),n,2)}function het(t){return t.getUTCDay()}function pet(t,n){return Es(BS.count(Lv(t)-1,t),n,2)}function fet(t,n){return Es(t.getUTCFullYear()%100,n,2)}function get(t,n){return Es((t=Kie(t)).getUTCFullYear()%100,n,2)}function met(t,n){return Es(t.getUTCFullYear()%1e4,n,4)}function _et(t,n){var e=t.getUTCDay();return Es((t=e>=4||0===e?V_(t):V_.ceil(t)).getUTCFullYear()%1e4,n,4)}function Cet(){return"+0000"}function Jie(){return"%"}function eoe(t){return+t}function toe(t){return Math.floor(+t/1e3)}function ioe(t){return null===t?NaN:+t}!function yet(t){G_=function CJe(t){var n=t.dateTime,e=t.date,i=t.time,o=t.periods,r=t.days,a=t.shortDays,l=t.months,u=t.shortMonths,f=kv(o),w=Iv(o),T=kv(r),U=Iv(r),ie=kv(a),se=Iv(a),Me=kv(l),we=Iv(l),He=kv(u),Be=Iv(u),me={a:function ni(jn){return a[jn.getDay()]},A:function Jn(jn){return r[jn.getDay()]},b:function Oi(jn){return u[jn.getMonth()]},B:function qn(jn){return l[jn.getMonth()]},c:null,d:qie,e:qie,f:BJe,g:ZJe,G:JJe,H:FJe,I:HJe,j:VJe,L:$ie,m:GJe,M:YJe,p:function Wi(jn){return o[+(jn.getHours()>=12)]},q:function Ai(jn){return 1+~~(jn.getMonth()/3)},Q:eoe,s:toe,S:UJe,u:jJe,U:WJe,V:qJe,w:$Je,W:XJe,x:null,X:null,y:QJe,Y:KJe,Z:eet,"%":Jie},ze={a:function Bi(jn){return a[jn.getUTCDay()]},A:function lo(jn){return r[jn.getUTCDay()]},b:function nr(jn){return u[jn.getUTCMonth()]},B:function Nr(jn){return l[jn.getUTCMonth()]},c:null,d:Qie,e:Qie,f:oet,g:get,G:_et,H:tet,I:net,j:iet,L:Zie,m:ret,M:aet,p:function ro(jn){return o[+(jn.getUTCHours()>=12)]},q:function ki(jn){return 1+~~(jn.getUTCMonth()/3)},Q:eoe,s:toe,S:set,u:cet,U:det,V:uet,w:het,W:pet,x:null,X:null,y:fet,Y:met,Z:Cet,"%":Jie},qe={a:function an(jn,yi,Ii){var Vn=ie.exec(yi.slice(Ii));return Vn?(jn.w=se.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},A:function pn(jn,yi,Ii){var Vn=T.exec(yi.slice(Ii));return Vn?(jn.w=U.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},b:function yn(jn,yi,Ii){var Vn=He.exec(yi.slice(Ii));return Vn?(jn.m=Be.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},B:function Kt(jn,yi,Ii){var Vn=Me.exec(yi.slice(Ii));return Vn?(jn.m=we.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},c:function kn(jn,yi,Ii){return Ut(jn,n,yi,Ii)},d:jie,e:jie,f:IJe,g:Uie,G:Yie,H:Wie,I:Wie,j:AJe,L:kJe,m:EJe,M:LJe,p:function jt(jn,yi,Ii){var Vn=f.exec(yi.slice(Ii));return Vn?(jn.p=w.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},q:TJe,Q:RJe,s:zJe,S:DJe,u:wJe,U:MJe,V:OJe,w:yJe,W:SJe,x:function ri(jn,yi,Ii){return Ut(jn,e,yi,Ii)},X:function Rn(jn,yi,Ii){return Ut(jn,i,yi,Ii)},y:Uie,Y:Yie,Z:PJe,"%":NJe};function rt(jn,yi){return function(Ii){var $a,Cr,gs,Vn=[],Ei=-1,Zo=0,Sa=jn.length;for(Ii instanceof Date||(Ii=new Date(+Ii));++Ei53)return null;"w"in Vn||(Vn.w=1),"Z"in Vn?(Sa=(Zo=fz(Dv(Vn.y,0,1))).getUTCDay(),Zo=Sa>4||0===Sa?BS.ceil(Zo):BS(Zo),Zo=Fie.offset(Zo,7*(Vn.V-1)),Vn.y=Zo.getUTCFullYear(),Vn.m=Zo.getUTCMonth(),Vn.d=Zo.getUTCDate()+(Vn.w+6)%7):(Sa=(Zo=pz(Dv(Vn.y,0,1))).getDay(),Zo=Sa>4||0===Sa?GS.ceil(Zo):GS(Zo),Zo=Bie.offset(Zo,7*(Vn.V-1)),Vn.y=Zo.getFullYear(),Vn.m=Zo.getMonth(),Vn.d=Zo.getDate()+(Vn.w+6)%7)}else("W"in Vn||"U"in Vn)&&("w"in Vn||(Vn.w="u"in Vn?Vn.u%7:"W"in Vn?1:0),Sa="Z"in Vn?fz(Dv(Vn.y,0,1)).getUTCDay():pz(Dv(Vn.y,0,1)).getDay(),Vn.m=0,Vn.d="W"in Vn?(Vn.w+6)%7+7*Vn.W-(Sa+5)%7:Vn.w+7*Vn.U-(Sa+6)%7);return"Z"in Vn?(Vn.H+=Vn.Z/100|0,Vn.M+=Vn.Z%100,fz(Vn)):pz(Vn)}}function Ut(jn,yi,Ii,Vn){for(var $a,Cr,Ei=0,Zo=yi.length,Sa=Ii.length;Ei=Sa)return-1;if(37===($a=yi.charCodeAt(Ei++))){if($a=yi.charAt(Ei++),!(Cr=qe[$a in Gie?yi.charAt(Ei++):$a])||(Vn=Cr(jn,Ii,Vn))<0)return-1}else if($a!=Ii.charCodeAt(Vn++))return-1}return Vn}return me.x=rt(e,me),me.X=rt(i,me),me.c=rt(n,me),ze.x=rt(e,ze),ze.X=rt(i,ze),ze.c=rt(n,ze),{format:function(jn){var yi=rt(jn+="",me);return yi.toString=function(){return jn},yi},parse:function(jn){var yi=xt(jn+="",!1);return yi.toString=function(){return jn},yi},utcFormat:function(jn){var yi=rt(jn+="",ze);return yi.toString=function(){return jn},yi},utcParse:function(jn){var yi=xt(jn+="",!0);return yi.toString=function(){return jn},yi}}}(t),noe=G_.format}({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 wet=XR(Tv).right,roe=(XR(ioe),wet);function Met(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Pet(t){return+t}var aoe=[0,1];function Y_(t){return t}function gz(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function Oet(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Eet(t,n,e){var i=t[0],o=t[1],r=n[0],a=n[1];return on&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[U-1])),l=U>2?Aet:Eet,u=f=null,T}function T(U){return null==U||isNaN(U=+U)?r:(u||(u=l(t.map(i),n,e)))(i(a(U)))}return T.invert=function(U){return a(o((f||(f=l(n,t.map(i),Xh)))(U)))},T.domain=function(U){return arguments.length?(t=Array.from(U,Pet),w()):t.slice()},T.range=function(U){return arguments.length?(n=Array.from(U),w()):n.slice()},T.rangeRound=function(U){return n=Array.from(U),e=Met,w()},T.clamp=function(U){return arguments.length?(a=!!U||Y_,w()):a!==Y_},T.interpolate=function(U){return arguments.length?(e=U,w()):e},T.unknown=function(U){return arguments.length?(r=U,T):r},function(U,ie){return i=U,o=ie,w()}}()(Y_,Y_)}function ket(t){return new Date(t)}function Iet(t){return t instanceof Date?+t:+new Date(+t)}function loe(t,n,e,i,o,r,a,l,u,f){var w=coe(),T=w.invert,U=w.domain,ie=f(".%L"),se=f(":%S"),Me=f("%I:%M"),we=f("%I %p"),He=f("%a %d"),Be=f("%b %d"),me=f("%B"),ze=f("%Y");function qe(rt){return(u(rt)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function YS(t){if(!(n=Net.exec(t)))throw new Error("invalid format: "+t);var n;return new mz({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function mz(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 US(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function U_(t){return(t=US(Math.abs(t)))?t[1]:NaN}function hoe(t,n){var e=US(t,n);if(!e)return t+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}YS.prototype=mz.prototype,mz.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 poe={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function Ret(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>hoe(100*t,n),r:hoe,s:function Bet(t,n){var e=US(t,n);if(!e)return t+"";var i=e[0],o=e[1],r=o-(uoe=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=i.length;return r===a?i:r>a?i+new Array(r-a+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+US(t,Math.max(0,n+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function foe(t){return t}var jS,_oe,Coe,goe=Array.prototype.map,moe=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qet(t){var n=t.domain;return t.ticks=function(e){var i=n();return function XKe(t,n,e){if(!((e=+e)>0))return[];if((t=+t)==(n=+n))return[t];const i=n=o))return[];const l=r-o+1,u=new Array(l);if(i)if(a<0)for(let f=0;f0;){if((f=QR(a,l,e))===u)return i[o]=a,i[r]=l,n(i);if(f>0)a=Math.floor(a/f)*f,l=Math.ceil(l/f)*f;else{if(!(f<0))break;a=Math.ceil(a*f)/f,l=Math.floor(l*f)/f}u=f}return t},t}function L3(){var t=coe();return t.copy=function(){return soe(t,L3())},AC.apply(t,arguments),qet(t)}function voe(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),r=new Array(o);++i=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*n,r=Math.floor(o),a=+e(t[r],r,t);return a+(+e(t[r+1],r+1,t)-a)*(o-r)}}function yoe(){var i,t=[],n=[],e=[];function o(){var a=0,l=Math.max(1,n.length);for(e=new Array(l-1);++a0?e[l-1]:t[0],l0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),r.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=t[a=(a+1)%t.length];return r.reverse().join(n)}}(goe.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?foe:function Het(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(goe.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"\u2212":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(T){var U=(T=YS(T)).fill,ie=T.align,se=T.sign,Me=T.symbol,we=T.zero,He=T.width,Be=T.comma,me=T.precision,ze=T.trim,qe=T.type;"n"===qe?(Be=!0,qe="g"):poe[qe]||(void 0===me&&(me=12),ze=!0,qe="g"),(we||"0"===U&&"="===ie)&&(we=!0,U="0",ie="=");var rt="$"===Me?e:"#"===Me&&/[boxX]/.test(qe)?"0"+qe.toLowerCase():"",xt="$"===Me?i:/[%p]/.test(qe)?a:"",Ut=poe[qe],jt=/[defgprs%]/.test(qe);function an(pn){var kn,ri,Rn,yn=rt,Kt=xt;if("c"===qe)Kt=Ut(pn)+Kt,pn="";else{var ni=(pn=+pn)<0||1/pn<0;if(pn=isNaN(pn)?u:Ut(Math.abs(pn),me),ze&&(pn=function Vet(t){e:for(var o,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(o+1):t}(pn)),ni&&0==+pn&&"+"!==se&&(ni=!1),yn=(ni?"("===se?se:l:"-"===se||"("===se?"":se)+yn,Kt=("s"===qe?moe[8+uoe/3]:"")+Kt+(ni&&"("===se?")":""),jt)for(kn=-1,ri=pn.length;++kn(Rn=pn.charCodeAt(kn))||Rn>57){Kt=(46===Rn?o+pn.slice(kn+1):pn.slice(kn))+Kt,pn=pn.slice(0,kn);break}}Be&&!we&&(pn=n(pn,1/0));var Jn=yn.length+pn.length+Kt.length,Oi=Jn>1)+yn+pn+Kt+Oi.slice(Jn);break;default:pn=Oi+yn+pn+Kt}return r(pn)}return me=void 0===me?6:/[gprs]/.test(qe)?Math.max(1,Math.min(21,me)):Math.max(0,Math.min(20,me)),an.toString=function(){return T+""},an}return{format:f,formatPrefix:function w(T,U){var ie=f(((T=YS(T)).type="f",T)),se=3*Math.max(-8,Math.min(8,Math.floor(U_(U)/3))),Me=Math.pow(10,-se),we=moe[8+se/3];return function(He){return ie(Me*He)+we}}}}(t),_oe=jS.format,Coe=jS.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const Cz=Math.PI,vz=2*Cz,Lm=1e-6,Xet=vz-Lm;function woe(t){this._+=t[0];for(let n=1,e=t.length;n=0))throw new Error(`invalid digits: ${t}`);if(n>15)return woe;const e=10**n;return function(i){this._+=i[0];for(let o=1,r=i.length;oLm)if(Math.abs(T*u-f*w)>Lm&&r){let ie=i-a,se=o-l,Me=u*u+f*f,we=ie*ie+se*se,He=Math.sqrt(Me),Be=Math.sqrt(U),me=r*Math.tan((Cz-Math.acos((Me+U-we)/(2*He*Be)))/2),ze=me/Be,qe=me/He;Math.abs(ze-1)>Lm&&this._append`L${n+ze*w},${e+ze*T}`,this._append`A${r},${r},0,0,${+(T*ie>w*se)},${this._x1=n+qe*u},${this._y1=e+qe*f}`}else this._append`L${this._x1=n},${this._y1=e}`}arc(n,e,i,o,r,a){if(n=+n,e=+e,a=!!a,(i=+i)<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(o),u=i*Math.sin(o),f=n+l,w=e+u,T=1^a,U=a?o-r:r-o;null===this._x1?this._append`M${f},${w}`:(Math.abs(this._x1-f)>Lm||Math.abs(this._y1-w)>Lm)&&this._append`L${f},${w}`,i&&(U<0&&(U=U%vz+vz),U>Xet?this._append`A${i},${i},0,1,${T},${n-l},${e-u}A${i},${i},0,1,${T},${this._x1=f},${this._y1=w}`:U>Lm&&this._append`A${i},${i},0,${+(U>=Cz)},${T},${this._x1=n+i*Math.cos(r)},${this._y1=e+i*Math.sin(r)}`)}rect(n,e,i,o){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function bz(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{const i=Math.floor(e);if(!(i>=0))throw new RangeError(`invalid digits: ${e}`);n=i}return t},()=>new WS(n)}function Moe(t){return t[0]}function Ooe(t){return t[1]}function Soe(t,n){var e=ys(!0),i=null,o=gv,r=null,a=bz(l);function l(u){var f,T,ie,w=(u=_z(u)).length,U=!1;for(null==i&&(r=o(ie=a())),f=0;f<=w;++f)!(f=ie;--se)l.point(me[se],ze[se]);l.lineEnd(),l.areaEnd()}He&&(me[U]=+t(we,U,T),ze[U]=+n(we,U,T),l.point(i?+i(we,U,T):me[U],e?+e(we,U,T):ze[U]))}if(Be)return l=null,Be+""||null}function w(){return Soe().defined(o).curve(a).context(r)}return t="function"==typeof t?t:void 0===t?Moe:ys(+t),n="function"==typeof n?n:ys(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Ooe:ys(+e),f.x=function(T){return arguments.length?(t="function"==typeof T?T:ys(+T),i=null,f):t},f.x0=function(T){return arguments.length?(t="function"==typeof T?T:ys(+T),f):t},f.x1=function(T){return arguments.length?(i=null==T?null:"function"==typeof T?T:ys(+T),f):i},f.y=function(T){return arguments.length?(n="function"==typeof T?T:ys(+T),e=null,f):n},f.y0=function(T){return arguments.length?(n="function"==typeof T?T:ys(+T),f):n},f.y1=function(T){return arguments.length?(e=null==T?null:"function"==typeof T?T:ys(+T),f):e},f.lineX0=f.lineY0=function(){return w().x(t).y(n)},f.lineY1=function(){return w().x(t).y(e)},f.lineX1=function(){return w().x(i).y(n)},f.defined=function(T){return arguments.length?(o="function"==typeof T?T:ys(!!T),f):o},f.curve=function(T){return arguments.length?(a=T,null!=r&&(l=a(r)),f):a},f.context=function(T){return arguments.length?(null==T?r=l=null:l=a(r=T),f):r},f}function Ket(t){return t.innerRadius}function Jet(t){return t.outerRadius}function ett(t){return t.startAngle}function ttt(t){return t.endAngle}function ntt(t){return t&&t.padAngle}function itt(t,n,e,i,o,r,a,l){var u=e-t,f=i-n,w=a-o,T=l-r,U=T*u-w*f;if(!(U*Ukn*kn+ri*ri&&(Ut=an,jt=pn),{cx:Ut,cy:jt,x01:-w,y01:-T,x11:Ut*(o/qe-1),y11:jt*(o/qe-1)}}function xz(){var t=Ket,n=Jet,e=ys(0),i=null,o=ett,r=ttt,a=ntt,l=null,u=bz(f);function f(){var w,T,U=+t.apply(this,arguments),ie=+n.apply(this,arguments),se=o.apply(this,arguments)-dS,Me=r.apply(this,arguments)-dS,we=sne(Me-se),He=Me>se;if(l||(l=w=u()),ieDd)if(we>uS-Dd)l.moveTo(ie*bm(se),ie*q0(se)),l.arc(0,0,ie,se,Me,!He),U>Dd&&(l.moveTo(U*bm(Me),U*q0(Me)),l.arc(0,0,U,Me,se,He));else{var Kt,kn,Be=se,me=Me,ze=se,qe=Me,rt=we,xt=we,Ut=a.apply(this,arguments)/2,jt=Ut>Dd&&(i?+i.apply(this,arguments):k_(U*U+ie*ie)),an=cR(sne(ie-U)/2,+e.apply(this,arguments)),pn=an,yn=an;if(jt>Dd){var ri=cne(jt/U*q0(Ut)),Rn=cne(jt/ie*q0(Ut));(rt-=2*ri)>Dd?(ze+=ri*=He?1:-1,qe-=ri):(rt=0,ze=qe=(se+Me)/2),(xt-=2*Rn)>Dd?(Be+=Rn*=He?1:-1,me-=Rn):(xt=0,Be=me=(se+Me)/2)}var ni=ie*bm(Be),Jn=ie*q0(Be),Oi=U*bm(qe),qn=U*q0(qe);if(an>Dd){var nr,Wi=ie*bm(me),Ai=ie*q0(me),Bi=U*bm(ze),lo=U*q0(ze);if(weDd?yn>Dd?(Kt=qS(Bi,lo,ni,Jn,ie,yn,He),kn=qS(Wi,Ai,Oi,qn,ie,yn,He),l.moveTo(Kt.cx+Kt.x01,Kt.cy+Kt.y01),ynDd&&rt>Dd?pn>Dd?(Kt=qS(Oi,qn,Wi,Ai,U,-pn,He),kn=qS(ni,Jn,Bi,lo,U,-pn,He),l.lineTo(Kt.cx+Kt.x01,Kt.cy+Kt.y01),pnt?1:n>=t?0:NaN}function rtt(t){return t}var ctt=C(25126);const ltt=["caretElm"];function dtt(t,n){}const utt=function(t){return{model:t}};function htt(t,n){if(1&t&&(H(0,"span"),ke(1,dtt,0,0,"ng-template",5),G()),2&t){const e=Ae();W(1),J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",wo(2,utt,e.context))}}function ptt(t,n){1&t&&Qe(0,"span",6),2&t&&J("innerHTML",Ae().title,A5)}function ftt(t,n){if(1&t&&(H(0,"header",4)(1,"span",5),ue(2),G()()),2&t){const e=Ae();W(2),qo(e.title)}}function gtt(t,n){if(1&t){const e=Ln();H(0,"li",6)(1,"ngx-charts-legend-entry",7),et("select",function(o){return Dt(e),Ae().labelClick.emit(o)})("activate",function(o){return Dt(e),Ae().activate(o)})("deactivate",function(o){return Dt(e),Ae().deactivate(o)}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}function mtt(t,n){if(1&t&&(bi(),gd(),Qe(0,"ngx-charts-scale-legend",4)),2&t){const e=Ae();J("horizontal",e.legendOptions&&e.legendOptions.position===e.LegendPosition.Below)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function _tt(t,n){if(1&t){const e=Ln();bi(),gd(),H(0,"ngx-charts-legend",5),et("labelClick",function(o){return Dt(e),Ae().legendLabelClick.emit(o)})("labelActivate",function(o){return Dt(e),Ae().legendLabelActivate.emit(o)})("labelDeactivate",function(o){return Dt(e),Ae().legendLabelDeactivate.emit(o)}),G()}if(2&t){const e=Ae();J("horizontal",e.legendOptions&&e.legendOptions.position===e.LegendPosition.Below)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const Toe=["*"],Ctt=["ngx-charts-axis-label",""],Eoe=["ticksel"],vtt=["ngx-charts-x-axis-ticks",""];function btt(t,n){1&t&&(bi(),Fc(0))}function xtt(t,n){if(1&t&&(bi(),H(0,"tspan",10),ue(1),G()),2&t){const e=n.$implicit;Un("y",12*n.index),W(1),Nt(" ",e," ")}}function ytt(t,n){if(1&t&&(bi(),er(0),ke(1,xtt,2,2,"tspan",9),tr()),2&t){const e=n.ngIf;W(1),J("ngForOf",e)}}function wtt(t,n){if(1&t&&(bi(),ke(0,ytt,2,1,"ng-container",4)),2&t){const e=Ae(2).$implicit;J("ngIf",Ae().tickChunks(e))}}function Mtt(t,n){if(1&t&&(bi(),ue(0)),2&t){const e=Ae().ngIf;Nt(" ",Ae(2).tickTrim(e)," ")}}function Ott(t,n){if(1&t&&(bi(),er(0),H(1,"title"),ue(2),G(),H(3,"text",5),ke(4,btt,1,0,"ng-container",6),G(),ke(5,wtt,1,1,"ng-template",null,7,tu),ke(7,Mtt,1,1,"ng-template",null,8,tu),tr()),2&t){const e=n.ngIf,i=Di(6),o=Di(8),r=Ae(2);W(2),qo(e),W(1),Un("text-anchor",r.textAnchor)("transform",r.textTransform),W(1),J("ngIf",r.isWrapTicksSupported)("ngIfThen",i)("ngIfElse",o)}}function Stt(t,n){if(1&t&&(bi(),H(0,"g",3),ke(1,Ott,9,6,"ng-container",4),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.tickTransform(e)),W(1),J("ngIf",i.tickFormat(e))}}function Ptt(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"line",11),G()),2&t){const e=Ae(2);Un("transform",e.gridLineTransform()),W(1),Un("y1",-e.gridLineHeight)}}function Ttt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Ptt,2,2,"g",4),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.tickTransform(e)),W(1),J("ngIf",i.showGridLines)}}const Ett=["ngx-charts-x-axis",""];function Att(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("dimensionsChanged",function(o){return Dt(e),Ae().emitTicksHeight(o)}),G()}if(2&t){const e=Ae();J("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)("wrapTicks",e.wrapTicks)}}function Ltt(t,n){if(1&t&&(bi(),Qe(0,"g",3)),2&t){const e=Ae();J("label",e.labelText)("offset",e.labelOffset)("orient",e.orientation.Bottom)("height",e.dims.height)("width",e.dims.width)}}const Dtt=["ngx-charts-y-axis-ticks",""];function ktt(t,n){1&t&&(bi(),Fc(0))}function Itt(t,n){if(1&t&&(bi(),H(0,"tspan",12),ue(1),G()),2&t){const e=n.$implicit;Un("y",n.index*(8+Ae(6).tickSpacing)),W(1),Nt(" ",e," ")}}function Ntt(t,n){if(1&t&&(bi(),er(0),ke(1,Itt,2,2,"tspan",11),tr()),2&t){const e=Ae().ngIf;W(1),J("ngForOf",e)}}function Rtt(t,n){if(1&t&&(bi(),er(0),ke(1,Ntt,2,1,"ng-container",10),tr()),2&t){const e=n.ngIf;Ae(2);const i=Di(8);W(1),J("ngIf",e.length>1)("ngIfElse",i)}}function ztt(t,n){if(1&t&&(bi(),ke(0,Rtt,2,2,"ng-container",5)),2&t){const e=Ae(2).$implicit;J("ngIf",Ae().tickChunks(e))}}function Ftt(t,n){if(1&t&&(bi(),ue(0)),2&t){const e=Ae().ngIf;Nt(" ",Ae(2).tickTrim(e)," ")}}function Htt(t,n){if(1&t&&(bi(),er(0),H(1,"title"),ue(2),G(),H(3,"text",6),ke(4,ktt,1,0,"ng-container",7),G(),ke(5,ztt,1,1,"ng-template",null,8,tu),ke(7,Ftt,1,1,"ng-template",null,9,tu),tr()),2&t){const e=n.ngIf,i=Di(6),o=Di(8),r=Ae(2);W(2),qo(e),W(1),Br("font-size","12px"),Un("dy",r.dy)("x",r.x1)("y",r.y1)("text-anchor",r.textAnchor),W(1),J("ngIf",r.wrapTicks)("ngIfThen",i)("ngIfElse",o)}}function Vtt(t,n){if(1&t&&(bi(),H(0,"g",4),ke(1,Htt,9,10,"ng-container",5),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.transform(e)),W(1),J("ngIf",i.tickFormat(e))}}function Btt(t,n){if(1&t&&(bi(),Qe(0,"path",13)),2&t){const e=Ae();Un("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function Gtt(t,n){1&t&&(bi(),Qe(0,"line",15)),2&t&&Un("x2",Ae(3).gridLineWidth)}function Ytt(t,n){1&t&&(bi(),Qe(0,"line",15)),2&t&&Un("x2",-Ae(3).gridLineWidth)}function Utt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Gtt,1,1,"line",14),ke(2,Ytt,1,1,"line",14),G()),2&t){const e=Ae(2);Un("transform",e.gridLineTransform()),W(1),J("ngIf",e.orient===e.Orientation.Left),W(1),J("ngIf",e.orient===e.Orientation.Right)}}function jtt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Utt,3,3,"g",5),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.transform(e)),W(1),J("ngIf",i.showGridLines)}}function Wtt(t,n){if(1&t&&(bi(),H(0,"g")(1,"title"),ue(2),G(),H(3,"text",17),ue(4),G()()),2&t){const e=Ae(2).$implicit,i=Ae();W(2),qo(i.tickTrim(i.tickFormat(e.value))),W(1),Un("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),W(1),Nt(" ",e.name," ")}}function qtt(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"line",16),ke(2,Wtt,5,6,"g",5),G()),2&t){const e=Ae().$implicit,i=Ae();Un("transform",i.transform(e.value)),W(1),Un("x2",i.gridLineWidth)("transform",i.gridLineTransform()),W(1),J("ngIf",i.showRefLabels)}}function $tt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,qtt,3,4,"g",5),G()),2&t){const e=Ae();W(1),J("ngIf",e.showRefLines)}}const Xtt=["ngx-charts-y-axis",""];function Qtt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("dimensionsChanged",function(o){return Dt(e),Ae().emitTicksWidth(o)}),G()}if(2&t){const e=Ae();J("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)("wrapTicks",e.wrapTicks)}}function Ztt(t,n){if(1&t&&(bi(),Qe(0,"g",3)),2&t){const e=Ae();J("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const Ktt=["ngx-charts-svg-linear-gradient",""];function Jtt(t,n){if(1&t&&(bi(),Qe(0,"stop")),2&t){const e=n.$implicit;Br("stop-color",e.color)("stop-opacity",e.opacity),Un("offset",e.offset+"%")}}const ent=["ngx-charts-circle",""],tnt=["ngx-charts-circle-series",""];function nnt(t,n){if(1&t&&(bi(),Qe(0,"rect",4)),2&t){const e=Ae(2);J("@animationState","active"),Un("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}function int(t,n){if(1&t&&(bi(),Qe(0,"rect",4)),2&t){const e=Ae(2);Un("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const ont=function(t){return{name:t}};function rnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"defs"),Qe(2,"g",1),G(),ke(3,nnt,1,6,"rect",2),ke(4,int,1,5,"rect",2),H(5,"g",3),et("select",function(){Dt(e);const o=Ae();return o.onClick(o.circle.data)})("activate",function(){return Dt(e),Ae().activateCircle()})("deactivate",function(){return Dt(e),Ae().deactivateCircle()}),G()()}if(2&t){const e=Ae();W(2),J("orientation",e.barOrientation.Vertical)("name",e.gradientId)("stops",e.circle.gradientStops),W(1),J("ngIf",!e.isSSR&&e.barVisible&&"standard"===e.type),W(1),J("ngIf",e.isSSR&&e.barVisible&&"standard"===e.type),W(1),po("active",e.isActive(wo(20,ont,e.circle.seriesName))),J("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.placementTypes.Top)("tooltipType",e.styleTypes.tooltip)("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const lnt=["ngx-charts-svg-radial-gradient",""];function dnt(t,n){if(1&t&&(bi(),Qe(0,"stop")),2&t){const e=n.$implicit;Br("stop-color",e.color)("stop-opacity",e.opacity),Un("offset",e.offset+"%")}}const unt=["ngx-charts-area",""];function hnt(t,n){if(1&t&&(bi(),H(0,"defs"),Qe(1,"g",2),G()),2&t){const e=Ae();W(1),J("orientation",e.barOrientation.Vertical)("name",e.gradientId)("stops",e.gradientStops)}}const fnt=["tooltipAnchor"],gnt=["ngx-charts-tooltip-area",""];function mnt(t,n){if(1&t&&(H(0,"div",6),Qe(1,"span",7),ue(2),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),Br("background-color",e.color),W(1),Nt(" ",i.getToolTipText(e)," ")}}function _nt(t,n){if(1&t&&(bi(),gd(),H(0,"div",4),ke(1,mnt,3,3,"div",5),G()),2&t){const e=n.model;W(1),J("ngForOf",e)}}const Cnt=["ngx-charts-timeline",""],$S=["tooltipTemplate"],Snt=["seriesTooltipTemplate"],C4=function(t,n){return[t,n]},XS=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",knt=["ngx-charts-bar",""];function Int(t,n){if(1&t&&(bi(),H(0,"defs"),Qe(1,"g",2),G()),2&t){const e=Ae();W(1),J("orientation",e.orientation)("name",e.gradientId)("stops",e.gradientStops)}}const Nnt=["ngx-charts-bar-label",""],Rnt=["ngx-charts-series-horizontal",""];function znt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("select",function(o){return Dt(e),Ae().click(o)})("activate",function(o){return Dt(e),Ae().activate.emit(o)})("deactivate",function(o){return Dt(e),Ae().deactivate.emit(o)}),G()}if(2&t){const e=n.$implicit,i=Ae();J("@animationState","active")("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation",i.barOrientation.Horizontal)("roundEdges",e.roundEdges)("gradient",i.gradient)("isActive",i.isActive(e.data))("ariaLabel",e.ariaLabel)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)}}function Fnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",4),et("dimensionsChanged",function(o){const a=Dt(e).index;return Ae(2).dataLabelWidthChanged.emit({size:o,index:a})}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation",i.barOrientation.Horizontal)}}function Hnt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Fnt,1,7,"g",3),G()),2&t){const e=Ae();W(1),J("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}function Vnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",5),et("dimensionsChanged",function(o){return Dt(e),Ae().updateXAxisHeight(o)}),G()}if(2&t){const e=Ae();J("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("wrapTicks",e.wrapTicks)}}function Bnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",6),et("dimensionsChanged",function(o){return Dt(e),Ae().updateYAxisWidth(o)}),G()}if(2&t){const e=Ae();J("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("yAxisOffset",e.dataLabelMaxWidth.negative)("wrapTicks",e.wrapTicks)}}const $nt=["ngx-charts-series-vertical",""];function Xnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("select",function(o){return Dt(e),Ae(2).onClick(o)})("activate",function(o){return Dt(e),Ae(2).activate.emit(o)})("deactivate",function(o){return Dt(e),Ae(2).deactivate.emit(o)}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("@animationState","active")("@.disabled",!i.animations)("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation",i.barOrientation.Vertical)("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function Qnt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Xnt,1,22,"g",1),G()),2&t){const e=Ae();W(1),J("ngForOf",e.bars)("ngForTrackBy",e.trackBy)}}function Znt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("select",function(o){return Dt(e),Ae(2).onClick(o)})("activate",function(o){return Dt(e),Ae(2).activate.emit(o)})("deactivate",function(o){return Dt(e),Ae(2).deactivate.emit(o)}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation",i.barOrientation.Vertical)("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function Knt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Znt,1,20,"g",1),G()),2&t){const e=Ae();W(1),J("ngForOf",e.bars)("ngForTrackBy",e.trackBy)}}function Jnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",4),et("dimensionsChanged",function(o){const a=Dt(e).index;return Ae(2).dataLabelHeightChanged.emit({size:o,index:a})}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation",i.barOrientation.Vertical)}}function eit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Jnt,1,7,"g",3),G()),2&t){const e=Ae();W(1),J("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}function rit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",5),et("dimensionsChanged",function(o){return Dt(e),Ae().updateXAxisHeight(o)}),G()}if(2&t){const e=Ae();J("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)("wrapTicks",e.wrapTicks)}}function ait(t,n){if(1&t){const e=Ln();bi(),H(0,"g",6),et("dimensionsChanged",function(o){return Dt(e),Ae().updateYAxisWidth(o)}),G()}if(2&t){const e=Ae();J("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("wrapTicks",e.wrapTicks)}}function sit(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"g",8),et("select",function(o){const a=Dt(e).$implicit;return Ae(2).onClick(o,a)})("activate",function(o){const a=Dt(e).$implicit;return Ae(2).onActivate(o,a)})("deactivate",function(o){const a=Dt(e).$implicit;return Ae(2).onDeactivate(o,a)})("dataLabelHeightChanged",function(o){const a=Dt(e).index;return Ae(2).onDataLabelMaxHeightChanged(o,a)}),G()()}if(2&t){const e=n.$implicit,i=Ae(2);J("@animationState","active"),Un("transform",i.groupTransform(e)),W(1),J("type",i.barChartType.Stacked)("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}function cit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,sit,2,17,"g",7),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function lit(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"g",8),et("select",function(o){const a=Dt(e).$implicit;return Ae(2).onClick(o,a)})("activate",function(o){const a=Dt(e).$implicit;return Ae(2).onActivate(o,a)})("deactivate",function(o){const a=Dt(e).$implicit;return Ae(2).onDeactivate(o,a)})("dataLabelHeightChanged",function(o){const a=Dt(e).index;return Ae(2).onDataLabelMaxHeightChanged(o,a)}),G()()}if(2&t){const e=n.$implicit,i=Ae(2);Un("transform",i.groupTransform(e)),W(1),J("type",i.barChartType.Stacked)("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}function dit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,lit,2,16,"g",7),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const mit=["ngx-charts-line",""];function _it(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"path",1),G()),2&t){const e=Ae();W(1),J("@animationState","active"),Un("d",e.initialPath)("fill",e.fill)("stroke",e.stroke)}}function Cit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"path",1),G()),2&t){const e=Ae();W(1),Un("d",e.initialPath)("fill",e.fill)("stroke",e.stroke)}}const vit=["ngx-charts-line-series",""];function bit(t,n){if(1&t&&(bi(),Qe(0,"g",4)),2&t){const e=Ae();J("orientation",e.barOrientation.Vertical)("name",e.gradientId)("stops",e.gradientStops)}}function xit(t,n){if(1&t&&(bi(),Qe(0,"g",5)),2&t){const e=Ae();po("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),J("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}function yit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",7),et("dimensionsChanged",function(o){return Dt(e),Ae().updateXAxisHeight(o)}),G()}if(2&t){const e=Ae();J("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("wrapTicks",e.wrapTicks)}}function wit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",8),et("dimensionsChanged",function(o){return Dt(e),Ae().updateYAxisWidth(o)}),G()}if(2&t){const e=Ae();J("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("wrapTicks",e.wrapTicks)}}function Mit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"g",10),G()),2&t){const e=n.$implicit,i=Ae(2);J("@animationState","active"),W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function Oit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Mit,2,11,"g",9),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Sit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"g",10),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function Pit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Sit,2,10,"g",9),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Tit(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"g",14),et("select",function(o){return Dt(e),Ae(2).onClick(o)})("activate",function(o){return Dt(e),Ae(2).onActivate(o)})("deactivate",function(o){return Dt(e),Ae(2).onDeactivate(o)}),G()()}if(2&t){const e=n.$implicit,i=Ae(2);W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Eit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",11),et("mouseleave",function(){return Dt(e),Ae().hideCircles()}),H(1,"g",12),et("hover",function(o){return Dt(e),Ae().updateHoveredVertical(o)}),G(),ke(2,Tit,2,9,"g",13),G()}if(2&t){const e=Ae();W(1),J("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),W(1),J("ngForOf",e.results)}}function Ait(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"g",16),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function Lit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",15),et("onDomainChange",function(o){return Dt(e),Ae().updateDomain(o)}),ke(1,Ait,2,8,"g",9),G()}if(2&t){const e=Ae();J("results",e.results)("view",x0(10,C4,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),Un("transform",e.timelineTransform),W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const Dit=["ngx-charts-pie-label",""],zit=["ngx-charts-pie-arc",""];function Fit(t,n){if(1&t&&(bi(),H(0,"defs"),Qe(1,"g",3),G()),2&t){const e=Ae();W(1),J("color",e.fill)("name",e.radialGradientId)("startOpacity",e.startOpacity)}}const Hit=["ngx-charts-pie-series",""];function Vit(t,n){if(1&t&&(bi(),Qe(0,"g",3)),2&t){const e=Ae().$implicit,i=Ae();J("data",e)("radius",i.outerRadius)("color",i.color(e))("label",i.labelText(e))("labelTrim",i.trimLabels)("labelTrimSize",i.maxLabelLength)("max",i.max)("value",e.value)("explodeSlices",i.explodeSlices)("animations",i.animations)}}function Bit(t,n){if(1&t){const e=Ln();bi(),H(0,"g"),ke(1,Vit,1,10,"g",1),H(2,"g",2),et("select",function(o){return Dt(e),Ae().onClick(o)})("activate",function(o){return Dt(e),Ae().activate.emit(o)})("deactivate",function(o){return Dt(e),Ae().deactivate.emit(o)})("dblclick",function(o){return Dt(e),Ae().dblclick.emit(o)}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("ngIf",i.labelVisible(e)),W(1),J("startAngle",e.startAngle)("endAngle",e.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(e))("value",e.data.value)("gradient",i.gradient)("data",e.data)("max",i.max)("explodeSlices",i.explodeSlices)("isActive",i.isActive(e.data))("animate",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Top)("tooltipType",i.styleTypes.tooltip)("tooltipTitle",i.getTooltipTitle(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}function Zit(t,n,e){e=e||{};let i,o,r,a=null,l=0;function u(){l=!1===e.leading?0:+new Date,a=null,r=t.apply(i,o)}return function(){const f=+new Date;!l&&!1===e.leading&&(l=f);const w=n-(f-l);return i=this,o=arguments,w<=0?(clearTimeout(a),a=null,l=f,r=t.apply(i,o)):!a&&!1!==e.trailing&&(a=setTimeout(u,w)),r}}function Kit(t,n){return function(i,o,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,o,{configurable:!0,enumerable:r.enumerable,value:Zit(r.value,t,n)}),this[o]}}}}var Oa=(()=>(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center"}(Oa||(Oa={})),Oa))();function Aoe(t,n,e){return e===Oa.Top?t.top-7:e===Oa.Bottom?t.top+t.height-n.height+7:e===Oa.Center?t.top+t.height/2-n.height/2:void 0}function Loe(t,n,e){return e===Oa.Left?t.left-7:e===Oa.Right?t.left+t.width-n.width+7:e===Oa.Center?t.left+t.width/2-n.width/2:void 0}class bu{static calculateVerticalAlignment(n,e,i){let o=Aoe(n,e,i);return o+e.height>window.innerHeight&&(o=window.innerHeight-e.height),o}static calculateVerticalCaret(n,e,i,o){let r;o===Oa.Top&&(r=n.height/2-i.height/2+7),o===Oa.Bottom&&(r=e.height-n.height/2-i.height/2-7),o===Oa.Center&&(r=e.height/2-i.height/2);const a=Aoe(n,e,o);return a+e.height>window.innerHeight&&(r+=a+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let o=Loe(n,e,i);return o+e.width>window.innerWidth&&(o=window.innerWidth-e.width),o}static calculateHorizontalCaret(n,e,i,o){let r;o===Oa.Left&&(r=n.width/2-i.width/2+7),o===Oa.Right&&(r=e.width-n.width/2-i.width/2-7),o===Oa.Center&&(r=e.width/2-i.width/2);const a=Loe(n,e,o);return a+e.width>window.innerWidth&&(r+=a+e.width-window.innerWidth),r}static shouldFlip(n,e,i,o){let r=!1;return i===Oa.Right&&n.left+n.width+e.width+o>window.innerWidth&&(r=!0),i===Oa.Left&&n.left-e.width-o<0&&(r=!0),i===Oa.Top&&n.top-e.height-o<0&&(r=!0),i===Oa.Bottom&&n.top+n.height+e.height+o>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,o,r){let a=0,l=0;return n===Oa.Right?(l=-7,a=bu.calculateVerticalCaret(i,e,o,r)):n===Oa.Left?(l=e.width,a=bu.calculateVerticalCaret(i,e,o,r)):n===Oa.Top?(a=e.height,l=bu.calculateHorizontalCaret(i,e,o,r)):n===Oa.Bottom&&(a=-7,l=bu.calculateHorizontalCaret(i,e,o,r)),{top:a,left:l}}static positionContent(n,e,i,o,r){let a=0,l=0;return n===Oa.Right?(l=i.left+i.width+o,a=bu.calculateVerticalAlignment(i,e,r)):n===Oa.Left?(l=i.left-e.width-o,a=bu.calculateVerticalAlignment(i,e,r)):n===Oa.Top?(a=i.top-e.height-o,l=bu.calculateHorizontalAlignment(i,e,r)):n===Oa.Bottom&&(a=i.top+i.height+o,l=bu.calculateHorizontalAlignment(i,e,r)),{top:a,left:l}}static determinePlacement(n,e,i,o){if(bu.shouldFlip(i,e,n,o)){if(n===Oa.Right)return Oa.Left;if(n===Oa.Left)return Oa.Right;if(n===Oa.Top)return Oa.Bottom;if(n===Oa.Bottom)return Oa.Top}return n}}let Jit=(()=>{class t{constructor(e,i,o){this.element=e,this.renderer=i,this.platformId=o}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!ll(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const o=e.getBoundingClientRect();this.checkFlip(i,o),this.positionContent(e,i,o),this.showCaret&&this.positionCaret(i,o),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,o){const{top:r,left:a}=bu.positionContent(this.placement,o,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${a}px`)}positionCaret(e,i){const o=this.caretElm.nativeElement,r=o.getBoundingClientRect(),{top:a,left:l}=bu.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(o,"top",`${a}px`),this.renderer.setStyle(o,"left",`${l}px`)}checkFlip(e,i){this.placement=bu.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(yl),de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&_o(ltt,5),2&e){let o;fi(o=gi())&&(i.caretElm=o.first)}},hostVars:2,hostBindings:function(e,i){1&e&&et("resize",function(){return i.onWindowResize()},!1,Tp),2&e&&TA(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(H(0,"div"),Qe(1,"span",0,1),H(3,"div",2),ke(4,htt,2,4,"span",3),ke(5,ptt,1,1,"span",4),G()()),2&e&&(W(1),xf("tooltip-caret position-",i.placement,""),J("hidden",!i.showCaret),W(3),J("ngIf",!i.title),W(1),J("ngIf",i.title))},directives:[Yi,Sg],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),An([Kit(100)],t.prototype,"onWindowResize",null),t})(),Doe=(()=>{class t{constructor(e,i,o){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=o}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function tot(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const o=Object.getOwnPropertyNames(i.inputs);for(const r of o)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const o=Object.getOwnPropertyNames(i.outputs);for(const r of o)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},o){o||(o=this.getRootViewContainer());const r=this.getComponentRootNode(o),a=new Fq(r,this.componentFactoryResolver,this.applicationRef,this.injector),l=new uu(e),u=a.attach(l);return this.projectComponentBindings(u,i),u}}return t.globalRootViewContainer=null,t.\u0275fac=function(e){return new(e||t)(qt(K7),qt(yf),qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),yz=(()=>{class t extends class eot{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=Jit}}return t.\u0275fac=function(e){return new(e||t)(qt(Doe))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();var ih=(()=>(function(t){t.Right="right",t.Below="below"}(ih||(ih={})),ih))(),Dm=(()=>(function(t){t.ScaleLegend="scaleLegend",t.Legend="legend"}(Dm||(Dm={})),Dm))(),No=(()=>(function(t){t.Time="time",t.Linear="linear",t.Ordinal="ordinal",t.Quantile="quantile"}(No||(No={})),No))();let koe=(()=>{class t{constructor(){this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`}gradientString(e,i){i.push(1);const o=[];return e.reverse().forEach((r,a)=>{o.push(`${r} ${Math.round(100*i[a])}%`)}),o.join(", ")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[Yo],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span"),ue(3),G()(),Qe(4,"div",2),H(5,"div",1)(6,"span"),ue(7),G()()()),2&e&&(Br("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),po("horizontal-legend",i.horizontal),W(3),qo(i.valueRange[1].toLocaleString()),W(1),Br("background",i.gradient),W(3),qo(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),t})();function b4(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function Rv(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}let Ioe=(()=>{class t{constructor(){this.isActive=!1,this.select=new In,this.activate=new In,this.deactivate=new In,this.toggle=new In}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&et("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(H(0,"span",0),et("click",function(){return i.select.emit(i.formattedLabel)}),H(1,"span",1),et("click",function(){return i.toggle.emit(i.formattedLabel)}),G(),H(2,"span",2),ue(3),G()()),2&e&&(po("active",i.isActive),J("title",i.formattedLabel),W(1),Br("background-color",i.color),W(2),Nt(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Noe=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new In,this.labelActivate=new In,this.labelDeactivate=new In,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const o=b4(i);-1===e.findIndex(a=>a.label===o)&&e.push({label:i,formattedLabel:o,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.label===o.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Yo],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(H(0,"div"),ke(1,ftt,3,1,"header",0),H(2,"div",1)(3,"ul",2),ke(4,gtt,2,4,"li",3),G()()()),2&e&&(Br("width",i.width,"px"),W(1),J("ngIf",(null==i.title?null:i.title.length)>0),W(2),Br("max-height",i.height-45,"px"),po("horizontal-legend",i.horizontal),W(1),J("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},directives:[Ioe,Yi,$o],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})(),zv=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new In,this.legendLabelActivate=new In,this.legendLabelDeactivate=new In,this.LegendPosition=ih,this.LegendType=Dm}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===ih.Right)&&(e=this.legendType===Dm.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==ih.Right?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return this.legendOptions.scaleType===No.Linear?Dm.ScaleLegend:Dm.Legend}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[mo([yz]),Yo],ngContentSelectors:Toe,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(ls(),H(0,"div",0),bi(),H(1,"svg",1),Vr(2),G(),ke(3,mtt,1,5,"ngx-charts-scale-legend",2),ke(4,_tt,1,7,"ngx-charts-legend",3),G()),2&e&&(Br("width",i.view[0],"px")("height",i.view[1],"px"),W(1),Un("width",i.chartWidth)("height",i.view[1]),W(2),J("ngIf",i.showLegend&&i.legendType===i.LegendType.ScaleLegend),W(1),J("ngIf",i.showLegend&&i.legendType===i.LegendType.Legend))},directives:[koe,Noe,Yi],encapsulation:2,changeDetection:0}),t})(),not=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new In,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:o}=this.element.nativeElement;i&&o?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo))},t.\u0275dir=St({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();function Roe(t){return"[object Date]"===toString.call(t)}let Fv=(()=>{class t{constructor(e,i,o,r){this.chartElement=e,this.zone=i,this.cd=o,this.platformId=r,this.scheme="cool",this.schemeType=No.Ordinal,this.animations=!0,this.select=new In}ngOnInit(){ou(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new not(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const o=this.chartElement.nativeElement;if(ll(this.platformId)&&null!==o.parentNode){const r=o.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;e{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const o of e){const r={};if(void 0!==o.name&&(r.name=o.name),void 0!==o.value&&(r.value=o.value),void 0!==o.series){r.series=[];for(const a of o.series){const l=Object.assign({},a);r.series.push(l)}}void 0!==o.extra&&(r.extra=JSON.parse(JSON.stringify(o.extra))),void 0!==o.source&&(r.source=o.source),void 0!==o.target&&(r.target=o.target),i.push(r)}return i}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(oo),de(Xr),de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[Yo],decls:1,vars:0,template:function(e,i){1&e&&Qe(0,"div")},encapsulation:2}),t})();var m1=(()=>(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right"}(m1||(m1={})),m1))();let zoe=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case m1.Top:case m1.Bottom:this.y=this.offset,this.x=this.width/2;break;case m1.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case m1.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Yo],attrs:Ctt,decls:2,vars:6,template:function(e,i){1&e&&(bi(),H(0,"text"),ue(1),G()),2&e&&(Un("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),W(1),Nt(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function QS(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function Foe(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let o=0;o{const l=(r.pop()||"")+" ";return l.length+a.length>n?[...r,l.trim(),a.trim()]:[...r,l+a]},[]);else{let r=0;for(;re&&(o=o.splice(0,e),o[o.length-1]+="..."),o}var xu=(()=>(function(t){t.Start="start",t.Middle="middle",t.End="end"}(xu||(xu={})),xu))();let Voe=(()=>{class t{constructor(e){this.platformId=e,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.dimensionsChanged=new In,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=xu.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16}get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!ll(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(o){return this.scale(o)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor=xu.End,this.verticalSpacing=10):this.textAnchor=xu.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let T=0;Tthis.maxTicksLength&&(this.maxTicksLength=ie)}const a=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let l=a;const u=Math.floor(this.width/e.length);for(;l>u&&i>-90;)i-=30,l=Math.cos(i*(Math.PI/180))*a;let f=14;if(this.isWrapTicksSupported){const T=this.ticks.reduce((ie,se)=>se.length>ie.length?se:ie,"");f=14*(this.tickChunks(T).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(T)}const w=0!==i?Math.max(Math.abs(Math.sin(i*Math.PI/180))*this.maxTickLength*7,10):f;return this.approxHeight=Math.min(w,200),i}getTicks(){let e;const i=this.getMaxTicks(20),o=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[o]):(e=this.scale.domain(),e=Foe(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?QS(e,this.maxTickLength):e}getMaxPossibleLengthForTick(e){if(this.scale.bandwidth){const o=Math.floor(this.scale.bandwidth()/7),r=e.slice(0,o);return Math.max(r.length,this.maxTickLength)}return this.maxTickLength}tickChunks(e){if(e.toString().length>this.maxTickLength&&this.scale.bandwidth){let o=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(o<=1)return[this.tickTrim(e)];let r=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return ll(this.platformId)||(r=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),o=Math.min(o,5),Hoe(e,r,o<1?1:o)}return[this.tickTrim(e)]}}return t.\u0275fac=function(e){return new(e||t)(de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&_o(Eoe,5),2&e){let o;fi(o=gi())&&(i.ticksElement=o.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:vtt,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(bi(),H(0,"g",null,0),ke(2,Stt,2,2,"g",1),G(),ke(3,Ttt,2,2,"g",2)),2&e&&(W(2),J("ngForOf",i.ticks),W(1),J("ngForOf",i.ticks))},directives:[$o,Yi],encapsulation:2,changeDetection:0}),t})(),wz=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=m1.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new In,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=m1}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&_o(Voe,5),2&e){let o;fi(o=gi())&&(i.ticksComponent=o.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:Ett,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(bi(),H(0,"g"),ke(1,Att,1,13,"g",0),ke(2,Ltt,1,5,"g",1),G()),2&e&&(Un("class",i.xAxisClassName)("transform",i.transform),W(1),J("ngIf",i.xScale),W(1),J("ngIf",i.showLabel))},directives:[Voe,zoe,Yi],encapsulation:2,changeDetection:0}),t})();function x4(t,n,e,i,o,[r,a,l,u]){let f="";return f=`M${[t+o,n]}`,f+="h"+((e=0===(e=Math.floor(e))?1:e)-2*o),f+=a?`a${[o,o]} 0 0 1 ${[o,o]}`:`h${o}v${o}`,f+="v"+((i=0===(i=Math.floor(i))?1:i)-2*o),f+=u?`a${[o,o]} 0 0 1 ${[-o,o]}`:`v${o}h${-o}`,f+="h"+(2*o-e),f+=l?`a${[o,o]} 0 0 1 ${[-o,-o]}`:`h${-o}v${-o}`,f+="v"+(2*o-i),f+=r?`a${[o,o]} 0 0 1 ${[o,-o]}`:`v${-o}h${o}`,f+="z",f}let Boe=(()=>{class t{constructor(e){this.platformId=e,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new In,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=xu.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=m1}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!ll(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale,i=this.orient===m1.Top||this.orient===m1.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleString()},this.adjustedScale=e.bandwidth?o=>{const r=e(o)+.5*e.bandwidth();if(this.wrapTicks&&o.toString().length>this.maxTickLength){const a=this.tickChunks(o).length;if(1===a)return r;const f=.5*e.bandwidth()-8*a*.5;return e(o)+f}return r}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case m1.Top:case m1.Bottom:this.transform=function(o){return"translate("+this.adjustedScale(o)+",0)"},this.textAnchor=xu.Middle,this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case m1.Left:this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor=xu.End,this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case m1.Right:this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor=xu.Start,this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=x4(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),o=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[o]):(e=this.scale.domain(),e=Foe(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?QS(e,this.maxTickLength):e}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(o=>this.tickTrim(this.tickFormat(o)).length))}tickChunks(e){if(e.toString().length>this.maxTickLength&&this.scale.bandwidth){const i=this.maxTickLength,o=Math.floor(this.scale.bandwidth()/15);return o<=1?[this.tickTrim(e)]:Hoe(e,i,Math.min(o,5))}return[this.tickFormat(e)]}}return t.\u0275fac=function(e){return new(e||t)(de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&_o(Eoe,5),2&e){let o;fi(o=gi())&&(i.ticksElement=o.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:Dtt,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(bi(),H(0,"g",null,0),ke(2,Vtt,2,2,"g",1),G(),ke(3,Btt,1,2,"path",2),ke(4,jtt,2,2,"g",3),ke(5,$tt,2,1,"g",3)),2&e&&(W(2),J("ngForOf",i.ticks),W(1),J("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),W(1),J("ngForOf",i.ticks),W(1),J("ngForOf",i.referenceLines))},directives:[$o,Yi],encapsulation:2,changeDetection:0}),t})(),Mz=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient=m1.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new In,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===m1.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&this.yOrient===m1.Right?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&_o(Boe,5),2&e){let o;fi(o=gi())&&(i.ticksComponent=o.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:Xtt,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(bi(),H(0,"g"),ke(1,Qtt,1,15,"g",0),ke(2,Ztt,1,5,"g",1),G()),2&e&&(Un("class",i.yAxisClassName)("transform",i.transform),W(1),J("ngIf",i.yScale),W(1),J("ngIf",i.showLabel))},directives:[Boe,zoe,Yi],encapsulation:2,changeDetection:0}),t})(),Goe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va]]}),t})();var D3=(()=>(function(t){t.popover="popover",t.tooltip="tooltip"}(D3||(D3={})),D3))(),y4=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(y4||(y4={})),y4))();let Hv=(()=>{class t{constructor(e,i,o){this.tooltipService=e,this.viewContainerRef=i,this.renderer=o,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Oa.Top,this.tooltipAlignment=Oa.Center,this.tooltipType=D3.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=y4.all,this.tooltipImmediateExit=!1,this.show=new In,this.hide=new In}get listensForFocus(){return this.tooltipShowEvent===y4.all||this.tooltipShowEvent===y4.focus}get listensForHover(){return this.tooltipShowEvent===y4.all||this.tooltipShowEvent===y4.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const o=this.createBoundOptions();this.component=this.tooltipService.create(o),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(de(yz),de(oc),de(yl))},t.\u0275dir=St({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&et("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(r){return i.onMouseLeave(r.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),t})(),Yoe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[Doe,yz],imports:[[va]]}),t})();const Uoe={};function w4(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,Uoe[t]?w4():(Uoe[t]=!0,t)}var Wc=(()=>(function(t){t.Vertical="vertical",t.Horizontal="horizontal"}(Wc||(Wc={})),Wc))();let Vv=(()=>{class t{constructor(){this.orientation=Wc.Vertical}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Wc.Horizontal?this.x2="100%":this.orientation===Wc.Vertical&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Yo],attrs:Ktt,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(bi(),H(0,"linearGradient",0),ke(1,Jtt,1,5,"stop",1),G()),2&e&&(J("id",i.name),Un("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),W(1),J("ngForOf",i.stops))},directives:[$o],encapsulation:2,changeDetection:0}),t})(),joe=(()=>{class t{constructor(){this.select=new In,this.activate=new In,this.deactivate=new In}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&et("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",classNames:"classNames",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Yo],attrs:ent,decls:1,vars:8,template:function(e,i){1&e&&(bi(),Qe(0,"circle")),2&e&&Un("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})();var j_=(()=>(function(t){t.Standard="standard",t.Stacked="stacked"}(j_||(j_={})),j_))();let Oz,Woe=(()=>{class t{constructor(e){this.platformId=e,this.type=j_.Standard,this.tooltipDisabled=!1,this.select=new In,this.activate=new In,this.deactivate=new In,this.barVisible=!1,this.barOrientation=Wc,this.placementTypes=Oa,this.styleTypes=D3,this.isSSR=!1}ngOnInit(){this.gradientId="grad"+w4().toString(),this.gradientFill=`url(#${this.gradientId})`,ou(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const o=i.name;return o&&this.visibleValue&&o.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const o=this.data.name,r=e.value,a=e.name,l=b4(a);let u;u=this.xScale(this.scaleType===No.Time?a:this.scaleType===No.Linear?Number(a):a);const f=this.yScale(this.type===j_.Standard?r:e.d1),T=this.yScale.range()[0]-f;let ie;return ie=this.colors.getColor(this.colors.scaleType===No.Linear?this.type===j_.Standard?r:e.d1:o),{classNames:[`circle-data-${i}`],value:r,label:a,data:Object.assign({},e,{series:o,value:r,name:a}),cx:u,cy:f,radius:5,height:T,tooltipLabel:l,color:ie,opacity:1,seriesName:o,gradientStops:this.getGradientStops(ie),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:o,min:r,max:a}){return`\n ${Rv(o)} \u2022 ${Rv(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(r,a)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let o=" (";return void 0!==e?(void 0===i&&(o+="\u2265"),o+=e.toLocaleString(),void 0!==i&&(o+=" - ")):void 0!==i&&(o+="\u2264"),void 0!==i&&(o+=i.toLocaleString()),o+=")",o}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)(de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{data:"data",type:"type",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Yo],attrs:tnt,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&ke(0,rnt,6,22,"g",0),2&e&&J("ngIf",i.circle)},directives:[Vv,joe,Yi,Hv],encapsulation:2,data:{animation:[na("animationState",[Lo(":enter",[ti({opacity:0}),Mo(250,ti({opacity:1}))])])]},changeDetection:0}),t})(),$oe=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(e){this.stopsInput=e}ngOnChanges(e){this.r="30%",("color"in e||"startOpacity"in e||"endOpacity"in e)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{color:"color",name:"name",startOpacity:"startOpacity",endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops"},features:[Yo],attrs:lnt,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(bi(),H(0,"radialGradient",0),ke(1,dnt,1,5,"stop",1),G()),2&e&&(J("id",i.name),Un("cx",i.cx)("cy",i.cy)("r",i.r),W(1),J("ngForOf",i.stops))},directives:[$o],encapsulation:2,changeDetection:0}),t})(),Xoe=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new In,this.animationsLoaded=!1,this.hasGradient=!1,this.barOrientation=Wc,this.element=e.nativeElement}ngOnChanges(){this.update(),this.animationsLoaded||(this.loadAnimation(),this.animationsLoaded=!0)}update(){this.gradientId="grad"+w4().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.updatePathEl.bind(this),100)}updatePathEl(){const e=l2(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{data:"data",path:"path",startingPath:"startingPath",fill:"fill",opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",stops:"stops",animations:"animations"},outputs:{select:"select"},features:[Yo],attrs:unt,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(ke(0,hnt,2,3,"defs",0),bi(),Qe(1,"path",1)),2&e&&(J("ngIf",i.gradient),W(1),Br("opacity",i.opacity),Un("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},directives:[Vv,Yi],encapsulation:2,changeDetection:0}),t})();"undefined"!=typeof window?Oz=window:"undefined"!=typeof global&&(Oz=global);const Koe=Oz.MouseEvent;function Sz(t,n=!1,e=!0){if("function"==typeof Koe)return new Koe(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let Joe=(()=>{class t{constructor(e){this.platformId=e,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.placementTypes=Oa,this.styleTypes=D3,this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new In}getValues(e){const i=[];for(const o of this.results){const r=o.series.find(l=>l.name.toString()===e.toString());let a=o.name;if(a instanceof Date&&(a=a.toLocaleDateString()),r){const l=r.name;let f,u=r.value;if(this.showPercentage&&(u=(r.d1-r.d0).toFixed(2)+"%"),this.colors.scaleType===No.Linear){let T=u;r.d1&&(T=r.d1),f=this.colors.getColor(T)}else f=this.colors.getColor(o.name);const w=Object.assign({},r,{value:u,name:l,series:a,min:r.min,max:r.max,color:f});i.push(w)}}return i}mouseMove(e){if(!ll(this.platformId))return;const i=e.pageX-e.target.getBoundingClientRect().left,o=this.findClosestPointIndex(i),r=this.xSet[o];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){const a=Sz("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(a),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,o=this.xSet.length-1,r=Number.MAX_VALUE,a=0;for(;i<=o;){const l=(i+o)/2|0,u=this.xScale(this.xSet[l]),f=Math.abs(u-e);if(fe)){r=0,a=l;break}o=l-1}}return a}showTooltip(){const e=Sz("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=Sz("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)(de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&_o(fnt,5),2&e){let o;fi(o=gi())&&(i.tooltipAnchor=o.first)}},inputs:{dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:gnt,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(bi(),H(0,"g")(1,"rect",0),et("mousemove",function(r){return i.mouseMove(r)})("mouseleave",function(){return i.hideTooltip()}),G(),ke(2,_nt,2,1,"ng-template",null,1,tu),Qe(4,"rect",2,3),G()),2&e){const o=Di(3);W(1),Un("x",0)("width",i.dims.width)("height",i.dims.height),W(3),Br("opacity",i.anchorOpacity)("pointer-events","none"),J("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Right)("tooltipType",i.styleTypes.tooltip)("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:o)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),Un("x",i.anchorPos)("width",1)("height",i.dims.height)}},directives:[$o,Hv],encapsulation:2,data:{animation:[na("animationState",[Lo("inactive => active",[ti({opacity:0}),Mo(250,ti({opacity:.7}))]),Lo("active => inactive",[ti({opacity:.7}),Mo(250,ti({opacity:0}))])])]},changeDetection:0}),t})(),ere=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new In,this.onDomainChange=new In,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+w4().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const o of this.results)for(const r of o.series)e.includes(r.name)||e.push(r.name);let i=[];return this.scaleType===No.Time?i=[Math.min(...e),Math.max(...e)]:this.scaleType===No.Linear?(e=e.map(a=>Number(a)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return this.scaleType===No.Time?e=doe().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===No.Linear?e=L3().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===No.Ordinal&&(e=xoe().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function YKe(){return function $R(t){var l,n=VKe,e=HKe,i=BKe,o=!0,r=Une("start","brush","end"),a=6;function u(we){var He=we.property("__brush",Me).selectAll(".overlay").data([Pv("overlay")]);He.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",S3.overlay).merge(He).each(function(){var me=qR(this).extent;l2(this).attr("x",me[0][0]).attr("y",me[0][1]).attr("width",me[1][0]-me[0][0]).attr("height",me[1][1]-me[0][1])}),we.selectAll(".selection").data([Pv("selection")]).enter().append("rect").attr("class","selection").attr("cursor",S3.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Be=we.selectAll(".handle").data(t.handles,function(me){return me.type});Be.exit().remove(),Be.enter().append("rect").attr("class",function(me){return"handle handle--"+me.type}).attr("cursor",function(me){return S3[me.type]}),we.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",U).filter(i).on("touchstart.brush",U).on("touchmove.brush",ie).on("touchend.brush touchcancel.brush",se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var we=l2(this),He=qR(this).selection;He?(we.selectAll(".selection").style("display",null).attr("x",He[0][0]).attr("y",He[0][1]).attr("width",He[1][0]-He[0][0]).attr("height",He[1][1]-He[0][1]),we.selectAll(".handle").style("display",null).attr("x",function(Be){return"e"===Be.type[Be.type.length-1]?He[1][0]-a/2:He[0][0]-a/2}).attr("y",function(Be){return"s"===Be.type[0]?He[1][1]-a/2:He[0][1]-a/2}).attr("width",function(Be){return"n"===Be.type||"s"===Be.type?He[1][0]-He[0][0]+a:a}).attr("height",function(Be){return"e"===Be.type||"w"===Be.type?He[1][1]-He[0][1]+a:a})):we.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function w(we,He,Be){var me=we.__brush.emitter;return!me||Be&&me.clean?new T(we,He,Be):me}function T(we,He,Be){this.that=we,this.args=He,this.state=we.__brush,this.active=0,this.clean=Be}function U(we){if((!l||we.touches)&&e.apply(this,arguments)){var an,pn,Kt,kn,Rn,ni,Oi,qn,Bi,nr,Nr,He=this,Be=we.target.__data__.type,me="selection"===(o&&we.metaKey?Be="overlay":Be)?wie:o&&we.altKey?F_:z_,ze=t===zS?null:zKe[Be],qe=t===RS?null:FKe[Be],rt=qR(He),xt=rt.extent,Ut=rt.selection,jt=xt[0][0],yn=xt[0][1],ri=xt[1][0],Jn=xt[1][1],Wi=0,Ai=0,lo=ze&&qe&&o&&we.shiftKey,ro=Array.from(we.touches||[we],Cr=>{const gs=Cr.identifier;return(Cr=sie(Cr,He)).point0=Cr.slice(),Cr.identifier=gs,Cr});VR(He);var ki=w(He,arguments,!0).beforestart();if("overlay"===Be){Ut&&(Bi=!0);const Cr=[ro[0],ro[1]||ro[0]];rt.selection=Ut=[[an=t===zS?jt:Id(Cr[0][0],Cr[1][0]),Kt=t===RS?yn:Id(Cr[0][1],Cr[1][1])],[Rn=t===zS?ri:kd(Cr[0][0],Cr[1][0]),Oi=t===RS?Jn:kd(Cr[0][1],Cr[1][1])]],ro.length>1&&Ei(we)}else an=Ut[0][0],Kt=Ut[0][1],Rn=Ut[1][0],Oi=Ut[1][1];pn=an,kn=Kt,ni=Rn,qn=Oi;var jn=l2(He).attr("pointer-events","none"),yi=jn.selectAll(".overlay").attr("cursor",S3[Be]);if(we.touches)ki.moved=Vn,ki.ended=Zo;else{var Ii=l2(we.view).on("mousemove.brush",Vn,!0).on("mouseup.brush",Zo,!0);o&&Ii.on("keydown.brush",Sa,!0).on("keyup.brush",$a,!0),qQe(we.view)}f.call(He),ki.start(we,me.name)}function Vn(Cr){for(const gs of Cr.changedTouches||[Cr])for(const Ec of ro)Ec.identifier===gs.identifier&&(Ec.cur=sie(gs,He));if(lo&&!nr&&!Nr&&1===ro.length){const gs=ro[0];Mie(gs.cur[0]-gs[0])>Mie(gs.cur[1]-gs[1])?Nr=!0:nr=!0}for(const gs of ro)gs.cur&&(gs[0]=gs.cur[0],gs[1]=gs.cur[1]);Bi=!0,UR(Cr),Ei(Cr)}function Ei(Cr){const gs=ro[0],Ec=gs.point0;var Nl;switch(Wi=gs[0]-Ec[0],Ai=gs[1]-Ec[1],me){case jR:case wie:ze&&(Wi=kd(jt-an,Id(ri-Rn,Wi)),pn=an+Wi,ni=Rn+Wi),qe&&(Ai=kd(yn-Kt,Id(Jn-Oi,Ai)),kn=Kt+Ai,qn=Oi+Ai);break;case z_:ro[1]?(ze&&(pn=kd(jt,Id(ri,ro[0][0])),ni=kd(jt,Id(ri,ro[1][0])),ze=1),qe&&(kn=kd(yn,Id(Jn,ro[0][1])),qn=kd(yn,Id(Jn,ro[1][1])),qe=1)):(ze<0?(Wi=kd(jt-an,Id(ri-an,Wi)),pn=an+Wi,ni=Rn):ze>0&&(Wi=kd(jt-Rn,Id(ri-Rn,Wi)),pn=an,ni=Rn+Wi),qe<0?(Ai=kd(yn-Kt,Id(Jn-Kt,Ai)),kn=Kt+Ai,qn=Oi):qe>0&&(Ai=kd(yn-Oi,Id(Jn-Oi,Ai)),kn=Kt,qn=Oi+Ai));break;case F_:ze&&(pn=kd(jt,Id(ri,an-Wi*ze)),ni=kd(jt,Id(ri,Rn+Wi*ze))),qe&&(kn=kd(yn,Id(Jn,Kt-Ai*qe)),qn=kd(yn,Id(Jn,Oi+Ai*qe)))}ni0&&(an=pn-Wi),qe<0?Oi=qn-Ai:qe>0&&(Kt=kn-Ai),me=jR,yi.attr("cursor",S3.selection),Ei(Cr));break;default:return}UR(Cr)}function $a(Cr){switch(Cr.keyCode){case 16:lo&&(nr=Nr=lo=!1,Ei(Cr));break;case 18:me===F_&&(ze<0?Rn=ni:ze>0&&(an=pn),qe<0?Oi=qn:qe>0&&(Kt=kn),me=z_,Ei(Cr));break;case 32:me===jR&&(Cr.altKey?(ze&&(Rn=ni-Wi*ze,an=pn+Wi*ze),qe&&(Oi=qn-Ai*qe,Kt=kn+Ai*qe),me=F_):(ze<0?Rn=ni:ze>0&&(an=pn),qe<0?Oi=qn:qe>0&&(Kt=kn),me=z_),yi.attr("cursor",S3[Be]),Ei(Cr));break;default:return}UR(Cr)}}function ie(we){w(this,arguments).moved(we)}function se(we){w(this,arguments).ended(we)}function Me(){var we=this.__brush||{selection:null};return we.extent=WR(n.apply(this,arguments)),we.dim=t,we}return u.move=function(we,He,Be){we.tween?we.on("start.brush",function(me){w(this,arguments).beforestart().start(me)}).on("interrupt.brush end.brush",function(me){w(this,arguments).end(me)}).tween("brush",function(){var me=this,ze=me.__brush,qe=w(me,arguments),rt=ze.selection,xt=t.input("function"==typeof He?He.apply(this,arguments):He,ze.extent),Ut=Om(rt,xt);function jt(an){ze.selection=1===an&&null===xt?null:Ut(an),f.call(me),qe.brush()}return null!==rt&&null!==xt?jt:jt(1)}):we.each(function(){var me=this,ze=arguments,qe=me.__brush,rt=t.input("function"==typeof He?He.apply(me,ze):He,qe.extent),xt=w(me,ze).beforestart();VR(me),qe.selection=null===rt?null:rt,f.call(me),xt.start(Be).brush(Be).end(Be)})},u.clear=function(we,He){u.move(we,null,He)},T.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(we,He){return this.starting?(this.starting=!1,this.emit("start",we,He)):this.emit("brush",we),this},brush:function(we,He){return this.emit("brush",we,He),this},end:function(we,He){return 0==--this.active&&(delete this.state.emitter,this.emit("end",we,He)),this},emit:function(we,He,Be){var me=l2(this.that).datum();r.call(we,this.that,new IKe(we,{sourceEvent:He,target:u,selection:t.output(this.state.selection),mode:Be,dispatch:r}),me)}},u.extent=function(we){return arguments.length?(n="function"==typeof we?we:YR(WR(we)),u):n},u.filter=function(we){return arguments.length?(e="function"==typeof we?we:YR(!!we),u):e},u.touchable=function(we){return arguments.length?(i="function"==typeof we?we:YR(!!we),u):i},u.handleSize=function(we){return arguments.length?(a=+we,u):a},u.keyModifiers=function(we){return arguments.length?(o=!!we,u):o},u.on=function(){var we=r.on.apply(r,arguments);return we===r?u:we},u}(RS)}().extent([[0,0],[i,e]]).on("brush end",({selection:o})=>{const a=(o||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(a),this.cd.markForCheck()}),l2(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),l2(this.element).select(".brush").call(this.brush),l2(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Xr))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{view:"view",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",autoScale:"autoScale",scaleType:"scaleType",height:"height"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Yo],attrs:Cnt,ngContentSelectors:Toe,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(ls(),bi(),H(0,"g",0)(1,"filter"),Qe(2,"feColorMatrix",1),G(),H(3,"g",2),Vr(4),G(),Qe(5,"rect",3)(6,"g",4),G()),2&e&&(Un("transform",i.transform),W(1),Un("id",i.filterId),W(4),Un("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:#0000000d}.timeline .brush .selection{fill:#0000001a;stroke-width:1px;stroke:#888}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}\n"],encapsulation:2,changeDetection:0}),t})(),yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Goe,Yoe],va,Goe,Yoe]}),t})();function ZS({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:o=!1,xAxisHeight:r=0,yAxisWidth:a=0,showXLabel:l=!1,showYLabel:u=!1,showLegend:f=!1,legendType:w=No.Ordinal,legendPosition:T=ih.Right,columns:U=12}){let ie=e[3],se=t,Me=n-e[0]-e[2];return f&&T===ih.Right&&(U-=w===No.Ordinal?2:1),se=se*U/12,se=se-e[1]-e[3],i&&(Me-=5,Me-=r,l&&(Me-=30)),o&&(se-=5,se-=a,ie+=a,ie+=10,u&&(se-=30,ie+=30)),se=Math.max(0,se),Me=Math.max(0,Me),{width:Math.floor(se),height:Math.floor(Me),xOffset:Math.floor(ie)}}const tre=[{name:"vivid",selectable:!0,group:No.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:No.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:No.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:No.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:No.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:No.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:No.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:No.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:No.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:No.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:No.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:No.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:No.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:No.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:No.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class KS{constructor(n,e,i,o){"string"==typeof n&&(n=tre.find(r=>r.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=o,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let o;switch("string"==typeof n&&(n=tre.find(r=>r.name===n)),e){case No.Quantile:o=yoe().range(n.domain).domain(i);break;case No.Ordinal:o=ZM().range(n.domain).domain(i);break;case No.Linear:{const r=[...n.domain];1===r.length&&(r.push(r[0]),this.colorDomain=r);const a=voe(0,1,1/r.length);o=L3().range(r).domain(a)}}return o}getColor(n){if(null==n)throw new Error("Value can not be null");if(this.scaleType===No.Linear){const e=L3().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(o=>o.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=L3().domain(this.domain).range([0,1]),o=Nv().domain(this.colorDomain).range([0,1]),r=this.getColor(n),a=i(e),l=this.getColor(e),u=i(n);let f=1,w=a;const T=[];for(T.push({color:l,offset:a,originalOffset:a,opacity:1});w=(u-o.bandwidth()).toFixed(4))break;T.push({color:U,offset:ie,opacity:1}),w=ie,f++}}if(T[T.length-1].offset<100&&T.push({color:r,offset:u,opacity:1}),u===a)T[0].offset=0,T[1].offset=100;else if(100!==T[T.length-1].offset)for(const U of T)U.offset=(U.offset-a)/(u-a)*100;return T}}let dot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),ire=(()=>{class t{constructor(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}ngOnChanges(e){e.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+w4().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const e=l2(this.element).select(".bar"),i=this.getPath();this.animations?e.transition().duration(500).attr("d",i):e.attr("d",i)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let i,e=this.getRadius();return this.roundEdges?this.orientation===Wc.Vertical?(e=Math.min(this.height,e),i=x4(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Wc.Horizontal&&(e=Math.min(this.width,e),i=x4(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Wc.Vertical?i=x4(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Wc.Horizontal&&(i=x4(this.x,this.y,1,this.height,0,this.edges)),i}getPath(){let i,e=this.getRadius();return this.roundEdges?this.orientation===Wc.Vertical?(e=Math.min(this.height,e),i=x4(this.x,this.y,this.width,this.height,e,this.edges)):this.orientation===Wc.Horizontal&&(e=Math.min(this.width,e),i=x4(this.x,this.y,this.width,this.height,e,this.edges)):i=x4(this.x,this.y,this.width,this.height,e,this.edges),i}getRadius(){let e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let e=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Wc.Vertical?e=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Wc.Horizontal&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Wc.Vertical&&0===this.height||this.orientation===Wc.Horizontal&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(e,i){1&e&&et("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Yo],attrs:knt,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(ke(0,Int,2,3,"defs",0),bi(),H(1,"path",1),et("click",function(){return i.select.emit(i.data)}),G()),2&e&&(J("ngIf",i.hasGradient),W(1),po("active",i.isActive)("hidden",i.hideBar),Un("d",i.path)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill))},directives:[Vv,Yi],encapsulation:2,changeDetection:0}),t})();var R1=(()=>(function(t){t.Standard="standard",t.Normalized="normalized",t.Stacked="stacked"}(R1||(R1={})),R1))(),wu=(()=>(function(t){t.positive="positive",t.negative="negative"}(wu||(wu={})),wu))();let ore=(()=>{class t{constructor(e){this.dimensionsChanged=new In,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):b4(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:Nnt,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(e,i){1&e&&(bi(),H(0,"text",0),ue(1),G()),2&e&&(Un("text-anchor",i.textAnchor)("transform",i.transform)("x",i.x)("y",i.y),W(1),Nt(" ",i.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),uot=(()=>{class t{constructor(){this.type=R1.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.dataLabelWidthChanged=new In,this.barsForDataLabels=[],this.barOrientation=Wc}ngOnChanges(e){this.update()}update(){this.updateTooltipSettings();const e={[wu.positive]:0,[wu.negative]:0};let i,o;i=wu.positive,this.type===R1.Normalized&&(o=this.series.map(a=>a.value).reduce((a,l)=>a+l,0));const r=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(a=>{let l=a.value;const u=this.getLabel(a),f=b4(u);i=l>0?wu.positive:wu.negative;const T={value:l,label:u,roundEdges:this.roundEdges,data:a,formattedLabel:f};if(T.height=this.yScale.bandwidth(),this.type===R1.Standard)T.width=Math.abs(this.xScale(l)-this.xScale(r)),T.x=this.xScale(l<0?l:r),T.y=this.yScale(u);else if(this.type===R1.Stacked){const ie=e[i],se=ie+l;e[i]+=l,T.width=this.xScale(se)-this.xScale(ie),T.x=this.xScale(ie),T.y=0,T.offset0=ie,T.offset1=se}else if(this.type===R1.Normalized){let ie=e[i],se=ie+l;e[i]+=l,o>0?(ie=100*ie/o,se=100*se/o):(ie=0,se=0),T.width=this.xScale(se)-this.xScale(ie),T.x=this.xScale(ie),T.y=0,T.offset0=ie,T.offset1=se,l=(se-ie).toFixed(2)+"%"}this.colors.scaleType===No.Ordinal?T.color=this.colors.getColor(u):this.type===R1.Standard?(T.color=this.colors.getColor(l),T.gradientStops=this.colors.getLinearGradientStops(l)):(T.color=this.colors.getColor(T.offset1),T.gradientStops=this.colors.getLinearGradientStops(T.offset1,T.offset0));let U=f;return T.ariaLabel=f+" "+l.toLocaleString(),null!=this.seriesName&&(U=`${this.seriesName} \u2022 ${f}`,T.data.series=this.seriesName,T.ariaLabel=this.seriesName+" "+T.ariaLabel),T.tooltipText=this.tooltipDisabled?void 0:`\n ${Rv(U)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(l):l.toLocaleString()}\n `,T}),this.updateDataLabels()}updateDataLabels(){if(this.type===R1.Stacked){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,a)=>a>0?r+a:r,0),o=this.series.map(r=>r.value).reduce((r,a)=>a<0?r+a:r,0);e.total=i+o,e.x=0,e.y=0,e.width=this.xScale(e.total>0?i:o),e.height=this.yScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{var i;const o={};return o.series=null!==(i=this.seriesName)&&void 0!==i?i:e.label,o.total=e.value,o.x=this.xScale(0),o.y=this.yScale(e.label),o.width=this.xScale(o.total)-this.xScale(0),o.height=this.yScale.bandwidth(),o})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Oa.Top,this.tooltipType=this.tooltipDisabled?void 0:D3.tooltip}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name&&e.value===o.value)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}click(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",tooltipDisabled:"tooltipDisabled",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[Yo],attrs:Rnt,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(ke(0,znt,1,21,"g",0),ke(1,Hnt,2,2,"g",1)),2&e&&(J("ngForOf",i.bars)("ngForTrackBy",i.trackBy),W(1),J("ngIf",i.showDataLabel))},directives:[ire,ore,$o,Hv,Yi],encapsulation:2,data:{animation:[na("animationState",[Lo(":leave",[ti({opacity:1}),Mo(500,ti({opacity:0}))])])]},changeDetection:0}),t})(),JS=(()=>{class t extends Fv{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ih.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new In,this.deactivate=new In,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=ZS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getXScale(){this.xDomain=this.getXDomain();const e=L3().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?e.nice():e}getYScale(){this.yDomain=this.getYDomain();const e=this.yDomain.length/(this.dims.height/this.barPadding+1);return Nv().rangeRound([0,this.dims.height]).paddingInner(e).domain(this.yDomain)}getXDomain(){const e=this.results.map(r=>r.value);return[this.xScaleMin?Math.min(this.xScaleMin,...e):Math.min(0,...e),this.xScaleMax?Math.max(this.xScaleMax,...e):Math.max(0,...e)]}getYDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){let e;e=this.schemeType===No.Ordinal?this.yDomain:this.xDomain,this.colors=new KS(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.yDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.xDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxWidthChanged(e){e.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,e.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,e.size.width),e.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const o=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(o,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(e,i,o){if(1&e&&mr(o,$S,5),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ei],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","wrapTicks","dimensionsChanged"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)}),bi(),H(1,"g",1),ke(2,Vnt,1,11,"g",2),ke(3,Bnt,1,10,"g",3),H(4,"g",4),et("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)})("dataLabelWidthChanged",function(r){return i.onDataLabelMaxWidthChanged(r)}),G()()()),2&e&&(J("view",x0(22,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(1),Un("transform",i.transform),W(1),J("ngIf",i.xAxis),W(1),J("ngIf",i.yAxis),W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero))},directives:[zv,wz,Mz,uot,Yi],styles:[XS],encapsulation:2,changeDetection:0}),t})(),hot=(()=>{class t{constructor(e){this.platformId=e,this.type=R1.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.dataLabelHeightChanged=new In,this.barsForDataLabels=[],this.barOrientation=Wc,this.isSSR=!1}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}ngOnChanges(e){this.update()}update(){let e;this.updateTooltipSettings(),this.series.length&&(e=this.xScale.bandwidth()),e=Math.round(e);const i=Math.max(this.yScale.domain()[0],0),o={[wu.positive]:0,[wu.negative]:0};let a,r=wu.positive;this.type===R1.Normalized&&(a=this.series.map(l=>l.value).reduce((l,u)=>l+u,0)),this.bars=this.series.map((l,u)=>{let f=l.value;const w=this.getLabel(l),T=b4(w);r=f>0?wu.positive:wu.negative;const ie={value:f,label:w,roundEdges:this.roundEdges,data:l,width:e,formattedLabel:T,height:0,x:0,y:0};if(this.type===R1.Standard)ie.height=Math.abs(this.yScale(f)-this.yScale(i)),ie.x=this.xScale(w),ie.y=this.yScale(f<0?0:f);else if(this.type===R1.Stacked){const Me=o[r],we=Me+f;o[r]+=f,ie.height=this.yScale(Me)-this.yScale(we),ie.x=0,ie.y=this.yScale(we),ie.offset0=Me,ie.offset1=we}else if(this.type===R1.Normalized){let Me=o[r],we=Me+f;o[r]+=f,a>0?(Me=100*Me/a,we=100*we/a):(Me=0,we=0),ie.height=this.yScale(Me)-this.yScale(we),ie.x=0,ie.y=this.yScale(we),ie.offset0=Me,ie.offset1=we,f=(we-Me).toFixed(2)+"%"}this.colors.scaleType===No.Ordinal?ie.color=this.colors.getColor(w):this.type===R1.Standard?(ie.color=this.colors.getColor(f),ie.gradientStops=this.colors.getLinearGradientStops(f)):(ie.color=this.colors.getColor(ie.offset1),ie.gradientStops=this.colors.getLinearGradientStops(ie.offset1,ie.offset0));let se=T;return ie.ariaLabel=T+" "+f.toLocaleString(),null!=this.seriesName&&(se=`${this.seriesName} \u2022 ${T}`,ie.data.series=this.seriesName,ie.ariaLabel=this.seriesName+" "+ie.ariaLabel),ie.tooltipText=this.tooltipDisabled?void 0:`\n ${Rv(se)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(f):f.toLocaleString()}\n `,ie}),this.updateDataLabels()}updateDataLabels(){if(this.type===R1.Stacked){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,a)=>a>0?r+a:r,0),o=this.series.map(r=>r.value).reduce((r,a)=>a<0?r+a:r,0);e.total=i+o,e.x=0,e.y=0,e.height=this.yScale(e.total>0?i:o),e.width=this.xScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{var i;const o={};return o.series=null!==(i=this.seriesName)&&void 0!==i?i:e.label,o.total=e.value,o.x=this.xScale(e.label),o.y=this.yScale(0),o.height=this.yScale(o.total)-this.yScale(0),o.width=this.xScale.bandwidth(),o})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Oa.Top,this.tooltipType=this.tooltipDisabled?void 0:D3.tooltip}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name&&e.value===o.value)}onClick(e){this.select.emit(e)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}}return t.\u0275fac=function(e){return new(e||t)(de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[Yo],attrs:$nt,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(ke(0,Qnt,2,2,"g",0),ke(1,Knt,2,2,"g",0),ke(2,eit,2,2,"g",0)),2&e&&(J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR),W(1),J("ngIf",i.showDataLabel))},directives:[ire,ore,Yi,$o,Hv],encapsulation:2,data:{animation:[na("animationState",[Lo(":leave",[ti({opacity:1}),Mo(500,ti({opacity:0}))])])]},changeDetection:0}),t})(),pot=(()=>{class t extends Fv{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ih.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new In,this.deactivate=new In,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barChartType=R1,this.trackBy=(e,i)=>i.name}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=ZS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const o of i.series)e.includes(o.label)||e.push(o.label);return e}getValueDomain(){const e=[];let i=0,o=0;for(const l of this.results){let u=0,f=0;for(const w of l.series)w.value<0?u+=w.value:f+=w.value,i=w.valueo?w.value:o;e.push(u),e.push(f)}return e.push(i),e.push(o),[Math.min(0,...e),this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(...e)]}getXScale(){const e=this.groupDomain.length/(this.dims.width/this.barPadding+1);return Nv().rangeRound([0,this.dims.width]).paddingInner(e).domain(this.groupDomain)}getYScale(){const e=L3().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?e.nice():e}onDataLabelMaxHeightChanged(e,i){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),i===this.results.length-1&&setTimeout(()=>this.update())}groupTransform(e){return`translate(${this.xScale(e.name)||0}, 0)`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}setColors(){let e;e=this.schemeType===No.Ordinal?this.innerDomain:this.valueDomain,this.colors=new KS(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return e.scaleType===No.Ordinal?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,o=!1){const r=Object.assign({},e);i&&(r.series=i.name);const a=this.results.map(l=>l.series).flat().filter(l=>o?l.label===r.name:l.name===r.name&&l.series===r.series);this.activeEntries=[...a],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,o=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(a=>o?a.label!==r.name:!(a.name===r.name&&a.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(e,i,o){if(1&e&&mr(o,$S,5),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ei],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"type","xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),bi(),H(1,"g",1),ke(2,rit,1,11,"g",2),ke(3,ait,1,10,"g",3),ke(4,cit,2,2,"g",4),G(),ke(5,dit,2,2,"g",4),G()),2&e&&(J("view",x0(10,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(1),Un("transform",i.transform),W(1),J("ngIf",i.xAxis),W(1),J("ngIf",i.yAxis),W(1),J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR))},directives:[zv,wz,Mz,hot,Yi,$o],styles:[XS],encapsulation:2,data:{animation:[na("animationState",[Lo(":leave",[ti({opacity:1,transform:"*"}),Mo(500,ti({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),rre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})();ctt();let fot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),got=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),mot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),_ot=(()=>{class t{constructor(e,i){this.element=e,this.platformId=i,this.fill="none",this.animations=!0,this.initialized=!1,this.isSSR=!1}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=l2(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(de(Ti),de(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{path:"path",stroke:"stroke",data:"data",fill:"fill",animations:"animations"},features:[Yo],attrs:mit,decls:2,vars:2,consts:[[4,"ngIf"],["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(ke(0,_it,2,4,"g",0),ke(1,Cit,2,3,"g",0)),2&e&&(J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR))},directives:[Yi],encapsulation:2,data:{animation:[na("animationState",[Lo(":enter",[ti({strokeDasharray:2e3,strokeDashoffset:2e3}),Mo(1e3,ti({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),Cot=(()=>{class t{constructor(){this.animations=!0,this.barOrientation=Wc}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const o=this.getAreaGenerator();if(this.areaPath=o(e)||"",this.hasRange){const r=this.getRangeGenerator();this.outerPath=r(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const r=this.data.series.map(u=>u.value),a=Math.max(...r);a===Math.min(...r)&&(this.stroke=this.colors.getColor(a))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return Soe().x(e=>{const i=e.name;let o;return o=this.xScale(this.scaleType===No.Time?i:this.scaleType===No.Linear?Number(i):i),o}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Poe().x(e=>{const i=e.name;let o;return o=this.xScale(this.scaleType===No.Time?i:this.scaleType===No.Linear?Number(i):i),o}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Poe().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return e=this.scaleType===No.Linear?function sot(t,n,e="asc"){return t.sort((i,o)=>"asc"===e?i[n]-o[n]:o[n]-i[n])}(e,"name"):this.scaleType===No.Time?function lot(t,n,e="asc"){return t.sort((i,o)=>{const r=i[n].getTime(),a=o[n].getTime();return"asc"===e?r>a?1:a>r?-1:0:r>a?-1:a>r?1:0})}(e,"name"):function cot(t,n,e="asc",i){return t.sort((o,r)=>{const l=r[n],u=i.indexOf(o[n]),f=i.indexOf(l);return"asc"===e?u-f:f-u})}(e,"name","asc",this.xScale.domain()),e}updateGradients(){if(this.colors.scaleType===No.Linear){this.hasGradient=!0,this.gradientId="grad"+w4().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(r=>r.value),i=Math.max(...e),o=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,o),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(o=>e.name===o.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange",animations:"animations"},features:[Yo],attrs:vit,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(bi(),H(0,"g")(1,"defs"),ke(2,bit,1,3,"g",0),G(),Qe(3,"g",1)(4,"g",2),ke(5,xit,1,9,"g",3),G()),2&e&&(W(2),J("ngIf",i.hasGradient),W(1),po("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),J("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),W(1),po("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),J("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),W(1),J("ngIf",i.hasRange))},directives:[Vv,Xoe,_ot,Yi],encapsulation:2,changeDetection:0}),t})(),vot=(()=>{class t extends Fv{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=ih.Right,this.showGridLines=!0,this.curve=gv,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.wrapTicks=!1,this.activate=new In,this.deactivate=new In,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10,this.isSSR=!1}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.dims=ZS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+w4().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function aot(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function nre(t,n=!0){return n&&t.every(o=>o instanceof Date)?No.Time:t.every(i=>"number"==typeof i)?No.Linear:No.Ordinal}(e);let o,r,i=[];return this.scaleType===No.Linear&&(e=e.map(a=>Number(a))),(this.scaleType===No.Time||this.scaleType===No.Linear)&&(o=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),this.scaleType===No.Time?(i=[new Date(o),new Date(r)],this.xSet=[...e].sort((a,l)=>{const u=a.getTime(),f=l.getTime();return u>f?1:f>u?-1:0})):this.scaleType===No.Linear?(i=[o,r],this.xSet=[...e].sort((a,l)=>a-l)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const a of this.results)for(const l of a.series)e.indexOf(l.value)<0&&e.push(l.value),void 0!==l.min&&(this.hasRange=!0,e.indexOf(l.min)<0&&e.push(l.min)),void 0!==l.max&&(this.hasRange=!0,e.indexOf(l.max)<0&&e.push(l.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let o;return this.scaleType===No.Time?o=doe().range([0,i]).domain(e):this.scaleType===No.Linear?(o=L3().range([0,i]).domain(e),this.roundDomains&&(o=o.nice())):this.scaleType===No.Ordinal&&(o=xoe().range([0,i]).padding(.1).domain(e)),o}getYScale(e,i){const o=L3().range([i,0]).domain(e);return this.roundDomains?o.nice():o}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return`${i.name}`}setColors(){let e;e=this.schemeType===No.Ordinal?this.seriesDomain:this.yDomain,this.colors=new KS(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return e.scaleType===No.Ordinal?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(o=>o.name===e.name&&o.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(o=>o.name===e.name&&o.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,$S,5),mr(o,Snt,5)),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first),fi(r=gi())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&et("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ei],decls:12,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),bi(),H(1,"defs")(2,"clipPath"),Qe(3,"rect"),G()(),H(4,"g",1),ke(5,yit,1,11,"g",2),ke(6,wit,1,13,"g",3),H(7,"g"),ke(8,Oit,2,2,"g",4),ke(9,Pit,2,2,"g",4),ke(10,Eit,3,9,"g",5),G()(),ke(11,Lit,2,13,"g",6),G()),2&e&&(J("view",x0(17,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(2),Un("id",i.clipPathId),W(1),Un("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),W(1),Un("transform",i.transform),W(1),J("ngIf",i.xAxis),W(1),J("ngIf",i.yAxis),W(1),Un("clip-path",i.clipPath),W(1),J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR),W(1),J("ngIf",!i.tooltipDisabled),W(1),J("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:[zv,wz,Mz,Cot,Joe,Woe,ere,Yi,$o],styles:[XS],encapsulation:2,data:{animation:[na("animationState",[Lo(":leave",[ti({opacity:1}),Mo(500,ti({opacity:0}))])])]},changeDetection:0}),t})(),are=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),bot=(()=>{class t{constructor(e){this.platformId=e,this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.trimLabel=QS}ngOnChanges(e){this.setTransforms(),this.update()}setTransforms(){if(ou(this.platformId))this.styleTransform=`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=`translate(${this.textX},${this.textY})`,this.textTransition=this.animations?"transform 0.75s":null;else{const e=/(edge|msie|trident)/i.test(navigator.userAgent);this.styleTransform=e?null:`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=e?`translate(${this.textX},${this.textY})`:null,this.textTransition=e||!this.animations?null:"transform 0.75s"}}update(){let e=this.radius;this.explodeSlices&&(e=this.radius*this.value/this.max);const o=xz().innerRadius(e).outerRadius(e).centroid(this.data);let r=this.data.pos[1]/o[1];(0===this.data.pos[1]||0===o[1])&&(r=1),this.line=`M${o}L${[r*o[0],r*o[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}textAnchor(){return this.midAngle(this.data){class t{constructor(e){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new In,this.activate=new In,this.deactivate=new In,this.dblclick=new In,this.barOrientation=Wc,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const e=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+w4().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=e.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let e=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(e=this.outerRadius*this.value/this.max),xz().innerRadius(this.innerRadius).outerRadius(e).cornerRadius(this.cornerRadius)}loadAnimation(){const e=l2(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().attrTween("d",function(o){this._current=this._current||o;const r=Object.assign({},o);r.endAngle=r.startAngle;const a=Om(r,r);return this._current=a(0),function(l){return i(a(l))}}).transition().duration(750).attrTween("d",function(o){this._current=this._current||o;const r=Om(this._current,o);return this._current=r(0),function(a){return i(r(a))}})}updateAnimation(){const e=l2(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().duration(750).attrTween("d",function(o){this._current=this._current||o;const r=Om(this._current,o);return this._current=r(0),function(a){return i(r(a))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:e})}}return t.\u0275fac=function(e){return new(e||t)(de(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{fill:"fill",startAngle:"startAngle",endAngle:"endAngle",innerRadius:"innerRadius",outerRadius:"outerRadius",cornerRadius:"cornerRadius",value:"value",max:"max",data:"data",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[Yo],attrs:zit,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity"]],template:function(e,i){1&e&&(bi(),H(0,"g",0),ke(1,Fit,2,3,"defs",1),H(2,"path",2),et("click",function(){return i.onClick()})("dblclick",function(r){return i.onDblClick(r)})("mouseenter",function(){return i.activate.emit(i.data)})("mouseleave",function(){return i.deactivate.emit(i.data)}),G()()),2&e&&(W(1),J("ngIf",i.gradient),W(1),Br("pointer-events",i.getPointerEvents()),po("active",i.isActive),Un("d",i.path)("fill",i.getGradient()))},directives:[$oe,Yi],encapsulation:2,changeDetection:0}),t})(),yot=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.dblclick=new In,this.placementTypes=Oa,this.styleTypes=D3}ngOnChanges(e){this.update()}update(){const i=function att(){var t=rtt,n=ott,e=null,i=ys(0),o=ys(uS),r=ys(0);function a(l){var u,w,T,He,ze,f=(l=_z(l)).length,U=0,ie=new Array(f),se=new Array(f),Me=+i.apply(this,arguments),we=Math.min(uS,Math.max(-uS,o.apply(this,arguments)-Me)),Be=Math.min(Math.abs(we)/f,r.apply(this,arguments)),me=Be*(we<0?-1:1);for(u=0;u0&&(U+=ze);for(null!=n?ie.sort(function(qe,rt){return n(se[qe],se[rt])}):null!=e&&ie.sort(function(qe,rt){return e(l[qe],l[rt])}),u=0,T=U?(we-f*me)/U:0;u0?ze*T:0)+me,padAngle:Be};return se}return a.value=function(l){return arguments.length?(t="function"==typeof l?l:ys(+l),a):t},a.sortValues=function(l){return arguments.length?(n=l,e=null,a):n},a.sort=function(l){return arguments.length?(e=l,n=null,a):e},a.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:ys(+l),a):i},a.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:ys(+l),a):o},a.padAngle=function(l){return arguments.length?(r="function"==typeof l?l:ys(+l),a):r},a}().value(o=>o.value).sort(null)(this.series);this.max=function stt(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e=i)&&(e=i);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(e=o)&&(e=o)}return e}(i,o=>o.value),this.data=this.calculateLabelPositions(i),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}outerArc(){return xz().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(e){const r=e;r.forEach(a=>{a.pos=this.outerArc().centroid(a),a.pos[0]=1.5*this.outerRadius*(this.midAngle(a)0){const w=10-Math.abs(f.pos[1]-l.pos[1]);w>0&&(f.pos[1]+=Math.sign(f.pos[0])*w)}}}return r}labelVisible(e){return this.showLabels&&e.endAngle-e.startAngle>Math.PI/30}getTooltipTitle(e){return this.tooltipTemplate?void 0:this.tooltipText(e)}labelText(e){return this.labelFormatting?this.labelFormatting(e.data.name):this.label(e)}label(e){return b4(e.data.name)}defaultTooltipText(e){const i=this.label(e),o=b4(e.data.value);return`\n ${Rv(i)}\n ${o}\n `}color(e){return this.colors.getColor(this.label(e))}trackBy(e,i){return i.data.name}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name&&e.series===o.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{colors:"colors",series:"series",dims:"dims",innerRadius:"innerRadius",outerRadius:"outerRadius",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[Yo],attrs:Hit,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(e,i){1&e&&ke(0,Bit,3,19,"g",0),2&e&&J("ngForOf",i.data)("ngForTrackBy",i.trackBy)},directives:[bot,xot,$o,Yi,Hv],encapsulation:2,changeDetection:0}),t})(),Pz=(()=>{class t extends Fv{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition=ih.Right,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new In,this.select=new In,this.activate=new In,this.deactivate=new In}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=ZS({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((o,r)=>this.domain.indexOf(o.name)-this.domain.indexOf(r.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new KS(this.scheme,No.Ordinal,this.domain,this.customColors)}getLegendOptions(){return{scaleType:No.Ordinal,domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const o=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(o,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(e,i,o){if(1&e&&mr(o,$S,5),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",margins:"margins"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)})("legendLabelClick",function(r){return i.onClick(r)}),bi(),H(1,"g",1)(2,"g",2),et("dblclick",function(r){return i.dblclick.emit(r)})("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)}),G()()()),2&e&&(J("view",x0(21,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(1),Un("transform",i.translation),W(1),J("colors",i.colors)("series",i.data)("showLabels",i.labels)("labelFormatting",i.labelFormatting)("trimLabels",i.trimLabels)("maxLabelLength",i.maxLabelLength)("activeEntries",i.activeEntries)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("explodeSlices",i.explodeSlices)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},directives:[zv,yot],styles:[XS,".pie-label{font-size:11px}.pie-label.animation{animation:.75s ease-in fadeIn}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{animation:3s linear drawOut;transition:d .75s}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}\n"],encapsulation:2,changeDetection:0}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),Oot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu,Tz,are]]}),t})(),Pot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),Tot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),Eot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu,Tz,rre]]}),t})(),Lot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),sre=(()=>{class t{constructor(){!function Aot(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[yu,dot,rre,fot,got,mot,Lot,are,Oot,Pot,Tz,Tot,Eot]}),t})(),Dot=(()=>{class t{constructor(e){this._camStatsService=e,this.aspectOptions={view:[500,200],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,xAxisLabel:"Aspect",showYAxisLabel:!0,yAxisLabel:"Annotations",animations:!0,legendPosition:"below",colorScheme:{domain:["#AAAAAA"]},customColors:[]},this.aspectPieOptions={view:[500,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[kl("green",500),kl("brown",500),kl("purple",500)]}},this.termsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Terms",showYAxisLabel:!0,xAxisLabel:"Count"},this.stats={aspect:[],aspectPie:[],termsBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.aspect=this._camStatsService.buildTermsStats(this.termsSummary),this.stats.aspectPie=this._camStatsService.buildAspectPie([this.termsSummary.mf,this.termsSummary.bp,this.termsSummary.cc]),this.stats.termsBar=this._camStatsService.buildTermsDistribution([this.termsSummary.mf,this.termsSummary.bp,this.termsSummary.cc,this.termsSummary.other])}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(JC))},t.\u0275cmp=vn({type:t,selectors:[["noc-general-stats"]],inputs:{termsSummary:"termsSummary"},decls:21,vars:32,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","scheme","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","animations","customColors"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),ue(3," Number of terms "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-vertical-stacked",5),G()(),H(7,"div",0)(8,"div",1)(9,"div",2),ue(10," Number of terms by aspect "),G(),Qe(11,"span",3),G(),H(12,"div",4),Qe(13,"ngx-charts-pie-chart",6),G()(),H(14,"div",0)(15,"div",1)(16,"div",2),ue(17," Terms Distribution (first 20) "),G(),Qe(18,"span",3),G(),H(19,"div",4),Qe(20,"ngx-charts-bar-horizontal",7),G()()),2&e&&(W(6),J("results",i.stats.aspect)("view",i.aspectOptions.view)("scheme",i.aspectOptions.colorScheme)("gradient",i.aspectOptions.gradient)("xAxis",i.aspectOptions.showXAxis)("yAxis",i.aspectOptions.showYAxis)("legend",i.aspectOptions.legend)("showXAxisLabel",i.aspectOptions.showXAxisLabel)("showYAxisLabel",i.aspectOptions.showYAxisLabel)("xAxisLabel",i.aspectOptions.xAxisLabel)("yAxisLabel",i.aspectOptions.yAxisLabel)("animations",i.aspectOptions.animations)("customColors",i.aspectOptions.customColors),W(7),J("results",i.stats.aspectPie)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut),W(7),J("results",i.stats.termsBar)("view",i.termsBarOptions.view)("gradient",i.termsBarOptions.gradient)("xAxis",i.termsBarOptions.showXAxis)("yAxis",i.termsBarOptions.showYAxis)("legend",i.termsBarOptions.legend)("showXAxisLabel",i.termsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.termsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.termsBarOptions.showYAxisLabel)("xAxisLabel",i.termsBarOptions.xAxisLabel)("yAxisLabel",i.termsBarOptions.yAxisLabel))},directives:[Oo,So,ko,pot,Pz,JS],styles:[""]}),t})(),kot=(()=>{class t{constructor(e){this._camStatsService=e,this.aspectPieOptions={view:[500,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[kl("green",500),kl("brown",500),kl("purple",500)]}},this.termsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Gene Products",showYAxisLabel:!0,xAxisLabel:"Count"},this.stats={gpPie:[],termsBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.gpPie=this._camStatsService.buildTermsPie(this.termsSummary.gp.nodes),this.stats.termsBar=this._camStatsService.buildTermsDistribution([this.termsSummary.gp])}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(JC))},t.\u0275cmp=vn({type:t,selectors:[["noc-gp-stats"]],inputs:{termsSummary:"termsSummary"},decls:14,vars:19,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),ue(3," Terms Distribution (first 20) "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-horizontal",5),G()(),H(7,"div",0)(8,"div",1)(9,"div",2),ue(10," Gene Product "),G(),Qe(11,"span",3),G(),H(12,"div",4),Qe(13,"ngx-charts-pie-chart",6),G()()),2&e&&(W(6),J("results",i.stats.termsBar)("view",i.termsBarOptions.view)("gradient",i.termsBarOptions.gradient)("xAxis",i.termsBarOptions.showXAxis)("yAxis",i.termsBarOptions.showYAxis)("legend",i.termsBarOptions.legend)("showXAxisLabel",i.termsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.termsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.termsBarOptions.showYAxisLabel)("xAxisLabel",i.termsBarOptions.xAxisLabel)("yAxisLabel",i.termsBarOptions.yAxisLabel),W(7),J("results",i.stats.gpPie)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut))},directives:[Oo,So,ko,JS,Pz],styles:[""]}),t})();function Iot(t,n){if(1&t&&(H(0,"div",1)(1,"div",2)(2,"div",3),ue(3),G(),Qe(4,"span",4),G(),H(5,"div",5),Qe(6,"ngx-charts-pie-chart",6),G()()),2&t){const e=n.$implicit,i=Ae();W(3),Nt(" ",e.label," "),W(3),J("results",e.data)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut)}}let Not=(()=>{class t{constructor(e,i){this._camStatsService=e,this._bbopGraphService=i,this.aspectPieOptions={view:[400,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[kl("green",500),kl("brown",500),kl("purple",500)]}},this.stats={mfPie:[],bpPie:[],ccPie:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.mfPie=this._camStatsService.buildTermsPie(this.termsSummary.mf.nodes),this.stats.bpPie=this._camStatsService.buildTermsPie(this.termsSummary.bp.nodes),this.stats.ccPie=this._camStatsService.buildTermsPie(this.termsSummary.cc.nodes),this.pies=[{label:"Molecular Function",data:this.stats.mfPie},{label:"Biological Process",data:this.stats.bpPie},{label:"Cellular Component",data:this.stats.ccPie}]}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(JC),de(Yc))},t.\u0275cmp=vn({type:t,selectors:[["noc-aspect-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:1,vars:1,consts:[["class","noc-table-form noc-form-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"]],template:function(e,i){1&e&&ke(0,Iot,7,9,"div",0),2&e&&J("ngForOf",i.pies)},directives:[$o,Oo,So,ko,Pz],styles:[""]}),t})(),Rot=(()=>{class t{constructor(e,i){this._camStatsService=e,this._bbopGraphService=i,this.relationsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Relation",showYAxisLabel:!0,xAxisLabel:"Count"},this.datesLineOptions={view:[500,400],legend:!1,legendPosition:"below",showLabels:!0,animations:!0,xAxis:!0,yAxis:!0,showYAxisLabel:!0,showXAxisLabel:!0,xAxisLabel:"Curated Statements",yAxisLabel:"Statements",timeline:!0},this.stats={datesLine:[],relationsBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.relationsBar=this._camStatsService.buildRelationsPie(this.termsSummary.relations.nodes),this.stats.datesLine=this._camStatsService.buildContributionsStats(this.termsSummary.dates.nodes)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(JC),de(Yc))},t.\u0275cmp=vn({type:t,selectors:[["noc-statement-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:14,vars:21,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"],[3,"results","view","legend","showXAxisLabel","showYAxisLabel","xAxis","yAxis","xAxisLabel","yAxisLabel","timeline"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),ue(3," Relations "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-horizontal",5),G()(),H(7,"div",0)(8,"div",1)(9,"div",2),ue(10," Statements over time "),G(),Qe(11,"span",3),G(),H(12,"div",4),Qe(13,"ngx-charts-line-chart",6),G()()),2&e&&(W(6),J("results",i.stats.relationsBar)("view",i.relationsBarOptions.view)("gradient",i.relationsBarOptions.gradient)("xAxis",i.relationsBarOptions.showXAxis)("yAxis",i.relationsBarOptions.showYAxis)("legend",i.relationsBarOptions.legend)("showXAxisLabel",i.relationsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.relationsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.relationsBarOptions.showYAxisLabel)("xAxisLabel",i.relationsBarOptions.xAxisLabel)("yAxisLabel",i.relationsBarOptions.yAxisLabel),W(7),J("results",i.stats.datesLine)("view",i.datesLineOptions.view)("legend",i.datesLineOptions.legend)("showXAxisLabel",i.datesLineOptions.showXAxisLabel)("showYAxisLabel",i.datesLineOptions.showYAxisLabel)("xAxis",i.datesLineOptions.xAxis)("yAxis",i.datesLineOptions.yAxis)("xAxisLabel",i.datesLineOptions.xAxisLabel)("yAxisLabel",i.datesLineOptions.yAxisLabel)("timeline",i.datesLineOptions.timeline))},directives:[Oo,So,ko,JS,vot],styles:[""]}),t})(),zot=(()=>{class t{constructor(e){this._camStatsService=e,this.contributorBarOptions={view:[500,300],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:25,yAxisLabel:"Contributor",showYAxisLabel:!0,xAxisLabel:"Number of Statements"},this.stats={contributorBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.contributorBar=this._camStatsService.buildContributorBar(this.termsSummary.contributors.nodes)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(JC))},t.\u0275cmp=vn({type:t,selectors:[["noc-contribution-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:7,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),ue(3," Contribution "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-horizontal",5),G()()),2&e&&(W(6),J("results",i.stats.contributorBar)("view",i.contributorBarOptions.view)("gradient",i.contributorBarOptions.gradient)("xAxis",i.contributorBarOptions.showXAxis)("yAxis",i.contributorBarOptions.showYAxis)("legend",i.contributorBarOptions.legend)("showXAxisLabel",i.contributorBarOptions.showXAxisLabel)("maxYAxisTickLength",i.contributorBarOptions.maxYAxisTickLength)("showYAxisLabel",i.contributorBarOptions.showYAxisLabel)("xAxisLabel",i.contributorBarOptions.xAxisLabel)("yAxisLabel",i.contributorBarOptions.yAxisLabel))},directives:[Oo,So,ko,JS],styles:[""]}),t})();const Fot=function(t){return{"noc-active":t}};function Hot(t,n){if(1&t){const e=Ln();H(0,"button",8),et("click",function(){const r=Dt(e).$implicit;return Ae().selectStatsType(r.name)}),ue(1),G()}if(2&t){const e=n.$implicit,i=Ae();Ro("matTooltip",e.tooltip),J("ngClass",wo(5,Fot,i.selectedStatsType===e.name))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),Nt(" ",e.label," ")}}function Vot(t,n){1&t&&Qe(0,"noc-general-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Bot(t,n){1&t&&Qe(0,"noc-gp-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Got(t,n){1&t&&Qe(0,"noc-aspect-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Yot(t,n){1&t&&Qe(0,"noc-statement-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Uot(t,n){1&t&&Qe(0,"noc-contribution-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function jot(t,n){if(1&t&&(H(0,"div",9)(1,"div",10),ke(2,Vot,1,1,"noc-general-stats",11),ke(3,Bot,1,1,"noc-gp-stats",11),ke(4,Got,1,1,"noc-aspect-stats",11),ke(5,Yot,1,1,"noc-statement-stats",11),ke(6,Uot,1,1,"noc-contribution-stats",11),G()()),2&t){const e=Ae();W(1),J("ngSwitch",e.selectedStatsType),W(1),J("ngSwitchCase",e.StatsType.GENERAL),W(1),J("ngSwitchCase",e.StatsType.GP),W(1),J("ngSwitchCase",e.StatsType.TERM),W(1),J("ngSwitchCase",e.StatsType.STATEMENT),W(1),J("ngSwitchCase",e.StatsType.CONTRIBUTION)}}var Z0=(()=>(function(t){t.GENERAL="general",t.GP="GP",t.MF="MF",t.BP="BP",t.CC="CC",t.TERM="term",t.CONTRIBUTION="contribution",t.STATEMENT="statement"}(Z0||(Z0={})),Z0))();let Wot=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.zone=e,this.noctuaLookupService=i,this._bbopGraphService=o,this.noctuaCommonMenuService=r,this.camService=a,this.noctuaUserService=l,this.noctuaReviewSearchService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.EntityType=H0,this.StatsType=Z0,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.selectedStatsType=Z0.GENERAL,this.statsTypes=[{name:Z0.GENERAL,label:"General"},{name:Z0.GP,label:"GP"},{name:Z0.TERM,label:"Terms"},{name:Z0.STATEMENT,label:"Statements"},{name:Z0.CONTRIBUTION,label:"Contribution"}],this.pies=[],this._unsubscribeAll=new N}ngOnInit(){this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e,this.termsSummary=this._bbopGraphService.getTerms(this.cam.graph))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectStatsType(e){this.selectedStatsType=e}openSearch(e){this.noctuaLookupService.getTermDetail(e.term.id).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.openLeftDrawer())})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[e.term],this.noctuaReviewSearchService.updateSearch()}searchModels(e){const i=new cd;i.terms=[e.term];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}searchModelsByContributor(e){const i=new cd;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}openTermDetail(e){this.noctuaSearchService.onDetailTermChanged.next(e),this.noctuaCommonMenuService.selectRightPanel(um.termDetail),this.noctuaCommonMenuService.openRightDrawer()}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Sd),de(Yc),de(ul),de(Zr),de(yr),de(k1),de(ld),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-stats"]],inputs:{panelDrawer:"panelDrawer"},decls:12,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-tab-bar"],["mat-button","","color","","class","noc-tab-button",3,"ngClass","matTooltip","matTooltipPosition","matTooltipShowDelay","click",4,"ngFor","ngForOf"],["class","noc-drawer-body","noctuaPerfectScrollbar","",4,"ngIf"],["mat-button","","color","",1,"noc-tab-button",3,"ngClass","matTooltip","matTooltipPosition","matTooltipShowDelay","click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],[3,"ngSwitch"],[3,"termsSummary",4,"ngSwitchCase"],[3,"termsSummary"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Cam Details & Stats"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"div",5),ke(10,Hot,2,7,"button",6),G(),ke(11,jot,7,6,"div",7),G()),2&e&&(W(10),J("ngForOf",i.statsTypes),W(1),J("ngIf",i.termsSummary))},directives:[Oo,So,ko,Fo,Ir,$o,ds,ac,Tl,Yi,ts,bd,iu,Dot,kot,Not,Rot,zot],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:520px;min-width:520px;max-width:520px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-top:10px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%] .noc-tab-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;min-width:20px;padding:0 16px;line-height:12px;font-size:12px;border-radius:10px 10px 0 0;border:#bbb solid 1px;border-bottom:#eee solid 3px;color:#777}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%] .noc-tab-button.noc-active[_ngcontent-%COMP%]{border-bottom:#3b5998 solid 3px;background-color:#ccc;color:#000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{border-top:#888 solid 1px;padding:24px 8 100px 0;min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();var ga=(()=>(function(t){t.relationship="relationship",t.term="term",t.evidence="evidence",t.reference="reference",t.with="with",t.evidenceAll="evidenceAll",t.all="all"}(ga||(ga={})),ga))();class Ez{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const cre=new ui("editorDropdownData");function qot(t,n){if(1&t&&(H(0,"mat-option",15),ue(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function $ot(t,n){if(1&t&&(H(0,"div",10)(1,"div",11)(2,"mat-form-field",12)(3,"mat-label"),ue(4,"Choose GP to Term Relation"),G(),H(5,"mat-select",13),ke(6,qot,2,2,"mat-option",14),G()()()()),2&t){const e=Ae();W(5),J("compareWith",e.compareEntity),W(1),J("ngForOf",e.relationshipChoices)}}function Xot(t,n){if(1&t&&(H(0,"a",26),et("click",function(i){return i.stopPropagation()}),ue(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function Qot(t,n){if(1&t&&(H(0,"span"),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function Zot(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),ue(3),G(),Qe(4,"span",22),H(5,"div",23),ke(6,Xot,2,2,"a",24),ke(7,Qot,2,1,"span",25),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function Kot(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"mat-form-field",12)(2,"mat-label"),ue(3),G(),H(4,"textarea",17),et("focus",function(){return Dt(e),Ae().updateTermList()}),ue(5," "),G(),H(6,"mat-autocomplete",18,19),ke(8,Zot,8,4,"mat-option",14),G()()()}if(2&t){const e=Di(7),i=Ae();W(3),qo(i.entity.label),W(1),J("matAutocomplete",e),W(2),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.entity?null:i.entity.termLookup.results)}}function Jot(t,n){if(1&t&&(H(0,"a",26),et("click",function(i){return i.stopPropagation()}),ue(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function ert(t,n){if(1&t&&(H(0,"span"),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function trt(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),ue(3),G(),Qe(4,"span",22),H(5,"div",34)(6,"strong"),ue(7),G()(),H(8,"div",23),ke(9,Jot,2,2,"a",24),ke(10,ert,2,1,"span",25),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(4),Nt(" ",e.xref," "),W(2),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function nrt(t,n){if(1&t){const e=Ln();H(0,"div",31)(1,"mat-form-field",12)(2,"mat-label"),ue(3,"Evidence"),G(),H(4,"textarea",32),et("focus",function(){return Dt(e),Ae(2).updateEvidenceList()}),G(),H(5,"mat-autocomplete",18,33),ke(7,trt,11,5,"mat-option",14),G()()()}if(2&t){const e=Di(6),i=Ae(2);W(4),J("matAutocomplete",e),W(1),J("displayWith",i.evidenceDisplayFn),W(2),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.evidenceLookup.results)}}function irt(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function ort(t,n){if(1&t){const e=Ln();H(0,"div",35)(1,"mat-form-field",12)(2,"mat-label"),ue(3,"Reference"),G(),H(4,"textarea",36),et("focus",function(){return Dt(e),Ae(2).updateReferenceList()}),G(),H(5,"button",37),et("click",function(o){return Dt(e),Ae(2).openAddReference(o,"reference")}),H(6,"mat-icon"),ue(7,"playlist_add"),G()(),H(8,"mat-autocomplete",38,39),ke(10,irt,4,2,"mat-option",14),G()()()}if(2&t){const e=Di(9),i=Ae(2);W(4),J("matAutocomplete",e),W(6),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.referenceLookup.results)}}function rrt(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function art(t,n){if(1&t){const e=Ln();H(0,"div",40)(1,"mat-form-field",12)(2,"mat-label"),ue(3,"With"),G(),H(4,"textarea",41),et("focus",function(){return Dt(e),Ae(2).updateWithList()}),G(),H(5,"mat-autocomplete",38,42),ke(7,rrt,4,2,"mat-option",14),G()()()}if(2&t){const e=Di(6),i=Ae(2);W(4),J("matAutocomplete",e),W(3),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.withLookup.results)}}function srt(t,n){if(1&t&&(er(0,27),ke(1,nrt,8,3,"div",28),ke(2,ort,11,2,"div",29),ke(3,art,8,2,"div",30),tr()),2&t){const e=Ae();J("formGroup",e.evidenceFormGroup),W(1),J("ngIf",e.displaySection.evidence),W(1),J("ngIf",e.displaySection.reference),W(1),J("ngIf",e.displaySection.with)}}function crt(t,n){1&t&&(H(0,"button",43)(1,"mat-icon"),ue(2,"more_vert"),G()()),2&t&&(Ae(),J("matMenuTriggerFor",Di(6)))}function lrt(t,n){if(1&t){const e=Ln();H(0,"button",44),et("click",function(){return Dt(e),Ae().addRootTerm()}),ue(1," Add Root Term "),G()}}let drt=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.zone=e,this.dialogRef=i,this.data=o,this.noctuaFormDialogService=r,this.camService=a,this.noctuaActivityEntityService=l,this.inlineReferenceService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=w,this.EditorCategory=ga,this.insertEntity=!1,this.relationshipChoices=[],this.displaySection={relationship:!1,term:!1,evidence:!1,reference:!1,with:!1},this._unsubscribeAll=new N,this.cam=o.cam,this.activity=o.activity,this.entity=o.entity,this.category=o.category,this.evidenceIndex=o.evidenceIndex,this.insertEntity=o.insertEntity,this.relationshipChoices=o.relationshipChoices}ngOnInit(){this._displaySection(this.category),this.entityFormSub=this.noctuaActivityEntityService.entityFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{if(!e)return;const i=e.get("evidenceFormArray");this.entityFormGroup=e,this.evidenceFormGroup=i.at(this.evidenceIndex)})}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.evidenceFormGroup.controls[i]}})}save(){const e=this;switch(e.category){case ga.term:case ga.evidence:case ga.reference:case ga.with:case ga.relationship:this.close(),e.noctuaActivityEntityService.saveActivityReplace(e.cam).pipe(Ja(1),Sf(i=>Na),Yu(()=>{e.zone.run(()=>{e.cam.loading.status=!1,e.cam.reviewCamChanges()})})).subscribe(()=>{e.zone.run(()=>{})});break;case ga.evidenceAll:e.noctuaActivityEntityService.addEvidence().then(()=>{this.close(),e.noctuaFormDialogService.openInfoToast("Evidence successfully updated.","OK")});break;case ga.all:e.noctuaActivityEntityService.addIndividual().then(()=>{this.close(),e.noctuaFormDialogService.openInfoToast("Activity successfully updated.","OK")})}}openSearchDatabaseDialog(e){const i=this,o=this.activity.gpNode;if(o&&o.hasValue()){const a=l=>{if(l.term){const u=new Pi(l.term.term.id,l.term.term.label);l.evidences&&l.evidences.length>0&&i.noctuaActivityEntityService.reinitializeForm(u,l.evidences)}};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new wd(Al.error,El.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}addRootTerm(){const e=this,i=(0,Zt.find)(Ft.rootNode,o=>o.aspect===e.entity.aspect);if(i){const o=new Ll;o.setEvidence(new Pi(Ft.evidenceAutoPopulate.nd.evidence.id,Ft.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ft.evidenceAutoPopulate.nd.reference,e.noctuaActivityEntityService.reinitializeForm(new Pi(i.id,i.label),[o])}}clearValues(){this.entity.clearValues(),this.noctuaActivityFormService.initializeForm()}updateTermList(){this.camService.updateTermList(this.noctuaActivityFormService.activity,this.entity)}updateEvidenceList(){this.camService.updateEvidenceList(this.noctuaActivityFormService.activity,this.entity)}updateReferenceList(){this.camService.updateReferenceList(this.noctuaActivityFormService.activity,this.entity)}updateWithList(){this.camService.updateWithList(this.noctuaActivityFormService.activity,this.entity)}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}compareEntity(e,i){return e.id===i.id}_displaySection(e){switch(e){case ga.relationship:this.displaySection.relationship=!0;break;case ga.term:this.displaySection.term=!0;break;case ga.evidence:this.displaySection.evidence=!0;break;case ga.reference:this.displaySection.reference=!0;break;case ga.with:this.displaySection.with=!0;break;case ga.evidenceAll:this.displaySection.evidence=!0,this.displaySection.reference=!0,this.displaySection.with=!0;break;case ga.all:this.displaySection.term=!0,this.displaySection.evidence=!0,this.displaySection.reference=!0,this.displaySection.with=!0}}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Ez),de(cre),de(jc),de(Zr),de(Pd),de(xm),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-editor-dropdown"]],decls:16,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"formGroup"],["class","noc-edit-field p-4","fxFlex","300px","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","250px","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],[3,"formGroup",4,"ngIf"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor",4,"ngIf"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["evidenceMenu","matMenu"],["mat-icon-button","",3,"click"],["fxFlex","300px","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-edit-field","p-4"],[1,"p-4","w-100-p"],["appearance","outline",1,"noc-sm","w-100-p"],["placeholder","","formControlName","relationship",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","250px","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-edit-field","p-4"],["type","text","matInput","","formControlName","term","row","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["termAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],["fxFlex",""],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href","click"],[3,"formGroup"],["class","noc-edit-field p-4","fxFlex","250px",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","150px",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","","fxFlex","150px",4,"ngIf"],["fxFlex","250px",1,"noc-edit-field","p-4"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],["evidenceAuto","matAutocomplete"],[1,"noc-term-id","mr-8"],["fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,$ot,7,2,"div",1),ke(2,Kot,9,4,"div",2),ke(3,srt,4,4,"ng-container",3),ke(4,crt,3,1,"button",4),H(5,"mat-menu",5,6),ke(7,lrt,2,0,"button",7),G(),Qe(8,"mat-menu",null,8),H(10,"button",9),et("click",function(){return i.close()}),H(11,"mat-icon"),ue(12,"cancel"),G()(),H(13,"button",9),et("click",function(){return i.save()}),H(14,"mat-icon"),ue(15,"check_circle"),G()()()),2&e&&(J("formGroup",i.entityFormGroup),W(1),J("ngIf",i.displaySection.relationship),W(1),J("ngIf",i.displaySection.term),W(1),J("ngIf",i.evidenceFormGroup),W(1),J("ngIf",!0),W(3),J("ngIf",i.entity.aspect))},directives:[Oo,So,tl,Gc,Yi,ko,id,yd,qg,Pl,Xl,$o,J1,E2,ed,kh,I0,Fo,E6,Ir,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}']}),t})();const urt={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let k3=(()=>{class t{constructor(e,i,o,r,a){this.injector=e,this.overlay=i,this.camService=o,this.noctuaActivityFormService=r,this.noctuaActivityEntityService=a}open(e,i={}){const o=Object.assign(Object.assign({},urt),i);o.positionStrategy=this._getPosition(e);const r=this.createOverlay(o),a=new Ez(r);return this.attachDialogContainer(r,o,a),r.backdropClick().subscribe(u=>a.close()),a}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(Ez,i),o.set(cre,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(drt,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l),qt(Zr),qt(Ts),qt(Pd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hrt=["editorDropdownTrigger"];let km=(()=>{class t{constructor(e,i,o){this.inlineEditorService=e,this.camService=i,this.noctuaActivityEntityService=o,this.evidenceIndex=0,this.relationshipChoices=[],this._unsubscribeAll=new N}ngOnInit(){}openEditorDropdown(e){const i=(0,Zt.cloneDeep)(this.entity),o={cam:this.cam,activity:this.activity,entity:i,category:this.category,evidenceIndex:this.evidenceIndex,relationshipChoices:this.relationshipChoices};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,i),this.inlineEditorService.open(e.target,{data:o})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(k3),de(Zr),de(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noctua-inline-editor"]],viewQuery:function(e,i){if(1&e&&_o(hrt,5,Ti),2&e){let o;fi(o=gi())&&(i.editorDropdownTrigger=o.first)}},inputs:{cam:"cam",activity:"activity",entity:"entity",category:"category",evidenceIndex:"evidenceIndex",relationshipChoices:"relationshipChoices"},decls:4,vars:0,consts:[["mat-icon-button","",1,"noc-trigger-button",3,"click"],["editorDropdownTrigger",""],[1,"s-12","secondary-text"]],template:function(e,i){1&e&&(H(0,"button",0,1),et("click",function(r){return i.openEditorDropdown(r)}),H(2,"mat-icon",2),ue(3,"edit"),G()())},directives:[Fo,Ir],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;line-height:15px;background-color:#039be51a;border-radius:0}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]:hover{background-color:#039be5}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#fff}']}),t})();function prt(t,n){if(1&t&&(H(0,"span",15),ue(1),H(2,"a",13),et("click",function(i){return i.stopPropagation()}),ue(3),G()()),2&t){const e=Ae(2).$implicit;W(1),Nt(" ",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].label," "),W(1),Ro("href",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].url,ao),W(1),Nt(" ",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].id," ")}}function frt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.evidence)("evidenceIndex",e)}}const lre=function(t){return{"noc-highlight-modified":t}};function grt(t,n){if(1&t&&(H(0,"div",10),ke(1,prt,4,3,"span",11),H(2,"span",12),ue(3),Qe(4,"br"),H(5,"a",13),et("click",function(i){return i.stopPropagation()}),ue(6),G()(),ke(7,frt,1,5,"noctua-inline-editor",14),G()),2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(6,lre,null==e.evidence?null:e.evidence.modified)),W(1),J("ngIf",(null==e.evidence?null:e.evidence.modified)&&(null==e.evidence||null==e.evidence.termHistory?null:e.evidence.termHistory.length)>0),W(2),qo(null==e.evidence?null:e.evidence.label),W(2),Ro("href",null==e.evidence?null:e.evidence.url,ao),W(1),Nt(" ",null==e.evidence?null:e.evidence.id," "),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableEvidence)}}function mrt(t,n){if(1&t&&(H(0,"span",15)(1,"a",13),et("click",function(i){return i.stopPropagation()}),ue(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.referenceEntity||null==e.referenceEntity.termHistory[0]?null:e.referenceEntity.termHistory[0].url,ao),W(1),Nt(" ",null==e.referenceEntity||null==e.referenceEntity.termHistory[0]?null:e.referenceEntity.termHistory[0].id," ")}}function _rt(t,n){if(1&t&&(H(0,"span",12),ue(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.reference)}}function Crt(t,n){if(1&t&&(H(0,"span",12)(1,"a",13),et("click",function(i){return i.stopPropagation()}),ue(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.referenceEntity?null:e.referenceEntity.url,ao),W(1),Nt(" ",e.reference," ")}}function vrt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.reference)("evidenceIndex",e)}}const brt=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function xrt(t,n){if(1&t&&(H(0,"div",17),ke(1,mrt,3,2,"span",11),ke(2,_rt,2,1,"span",18),ke(3,Crt,3,2,"span",18),ke(4,vrt,1,5,"noctua-inline-editor",14),G()),2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",M2(5,brt,null==e.referenceEntity?null:e.referenceEntity.highlight,null==e.referenceEntity?null:e.referenceEntity.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==e.referenceEntity?null:e.referenceEntity.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),W(1),J("ngIf",(null==e.referenceEntity?null:e.referenceEntity.modified)&&(null==e.referenceEntity||null==e.referenceEntity.termHistory?null:e.referenceEntity.termHistory.length)>0),W(1),J("ngIf",!(null!=e.referenceEntity&&e.referenceEntity.url)),W(1),J("ngIf",null==e.referenceEntity?null:e.referenceEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableReference)}}function yrt(t,n){if(1&t&&(H(0,"span",15)(1,"a",13),et("click",function(i){return i.stopPropagation()}),ue(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.withEntity||null==e.withEntity.termHistory[0]?null:e.withEntity.termHistory[0].url,ao),W(1),Nt(" ",null==e.withEntity||null==e.withEntity.termHistory[0]?null:e.withEntity.termHistory[0].id," ")}}function wrt(t,n){if(1&t&&(H(0,"span",12),ue(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.with)}}function Mrt(t,n){if(1&t&&(H(0,"span",12)(1,"a",13),et("click",function(i){return i.stopPropagation()}),ue(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.withEntity?null:e.withEntity.url,ao),W(1),Nt(" ",e.with," ")}}function Ort(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.with)("evidenceIndex",e)}}function Srt(t,n){if(1&t&&(H(0,"div",19),ke(1,yrt,3,2,"span",11),ke(2,wrt,2,1,"span",18),ke(3,Mrt,3,2,"span",18),ke(4,Ort,1,5,"noctua-inline-editor",14),G()),2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(5,lre,null==e.withEntity?null:e.withEntity.modified)),W(1),J("ngIf",(null==e.withEntity?null:e.withEntity.modified)&&(null==e.withEntity||null==e.withEntity.termHistory?null:e.withEntity.termHistory.length)>0),W(1),J("ngIf",!(null!=e.withEntity&&e.withEntity.url)),W(1),J("ngIf",null==e.withEntity?null:e.withEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableWith)}}function Prt(t,n){1&t&&(H(0,"span"),ue(1,",\xa0"),G())}function Trt(t,n){if(1&t&&(H(0,"span")(1,"a",13),et("click",function(i){return i.stopPropagation()}),ue(2),G(),ke(3,Prt,2,0,"span",22),G()),2&t){const e=n.$implicit,i=n.last;W(1),Ro("href",e.url,ao),W(1),Nt(" ",e.name," "),W(1),J("ngIf",!i)}}function Ert(t,n){if(1&t&&(H(0,"div",20)(1,"span",12),ke(2,Trt,4,3,"span",21),G()()),2&t){const e=Ae().$implicit;W(2),J("ngForOf",e.groups)}}function Art(t,n){1&t&&(H(0,"span"),ue(1,",\xa0"),G())}function Lrt(t,n){if(1&t&&(H(0,"span")(1,"a",13),et("click",function(i){return i.stopPropagation()}),ue(2),G(),ke(3,Art,2,0,"span",22),G()),2&t){const e=n.$implicit,i=n.last;W(1),Ro("href",e.urcid,ao),W(1),Nt(" ",e.name," "),W(1),J("ngIf",!i)}}function Drt(t,n){if(1&t&&(H(0,"div",23)(1,"span",12),ke(2,Lrt,4,3,"span",21),G()()),2&t){const e=Ae().$implicit;W(2),J("ngForOf",e.contributors)}}function krt(t,n){if(1&t&&(H(0,"div",4),ke(1,grt,8,8,"div",5),ke(2,xrt,5,9,"div",6),ke(3,Srt,5,7,"div",7),ke(4,Ert,3,1,"div",8),ke(5,Drt,3,1,"div",9),G()),2&t){const e=Ae(2);W(1),J("ngIf",e.settings.showEvidenceCode),W(1),J("ngIf",e.settings.showReference),W(1),J("ngIf",e.settings.showWith),W(1),J("ngIf",e.settings.showGroup),W(1),J("ngIf",e.settings.showContributor)}}function Irt(t,n){if(1&t&&(H(0,"div",2),ke(1,krt,6,5,"div",3),G()),2&t){const e=Ae();W(1),J("ngForOf",null==e.entity.predicate?null:e.entity.predicate.evidence)}}function Nrt(t,n){1&t&&(H(0,"div",24),ue(1," no evidence present.\n"),G())}let dre=(()=>{class t{constructor(e,i,o,r){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaActivityEntityService=r,this.EditorCategory=ga,this.settings=new hm,this.options={},this.unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(yr),de(Co),de(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noc-evidence-table"]],inputs:{settings:"settings",options:"options",cam:"cam",entity:"entity"},decls:2,vars:2,consts:[["class","noc-evidence-table noctua-form-table w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-no-info",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-table","noctua-form-table","w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch","class","noc-row",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-row"],["class","noc-evidence-code-cell noc-box-cell","fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-reference-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-with-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-group-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-contributor-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-code-cell","noc-box-cell",3,"ngClass"],["class","noc-old-term",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category","evidenceIndex",4,"ngIf"],[1,"noc-old-term"],[1,"noc-edit-button",3,"cam","activity","entity","category","evidenceIndex"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-reference-cell","noc-box-cell",3,"ngClass"],["class","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-with-cell","noc-box-cell",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-cell","noc-box-cell"],[4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-contributor-cell","noc-box-cell"],[1,"noc-no-info"]],template:function(e,i){1&e&&(ke(0,Irt,2,1,"div",0),ke(1,Nrt,2,0,"div",1)),2&e&&(J("ngIf",(null==i.entity.predicate?null:i.entity.predicate.evidence.length)>0),W(1),J("ngIf",0===(null==i.entity.predicate?null:i.entity.predicate.evidence.length)))},directives:[Yi,Oo,So,$o,ko,ds,ac,km],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-qualifier[_ngcontent-%COMP%]{padding:5px;width:100%;font-size:12px;text-align:center;border-bottom:1px solid rgba(46,111,154,.3)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;margin:0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{padding:20px 10px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-row[_ngcontent-%COMP%]{border-bottom:#ddd solid 1px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{overflow:auto;background-color:transparent}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row.noc-hide-header[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0;visibility:hidden;display:none;overflow:hidden;border:none}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-evidence-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();function Rrt(t,n){1&t&&(H(0,"strong"),ue(1," NOT "),G())}function zrt(t,n){if(1&t&&(H(0,"span"),ue(1),G()),2&t){const e=Ae(2);W(1),qo(null==e.entity.predicate||null==e.entity.predicate.edge?null:e.entity.predicate.edge.label)}}function Frt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",29),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.relationship)}}function Hrt(t,n){if(1&t&&(H(0,"div",27)(1,"span",5),ke(2,Rrt,2,0,"strong",7),ke(3,zrt,2,1,"span",7),G(),ke(4,Frt,1,4,"noctua-inline-editor",28),G()),2&t){const e=Ae();Ro("fxFlex",e.relationWidth),W(2),J("ngIf",null==e.entity.predicate?null:e.entity.predicate.isComplement),W(1),J("ngIf",e.entity.showEvidence),W(1),J("ngIf",e.noctuaUserService.user&&e.entity.relationEditable)}}function Vrt(t,n){if(1&t&&(H(0,"span",30),ue(1),H(2,"a",6),et("click",function(i){return i.stopPropagation()}),ue(3),G()()),2&t){const e=Ae();W(1),Nt(" ",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].label," "),W(1),Ro("href",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].url,ao),W(1),Nt(" ",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].id," ")}}function Brt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",29),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.term)}}function Grt(t,n){if(1&t&&(er(0),ke(1,Brt,1,4,"noctua-inline-editor",28),tr()),2&t){const e=Ae();W(1),J("ngIf",e.noctuaUserService.user&&e.entity.term&&e.options.editableTerms)}}function Yrt(t,n){if(1&t&&(H(0,"mat-chip",31)(1,"span"),ue(2),G()()),2&t){const e=Ae();xf("noc-chip-xs noc-aspect ",e.entity.aspect,""),W(2),qo(e.entity.aspect)}}function Urt(t,n){1&t&&(H(0,"mat-chip",32)(1,"span"),ue(2,"ext."),G()())}function jrt(t,n){if(1&t&&Qe(0,"noc-evidence-table",33),2&t){const e=Ae();J("options",e.optionsDisplay)("cam",e.cam)("entity",e.entity)}}const Wrt=function(){return["fas","comment"]};function qrt(t,n){if(1&t){const e=Ln();H(0,"button",34),et("click",function(){Dt(e);const o=Ae();return o.openCommentsForm(o.entity)}),Qe(1,"fa-icon",35),H(2,"div",36),ue(3),G()()}if(2&t){const e=Ae();Ro("matTooltip",null==e.entity.predicate?null:e.entity.predicate.comments),J("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(5,Wrt)),W(2),Nt(" ",null==e.entity.predicate?null:e.entity.predicate.comments.length," ")}}function $rt(t,n){if(1&t){const e=Ln();H(0,"button",37),et("click",function(o){return Dt(e),Ae().updateCurrentMenuEvent(o)}),H(1,"mat-icon"),ue(2,"more_vert"),G()()}2&t&&(Ae(),J("matMenuTriggerFor",Di(22)))}function Xrt(t,n){if(1&t){const e=Ln();H(0,"button",23),et("click",function(){Dt(e);const o=Ae();return o.toggleIsComplement(o.entity)}),ue(1," NOT Qualifier "),G()}}function Qrt(t,n){1&t&&(H(0,"button",22),ue(1,"Add"),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(30)))}function Zrt(t,n){if(1&t){const e=Ln();H(0,"button",23),et("click",function(){const r=Dt(e).$implicit,a=Ae();return a.insertEntity(a.entity,r)}),ue(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}const Krt=function(t){return{"noc-selected":t}},Jrt=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};let eP=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.camService=e,this.bbopGraphService=i,this.confirmDialogService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.noctuaFormDialogService=l,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.inlineEditorService=w,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ft.activityType.options,this.options={},this.relationWidth="0px",this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.termNotEditable=!0,this.unsubscribeAll=new N}ngOnInit(){var e;this.termNotEditable=this.activity.activityType===so.bpOnly&&this.entity.term.id===Ft.rootNode.mf.id,(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.relationWidth=150-16*this.entity.treeLevel+"px"}editEntity(e){const i={cam:this.cam,activity:this.activity,entity:e,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:i})}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}deleteEntity(e){const i=this,r=this.activity.descendants(e.id).map(l=>l.term.label).join(", ");let a=`You are about to delete an ${e.term.label}`;r&&(a+=` and its descendants ${r}`),this.confirmDialogService.openConfirmDialog("Confirm Delete?",`${a}`,()=>{this.noctuaActivityEntityService.deleteActivityNode(i.activity,e).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.term.label} successfully deleted.`,"OK")})})}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o){const a=function(l){l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ft.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ft.evidenceAutoPopulate.nd.evidence.id,Ft.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ft.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}openCommentsForm(e){const i=this;i.noctuaFormDialogService.openCommentsDialog(e.predicate,r=>{r&&this.bbopGraphService.savePredicateComments(i.cam,e.predicate,r)})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(Yc),de(dd),de(yr),de(Co),de(jc),de(Pd),de(Ts),de(k3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-tree-node"]],inputs:{cam:"cam",activity:"activity",entity:"entity",options:"options"},decls:36,vars:24,consts:[[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-node","noctua-form-table","w-100-p",3,"ngClass"],["class","noc-relation-cell noc-entity-cell",3,"fxFlex",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","",1,"noc-term-cell","noc-entity-cell",3,"ngClass"],["class","noc-old-term",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-aspect-cell","noc-entity-cell"],["fxLayout","column","fxLayoutAlign","center center",3,"class",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-extension-cell","noc-entity-cell"],["class","noc-chip-xs noc-extension","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-cell","p-0"],["class","w-100-p",3,"options","cam","entity",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-comments-cell","noc-entity-cell"],["mat-icon-button","","class","noc-toolbar-button noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor","click",4,"ngIf"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"],["addMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["evidenceMenu","matMenu"],[1,"noc-relation-cell","noc-entity-cell",3,"fxFlex"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category"],[1,"noc-old-term"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-chip-xs","noc-extension"],[1,"w-100-p",3,"options","cam","entity"],["mat-icon-button","",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],[1,"noc-comments-badge"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1),ke(2,Hrt,5,4,"div",2),H(3,"div",3),ke(4,Vrt,4,3,"span",4),H(5,"span",5),ue(6),Qe(7,"br"),H(8,"a",6),et("click",function(r){return r.stopPropagation()}),ue(9),G()(),ke(10,Grt,2,1,"ng-container",7),G(),H(11,"div",8),ke(12,Yrt,3,4,"mat-chip",9),G(),H(13,"div",10),ke(14,Urt,3,0,"mat-chip",11),G(),H(15,"div",12),ke(16,jrt,1,3,"noc-evidence-table",13),G(),H(17,"div",14),ke(18,qrt,4,6,"button",15),G(),H(19,"div",16),ke(20,$rt,3,1,"button",17),H(21,"mat-menu",18,19),ke(23,Xrt,2,0,"button",20),ke(24,Qrt,2,1,"button",21),H(25,"button",22),ue(26,"Evidence"),G(),H(27,"button",23),et("click",function(){return i.openCommentsForm(i.entity)}),ue(28," Add Comment "),G()(),H(29,"mat-menu",null,24),ke(31,Zrt,2,1,"button",25),G(),H(32,"mat-menu",null,26)(34,"button",23),et("click",function(){return i.addEvidence(i.entity)}),ue(35," Add Evidence "),G()()()()()),2&e){const o=Di(33);W(1),J("ngClass",wo(18,Krt,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),W(1),J("ngIf",!i.options.slimViewer),W(1),J("ngClass",M2(20,Jrt,null==i.entity.term?null:i.entity.term.highlight,null==i.entity.term?null:i.entity.term.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==i.entity.term?null:i.entity.term.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),Un("id",null==i.entity.term?null:i.entity.term.displayId),W(1),J("ngIf",(null==i.entity.term?null:i.entity.term.modified)&&(null==i.entity.term||null==i.entity.term.termHistory?null:i.entity.term.termHistory.length)>0),W(2),Nt(" ",null==i.entity.term?null:i.entity.term.label," "),W(2),Ro("href",null==i.entity.term?null:i.entity.term.url,ao),W(1),Nt(" ",null==i.entity.term?null:i.entity.term.id," "),W(1),J("ngIf",!i.termNotEditable),W(2),J("ngIf",i.entity.aspect),W(2),J("ngIf",i.entity.isExtension),W(2),J("ngIf",i.entity.showEvidence),W(2),J("ngIf",i.entity.showEvidence&&i.entity.predicate.comments.length>0),W(2),J("ngIf",i.noctuaUserService.user&&i.options.showMenu&&i.entity.showEvidence),W(3),J("ngIf",0===i.entity.treeLevel),W(1),J("ngIf",i.entity.insertMenuNodes),W(1),J("matMenuTriggerFor",o),W(6),J("ngForOf",i.entity.insertMenuNodes)}},directives:[Oo,So,ds,ac,Yi,ko,km,T2,dre,Fo,Tl,ps,il,Ir,Ql,nl,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#7cd488 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f4c89c solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-extension[_ngcontent-%COMP%]{border:#9bb1b6 solid 2px;height:20px;min-height:20px;max-height:20px;font-size:8px;padding:2px;text-align:center}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;height:25px;min-height:25px;max-height:25px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-align:center;height:20px;min-height:20px;max-height:20px;font-size:10px;font-weight:700;padding:2px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.F[_ngcontent-%COMP%]{border:#7cd488 solid 1px;color:#56c765}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.P[_ngcontent-%COMP%]{border:#f4c89c solid 1px;color:#efaf6e}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.C[_ngcontent-%COMP%]{border:#d3b5f5 solid 1px;color:#b888ef}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-relation-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-extension-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-node.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();const eat=function(){return["fas","caret-right"]};function tat(t,n){1&t&&Qe(0,"fa-icon",14),2&t&&J("icon",_i(1,eat))}const nat=function(){return["fas","caret-down"]};function iat(t,n){1&t&&Qe(0,"fa-icon",14),2&t&&J("icon",_i(1,nat))}function oat(t,n){if(1&t&&(H(0,"span",20),ue(1),H(2,"a",21),et("click",function(i){return i.stopPropagation()}),ue(3),G()()),2&t){const e=Ae(2);W(1),Nt(" ",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].label," "),W(1),Ro("href",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].url,ao),W(1),Nt(" ",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].id," ")}}function rat(t,n){if(1&t&&Qe(0,"noctua-inline-editor",22),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.gpNode)("category",e.EditorCategory.term)}}const aat=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function sat(t,n){if(1&t&&(H(0,"div",15),ke(1,oat,4,3,"span",16),H(2,"span",17),ue(3),G(),H(4,"a",18),et("click",function(i){return i.stopPropagation()}),ue(5),G(),ke(6,rat,1,4,"noctua-inline-editor",19),G()),2&t){const e=Ae();J("ngClass",M2(7,aat,null==e.gpNode.term?null:e.gpNode.term.highlight,null==e.gpNode.term?null:e.gpNode.term.modified,(null==e.camService.currentMatch?null:e.camService.currentMatch.uuid)&&(null==e.gpNode.term?null:e.gpNode.term.uuid)===(null==e.camService.currentMatch?null:e.camService.currentMatch.uuid))),Un("id",null==e.gpNode.term?null:e.gpNode.term.displayId),W(1),J("ngIf",(null==e.gpNode.term?null:e.gpNode.term.modified)&&(null==e.gpNode.term||null==e.gpNode.term.termHistory?null:e.gpNode.term.termHistory.length)>0),W(2),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),W(1),Ro("href",null==e.gpNode.term?null:e.gpNode.term.url,ao),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.id," "),W(1),J("ngIf",e.noctuaUserService.user&&e.gpNode.term&&e.options.editableTerms)}}const cat=function(){return["fas","exclamation-triangle"]};function lat(t,n){if(1&t){const e=Ln();H(0,"div",23)(1,"mat-chip",24),et("click",function(){Dt(e);const o=Ae();return o.displayActivityErrors(o.activity)}),H(2,"div",25),Qe(3,"fa-icon",14),G(),H(4,"div",26),ue(5),G()()()}if(2&t){const e=Ae();W(3),J("icon",_i(2,cat)),W(2),Nt(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function dat(t,n){1&t&&(H(0,"div",42),ue(1," Relationship "),G())}function uat(t,n){1&t&&(H(0,"div",43),ue(1," Asp "),G())}function hat(t,n){if(1&t&&Qe(0,"noc-activity-tree-node",44),2&t){const e=n.$implicit,i=Ae(2);J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function pat(t,n){1&t&&(H(0,"div",45),ue(1," no results yet. "),G())}const ure=function(t){return{"noc-selected":t}};function fat(t,n){if(1&t&&(H(0,"div",27)(1,"div",28),ke(2,dat,2,0,"div",29),H(3,"div",30),ue(4," Term "),G(),ke(5,uat,2,0,"div",31),H(6,"div",32),ue(7," Ext "),G(),H(8,"div",33)(9,"div",34),ue(10," Evidence "),G(),H(11,"div",35),ue(12," Reference "),G(),H(13,"div",36),ue(14," With "),G(),H(15,"div",37),ue(16," Assigned By "),G(),H(17,"div",38),ue(18," Contributor "),G()(),Qe(19,"div",39),G(),ke(20,hat,1,4,"noc-activity-tree-node",40),ke(21,pat,2,0,"div",41),G()),2&t){const e=Ae();J("ngClass",wo(5,ure,e.activity.displayId===(null==e.camService.currentMatch?null:e.camService.currentMatch.activityDisplayId))),W(2),J("ngIf",!e.options.slimViewer),W(3),J("ngIf",!e.options.slimViewer),W(15),J("ngForOf",e.nodes),W(1),J("ngIf",0===(null==e.activity.nodes?null:e.activity.nodes.length))}}let gat=(()=>{class t{constructor(e,i,o,r,a,l,u){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaFormDialogService=r,this.noctuaActivityEntityService=a,this.noctuaActivityFormService=l,this.inlineEditorService=u,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ft.activityType.options,this.options={},this.optionsDisplay={},this.nodes=[],this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new N}ngOnInit(){var e;const i=this;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.gpNode=this.activity.gpNode,this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.nodes=this.activity.nodes.filter(o=>{var r;return o.id!==(null===(r=i.gpNode)||void 0===r?void 0:r.id)})}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.bpNode;if(o){const a=function(l){l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ft.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ft.evidenceAutoPopulate.nd.evidence.id,Ft.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ft.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(yr),de(Co),de(jc),de(Pd),de(Ts),de(k3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-table"]],inputs:{cam:"cam",activity:"activity",options:"options"},decls:20,vars:13,consts:[[1,"w-100-p"],[1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","noc-sm","mr-8",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title","mr-12"],[1,"noc-relation","mr-12"],["class","noc-gp","fxLayout","column","fxLayoutAlign","center start",3,"ngClass",4,"ngIf"],[1,"noc-chip-xs",3,"ngClass"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["class","noc-activity-table w-100-p","fxLayout","column","fxLayoutAlign","start start",3,"ngClass",4,"ngIf"],[3,"icon"],["fxLayout","column","fxLayoutAlign","center start",1,"noc-gp",3,"ngClass"],["class","noc-old-term text-truncate",4,"ngIf"],[1,"text-truncate"],["target","_blank",1,"text-truncate",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-old-term","text-truncate"],["target","_blank",3,"href","click"],[1,"noc-edit-button",3,"cam","activity","entity","category"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-activity-table","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["fxFlex","","class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],["class","noc-cell noc-aspect-cell",4,"ngIf"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],[1,"noc-cell","noc-action-cell"],["class","w-100-p",3,"options","cam","activity","entity",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"w-100-p",3,"options","cam","activity","entity"],[1,"noc-no-info"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),et("click",function(r){return r.stopPropagation()}),H(4,"button",4),et("click",function(){return i.toggleExpand(i.activity)}),ke(5,tat,1,2,"fa-icon",5),ke(6,iat,1,2,"fa-icon",5),G()(),H(7,"div",6),et("click",function(r){return r.stopPropagation()}),ue(8),G(),H(9,"div",7)(10,"div",8)(11,"small"),ue(12),G()(),ke(13,sat,7,11,"div",9),G(),H(14,"mat-chip",10)(15,"span"),ue(16),G()(),ke(17,lat,6,3,"div",11),Qe(18,"span",12),G()(),ke(19,fat,22,7,"div",13),G()),2&e&&(W(1),J("ngClass",wo(11,ure,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",i.activity.displayId),W(4),J("ngIf",!i.activity.expanded),W(1),J("ngIf",i.activity.expanded),W(2),Nt(" ",i.activity.displayNumber," "),W(4),qo(null==i.gpNode||null==i.gpNode.predicate||null==i.gpNode.predicate.edge?null:i.gpNode.predicate.edge.label),W(1),J("ngIf",i.gpNode),W(1),J("ngClass",i.activity.activityType),W(2),qo(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),W(1),J("ngIf",i.activity.hasViolations),W(2),J("ngIf",i.activity.expanded))},directives:[ds,ac,Oo,So,ko,Fo,Yi,ps,km,T2,$o,eP],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:55px;min-height:55px;max-height:55px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:27px;left:-15px;width:25px;height:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:after{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:"";z-index:1}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:350px;line-height:12px;height:55px;min-height:55px;max-height:55px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 3px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;padding-bottom:4px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] noc-activity-tree-node[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;overflow:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row.noc-row-term[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row.noc-row-term[_ngcontent-%COMP%]:before{position:absolute;left:0;width:20px;height:2px;top:50%;transform:translateY(-50%);color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{padding-left:15px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-activity-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();const mat=["tree"],hre=function(){return["fas","caret-right"]};function _at(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,hre))}const pre=function(){return["fas","caret-down"]};function Cat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,pre))}function vat(t,n){1&t&&(H(0,"span",26),ue(1,"GP info not available"),G())}function bat(t,n){if(1&t&&(H(0,"span",27),ue(1),H(2,"a",28),et("click",function(i){return i.stopPropagation()}),ue(3),G()()),2&t){const e=Ae();Ip("matTooltip","GP: ",null==e.gpNode.term?null:e.gpNode.term.label," \r ( ",null==e.gpNode.term?null:e.gpNode.term.id,")"),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),W(1),Ro("href",null==e.gpNode.term?null:e.gpNode.term.url,ao),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.id," ")}}function xat(t,n){if(1&t&&(H(0,"mat-chip",29)(1,"div",30),ue(2),G(),H(3,"div",31)(4,"span"),ue(5),G()()()),2&t){const e=Ae();Ro("matTooltip",e.activity.summary.mf.tooltip),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.activity.summary.mf.shorthand," "),W(3),Nt(" ",null==e.activity.mfNode.term?null:e.activity.mfNode.term.label," ")}}function yat(t,n){if(1&t&&(H(0,"mat-chip",32)(1,"div",30),ue(2),G(),H(3,"div",31)(4,"span"),ue(5),G()()()),2&t){const e=Ae();Ro("matTooltip",e.activity.summary.bp.tooltip),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.activity.summary.bp.shorthand," "),W(3),Nt(" ",null==e.activity.bpNode.term?null:e.activity.bpNode.term.label," ")}}function wat(t,n){if(1&t&&(H(0,"mat-chip",33)(1,"div",30),ue(2),G(),H(3,"div",31)(4,"span"),ue(5),G()()()),2&t){const e=Ae();Ro("matTooltip",e.activity.summary.cc.tooltip),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.activity.summary.cc.shorthand," "),W(3),Nt(" ",null==e.activity.ccNode.term?null:e.activity.ccNode.term.label," ")}}const Mat=function(){return["fas","exclamation-triangle"]};function Oat(t,n){if(1&t){const e=Ln();H(0,"div",34)(1,"mat-chip",35),et("click",function(){Dt(e);const o=Ae();return o.displayActivityErrors(o.activity)}),H(2,"div",36),Qe(3,"fa-icon",25),G(),H(4,"div",31),ue(5),G()()()}if(2&t){const e=Ae();W(3),J("icon",_i(2,Mat)),W(2),Nt(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function Sat(t,n){if(1&t){const e=Ln();H(0,"div",37)(1,"button",38)(2,"mat-icon"),ue(3,"more_vert"),G()(),H(4,"mat-menu",39,40)(6,"h6",41),ue(7," Danger Zone"),G(),H(8,"button",42),et("click",function(){Dt(e);const o=Ae();return o.deleteActivity(o.activity)}),ue(9," Delete Activity "),G()()()}if(2&t){const e=Di(5);W(1),J("matMenuTriggerFor",e)}}function Pat(t,n){1&t&&(H(0,"div",61),ue(1," Relationship "),G())}function Tat(t,n){1&t&&Qe(0,"div",62)}function Eat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,hre))}function Aat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,pre))}function Lat(t,n){if(1&t){const e=Ln();H(0,"button",70),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,Eat,1,2,"fa-icon",4),ke(2,Aat,1,2,"fa-icon",4),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function Dat(t,n){1&t&&Qe(0,"div",71)}function kat(t,n){if(1&t&&Qe(0,"noctua-inline-editor",74),2&t){const e=Ae(2).$implicit,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",e.data.node)("category",i.EditorCategory.relationship)}}function Iat(t,n){if(1&t&&(H(0,"div",72),ue(1),ke(2,kat,1,4,"noctua-inline-editor",73),G()),2&t){const e=Ae().$implicit,i=Ae(2);W(1),Nt(" ",null==e.data.node||null==e.data.node.predicate||null==e.data.node.predicate.edge?null:e.data.node.predicate.edge.label," "),W(1),J("ngIf",i.noctuaUserService.user&&e.data.node.relationEditable&&i.options.editableRelation)}}function Nat(t,n){if(1&t){const e=Ln();H(0,"div",63),ke(1,Lat,3,2,"button",64),ke(2,Dat,1,0,"div",65),H(3,"div",66),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),H(4,"div",67),ke(5,Iat,3,2,"div",68),Qe(6,"noc-activity-tree-node",69),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(2),J("ngIf",i.options.slimViewer),W(1),J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function Rat(t,n){if(1&t){const e=Ln();H(0,"div",43)(1,"div",44),ke(2,Pat,2,0,"div",45),H(3,"div",46),ue(4," Term "),G(),H(5,"div",47),ue(6," Asp "),G(),H(7,"div",48),ue(8," Ext "),G(),H(9,"div",49)(10,"div",50),ue(11," Evidence "),G(),H(12,"div",51),ue(13," Reference "),G(),H(14,"div",52),ue(15," With "),G(),H(16,"div",53),ue(17," Assigned By "),G(),H(18,"div",54),ue(19," Contributor "),G()(),Qe(20,"div",55),ke(21,Tat,1,0,"div",56),G(),H(22,"div",57)(23,"tree-root",58,59),et("initialized",function(){return Dt(e),Ae().onTreeLoad()}),ke(25,Nat,7,16,"ng-template",null,60,tu),G()()()}if(2&t){const e=Ae();W(2),J("ngIf",!e.options.slimViewer),W(19),J("ngIf",e.noctuaUserService.user&&e.options.showMenu),W(2),J("nodes",e.treeNodes)("options",e.treeOptions)}}const zat=function(t){return{"noc-selected":t}},Fat=function(){return["fas","calendar-day"]};let Hat=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=l,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=ga,this.ActivityType=so,this.ActivityNodeType=$n,this.activityTypeOptions=Ft.activityType.options,this.treeNodes=[],this.options={},this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.treeOptions={allowDrag:!1,allowDrop:!1,getNodeClone:w=>Object.assign(Object.assign({},w.data),{name:`Copy of ${w.data.name}`})},this.hasChild=(w,T)=>T.expandable,this._unsubscribeAll=new N}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.gpNode=this.activity.gpNode,this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.treeNodes=this.activity.buildTrees()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onTreeLoad(){this.tree.treeModel.expandAll()}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o){const a=function(l){l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ft.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ft.evidenceAutoPopulate.nd.evidence.id,Ft.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ft.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(dd),de(yr),de(Co),de(jc),de(Pd),de(Ts),de(k3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-tree"]],viewQuery:function(e,i){if(1&e&&_o(mat,5),2&e){let o;fi(o=gi())&&(i.tree=o.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},decls:32,vars:20,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cell"],[1,"noc-display-number","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-gp","noc-cell"],["class","noc-no-info",4,"ngIf"],["class","text-truncate",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-type","noc-cell"],[1,"noc-chip-activity-type","noc-chip-xs"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-date","noc-cell"],[1,"noc-icon",3,"icon"],[1,"ml-4"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-coverage","noc-cell"],[3,"src"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"scard-title-summary"],["fxFlex","33%","fxLayout","row","fxLayoutAlign","start center",1,"noc-cell"],["class","noc-chip-xs noc-mf noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-chip-xs noc-bp noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-chip-xs noc-cc noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","","fxFlex","50px","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["class","noc-tree-container",4,"ngIf"],[3,"icon"],[1,"noc-no-info"],[1,"text-truncate",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["target","_blank",1,"ml-4",3,"href","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-mf","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-icon","noc-icon-initials"],["fxFlex","",1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-bp","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-cc","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","50px","fxLayout","row","fxLayoutAlign","end center",1,""],["mat-icon-button","","fxFlex","40px","color","primary",1,"noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["connectionOptionMenu","matMenu"],[1,"noc-menu-heading"],["mat-menu-item","",1,"",3,"click"],[1,"noc-tree-container"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],[1,"noc-cell","noc-comments-cell"],["class","noc-cell noc-action-cell",4,"ngIf"],[1,"noc-tree"],[3,"nodes","options","initialized"],["tree",""],["treeNodeWrapperTemplate",""],[1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-action-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"],["class","noc-cell-label","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"w-100-p",3,"options","cam","activity","entity"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[1,"noc-expander-placeholder"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cell-label"],["class","noc-edit-button ml-12",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button","ml-12",3,"cam","activity","entity","category"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),et("click",function(r){return r.stopPropagation()}),H(3,"button",3),et("click",function(){return i.toggleExpand(i.activity)}),ke(4,_at,1,2,"fa-icon",4),ke(5,Cat,1,2,"fa-icon",4),G()(),H(6,"div",5)(7,"div",6),et("click",function(r){return r.stopPropagation()}),ue(8),G()(),H(9,"div",7),ke(10,vat,2,0,"span",8),ke(11,bat,4,7,"span",9),G(),H(12,"div",10)(13,"mat-chip",11)(14,"span"),ue(15),G()()(),H(16,"div",12),Qe(17,"fa-icon",13),H(18,"span",14),ue(19),G()(),H(20,"div",15),Qe(21,"img",16),G(),H(22,"div",17)(23,"div",18),ke(24,xat,6,5,"mat-chip",19),G(),H(25,"div",18),ke(26,yat,6,5,"mat-chip",20),G(),H(27,"div",18),ke(28,wat,6,5,"mat-chip",21),G()(),ke(29,Oat,6,3,"div",22),ke(30,Sat,10,1,"div",23),G(),ke(31,Rat,27,4,"div",24),G()),2&e&&(J("ngClass",wo(17,zat,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",i.activity.displayId),W(4),J("ngIf",!i.activity.expanded),W(1),J("ngIf",i.activity.expanded),W(3),Nt(" ",i.activity.displayNumber," "),W(2),J("ngIf",!i.gpNode),W(1),J("ngIf",i.gpNode),W(4),qo(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),W(2),J("icon",_i(19,Fat)),W(2),qo(i.activity.formattedDate),W(2),J("src","assets/images/activity/coverage-"+(null==i.activity.summary?null:i.activity.summary.coverage)+".png",ao),W(3),J("ngIf",i.activity.mfNode),W(2),J("ngIf",i.activity.bpNode),W(2),J("ngIf",i.activity.ccNode),W(1),J("ngIf",i.activity.hasViolations),W(1),J("ngIf",!i.options.reviewMode),W(1),J("ngIf",i.activity.expanded))},directives:[Oo,So,ds,ac,ko,Fo,Yi,ps,Tl,T2,il,Ir,Ql,nl,rR,rS,fv,km,eP],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .scard-title-summary[_ngcontent-%COMP%]{line-height:12px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;background-color:#fff;font-size:12px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:2px 8px;border-right:#aaa solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;max-width:170px;line-height:12px;padding:4px 8px;font-size:12px!important;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:0;font-size:10px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-coverage[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-coverage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%]{width:95px;min-width:95px;max-width:95px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%]{font-size:10px;color:#555;width:90px;min-width:90px;max-width:90px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%] noc-icon[_ngcontent-%COMP%]{color:#777}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding-left:29px;padding-right:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] mat-chip.noc-chip-activity-type[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px;font-size:8px}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%]{padding:0;height:20px;min-height:20px;max-height:20px;max-width:220px;font-size:10px;border:#bbb solid 1px;background-color:#bbb3}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;min-width:20px;max-width:20px;border-radius:50%;color:#777;font-size:10px;font-weight:700}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%] .noc-count[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%] .noc-count[_ngcontent-%COMP%]{margin-right:5px;font-size:10px;font-weight:400}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;max-width:200px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbb}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-mf[_ngcontent-%COMP%]{border:#81c784 solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-mf[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#c8e6c9}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-bp[_ngcontent-%COMP%]{border:#a1887f solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-bp[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d7ccc8}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-cc[_ngcontent-%COMP%]{border:#ba68c8 solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-cc[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e1bee7}'],data:{animation:sc}}),t})();const Vat=["tree"],Bat=function(){return["fas","caret-right"]};function Gat(t,n){1&t&&Qe(0,"fa-icon",12),2&t&&J("icon",_i(1,Bat))}const Yat=function(){return["fas","caret-down"]};function Uat(t,n){1&t&&Qe(0,"fa-icon",12),2&t&&J("icon",_i(1,Yat))}function jat(t,n){if(1&t&&(H(0,"div",13)(1,"span",14),ue(2),H(3,"a",15),et("click",function(i){return i.stopPropagation()}),ue(4),G()()()),2&t){const e=Ae();W(2),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),W(1),Ro("href",null==e.gpNode.term?null:e.gpNode.term.url,ao),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.id," ")}}const Wat=function(){return["fas","exclamation-triangle"]};function qat(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"mat-chip",17),et("click",function(){Dt(e);const o=Ae();return o.displayActivityErrors(o.activity)}),H(2,"div",18),Qe(3,"fa-icon",12),G(),H(4,"div",19),ue(5),G()()()}if(2&t){const e=Ae();W(3),J("icon",_i(2,Wat)),W(2),Nt(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function $at(t,n){1&t&&(H(0,"div",34),ue(1," Relationship "),G())}function Xat(t,n){1&t&&Qe(0,"div",35)}function Qat(t,n){if(1&t&&(H(0,"div",46),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.label," ")}}const fre=function(t){return{"background-highlight":t}};function Zat(t,n){if(1&t&&(H(0,"mat-tree-node",40)(1,"div",41),Qe(2,"button",42),H(3,"div",43),ke(4,Qat,2,1,"div",44),Qe(5,"noc-activity-tree-node",45),G()()()),2&t){const e=n.$implicit,i=Ae(3);J("ngClass",wo(6,fre,i.activeAnnotation===e.uuid)),W(4),J("ngIf",i.options.slimViewer),W(1),J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function Kat(t,n){if(1&t&&(H(0,"div",46),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.label," ")}}function Jat(t,n){if(1&t&&(H(0,"mat-tree-node",47)(1,"div",41)(2,"div",48),ke(3,Kat,2,1,"div",44),Qe(4,"noc-activity-tree-node",45),G()()()),2&t){const e=n.$implicit,i=Ae(3);J("ngClass",wo(6,fre,i.activeAnnotation===e.uuid)),W(3),J("ngIf",i.options.slimViewer),W(1),J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function est(t,n){if(1&t&&(H(0,"mat-tree",36,37),ke(2,Zat,6,8,"mat-tree-node",38),ke(3,Jat,5,8,"mat-tree-node",39),G()),2&t){const e=Ae(2);J("dataSource",e.dataSource)("treeControl",e.treeControl),W(3),J("matTreeNodeDefWhen",e.hasChild)}}function tst(t,n){if(1&t&&(H(0,"div",20)(1,"div",21),ke(2,$at,2,0,"div",22),H(3,"div",23),ue(4," Term "),G(),H(5,"div",24),ue(6," Asp "),G(),H(7,"div",25),ue(8," Ext "),G(),H(9,"div",26)(10,"div",27),ue(11," Evidence "),G(),H(12,"div",28),ue(13," Reference "),G(),H(14,"div",29),ue(15," With "),G(),H(16,"div",30),ue(17," Assigned By "),G(),H(18,"div",31),ue(19," Contributor "),G()(),ke(20,Xat,1,0,"div",32),G(),ke(21,est,4,3,"mat-tree",33),G()),2&t){const e=Ae();W(2),J("ngIf",!e.options.slimViewer),W(18),J("ngIf",e.noctuaUserService.user&&e.options.showMenu),W(1),J("ngIf",null==e.dataSource?null:e.dataSource.data)}}const nst=function(t){return{"noc-selected":t}};let ist=(()=>{class t{constructor(e,i,o,r,a,l){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaFormDialogService=r,this.noctuaActivityEntityService=a,this.noctuaActivityFormService=l,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ft.activityType.options,this.options={},this.treeControl=new fS(u=>u.treeLevel,u=>u.expandable),this.hasChild=(u,f)=>f.expandable,this.dataSource=new EM,this.unsubscribeAll=new N}ngOnInit(){this.gpNode=this.activity.gpNode,this.dataSource.data=this.activity.nodes.sort(dee)}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}onTreeLoad(){this.tree.treeModel.expandAll()}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(yr),de(Co),de(jc),de(Pd),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-tree-table"]],viewQuery:function(e,i){if(1&e&&_o(Vat,5),2&e){let o;fi(o=gi())&&(i.tree=o.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},decls:16,vars:12,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title","mr-12"],["class","noc-gp","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-chip-xs",3,"ngClass"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["class","noc-tree-container",4,"ngIf"],[3,"icon"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-gp"],[1,"text-truncate"],["target","_blank",1,"ml-4",3,"href","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],[1,"noc-tree-container"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],["class","noc-cell noc-action-cell",4,"ngIf"],[3,"dataSource","treeControl",4,"ngIf"],[1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-action-cell"],[3,"dataSource","treeControl"],["tree",""],["class","noc-tree-node","matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","16",3,"ngClass",4,"matTreeNodeDef"],["fxLayout","row","class","noc-tree-node","matTreeNodePadding","","matTreeNodePaddingIndent","16",3,"ngClass",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","16",1,"noc-tree-node",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["mat-icon-button","","disabled","",1,"noc-icon-button"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-annotation-row"],["class","noc-cell-label",4,"ngIf"],[1,"w-100-p",3,"options","cam","activity","entity"],[1,"noc-cell-label"],["fxLayout","row","matTreeNodePadding","","matTreeNodePaddingIndent","16",1,"noc-tree-node",3,"ngClass"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),et("click",function(r){return r.stopPropagation()}),H(3,"button",3),et("click",function(){return i.toggleExpand(i.activity)}),ke(4,Gat,1,2,"fa-icon",4),ke(5,Uat,1,2,"fa-icon",4),G()(),H(6,"div",5),et("click",function(r){return r.stopPropagation()}),ue(7),G(),H(8,"div",6),ke(9,jat,5,3,"div",7),G(),H(10,"mat-chip",8)(11,"span"),ue(12),G()(),ke(13,qat,6,3,"div",9),Qe(14,"span",10),G(),ke(15,tst,22,3,"div",11),G()),2&e&&(J("ngClass",wo(10,nst,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",i.activity.displayId),W(4),J("ngIf",!i.activity.expanded),W(1),J("ngIf",i.activity.expanded),W(2),Nt(" ",i.activity.displayNumber," "),W(2),J("ngIf",i.gpNode),W(1),J("ngClass",i.activity.activityType),W(2),qo(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),W(1),J("ngIf",i.activity.hasViolations),W(2),J("ngIf",i.activity.expanded))},directives:[Oo,So,ds,ac,ko,Fo,Yi,ps,T2,_R,fR,pR,CR,gR,eP],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-tree-input.noc-level-1[_ngcontent-%COMP%]{border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line[_ngcontent-%COMP%]{width:100%;border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-t[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-left:rgba(0,0,0,.2) dotted 2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-m[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:500px;line-height:12px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding-left:45px;padding-right:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .mat-tree[_ngcontent-%COMP%]{background:repeating-linear-gradient(to right,transparent,transparent 15px,rgba(121,143,184,.3) 16px,rgba(121,143,184,.3) 16px);background-color:transparent}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;background-color:transparent}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:0;left:55px}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();function ost(t,n){if(1&t&&(H(0,"div",6)(1,"span",7),ue(2),G()()),2&t){const e=Ae();W(2),Nt(" ",null==e.cam.loading?null:e.cam.loading.message," ")}}const rst=function(){return["fas","caret-down"]};function ast(t,n){1&t&&Qe(0,"fa-icon",23),2&t&&J("icon",_i(1,rst))}const sst=function(){return["fas","sort-alpha-down"]};function cst(t,n){1&t&&Qe(0,"fa-icon",23),2&t&&J("icon",_i(1,sst))}const lst=function(){return["fas","sort-alpha-down-alt"]};function dst(t,n){1&t&&Qe(0,"fa-icon",23),2&t&&J("icon",_i(1,lst))}function ust(t,n){if(1&t){const e=Ln();H(0,"button",21),et("click",function(){const r=Dt(e).$implicit;return Ae(2).sortBy(r)}),ue(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}function hst(t,n){if(1&t){const e=Ln();H(0,"span",24),ue(1),H(2,"button",25),et("click",function(){Dt(e);const o=Ae(2);return o.reload(o.cam)}),ue(3," Reload "),G()()}if(2&t){const e=Ae(2);W(1),Nt(" ",null==e.cam.rebuildRule?null:e.cam.rebuildRule.message," ")}}const pst=function(){return["fas","exclamation-triangle"]};function fst(t,n){if(1&t){const e=Ln();H(0,"div",26)(1,"mat-chip",27),et("click",function(){return Dt(e),Ae(2).displayCamErrors()}),H(2,"div",28),Qe(3,"fa-icon",23),G(),H(4,"div",29),ue(5),G()()()}if(2&t){const e=Ae(2);W(3),J("icon",_i(2,pst)),W(2),Nt(" ",null==e.cam.violations?null:e.cam.violations.length," Errors Found ")}}function gst(t,n){if(1&t){const e=Ln();H(0,"button",30),et("click",function(){return Dt(e),Ae(2).close()}),H(1,"mat-icon"),ue(2,"close"),G(),ue(3," Close "),G()}}function mst(t,n){if(1&t){const e=Ln();H(0,"div",6)(1,"span",8)(2,"strong"),ue(3),G(),ue(4," Activities "),G(),H(5,"span",9)(6,"strong"),ue(7,"Sort By"),G(),ue(8," : "),G(),H(9,"button",10),ue(10),ke(11,ast,1,2,"fa-icon",11),G(),H(12,"button",12),et("click",function(){return Dt(e),Ae().toggleSortDirection()}),ke(13,cst,1,2,"fa-icon",11),ke(14,dst,1,2,"fa-icon",11),G(),H(15,"mat-menu",13,14),ke(17,ust,2,1,"button",15),G(),ke(18,hst,4,1,"span",16),ke(19,fst,6,3,"div",17),Qe(20,"span",18),H(21,"button",19)(22,"mat-icon"),ue(23,"more_vert"),G()(),H(24,"mat-menu",13,20)(26,"button",21),et("click",function(){return Dt(e),Ae().expandAll(!0)}),ue(27," Expand All "),G(),H(28,"button",21),et("click",function(){return Dt(e),Ae().expandAll(!1)}),ue(29," Collapse All "),G()(),ke(30,gst,4,0,"button",22),G()}if(2&t){const e=Di(16),i=Di(25),o=Ae();W(3),qo(o.cam.activities.length),W(6),J("matMenuTriggerFor",e),W(1),Nt(" ",o.cam.sortBy.label," "),W(1),J("ngIf",o.cam.expanded),W(2),J("ngIf",o.cam.sortBy.ascending),W(1),J("ngIf",!o.cam.sortBy.ascending),W(3),J("ngForOf",o.noctuaFormConfigService.activitySortField.options),W(1),J("ngIf",(null==o.cam.rebuildRule?null:o.cam.rebuildRule.signal)!==o.CamRebuildSignal.NONE),W(1),J("ngIf",(null==o.cam.violations?null:o.cam.violations.length)>0),W(2),J("matMenuTriggerFor",i),W(9),J("ngIf",o.panelDrawer)}}function _st(t,n){if(1&t&&Qe(0,"noc-activity-table",33),2&t){const e=Ae().$implicit,i=Ae();J("options",i.options)("cam",i.cam)("activity",e)}}function Cst(t,n){if(1&t&&Qe(0,"noc-activity-tree",33),2&t){const e=Ae().$implicit,i=Ae();J("options",i.options)("cam",i.cam)("activity",e)}}function vst(t,n){if(1&t&&Qe(0,"noc-activity-tree-table",33),2&t){const e=Ae().$implicit,i=Ae();J("options",i.options)("cam",i.cam)("activity",e)}}const bst=function(t){return{"noc-selected":t}};function xst(t,n){if(1&t&&(H(0,"div",31),ke(1,_st,1,3,"noc-activity-table",32),ke(2,Cst,1,3,"noc-activity-tree",32),ke(3,vst,1,3,"noc-activity-tree-table",32),G()),2&t){const e=n.$implicit,i=Ae();J("ngClass",wo(5,bst,e.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",e.displayId),W(1),J("ngIf",i.options.displayType===i.ActivityDisplayType.TABLE),W(1),J("ngIf",i.options.displayType===i.ActivityDisplayType.TREE),W(1),J("ngIf",i.options.displayType===i.ActivityDisplayType.TREE_TABLE)}}function yst(t,n){1&t&&(H(0,"div",34),ue(1," no activities present. "),G())}function wst(t,n){if(1&t&&(H(0,"div",35),Qe(1,"mat-progress-spinner",36),G()),2&t){const e=Ae();W(1),J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}let tP=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.camService=e,this._bbopGraphService=i,this.noctuaCommonMenuService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.confirmDialogService=l,this.noctuaActivityConnectorService=u,this.noctuaActivityFormService=f,this.noctuaFormDialogService=w,this.ActivityDisplayType=k2,this.ActivityType=so,this.CamRebuildSignal=h3,this.searchCriteria={},this.searchFormData=[],this.activityTypeOptions=Ft.activityType.options,this.options={},this.searchResults=[],this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this._unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}addActivity(){this.openForm(location)}openForm(e){this.noctuaActivityFormService.mfLocation=e,this.noctuaActivityFormService.initializeForm()}reload(e){this.camService.reload(e)}search(){}expandAll(e){this.cam.expandAllActivities(e)}toggleExpand(e){e.expanded=!e.expanded}openActivityConnector(e){this.camService.onCamChanged.next(this.cam),this.camService.activity=e,this.noctuaActivityConnectorService.subjectActivity=e,this.noctuaActivityConnectorService.onActivityChanged.next(e)}sortBy(e){this.cam.updateSortBy(e.id,e.label)}toggleSortDirection(){this.cam.sortBy.ascending=!this.cam.sortBy.ascending}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}resetModel(e){this.camService.resetModel(e)}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}close(){this.panelDrawer&&this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(Yc),de(ul),de(yr),de(Co),de(dd),de(NO),de(Ts),de(jc))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-table"]],inputs:{panelDrawer:"panelDrawer",cam:"cam",options:"options"},decls:7,vars:5,consts:[[1,"w-100-p","p-0","noc-cam-table"],["class","noc-summary-bar","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"w-100-p","noc-cam-table-body"],["class","w-100-p",3,"ngClass",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["class","noc-loading-container","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-cam-progress-message"],[1,"mr-12"],[1,"mr-4"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-half-button","noc-r","noc-xs",3,"matMenuTriggerFor"],[3,"icon",4,"ngIf"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-icon","noc-half-button","noc-l","noc-xs",3,"click"],[1,"noc-dropdown-menu"],["sortByOptionMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["class","noc-cam-rebuild",4,"ngIf"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["mat-icon-button","","fxFlex","40px","color","primary",1,"",3,"matMenuTriggerFor"],["activityOptionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-stroked-button","","class","noc-rounded-button noc-sm","color","primary","aria-label","Close dialog",3,"click",4,"ngIf"],[3,"icon"],[1,"noc-cam-rebuild"],["mat-button","","color","primary",1,"",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"w-100-p",3,"ngClass"],["class","noc-activities-table-body","fxLayout","row","fxLayoutAlign","start center",3,"options","cam","activity",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activities-table-body",3,"options","cam","activity"],[1,"noc-no-info"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-loading-container"],["diameter","70",1,"example-margin",3,"color","mode"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,ost,3,1,"div",1),ke(2,mst,31,11,"div",1),H(3,"div",2),ke(4,xst,4,7,"div",3),ke(5,yst,2,0,"div",4),ke(6,wst,2,2,"div",5),G()()),2&e&&(W(1),J("ngIf",null==i.cam.loading?null:i.cam.loading.status),W(1),J("ngIf",!(null!=i.cam.loading&&i.cam.loading.status)),W(2),J("ngForOf",i.cam.activities),W(1),J("ngIf",!(null!=i.cam.loading&&i.cam.loading.status)&&0===i.cam.activities.length),W(1),J("ngIf",null==i.cam?null:i.cam.loading.status))},directives:[Yi,Oo,So,Fo,il,ps,Ql,$o,nl,T2,ko,Ir,ds,ac,gat,Hat,ist,Xp],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#eb9797 solid 1px;background-color:#eb979733}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#eb9797}[_nghost-%COMP%] .noc-cam-rebuild[_ngcontent-%COMP%]{color:#956339}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;padding-right:10px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:250px}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-cam-table-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-cam-table-body[_ngcontent-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;overflow:hidden;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#f2f2f2;font-size:12px;color:#555;overflow:hidden;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-summary-bar-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]{font-size:10px;border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-action-button.noc-icon[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-action-bar[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-selected[_ngcontent-%COMP%]{border:#768bb7 solid 5px;background-color:#fff}[_nghost-%COMP%] .noc-selected[_ngcontent-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]:before{left:37px;width:5px;background-color:#97dcfc;content:""}[_nghost-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]{position:relative;background-color:#fff}[_nghost-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]:before{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%;max-height:100%;padding-bottom:300px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .noc-cams-table-header[_ngcontent-%COMP%]{padding:0;margin-bottom:5px;height:50px;min-height:50px;max-height:50px;position:sticky;position:-webkit-sticky;top:0;z-index:1000;background-color:#f7f7f7}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .cam[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:[na("activityExpand",[cr("collapsed",ti({height:"0px",minHeight:"0",display:"none"})),cr("expanded",ti({height:"*"})),Lo("expanded <=> collapsed",Mo("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();const Mst=function(){return["fas","info-circle"]},Ost=function(){return["fas","bars"]};function Sst(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"div",17)(2,"div",18),ue(3),G(),Qe(4,"span",4),H(5,"div",19),et("click",function(){const r=Dt(e).$implicit;return Ae(3).loadTerm(r)}),Qe(6,"fa-icon",20),G(),H(7,"button",21),Qe(8,"fa-icon",20),G(),H(9,"mat-menu",22,23)(11,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae(3).openSearchReplace(r)}),ue(12," Find/Replace in Model "),G(),H(13,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae(3).searchModels(r)}),ue(14," Search Models "),G(),H(15,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae(3).searchModelsByContributor(r)}),ue(16," Search My Models "),G()()()()}if(2&t){const e=n.$implicit,i=Di(10);W(3),Nt(" Replaced By ",e," "),W(3),J("icon",_i(4,Mst)),W(1),J("matMenuTriggerFor",i),W(1),J("icon",_i(5,Ost))}}function Pst(t,n){if(1&t&&(H(0,"div",10),ke(1,Sst,17,6,"div",15),G()),2&t){const e=Ae(2);W(1),J("ngForOf",e.termDetail.replacedBy)}}function Tst(t,n){if(1&t&&(H(0,"div",13)(1,"div",9),ue(2," Term Is Obsolete "),G(),ke(3,Pst,2,1,"div",14),G()),2&t){const e=Ae();W(3),J("ngIf",e.termDetail.replacedBy)}}function Est(t,n){if(1&t){const e=Ln();H(0,"div"),ue(1),H(2,"small"),ue(3),G(),H(4,"a",25),et("click",function(){const r=Dt(e).$implicit;return Ae().loadTerm(r.id)}),ue(5," View "),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label,""),W(2),Nt("(",e.id,")")}}let gre=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.noctuaLookupService=e,this.noctuaCommonMenuService=i,this.camService=o,this.noctuaSearchDialogService=r,this.noctuaUserService=a,this.noctuaReviewSearchService=l,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.termDetail={},this._unsubscribeAll=new N}ngOnInit(){this.noctuaSearchService.onDetailTermChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.loadTerm(e.term.id)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadTerm(e){this.noctuaLookupService.getTermDetail(e).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{this.termDetail=i})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[{id:e}],this.noctuaReviewSearchService.updateSearch()}openSearchReplace(e){this.noctuaLookupService.getTermDetail(this.termDetail.id).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.openLeftDrawer())}),this.noctuaLookupService.getTermDetail(e).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||this.noctuaReviewSearchService.onCamReplaceTermSearch.next(i)})}searchModels(e){const i=new cd;i.terms=[e.term];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}searchModelsByContributor(e){const i=new cd;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Sd),de(ul),de(Zr),de(U0),de(yr),de(k1),de(pl),de(ld),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-term-detail"]],inputs:{panelDrawer:"panelDrawer"},decls:30,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-item-details"],["class","noc-section-row alert alert-danger",4,"ngIf"],[1,"noc-section-row"],[1,"noc-title"],[1,"noc-description"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],[1,"noc-section-row","alert","alert-danger"],["class","noc-description",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row"],[1,""],["fxLayout","row","fxLayoutAlign","center center",1,"noc-icon",3,"click"],[3,"icon"],["mat-icon-button","",1,"noc-icon-button",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["optionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),ue(4," Term Details"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," CLOSE "),G()()(),H(10,"div",6),ke(11,Tst,4,1,"div",7),H(12,"div",8)(13,"div",9),ue(14," Term "),G(),H(15,"div",10),ue(16),H(17,"small"),ue(18),G()()(),H(19,"div",8)(20,"div",9),ue(21," Definition "),G(),H(22,"div",10),ue(23),G()(),H(24,"div",8)(25,"div",9),ue(26," Is A Type Of "),G(),H(27,"div",10),ke(28,Est,6,2,"div",11),G()()(),Qe(29,"div",12),G()),2&e&&(W(11),J("ngIf",i.termDetail.isObsolete),W(5),Nt(" ",i.termDetail.label," "),W(2),Nt("(",i.termDetail.id,")"),W(5),Nt(" ",i.termDetail.description," "),W(5),J("ngForOf",i.termDetail.rootTypes))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,$o,ps,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fbf9de;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%]{padding:12px 8px;background-color:#faf9e9}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:transparent;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;z-index:10001}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-header-title[_ngcontent-%COMP%]{max-width:200px;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:10px 8px}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:transparent;border-top:1px solid #ccc;z-index:10002;box-shadow:none}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%]{padding:10px 0}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-bottom:8px;font-weight:700;font-size:14px;text-transform:uppercase}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();const Ast=["leftDrawer"],Lst=["rightDrawer"];function Dst(t,n){1&t&&(H(0,"div",27),ue(1," Not Logged In: You can only view existing annotations "),G())}function kst(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"small",28),ue(2,"Not Saved"),G(),H(3,"button",29),et("click",function(){Dt(e);const o=Ae();return o.resetCam(o.cam)}),ue(4," Reset "),G(),H(5,"button",30),et("click",function(){Dt(e);const o=Ae();return o.storeCam(o.cam)}),ue(6," Save "),G()()}}function Ist(t,n){1&t&&Qe(0,"noc-cam-form",31),2&t&&(Ae(),J("panelDrawer",Di(28)))}function Nst(t,n){1&t&&Qe(0,"noc-copy-model",32),2&t&&(Ae(),J("panelDrawer",Di(28))("panelSide","left"))}function Rst(t,n){1&t&&Qe(0,"noc-activity-form",31),2&t&&(Ae(),J("panelDrawer",Di(28)))}function zst(t,n){if(1&t&&Qe(0,"noc-cam-table",14),2&t){const e=Ae(2);J("cam",e.cam)("options",e.tableOptions)}}function Fst(t,n){if(1&t&&(H(0,"div",33),ke(1,zst,1,2,"noc-cam-table",34),G()),2&t){const e=Ae();J("ngSwitch",e.noctuaCommonMenuService.selectedMiddlePanel),W(1),J("ngSwitchCase",e.MiddlePanel.camTable)}}function Hst(t,n){1&t&&Qe(0,"noc-term-detail",31),2&t&&(Ae(),J("panelDrawer",Di(40)))}const q_=function(t){return{"noc-active":t}},Vst=function(){return["fas","plus"]},Bst=function(){return["fas","info-circle"]},Gst=function(){return["fas","search"]},Yst=function(){return["fas","list"]},Ust=function(){return["fas","chart-bar"]},jst=function(){return["fas","clone"]},Wst=function(){return{right:!0}};let qst=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this.route=e,this.camService=i,this._bbopGraphService=o,this.noctuaDataService=r,this.noctuaReviewSearchService=a,this.noctuaSearchDialogService=l,this.noctuaUserService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=w,this.noctuaCommonMenuService=T,this.ActivityType=so,this.LeftPanel=Uc,this.MiddlePanel=d4,this.RightPanel=um,this.camToolbarOptions={showCreateButton:!0},this.searchResults=[],this.modelId="",this.resizeStyle={},this.noctuaFormConfig=Ft,this.tableOptions={displayType:k2.TREE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,editableRelation:!0,showMenu:!0},this._unsubscribeAll=new N,this.route.queryParams.pipe(Yn(this._unsubscribeAll)).subscribe(U=>{this.modelId=U.model_id||null,this.noctuaUserService.getUser(U.barista_token||null)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(U=>{void 0!==U&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.loadCam(this.modelId))})}ngOnInit(){const e=this;this.noctuaCommonMenuService.selectedMiddlePanel=d4.camTable,e.noctuaCommonMenuService.setLeftDrawer(e.leftDrawer),e.noctuaCommonMenuService.setRightDrawer(e.rightDrawer),this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||i.id!==e.cam.id||(this.cam=i,i.activities.length>0&&(this.camService.addCamEdit(this.cam),this.camService.cams=[i]))}),this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.summary=i)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}resizeValidate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<50||e.rectangle.height<50))}onResizeEnd(e){this.resizeStyle={width:`${e.rectangle.width}px`}}loadCam(e){this.cam=this.camService.getCam(e)}openSearch(){this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openTermsSummary(){this.noctuaCommonMenuService.selectLeftPanel(Uc.camTermsSummary),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCamStats(){this.noctuaCommonMenuService.selectLeftPanel(Uc.camStats),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(Uc.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(Uc.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(Uc.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}resetCam(e){const i=this,o=i.camService.reviewCamChanges(e);i.noctuaSearchDialogService.openCamReviewChangesDialog(l=>{l&&(e.loading=new Md(!0,"Resetting Model ..."),i.camService.reloadCam(e,Cu.RESET),i.noctuaReviewSearchService.onClearForm.next(!0),i.noctuaReviewSearchService.clear(),i.cam.clearHighlight())},o,{title:"Discard Unsaved Changes",message:`All your changes will be discarded for model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"OK"})}storeCam(e){const i=this,o=i.camService.reviewCamChanges(e);i.noctuaSearchDialogService.openCamReviewChangesDialog(l=>{l&&(e.loading=new Md(!0,"Saving Model ..."),i.camService.reloadCam(e,Cu.STORE),i.noctuaReviewSearchService.onClearForm.next(!0),i.noctuaReviewSearchService.clear(),i.cam.clearHighlight())},o,{title:"Save Changes?",message:`All your changes will be saved for model. Model Name:"${e.title}"`,cancelLabel:"Go Back",confirmLabel:"Submit"})}}return t.\u0275fac=function(e){return new(e||t)(de(lu),de(Zr),de(Yc),de(pm),de(k1),de(U0),de(yr),de(Co),de(Ts),de(ul))},t.\u0275cmp=vn({type:t,selectors:[["app-noctua-form"]],viewQuery:function(e,i){if(1&e&&(_o(Ast,7),_o(Lst,7)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first)}},decls:43,vars:62,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","color","primary","matTooltip","Add New Activity/Annotation",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","matMenuTriggerFor"],[3,"icon"],["xPosition","before"],["createOptionsLeftMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","","matTooltip","Model Details",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Find and replace",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","terms summary",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","GO CAM Statistics",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Make a copy of this model",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-not-loggedin","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"cam","options"],["fxLayout","row","fxLayoutAlign","start start","autosize","",1,"noc-drawer-container","w-100-p","h-100-p"],["mode","side","position","start",1,"noc-left-drawer"],["leftDrawer",""],["mwlResizeHandle","",1,"resize-handle-right",3,"resizeEdges"],[1,"h-100-p",3,"ngSwitch"],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],[3,"panelDrawer","hidden"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p","h-100-p"],["class","w-100-p h-100-p","noctuaPerfectScrollbar","",3,"ngSwitch",4,"ngIf"],["mode","side","position","end",1,"noc-right-drawer"],["rightDrawer",""],["fxLayout","row","fxLayoutAlign","center center",1,"noc-not-loggedin"],[1,"mr-16"],["mat-raised-button","","fxFlex","100px","color","warn",1,"noc-rounded-button","noc-half-button","noc-r","noc-sm",3,"click"],["mat-raised-button","","fxFlex","100px","color","primary",1,"noc-rounded-button","noc-half-button","noc-l","noc-sm","mr-8","p-0",3,"click"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"],["noctuaPerfectScrollbar","",1,"w-100-p","h-100-p",3,"ngSwitch"],[3,"cam","options",4,"ngSwitchCase"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1)(2,"button",2),Qe(3,"fa-icon",3),G(),H(4,"mat-menu",4,5)(6,"a",6),et("click",function(){return i.openActivityForm(i.ActivityType.default)}),ue(7," Create Activity "),G(),H(8,"a",6),et("click",function(){return i.openActivityForm(i.ActivityType.bpOnly)}),ue(9," Create New BP Annotation "),G(),H(10,"a",6),et("click",function(){return i.openActivityForm(i.ActivityType.ccOnly)}),ue(11," Create New CC Annotation "),G()(),H(12,"button",7),et("click",function(){return i.openCamForm()}),Qe(13,"fa-icon",3),G(),H(14,"button",8),et("click",function(){return i.openSearch()}),Qe(15,"fa-icon",3),G(),H(16,"button",9),et("click",function(){return i.openTermsSummary()}),Qe(17,"fa-icon",3),G(),H(18,"button",10),et("click",function(){return i.openCamStats()}),Qe(19,"fa-icon",3),G(),H(20,"button",11),et("click",function(){return i.openCopyModel()}),Qe(21,"fa-icon",3),G()(),H(22,"div",12),ke(23,Dst,2,0,"div",13),ke(24,kst,7,0,"div",13),Qe(25,"noc-cam-toolbar",14),H(26,"mat-drawer-container",15)(27,"mat-drawer",16,17),Qe(29,"div",18),H(30,"div",19),ke(31,Ist,1,1,"noc-cam-form",20),ke(32,Nst,1,2,"noc-copy-model",21),ke(33,Rst,1,1,"noc-activity-form",20),Qe(34,"noc-find-replace",22)(35,"noc-cam-terms",22)(36,"noc-cam-stats",22),G()(),H(37,"mat-drawer-content",23),ke(38,Fst,2,2,"div",24),G(),H(39,"mat-drawer",25,26)(41,"div",19),ke(42,Hst,1,1,"noc-term-detail",20),G()()()()()),2&e){const o=Di(5),r=Di(28);W(2),J("ngClass",wo(43,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.activityForm))("matTooltipPosition","above")("matTooltipShowDelay",1500)("matMenuTriggerFor",o),W(1),J("icon",_i(45,Vst)),W(9),J("ngClass",wo(46,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camForm))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(48,Bst)),W(1),J("ngClass",wo(49,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.findReplace))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(51,Gst)),W(1),J("ngClass",wo(52,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camTermsSummary))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(54,Yst)),W(1),J("ngClass",wo(55,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camStats))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(57,Ust)),W(1),J("ngClass",wo(58,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.copyModel))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(60,jst)),W(2),J("ngIf",!i.noctuaUserService.user),W(1),J("ngIf",i.noctuaUserService.user&&(null==i.cam?null:i.cam.modified)&&(null==i.cam?null:i.cam.activities.length)>0),W(1),J("cam",i.cam)("options",i.camToolbarOptions),W(4),J("resizeEdges",_i(61,Wst)),W(1),J("ngSwitch",i.noctuaCommonMenuService.selectedLeftPanel),W(1),J("ngSwitchCase",i.LeftPanel.camForm),W(1),J("ngSwitchCase",i.LeftPanel.copyModel),W(1),J("ngSwitchCase",i.LeftPanel.activityForm),W(1),J("panelDrawer",r)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.findReplace),W(1),J("panelDrawer",r)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.camTermsSummary),W(1),J("panelDrawer",r)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.camStats),W(2),J("ngIf",i.cam),W(3),J("ngSwitch",i.noctuaCommonMenuService.selectedRightPanel),W(1),J("ngSwitchCase",i.RightPanel.termDetail)}},directives:[Oo,So,Fo,Tl,ds,ac,il,ps,Ql,nl,Yi,ko,aR,Rf,Nf,tne,bd,iu,cS,_S,MR,Sne,Pne,Wot,A0,ts,tP,gre],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;font-size:20px;color:#3b599880}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:sc}}),t})();function $st(t,n){if(1&t&&(H(0,"div",31),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function Xst(t,n){if(1&t&&(H(0,"div",28)(1,"mat-radio-button",29),ue(2),G(),ke(3,$st,2,1,"div",30),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.relationship?null:i.connectorActivity.rule.relationship.id))("value",e),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function Qst(t,n){if(1&t&&(H(0,"div",28)(1,"mat-radio-button",35),ue(2),G()()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.effectDirection?null:i.connectorActivity.rule.effectDirection.id)),W(1),Nt(" ",e.label," ")}}function Zst(t,n){if(1&t&&(H(0,"div",15)(1,"div",16)(2,"p"),ue(3,"Effect Direction"),G()(),H(4,"mat-radio-group",32),ke(5,Qst,3,3,"div",18),G(),H(6,"div",33)(7,"div",34),ue(8," The mechanism regulation should be known, so it should be possible to pick the direction of the regulation. "),G()()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.effectDirection.options)}}function Kst(t,n){if(1&t&&(H(0,"div",31),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function Jst(t,n){if(1&t&&(H(0,"div",28)(1,"mat-radio-button",35),ue(2),G(),ke(3,Kst,2,1,"div",30),G()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.directness?null:i.connectorActivity.rule.directness.id)),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function ect(t,n){if(1&t&&(H(0,"div",15)(1,"div",16)(2,"p"),ue(3,"Directness "),G()(),H(4,"mat-radio-group",36),ke(5,Jst,4,4,"div",18),G()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.directness.options)}}function tct(t,n){if(1&t&&(H(0,"mat-option",49)(1,"div",50)(2,"div",51),ue(3),G(),Qe(4,"span",3),H(5,"div",52),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function nct(t,n){if(1&t&&(H(0,"div",37)(1,"div",38)(2,"div",39)(3,"mat-form-field",40)(4,"mat-label"),ue(5,"Evidence"),G(),Qe(6,"textarea",41),H(7,"mat-autocomplete",42,43),ke(9,tct,7,3,"mat-option",44),G()()(),H(10,"div",45)(11,"mat-form-field",40)(12,"mat-label"),ue(13,"Reference"),G(),Qe(14,"textarea",46),G()(),H(15,"div",47)(16,"mat-form-field",40)(17,"mat-label"),ue(18,"With"),G(),Qe(19,"textarea",48),G()(),Qe(20,"span",3),G()()),2&t){const e=n.index,i=Di(8),o=Ae(2);W(1),J("formGroupName",e),W(5),J("matAutocomplete",i),W(1),J("displayWith",o.evidenceDisplayFn),W(2),J("ngForOf",null==o.connectorActivity||null==o.connectorActivity.predicate?null:o.connectorActivity.predicate.evidenceLookup.results)}}function ict(t,n){if(1&t&&(H(0,"div",10)(1,"div",11)(2,"div",12),Qe(3,"noc-graph-preview",13),G(),H(4,"div",14)(5,"div",15)(6,"div",16)(7,"p"),ue(8,"Relationship"),G()(),H(9,"mat-radio-group",17),ke(10,Xst,4,4,"div",18),G()(),ke(11,Zst,9,1,"div",19),ke(12,ect,6,1,"div",19),G(),H(13,"div",20)(14,"div",21),ue(15," Suggested Causal Relation "),G()(),H(16,"div",22)(17,"span",23),ue(18),G()(),H(19,"div",24)(20,"div",21),ue(21," Evidence "),G()(),H(22,"div",25)(23,"div",26),ke(24,nct,21,4,"div",27),G()()()()),2&t){const e=Ae();let i;W(3),J("nodes",null==e.connectorActivity?null:e.connectorActivity.graphPreview.nodes)("edges",null==e.connectorActivity?null:e.connectorActivity.graphPreview.edges),W(7),J("ngForOf",e.relationshipOptions),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.effectDirection),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.directness),W(6),Nt(" ",null==e.connectorActivity||null==e.connectorActivity.predicate.edge?null:e.connectorActivity.predicate.edge.label," "),W(6),J("ngForOf",null==(i=e.connectorFormGroup.get("evidenceFormArray"))?null:i.controls)}}function oct(t,n){if(1&t){const e=Ln();H(0,"button",53),et("click",function(){return Dt(e),Ae().checkErrors()}),ue(1,' Why is the "Save" button disabled? '),G()}}let rct=(()=>{class t{constructor(e,i,o,r,a,l){this.confirmDialogService=e,this.noctuaActivityConnectorService=i,this.noctuaUserService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.ConnectorType=Od,this.connectorState=f3,this.searchCriteria={},this._unsubscribeAll=new N}ngOnInit(){this.connectorFormSub=this.noctuaActivityConnectorService.connectorFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.connectorFormGroup=e,this.connectorActivity=this.noctuaActivityConnectorService.connectorActivity,this.relationshipOptions=this.noctuaFormConfigService[this.connectorActivity.connectorType+"Relationship"].options)})}openActivityConnector(e){this.noctuaActivityConnectorService.initializeForm(this.noctuaActivityConnectorService.objectActivity.id,e.id)}save(){const e=this;this.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully created.","OK"),this.noctuaActivityConnectorService.initializeForm(e.noctuaActivityConnectorService.subjectActivity.id,e.noctuaActivityConnectorService.objectActivity.id),this.closeDialog&&this.closeDialog()})}editActivity(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully updated.","OK")})})}deleteConnectorEdge(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.deleteConnectorEdge(this.connectorActivity).then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully deleted.","OK")})})}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(dd),de(NO),de(yr),de(jc),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-connector"]],inputs:{panelDrawer:"panelDrawer",closeDialog:"closeDialog"},decls:16,vars:4,consts:[["name","connectorFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-connector-form",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["mat-button","","color","warn","class","noc-rounded-button noc-sm",3,"click",4,"ngIf"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"disabled","click"],[1,"noc-connector-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","w-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-section-body","w-100-p","p-0"],[1,"noc-graph-preview",3,"nodes","edges"],[1,"noc-form-section","p-0","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"px-8","noc-group-row"],[1,"noc-title"],["fxFlex","","formControlName","relationship","fxLayout","column","fxLayoutAlign","start start"],["class","noc-radio-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","px-8 noc-group-row","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","noc-bt"],[1,"noc-section-heading"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-note","mb-4"],[1,"noc-description"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-0"],["fxLayout","column",1,"px-12","noc-group-row"],["formArrayName","evidenceFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-radio-row"],[1,"noc-radio-button-rounded","noc-label",3,"checked","value"],["fxFlex","","class","noc-hint",4,"ngIf"],["fxFlex","",1,"noc-hint"],["formControlName","effectDirection","fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","column","fxLayoutAlign","center start"],[1,"noc-hint","noc-sm"],[1,"noc-radio-button-rounded","noc-label",3,"value","checked"],["fxFlex","","formControlName","directness","fxLayout","column","fxLayoutAlign","start start"],["formArrayName","evidenceFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"formGroupName"],["fxFlex","55",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","25",1,"p-4"],["matInput","","formControlName","reference","rows","2"],["fxFlex","","fxFlex","20",1,"p-4"],["matInput","","formControlName","with","rows","2"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"],["mat-button","","color","warn",1,"noc-rounded-button","noc-sm",3,"click"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Causal Relation Form"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ke(10,ict,25,7,"div",6),G(),H(11,"div",7),ke(12,oct,2,0,"button",8),Qe(13,"span",3),H(14,"button",9),et("click",function(){return i.save()}),ue(15,"Save"),G()()()),2&e&&(J("formGroup",i.connectorFormGroup),W(10),J("ngIf",i.connectorFormGroup),W(2),J("ngIf",!i.connectorFormGroup.valid),W(2),J("disabled",!(null!=i.connectorActivity&&null!=i.connectorActivity.predicate.edge&&i.connectorActivity.predicate.edge.id)))},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,Yi,_ne,gM,Pl,Xl,$o,mM,k0,Gf,id,yd,E2,ed,kh,I0,J1],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-radio-button-rounded[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .noc-connector-form[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:10px 0;border-bottom:rgba(59,89,152,.6) solid 1px;color:#000;font-size:12px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]{width:100%;padding:5px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-border-0[_ngcontent-%COMP%]{border:none!important}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{width:170px;min-width:170px;max-width:170px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint[_ngcontent-%COMP%]{margin-left:12px;font-size:12px;max-width:300px;color:#676767;font-style:italic}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint.noc-sm[_ngcontent-%COMP%]{max-width:260px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%]{margin-bottom:12px;width:100%;padding:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;background-color:#fff;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-bottom:12px;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-graph-preview[_ngcontent-%COMP%]{height:100px;width:100%}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%]{width:100%;background-color:#dfe3ee99}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%]{padding:20px 0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{padding-left:10px;font-size:12px}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%]{color:#bbb}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ccc}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:200px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{padding:4px;height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:14px;color:#777}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding:4px;font-size:12px;width:100%;border-bottom:#bbb solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%]{height:180px;min-height:180px;max-height:180px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:8px;width:180px;min-width:180px;max-width:180px;height:110px;min-height:110px;max-height:110px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:initial;background-color:#fff}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding:4px;height:55px;min-height:55px;max-height:55px;font-size:10px;text-align:center;border-bottom:2px solid #2e6f9a}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{color:#2e6f9a;margin-top:40px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%]{height:120px;min-height:120px;max-height:120px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:4px;width:150px;min-width:150px;max-width:150px;height:100px;min-height:100px;max-height:100px;font-size:10px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{height:50px;min-height:50px;max-height:50px;border-bottom:1px solid #2e6f9a}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{margin-top:35px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-row[_ngcontent-%COMP%]{height:150px;min-height:150px;max-height:150px;background-color:#f5f5f5;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}']}),t})(),mre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,AL,D6,du,L0,LM]]}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,xd,Yf,$p,D1]]}),t})(),$_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,xd,Yf,$p,D1,aS,Az]]}),t})();const act=[{path:"f",component:qst}];let M4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[jc],imports:[[D1,aS,va,xd.forChild(act),mre,Az,$_,sre,X9,du,Z9,K9,nC,D6,jg,L0,J9,k6,cC,lC,dC,Kd,zf,F6,fC,R6,RWe,oje]]}),t})();!function Mc(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>n.map(rs),i.pipeDefs=()=>e.map($s)}(bne,[Yi,MR,rct],[]),C(23652);var Nd=C(77795),As=C(73148);const{round:sct,floor:cct,PI:_re}=Math,lct={linear:function(t,n,e){return(e-t[0])/(t[1]-t[0])*(n[1]-n[0])+n[0]||0}},K0=function(t){return t%360+(t<0?360:0)},Im=function(t,n){return n*sct(t/n)},nP=function(t){return 180*t/_re%360},H2=function(t,n){return(t=(n=n||!1)?t:t%360)*_re/180},Lz=function(t,n){if(void 0===n)n=void 0===t?1:t,t=0;else if(ni||new Ho(t,e).length()>i)},divideAt:function(t){var n=this.pointAt(t);return[new Ho(this.start,n),new Ho(n,this.end)]},divideAtLength:function(t){var n=this.pointAtLength(t);return[new Ho(this.start,n),new Ho(n,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,n){if(t&&t.intersectionWithLine){var e=t.intersectionWithLine(this,n);return e&&t instanceof Ho&&(e=e[0]),e}return null},intersectionWithLine:function(t){var n=new wn(this.end.x-this.start.x,this.end.y-this.start.y),e=new wn(t.end.x-t.start.x,t.end.y-t.start.y),i=n.x*e.y-n.y*e.x,o=new wn(t.start.x-this.start.x,t.start.y-this.start.y),r=o.x*e.y-o.y*e.x,a=o.x*n.y-o.y*n.x;if(0===i||r*i<0||a*i<0)return null;if(i>0){if(r>i||a>i)return null}else if(r=1?e.clone():n.lerp(e,t)},pointAtLength:function(t){var n=this.start,e=this.end,i=!0;t<0&&(i=!1,t=-t);var o=this.length();return t>=o?i?e.clone():n.clone():this.pointAt((i?t:o-t)/o)},pointOffset:function(t){t=new wn(t);var n=this.start,e=this.end;return((e.x-n.x)*(t.y-n.y)-(e.y-n.y)*(t.x-n.x))/this.length()},rotate:function(t,n){return this.start.rotate(t,n),this.end.rotate(t,n),this},round:function(t){return this.start.round(t),this.end.round(t),this},scale:function(t,n,e){return this.start.scale(t,n,e),this.end.scale(t,n,e),this},setLength:function(t){var n=this.length();if(!n)return this;var e=t/n;return this.scale(e,e,this.start)},squaredLength:function(){return kz(this.start,this.end)},tangentAt:function(t){if(!this.isDifferentiable())return null;var n=this.start,e=this.end,i=this.pointAt(t),o=new Ho(n,e);return o.translate(i.x-n.x,i.y-n.y),o},tangentAtLength:function(t){if(!this.isDifferentiable())return null;var n=this.start,e=this.end,i=this.pointAtLength(t),o=new Ho(n,e);return o.translate(i.x-n.x,i.y-n.y),o},toString:function(){return this.start.toString()+" "+this.end.toString()},serialize:function(){return this.start.serialize()+" "+this.end.serialize()},translate:function(t,n){return this.start.translate(t,n),this.end.translate(t,n),this},vector:function(){return new wn(this.end.x-this.start.x,this.end.y-this.start.y)}},Ho.prototype.intersection=Ho.prototype.intersect;const Nm=Ho,{sqrt:Ore,round:rP,pow:pct}=Math,d2=function(t,n,e){return this instanceof d2?t instanceof d2?new d2(new wn(t.x,t.y),t.a,t.b):(t=new wn(t),this.x=t.x,this.y=t.y,this.a=n,void(this.b=e)):new d2(t,n,e)};d2.fromRect=function(t){return t=new Po(t),new d2(t.center(),t.width/2,t.height/2)},d2.prototype={type:Aa.Ellipse,bbox:function(){return new Po(this.x-this.a,this.y-this.b,2*this.a,2*this.b)},center:function(){return new wn(this.x,this.y)},clone:function(){return new d2(this)},containsPoint:function(t){return this.normalizedDistance(t)<=1},equals:function(t){return!!t&&t.x===this.x&&t.y===this.y&&t.a===this.a&&t.b===this.b},inflate:function(t,n){return void 0===t&&(t=0),void 0===n&&(n=t),this.a+=2*t,this.b+=2*n,this},intersectionWithLine:function(t){var n=[],e=t.start,i=t.end,o=this.a,r=this.b,a=t.vector(),l=e.difference(new wn(this)),u=new wn(a.x/(o*o),a.y/(r*r)),f=new wn(l.x/(o*o),l.y/(r*r)),w=a.dot(u),T=a.dot(f),ie=T*T-w*(l.dot(f)-1);if(ie<0)return null;if(ie>0){var se=Ore(ie),Me=(-T-se)/w,we=(-T+se)/w;if((Me<0||1a.x+o/2||ea.x?i-30:i+30)-u)/(r*r*(e-l))+l:T=r*r/(i-u)-r*r*(e-l)*((U=i>a.y?e+30:e-30)-l)/(o*o*(i-u))+u,new wn(U,T).theta(t)},toString:function(){return new wn(this.x,this.y).toString()+" "+this.a+" "+this.b}};const fct=d2,{abs:Sre,cos:gct,sin:mct,min:Gv,max:Pre,round:aP,pow:_ct}=Math,Po=function(t,n,e,i){if(!(this instanceof Po))return new Po(t,n,e,i);Object(t)===t&&(n=t.y,e=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===n?0:n,this.width=void 0===e?0:e,this.height=void 0===i?0:i};Po.fromEllipse=function(t){return t=new d2(t),new Po(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},Po.fromPointUnion=function(...t){if(0===t.length)return null;const n=new wn;let e,i,o,r;e=i=1/0,o=r=-1/0;for(let a=0;ao&&(o=l),ur&&(r=u)}return new Po(e,i,o-e,r-i)},Po.fromRectUnion=function(...t){if(0===t.length)return null;const n=new Po;let e,i,o,r;e=i=1/0,o=r=-1/0;for(let a=0;ao&&(o=f),ur&&(r=w)}return new Po(e,i,o-e,r-i)},Po.prototype={type:Aa.Rect,bbox:function(t){return this.clone().rotateAroundCenter(t)},rotateAroundCenter:function(t){if(!t)return this;const{width:n,height:e}=this,i=H2(t),o=Sre(mct(i)),r=Sre(gct(i)),a=n*r+e*o,l=n*o+e*r;return this.x+=(n-a)/2,this.y+=(e-l)/2,this.width=a,this.height=l,this},bottomLeft:function(){return new wn(this.x,this.y+this.height)},bottomLine:function(){return new Ho(this.bottomLeft(),this.bottomRight())},bottomMiddle:function(){return new wn(this.x+this.width/2,this.y+this.height)},center:function(){return new wn(this.x+this.width/2,this.y+this.height/2)},clone:function(){return new Po(this)},containsPoint:function(t){return(t=new wn(t)).x>=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var n=new Po(this).normalize(),e=new Po(t).normalize(),i=n.width,o=n.height,r=e.width,a=e.height;if(!(i&&o&&r&&a))return!1;var l=n.x,u=n.y,f=e.x,w=e.y;return r+=f,i+=l,a+=w,o+=u,l<=f&&r<=i&&u<=w&&a<=o},corner:function(){return new wn(this.x+this.width,this.y+this.height)},equals:function(t){var n=new Po(this).normalize(),e=new Po(t).normalize();return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height},inflate:function(t,n){return void 0===t&&(t=0),void 0===n&&(n=t),this.x-=t,this.y-=n,this.width+=2*t,this.height+=2*n,this},intersect:function(t){var n=this.origin(),e=this.corner(),i=t.origin(),o=t.corner();if(o.x<=n.x||o.y<=n.y||i.x>=e.x||i.y>=e.y)return null;var r=Pre(n.x,i.x),a=Pre(n.y,i.y);return new Po(r,a,Gv(e.x,o.x)-r,Gv(e.y,o.y)-a)},intersectionWithLine:function(t){var r,a,n=this,e=[n.topLine(),n.rightLine(),n.bottomLine(),n.leftLine()],i=[],o=[],l=e.length;for(a=0;a0?i:null},intersectionWithLineFromCenterToPoint:function(t,n){t=new wn(t);var i,e=new wn(this.x+this.width/2,this.y+this.height/2);n&&t.rotate(e,n);for(var o=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],r=new Ho(e,t),a=o.length-1;a>=0;--a){var l=o[a].intersection(r);if(null!==l){i=l;break}}return i&&n&&i.rotate(e,-n),i},leftLine:function(){return new Ho(this.topLeft(),this.bottomLeft())},leftMiddle:function(){return new wn(this.x,this.y+this.height/2)},maxRectScaleToFit:function(t,n){t=new Po(t),n||(n=t.center());var e,i,o,r,a,l,u,f,w=n.x,T=n.y;e=i=o=r=a=l=u=f=1/0;var U=t.topLeft();U.xw&&(i=(this.x+this.width-w)/(ie.x-w)),ie.y>T&&(l=(this.y+this.height-T)/(ie.y-T));var se=t.topRight();se.x>w&&(o=(this.x+this.width-w)/(se.x-w)),se.yT&&(f=(this.y+this.height-T)/(Me.y-T)),{sx:Gv(e,i,o,r),sy:Gv(a,l,u,f)}},maxRectUniformScaleToFit:function(t,n){var e=this.maxRectScaleToFit(t,n);return Gv(e.sx,e.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,n=this.y,e=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,e=-this.width),this.height<0&&(n=this.y+this.height,i=-this.height),this.x=t,this.y=n,this.width=e,this.height=i,this},offset:function(t,n){return wn.prototype.offset.call(this,t,n)},origin:function(){return new wn(this.x,this.y)},pointNearestToPoint:function(t){if(t=new wn(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new wn(this.x+this.width,t.y);case"left":return new wn(this.x,t.y);case"bottom":return new wn(t.x,this.y+this.height);case"top":return new wn(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new Ho(this.topRight(),this.bottomRight())},rightMiddle:function(){return new wn(this.x+this.width,this.y+this.height/2)},round:function(t){let n=1;if(t)switch(t){case 1:n=10;break;case 2:n=100;break;case 3:n=1e3;break;default:n=_ct(10,t)}return this.x=aP(this.x*n)/n,this.y=aP(this.y*n)/n,this.width=aP(this.width*n)/n,this.height=aP(this.height*n)/n,this},scale:function(t,n,e){return e=this.origin().scale(t,n,e),this.x=e.x,this.y=e.y,this.width*=t,this.height*=n,this},sideNearestToPoint:function(t){t=new wn(t);var e=this.x+this.width-t.x,i=t.y-this.y,r=t.x-this.x,a="left";return er.x)&&(r=t[e]);var a=[];for(e=0;e2&&a.unshift(a[a.length-1]);for(var U,ie,se,Me,we,He,w={},T=[];0!==a.length;)if(ie=(U=a.pop())[0],!w.hasOwnProperty(U[0]+"@@"+U[1]))for(var Be=!1;!Be;)if(T.length<2)T.push(U),Be=!0;else{Me=(se=T.pop())[0];var me=(He=(we=T.pop())[0]).cross(Me,ie);if(me<0)T.push(we),T.push(se),T.push(U),Be=!0;else if(0===me){var qe=Me.angleBetween(He,ie);n(qe-180)<1e-10||Me.equals(ie)||He.equals(Me)?(w[se[0]+"@@"+se[1]]=Me,T.push(we)):n((qe+1)%360-1)<1e-10&&(T.push(we),a.push(se))}else w[se[0]+"@@"+se[1]]=Me,T.push(we)}T.length>2&&T.pop();var rt,xt=-1;for(i=T.length,e=0;e0){var an=T.slice(xt),pn=T.slice(0,xt);jt=an.concat(pn)}else jt=T;var yn=[];for(i=jt.length,e=0;en&&(n=u),fi&&(i=f)}return new Po(t,e,n-t,i-e)},clone:function(){return new cc(Ere(this.points))},closestPoint:function(t){var n=this.closestPointLength(t);return this.pointAtLength(n)},closestPointLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e||1===e)return 0;for(var i,o=1/0,r=0,a=e-1,l=0;lU.y||o>T.y&&o<=U.y){var ie=T.x-i>U.x-i?T.x-i:U.x-i;ie>=0&&(w.x=i+ie,w.y=o,f.start=t,f.end=w,u.intersect(f)&&l++)}r=a}return l%2==1},close:function(){const{start:t,end:n,points:e}=this;return t&&n&&!t.equals(n)&&e.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new cc(Are(this.points))},equals:function(t){if(!t)return!1;var n=this.points,i=n.length;if(t.points.length!==i)return!1;for(var o=0;o0?e:null},isDifferentiable:function(){var t=this.points,n=t.length;if(0===n)return!1;for(var e=new Ho,i=n-1,o=0;o=1)return n[e-1].clone();var i=this.length();return this.pointAtLength(i*t)},pointAtLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e)return null;if(1===e)return n[0].clone();var i=!0;t<0&&(i=!1,t=-t);for(var o=0,r=e-1,a=0;a1&&(t=1);var i=this.length();return this.tangentAtLength(i*t)},tangentAtLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e||1===e)return null;var i=!0;t<0&&(i=!1,t=-t);for(var o,r=0,a=e-1,l=0;l=1)return this.divideAtT(1);var e=this.tAt(t,n);return this.divideAtT(e)},divideAtLength:function(t,n){var e=this.tAtLength(t,n);return this.divideAtT(e)},divideAtT:function(t){var n=this.start,e=this.controlPoint1,i=this.controlPoint2,o=this.end;if(t<=0)return[new Ls(n,n,n,n),new Ls(n,e,i,o)];if(t>=1)return[new Ls(n,e,i,o),new Ls(o,o,o,o)];var r=this.getSkeletonPoints(t),u=r.divider,f=r.dividerControlPoint1,w=r.dividerControlPoint2;return[new Ls(n,r.startControlPoint1,r.startControlPoint2,u),new Ls(u,f,w,o)]},endpointDistance:function(){return this.start.distance(this.end)},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.controlPoint1.x===t.controlPoint1.x&&this.controlPoint1.y===t.controlPoint1.y&&this.controlPoint2.x===t.controlPoint2.x&&this.controlPoint2.y===t.controlPoint2.y&&this.end.x===t.end.x&&this.end.y===t.end.y},getSkeletonPoints:function(t){var n=this.start,e=this.controlPoint1,i=this.controlPoint2,o=this.end;if(t<=0)return{startControlPoint1:n.clone(),startControlPoint2:n.clone(),divider:n.clone(),dividerControlPoint1:e.clone(),dividerControlPoint2:i.clone()};if(t>=1)return{startControlPoint1:e.clone(),startControlPoint2:i.clone(),divider:o.clone(),dividerControlPoint1:o.clone(),dividerControlPoint2:o.clone()};var r=new Ho(n,e).pointAt(t),a=new Ho(e,i).pointAt(t),l=new Ho(i,o).pointAt(t),u=new Ho(r,a).pointAt(t),f=new Ho(a,l).pointAt(t);return{startControlPoint1:r,startControlPoint2:u,divider:new Ho(u,f).pointAt(t),dividerControlPoint1:f,dividerControlPoint2:l}},getSubdivisions:function(t){var n=void 0===(t=t||{}).precision?this.PRECISION:t.precision,e=[new Ls(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===n)return e;for(var i=this.endpointDistance(),o=Fz(10,-n),r=0;;){r+=1;for(var a=[],l=e.length,u=0;u1&&(0!==T?(T-i)/T:0)=1)return this.end.clone();var e=this.tAt(t,n);return this.pointAtT(e)},pointAtLength:function(t,n){var e=this.tAtLength(t,n);return this.pointAtT(e)},pointAtT:function(t){return t<=0?this.start.clone():t>=1?this.end.clone():this.getSkeletonPoints(t).divider},PRECISION:3,round:function(t){return this.start.round(t),this.controlPoint1.round(t),this.controlPoint2.round(t),this.end.round(t),this},scale:function(t,n,e){return this.start.scale(t,n,e),this.controlPoint1.scale(t,n,e),this.controlPoint2.scale(t,n,e),this.end.scale(t,n,e),this},tangentAt:function(t,n){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);var e=this.tAt(t,n);return this.tangentAtT(e)},tangentAtLength:function(t,n){if(!this.isDifferentiable())return null;var e=this.tAtLength(t,n);return this.tangentAtT(e)},tangentAtT:function(t){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);var n=this.getSkeletonPoints(t),e=n.startControlPoint2,o=n.divider,r=new Ho(e,n.dividerControlPoint1);return r.translate(o.x-e.x,o.y-e.y),r},tAt:function(t,n){if(t<=0)return 0;if(t>=1)return 1;var e=void 0===(n=n||{}).precision?this.PRECISION:n.precision,o={precision:e,subdivisions:void 0===n.subdivisions?this.getSubdivisions({precision:e}):n.subdivisions},r=this.length(o);return this.tAtLength(r*t,o)},tAtLength:function(t,n){var e=!0;t<0&&(e=!1,t=-t);for(var a,l,u,f,w,i=void 0===(n=n||{}).precision?this.PRECISION:n.precision,o=void 0===n.subdivisions?this.getSubdivisions({precision:i}):n.subdivisions,r={precision:i,subdivisions:o},T=0,U=o.length,ie=1/U,se=0;se1&&(t=1);var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.divideAtLength(l*t,a)},divideAtLength:function(t,n){var e=this.segments.length;if(0===e)return null;var i=!0;t<0&&(i=!1,t=-t);var a,l,f,w,T,U,o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,r=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions,u=0;for(a=0;a=e||t<0)throw new Error("Index out of range.");return n[t]},getSegmentSubdivisions:function(t){for(var n=this.segments,e=n.length,i=void 0===(t=t||{}).precision?this.PRECISION:t.precision,o=[],r=0;ri||t<0)throw new Error("Index out of range.");var o,r=null,a=null;if(0!==i&&(a=t>=1?(r=e[t-1]).nextSegment:e[0]),Array.isArray(n)){if(!(n=n.reduce(function(w,T){return w.concat(T)},[]))[0].isSegment)throw new Error("Segments required.");for(var l=n.length,u=0;u=i?(o=i-1,r=1):r<0?r=0:r>1&&(r=1);for(var a=void 0===(n=n||{}).precision?this.PRECISION:n.precision,l=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:a}):n.segmentSubdivisions,f=0,w=0;w=1)return this.end.clone();var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.pointAtLength(l*t,a)},pointAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;if(0===t)return this.start.clone();var o=!0;t<0&&(o=!1,t=-t);for(var l,r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,u=0,f=0;f=e)return n[e-1].pointAtT(1);var o=t.value;return o<0?o=0:o>1&&(o=1),n[i].pointAtT(o)},PRECISION:3,prepareSegment:function(t,n,e){t.previousSegment=n,t.nextSegment=e,n&&(n.nextSegment=t),e&&(e.previousSegment=t);var i=t;return t.isSubpathStart&&(t.subpathStartSegment=t,i=e),i&&this.updateSubpathStartSegment(i),t},removeSegment:function(t){var n=this.segments,e=n.length;if(0===e)throw new Error("Path has no segments.");if(t<0&&(t=e+t),t>=e||t<0)throw new Error("Index out of range.");var i=n.splice(t,1)[0],o=i.previousSegment,r=i.nextSegment;o&&(o.nextSegment=r),r&&(r.previousSegment=o),i.isSubpathStart&&r&&this.updateSubpathStartSegment(r)},replaceSegment:function(t,n){var e=this.segments,i=e.length;if(0===i)throw new Error("Path has no segments.");if(t<0&&(t=i+t),t>=i||t<0)throw new Error("Index out of range.");var o,r=e[t],a=r.previousSegment,l=r.nextSegment,u=r.isSubpathStart;if(Array.isArray(n)){if(!(n=n.reduce(function(U,ie){return U.concat(ie)},[]))[0].isSegment)throw new Error("Segments required.");e.splice(t,1);for(var f=n.length,w=0;w1&&(t=1);var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.segmentIndexAtLength(l*t,a)},segmentIndexAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;var o=!0;t<0&&(o=!1,t=-t);for(var r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,l=null,u=0,f=0;f1&&(t=1);var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.tangentAtLength(l*t,a)},tangentAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;var o=!0;t<0&&(o=!1,t=-t);for(var l,r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,u=0,f=0;f=e)return n[e-1].tangentAtT(1);var o=t.value;return o<0?o=0:o>1&&(o=1),n[i].tangentAtT(o)},toPoints:function(t){var n=this.segments,e=n.length;if(0===e)return null;for(var o=void 0===(t=t||{}).segmentSubdivisions?this.getSegmentSubdivisions({precision:void 0===t.precision?this.PRECISION:t.precision}):t.segmentSubdivisions,r=[],a=[],l=0;l0){var w=f.map(function(T){return T.start});Array.prototype.push.apply(a,w)}else a.push(u.start)}else a.length>0&&(a.push(n[l-1].end),r.push(a),a=[])}return a.length>0&&(a.push(this.end),r.push(a)),r},toPolylines:function(t){var n=[],e=this.toPoints(t);if(!e)return null;for(var i=0,o=e.length;i=0;e--){var i=t[e];if(i.isVisible)return i.end}return t[n-1].end}});var Rm={bbox:function(){throw new Error("Declaration missing for virtual function.")},clone:function(){throw new Error("Declaration missing for virtual function.")},closestPoint:function(){throw new Error("Declaration missing for virtual function.")},closestPointLength:function(){throw new Error("Declaration missing for virtual function.")},closestPointNormalizedLength:function(){throw new Error("Declaration missing for virtual function.")},closestPointT:function(t){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(t);throw new Error("Neither closestPointT() nor closestPointNormalizedLength() function is implemented.")},closestPointTangent:function(){throw new Error("Declaration missing for virtual function.")},divideAt:function(){throw new Error("Declaration missing for virtual function.")},divideAtLength:function(){throw new Error("Declaration missing for virtual function.")},divideAtT:function(t){if(this.divideAt)return this.divideAt(t);throw new Error("Neither divideAtT() nor divideAt() function is implemented.")},equals:function(){throw new Error("Declaration missing for virtual function.")},getSubdivisions:function(){throw new Error("Declaration missing for virtual function.")},isDifferentiable:function(){throw new Error("Declaration missing for virtual function.")},isSegment:!0,isSubpathStart:!1,isVisible:!0,length:function(){throw new Error("Declaration missing for virtual function.")},lengthAtT:function(t){if(t<=0)return 0;var n=this.length();return t>=1?n:n*t},nextSegment:null,pointAt:function(){throw new Error("Declaration missing for virtual function.")},pointAtLength:function(){throw new Error("Declaration missing for virtual function.")},pointAtT:function(t){if(this.pointAt)return this.pointAt(t);throw new Error("Neither pointAtT() nor pointAt() function is implemented.")},previousSegment:null,round:function(){throw new Error("Declaration missing for virtual function.")},subpathStartSegment:null,scale:function(){throw new Error("Declaration missing for virtual function.")},serialize:function(){throw new Error("Declaration missing for virtual function.")},tangentAt:function(){throw new Error("Declaration missing for virtual function.")},tangentAtLength:function(){throw new Error("Declaration missing for virtual function.")},tangentAtT:function(t){if(this.tangentAt)return this.tangentAt(t);throw new Error("Neither tangentAtT() nor tangentAt() function is implemented.")},toString:function(){throw new Error("Declaration missing for virtual function.")},translate:function(){throw new Error("Declaration missing for virtual function.")}};Object.defineProperty(Rm,"end",{configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(Rm,"start",{configurable:!0,enumerable:!0,get:function(){if(!this.previousSegment)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path; OR segment has not yet been added to a path.)");return this.previousSegment.end}}),Object.defineProperty(Rm,"type",{configurable:!0,enumerable:!0,get:function(){throw new Error("Bad segment declaration. No type specified.")}});var hd=function(){for(var t=[],n=arguments.length,e=0;e0)throw new Error("Closepath constructor expects no arguments.");return this},Vz={clone:function(){return new X_},divideAt:function(t){var e=new Ho(this.start,this.end).divideAt(t);return[e[1].isDifferentiable()?new hd(e[0]):this.clone(),new hd(e[1])]},divideAtLength:function(t){var e=new Ho(this.start,this.end).divideAtLength(t);return[e[1].isDifferentiable()?new hd(e[0]):this.clone(),new hd(e[1])]},getSubdivisions:function(){return[]},isDifferentiable:function(){return!(!this.previousSegment||!this.subpathStartSegment||this.start.equals(this.end))},round:function(){return this},scale:function(){return this},serialize:function(){return this.type},toString:function(){return this.type+" "+this.start+" "+this.end},translate:function(){return this}};Object.defineProperty(Vz,"end",{configurable:!0,enumerable:!0,get:function(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. Moveto); OR segment has not yet been added to a path.)");return this.subpathStartSegment.end}}),Object.defineProperty(Vz,"type",{configurable:!0,enumerable:!0,value:"Z"}),X_.prototype=Yv(Rm,Ho.prototype,Vz);var bct=_r.segmentTypes={L:hd,C:Mu,M:zm,Z:X_,z:X_};_r.regexSupportedData=new RegExp("^[\\s\\d"+Object.keys(bct).join("")+",.]*$"),_r.isDataSupported=function(t){return"string"==typeof t&&this.regexSupportedData.test(t)};const xct={curveThroughPoints:function(t){return console.warn("deprecated"),new _r(Ls.throughPoints(t)).serialize()},getCurveControlPoints:function(t){console.warn("deprecated");var o,n=[],e=[],i=t.length-1;if(1==i)return n[0]=new wn((2*t[0].x+t[1].x)/3,(2*t[0].y+t[1].y)/3),e[0]=new wn(2*n[0].x-t[0].x,2*n[0].y-t[0].y),[n,e];var r=[];for(o=1;o=0&&He<=1&&Be>=0&&Be<=1}function Bz(t,n){const e=t.a,i=t.b,o=t.x,r=t.y,a=n.start.x-o,u=n.start.y-r,w=e*e,T=i*i,U=n.end.x-o-a,ie=n.end.y-r-u,se=U*U/w+ie*ie/T,Me=2*a*U/w+2*u*ie/T,He=Me*Me-4*se*(a*a/w+u*u/T-1);if(0===He){const Be=-Me/2/se;return Be>=0&&Be<=1}if(He>0){const Be=Math.sqrt(He),me=(-Me+Be)/2/se,ze=(-Me-Be)/2/se;return me>=0&&me<=1||ze>=0&&ze<=1}return!1}function Rre(t,n){return function yct(t,n,e,i){const{cos:o,sin:r}=Math,a=r(n),l=o(n),u=r(i),f=o(i),w=a*a,T=l*l,ie=u*u,se=f*f,we=t.a*t.a,He=t.b*t.b,Be=e.a*e.a,me=e.b*e.b,ze=we*w+He*T,qe=Be*ie+me*se,rt=we*T+He*w,xt=Be*se+me*ie;let Ut=2*(He-we)*(a*l),jt=2*(me-Be)*(u*f),an=-2*ze*t.x-Ut*t.y,pn=-2*qe*e.x-jt*e.y,yn=-Ut*t.x-2*rt*t.y,Kt=-jt*e.x-2*xt*e.y;const kn=ze*t.x*t.x+rt*t.y*t.y+Ut*t.x*t.y-we*He,ri=qe*e.x*e.x+xt*e.y*e.y+jt*e.x*e.y-Be*me;Ut/=2,jt/=2,an/=2,pn/=2,yn/=2,Kt/=2;const Rn=O4([[ze,Ut,an],[Ut,rt,yn],[an,yn,kn]]),ni=O4([[qe,jt,pn],[jt,xt,Kt],[pn,Kt,ri]]),Jn=.33333333*(O4([[qe,Ut,an],[jt,rt,yn],[pn,yn,kn]])+O4([[ze,jt,an],[Ut,xt,yn],[an,Kt,kn]])+O4([[ze,Ut,pn],[Ut,rt,Kt],[an,yn,ri]])),Oi=.33333333*(O4([[ze,jt,pn],[Ut,xt,Kt],[an,Kt,ri]])+O4([[qe,Ut,pn],[jt,rt,Kt],[pn,yn,ri]])+O4([[qe,jt,an],[jt,xt,yn],[pn,Kt,kn]])),qn=hP([[Rn,Jn],[Jn,Oi]]),Wi=hP([[Rn,Oi],[Jn,ni]]),Ai=hP([[Jn,Oi],[Oi,ni]]);return!(hP([[2*qn,Wi],[Wi,2*Ai]])>0&&(Oi>0||Jn>0))}(t,0,n,0)}function zre(t,n){const{start:e,end:i}=n,{x:o,y:r,width:a,height:l}=t;return!(e.x>o+a&&i.x>o+a||e.xr+l&&i.y>r+l||e.yn.x&&t.yn.y}function cP(t,n){return $re(t,n,{interior:!1})}function Yz(t,n){return Xre(t,n,{interior:!1})}function Hre(t,n){return Qre(t,n,{interior:!1})}function Vre(t,n){return uP(t,n,{interior:!1})}function Uz(t,n){return $re(t,n,{interior:!0})}function lP(t,n){return Xre(t,n,{interior:!0})}function Bre(t,n){return Qre(t,n,{interior:!0})}function Gre(t,n){return uP(t,n,{interior:!0})}function Yre(t,n){return Wz(t,n,{interior:!0})}function Ure(t,n,e){return t.getSubpaths().some(i=>{const[o]=i.toPolylines(e),{type:r}=i.getSegment(-1);return"Z"===r?Uz(o,n):cP(o,n)})}function jre(t,n,e){return t.getSubpaths().some(i=>{const[o]=i.toPolylines(e),{type:r}=i.getSegment(-1);return"Z"===r?lP(o,n):Yz(o,n)})}function Wre(t,n,e){return dP(t,V2.fromRect(n),e)}function jz(t,n,e){return Zre(t,n,e,{interior:!1})}function dP(t,n,e){return Zre(t,n,e,{interior:!0})}function qre(t,n,e,i){return t.getSubpaths().some(o=>{const[r]=o.toPolylines(e),{type:a}=o.getSegment(-1);return"Z"===a?dP(n,r,i):jz(n,r,i)})}function $re(t,n,e={}){const{interior:i=!1}=e;let o;if(i){if(t.containsPoint(n.start))return!0;const{start:l,end:u,points:f}=t;o=u.equals(l)?f:[...f,l]}else o=t.points;const{length:r}=o,a=new Ho;for(let l=0;l{const[r]=o.toPolylines(e),{type:a}=o.getSegment(-1);return"Z"===a?Wz(n,r,i):uP(n,r,i)})}function uP(t,n,e={}){const{interior:i=!1}=e;let o;if(i){const{start:u}=n;if(t.containsPoint(u))return!0;o=t.clone().close()}else o=t;const r=n.points,{length:a}=r,l=new Ho;for(let u=0;u1){var Ut,jt,xt=[];for(Ut=0,jt=rt.childNodes.length;Utan&&(an=ri)}else xt&&Kt===yn&&(kn+=xt),Jn=document.createTextNode(kn||" "),jt&&jt>an&&(an=jt);me.appendChild(Jn)}return an&&(pn.maxFontSize=an),Ut?pn.lineHeight=Ut:an&&(pn.lineHeight=1.2*an),pn}Object.defineProperty(U,"id",{enumerable:!0,get:function(){return this.node.id},set:function(me){this.node.id=me}}),U.getTransformToElement=function(me){var ze=this.node;if(T.isSVGGraphicsElement(me)&&T.isSVGGraphicsElement(ze)){var qe=T.toNode(me).getScreenCTM(),rt=ze.getScreenCTM();if(qe&&rt)return qe.inverse().multiply(rt)}return T.createSVGMatrix()},U.transform=function(me,ze){var qe=this.node;if(T.isUndefined(me))return T.transformStringToMatrix(this.attr("transform"));if(ze&&ze.absolute)return this.attr("transform",T.matrixToTransformString(me));var rt=T.createSVGTransform(me);return qe.transform.baseVal.appendItem(rt),this},U.translate=function(me,ze,qe){qe=qe||{},ze=ze||0;var rt=this.attr("transform")||"",xt=T.parseTransformString(rt);return rt=xt.value,T.isUndefined(me)?xt.translate:(rt=rt.replace(/translate\([^)]*\)/g,"").trim(),this.attr("transform",("translate("+(qe.absolute?me:xt.translate.tx+me)+","+(qe.absolute?ze:xt.translate.ty+ze)+") "+rt).trim()),this)},U.rotate=function(me,ze,qe,rt){rt=rt||{};var xt=this.attr("transform")||"",Ut=T.parseTransformString(xt);return xt=Ut.value,T.isUndefined(me)?Ut.rotate:(xt=xt.replace(/rotate\([^)]*\)/g,"").trim(),me%=360,this.attr("transform",(xt+" rotate("+(rt.absolute?me:Ut.rotate.angle+me)+(void 0!==ze&&void 0!==qe?","+ze+","+qe:"")+")").trim()),this)},U.scale=function(me,ze){ze=T.isUndefined(ze)?me:ze;var qe=this.attr("transform")||"",rt=T.parseTransformString(qe);return qe=rt.value,T.isUndefined(me)?rt.scale:(qe=qe.replace(/scale\([^)]*\)/g,"").trim(),this.attr("transform",(qe+" scale("+me+","+ze+")").trim()),this)},U.bbox=function(me,ze){var qe,rt=this.node,xt=rt.ownerSVGElement;if(!xt)return new Po(0,0,0,0);try{qe=rt.getBBox()}catch(jt){qe={x:rt.clientLeft,y:rt.clientTop,width:rt.clientWidth,height:rt.clientHeight}}if(me)return new Po(qe);var Ut=this.getTransformToElement(ze||xt);return T.transformRect(qe,Ut)},U.getBBox=function(me){var qe,ze={},rt=this.node;if(!rt.ownerSVGElement||!T.isSVGGraphicsElement(rt))return new Po(0,0,0,0);if(me&&(me.target&&(ze.target=T.toNode(me.target)),me.recursive&&(ze.recursive=me.recursive)),ze.recursive){var jt=this.children(),an=jt.length;if(0===an)return this.getBBox({target:ze.target,recursive:!1});ze.target||(ze.target=this);for(var pn=0;pn0&&ro.setAttribute("dy",nr),(Bi>0||xt)&&ro.setAttribute("x",an),ro.className.baseVal=Nr,Jn.appendChild(ro),Oi+=ki.length+1}if(jt)if(yn)nr=function He(me,ze,qe,rt){if(!Array.isArray(ze))return 0;var xt=ze.length;if(!xt)return 0;for(var Ut=ze[0],jt=we(Ut.maxFontSize,qe)||qe,an=0,pn=we(rt,qe),yn=1;yn0?(Ei=parseFloat(ri)||1,Ei*=lo,Me.test(ri)||(Ei/=Rn)):Ei=0,Ut){case"middle":nr=.3-Ei/2+"em";break;case"bottom":nr=-Ei-.3+"em"}}else 0===Ut?nr="0em":Ut?nr=Ut:(nr=0,null===this.attr("y")&&this.attr("y",Ai||"0.8em"));return Jn.firstChild.setAttribute("dy",nr),this.append(Jn),this},U.removeAttr=function(me){var ze=T.qualifyAttr(me),qe=this.node;return ze.ns?qe.hasAttributeNS(ze.ns,ze.local)&&qe.removeAttributeNS(ze.ns,ze.local):qe.hasAttribute(me)&&qe.removeAttribute(me),this},U.attr=function(me,ze){if(T.isUndefined(me)){for(var qe=this.node.attributes,rt={},xt=0;xt1&&yn.push(yn[0]),new cc(yn);case"PATH":return Kt=this.attr("d"),_r.isDataSupported(Kt)||(Kt=T.normalizePathData(Kt)),new _r(Kt);case"LINE":return kn=parseFloat(this.attr("x1"))||0,Rn=parseFloat(this.attr("y1"))||0,ri=parseFloat(this.attr("x2"))||0,ni=parseFloat(this.attr("y2"))||0,new Ho({x:kn,y:Rn},{x:ri,y:ni})}return this.getBBox()},U.findIntersection=function(me,ze){var qe=this.svg().node,rt=this.getBBox({target:ze=ze||qe}),xt=rt.center();if(rt.intersectionWithLineFromCenterToPoint(me)){var Ut,jt=this.tagName();if("RECT"===jt){var an=new Po(parseFloat(this.attr("x")||0),parseFloat(this.attr("y")||0),parseFloat(this.attr("width")),parseFloat(this.attr("height"))),pn=this.getTransformToElement(ze),yn=T.decomposeMatrix(pn),Kt=qe.createSVGTransform();Kt.setRotate(-yn.rotation,xt.x,xt.y);var kn=T.transformRect(an,Kt.matrix.multiply(pn));Ut=new Po(kn).intersectionWithLineFromCenterToPoint(me,yn.rotation)}else if("PATH"===jt||"POLYGON"===jt||"POLYLINE"===jt||"CIRCLE"===jt||"ELLIPSE"===jt){var Oi,qn,Wi,Bi,lo,Rn=("PATH"===jt?this:this.convertToPath()).sample(),ni=1/0,Jn=[];for(Oi=0;Oi${me}`,{documentElement:rt}=T.parseXML(qe,{async:!1});return rt}const ze=document.createElementNS(n.svg,"svg");return ze.setAttributeNS(n.xmlns,"xmlns:xlink",n.xlink),ze.setAttribute("version","1.1"),ze},T.createSVGStyle=function(me){const{node:ze}=T("style",{type:"text/css"},[T.createCDATASection(me)]);return ze},T.createCDATASection=function(me=""){return document.implementation.createDocument(null,"xml",null).createCDATASection(me)},T.idCounter=0,T.uniqueId=function(){return"v-"+ ++T.idCounter},T.toNode=function(me){return T.isV(me)?me.node:me.nodeName&&me||me[0]},T.ensureId=function(me){return(me=T.toNode(me)).id||(me.id=T.uniqueId())},T.sanitizeText=function(me){return(me||"").replace(/ /g,"\xa0")},T.isUndefined=function(me){return void 0===me},T.isString=function(me){return"string"==typeof me},T.isObject=function(me){return me&&"object"==typeof me},T.isArray=Array.isArray,T.parseXML=function(me,ze){var qe;ze=ze||{};try{var rt=new DOMParser;T.isUndefined(ze.async)||(rt.async=ze.async),qe=rt.parseFromString(me,"text/xml")}catch(xt){qe=void 0}if(!qe||qe.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+me);return qe},T.qualifyAttr=function(me){if(-1!==me.indexOf(":")){var ze=me.split(":");return{ns:n[ze[0]],local:ze[1]}}return{ns:null,local:me}},T.transformRegex=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,T.transformSeparatorRegex=/[ ,]+/,T.transformationListRegex=/^(\w+)\((.*)\)/,T.transformStringToMatrix=function(me){var ze=T.createSVGMatrix(),qe=me&&me.match(T.transformRegex);if(!qe)return ze;for(var rt=0,xt=qe.length;rt=0){var Ut=T.transformStringToMatrix(me),jt=T.decomposeMatrix(Ut);rt=[jt.scaleX,jt.scaleY],qe=[jt.rotation];var an=[];(0!==(ze=[jt.translateX,jt.translateY])[0]||0!==ze[1])&&an.push("translate("+ze+")"),(1!==rt[0]||1!==rt[1])&&an.push("scale("+rt+")"),0!==qe[0]&&an.push("rotate("+qe+")"),me=an.join(" ")}else{var pn=me.match(/translate\((.*?)\)/);pn&&(ze=pn[1].split(xt));var yn=me.match(/rotate\((.*?)\)/);yn&&(qe=yn[1].split(xt));var Kt=me.match(/scale\((.*?)\)/);Kt&&(rt=Kt[1].split(xt))}}var kn=rt&&rt[0]?parseFloat(rt[0]):1;return{value:me,translate:{tx:ze&&ze[0]?parseInt(ze[0],10):0,ty:ze&&ze[1]?parseInt(ze[1],10):0},rotate:{angle:qe&&qe[0]?parseInt(qe[0],10):0,cx:qe&&qe[1]?parseInt(qe[1],10):void 0,cy:qe&&qe[2]?parseInt(qe[2],10):void 0},scale:{sx:kn,sy:rt&&rt[1]?parseFloat(rt[1]):kn}}},T.deltaTransformPoint=function(me,ze){return{x:ze.x*me.a+ze.y*me.c+0,y:ze.x*me.b+ze.y*me.d+0}},T.decomposeMatrix=function(me){var ze=T.deltaTransformPoint(me,{x:0,y:1}),qe=T.deltaTransformPoint(me,{x:1,y:0}),rt=180/o*r(ze.y,ze.x)-90,xt=180/o*r(qe.y,qe.x);return{translateX:me.e,translateY:me.f,scaleX:a(me.a*me.a+me.b*me.b),scaleY:a(me.c*me.c+me.d*me.d),skewX:rt,skewY:xt,rotation:rt}},T.matrixToScale=function(me){var ze,qe,rt,xt;return me?(ze=T.isUndefined(me.a)?1:me.a,xt=T.isUndefined(me.d)?1:me.d,qe=me.b,rt=me.c):ze=xt=1,{sx:qe?a(ze*ze+qe*qe):ze,sy:rt?a(rt*rt+xt*xt):xt}},T.matrixToRotate=function(me){var ze={x:0,y:1};return me&&(ze=T.deltaTransformPoint(me,ze)),{angle:K0(nP(r(ze.y,ze.x))-90)}},T.matrixToTranslate=function(me){return{tx:me&&me.e||0,ty:me&&me.f||0}},T.isV=function(me){return me instanceof T},T.isVElement=T.isV,T.isSVGGraphicsElement=function(me){return!!me&&(me=T.toNode(me))instanceof SVGElement&&"function"==typeof me.getScreenCTM};var Be=T("svg").node;return T.createSVGMatrix=function(me){var ze=Be.createSVGMatrix();for(var qe in me)ze[qe]=me[qe];return ze},T.createSVGTransform=function(me){return T.isUndefined(me)?Be.createSVGTransform():(me instanceof SVGMatrix||(me=T.createSVGMatrix(me)),Be.createSVGTransformFromMatrix(me))},T.createSVGPoint=function(me,ze){var qe=Be.createSVGPoint();return qe.x=me,qe.y=ze,qe},T.transformRect=function(me,ze){var qe=Be.createSVGPoint();qe.x=me.x,qe.y=me.y;var rt=qe.matrixTransform(ze);qe.x=me.x+me.width,qe.y=me.y;var xt=qe.matrixTransform(ze);qe.x=me.x+me.width,qe.y=me.y+me.height;var Ut=qe.matrixTransform(ze);qe.x=me.x,qe.y=me.y+me.height;var jt=qe.matrixTransform(ze),an=l(rt.x,xt.x,Ut.x,jt.x),pn=u(rt.x,xt.x,Ut.x,jt.x),yn=l(rt.y,xt.y,Ut.y,jt.y),Kt=u(rt.y,xt.y,Ut.y,jt.y);return new Po(an,yn,pn-an,Kt-yn)},T.transformPoint=function(me,ze){return new wn(T.createSVGPoint(me.x,me.y).matrixTransform(ze))},T.transformLine=function(me,ze){return new Ho(T.transformPoint(me.start,ze),T.transformPoint(me.end,ze))},T.transformPolyline=function(me,ze){var qe=me instanceof cc?me.points:me;T.isArray(qe)||(qe=[]);for(var rt=[],xt=0,Ut=qe.length;xt=xt?Ut?"M0,"+jt+"A"+jt+","+jt+" 0 1,1 0,"+-jt+"A"+jt+","+jt+" 0 1,1 0,"+jt+"M0,"+Ut+"A"+Ut+","+Ut+" 0 1,0 0,"+-Ut+"A"+Ut+","+Ut+" 0 1,0 0,"+Ut+"Z":"M0,"+jt+"A"+jt+","+jt+" 0 1,1 0,"+-jt+"A"+jt+","+jt+" 0 1,1 0,"+jt+"Z":Ut?"M"+jt*kn+","+jt*ri+"A"+jt+","+jt+" 0 "+Kt+",1 "+jt*Rn+","+jt*ni+"L"+Ut*Rn+","+Ut*ni+"A"+Ut+","+Ut+" 0 "+Kt+",0 "+Ut*kn+","+Ut*ri+"Z":"M"+jt*kn+","+jt*ri+"A"+jt+","+jt+" 0 "+Kt+",1 "+jt*Rn+","+jt*ni+"L0,0Z"},T.mergeAttrs=function(me,ze){for(var qe in ze)me[qe]="class"===qe?me[qe]?me[qe]+" "+ze[qe]:ze[qe]:"style"===qe?T.isObject(me[qe])&&T.isObject(ze[qe])?T.mergeAttrs(me[qe],ze[qe]):T.isObject(me[qe])?T.mergeAttrs(me[qe],T.styleToObject(ze[qe])):T.isObject(ze[qe])?T.mergeAttrs(T.styleToObject(me[qe]),ze[qe]):T.mergeAttrs(T.styleToObject(me[qe]),T.styleToObject(ze[qe])):ze[qe];return me},T.annotateString=function(me,ze,qe){ze=ze||[];for(var Ut,an,pn,rt=(qe=qe||{}).offset||0,xt=[],jt=[],yn=0;yn=kn.start+rt&&yn=xt.start&&zext.start&&qe<=xt.end||xt.start>=ze&&xt.end=ze?rt.end+=qe:rt.start>=ze&&(rt.start+=qe,rt.end+=qe)}),me},T.convertLineToPathData=function(me){return["M",(me=T(me)).attr("x1"),me.attr("y1"),"L",me.attr("x2"),me.attr("y2")].join(" ")},T.convertPolygonToPathData=function(me){var ze=T.getPointsFromSvgNode(me);return 0===ze.length?null:T.svgPointsToPath(ze)+" Z"},T.convertPolylineToPathData=function(me){var ze=T.getPointsFromSvgNode(me);return 0===ze.length?null:T.svgPointsToPath(ze)},T.svgPointsToPath=function(me){for(var ze=0,qe=me.length;ze1&&(Ai*=$a=yn($a),Bi*=$a);var Cr=Ai*Ai,gs=Bi*Bi,Ec=(nr==Nr?-1:1)*yn(Kt((Cr*gs-Cr*Sa*Sa-gs*Zo*Zo)/(Cr*Sa*Sa+gs*Zo*Zo))),Nl=Ec*Ai*Sa/Bi+(qn+ro)/2,dh=Ec*-Bi*Zo/Ai+(Wi+ki)/2,Ac=pn(((Wi-dh)/Bi).toFixed(9)),Js=pn(((ki-dh)/Bi).toFixed(9));(Ac=qnJs&&(Ac-=2*xt),!Nr&&Js>Ac&&(Js-=2*xt)}var F3=Js-Ac;if(Kt(F3)>yi){var R4=Js,o0=ro,z4=ki;Vn=Rn(ro=Nl+Ai*jt(Js=Ac+yi*(Nr&&Js>Ac?1:-1)),ki=dh+Bi*Ut(Js),Ai,Bi,lo,0,Nr,o0,z4,[Js,R4,Nl,dh])}F3=Js-Ac;var uT=jt(Ac),hT=Ut(Ac),pT=jt(Js),fT=Ut(Js),F4=an(F3/4),hb=4/3*(Ai*F4),pb=4/3*(Bi*F4),m8=[qn,Wi],H3=[qn+hb*hT,Wi-pb*uT],H4=[ro+hb*fT,ki-pb*pT],fb=[ro,ki];if(H3[0]=2*m8[0]-H3[0],H3[1]=2*m8[1]-H3[1],jn)return[H3,H4,fb].concat(Vn);for(var V4=[],rV=(Vn=[H3,H4,fb].concat(Vn).join().split(",")).length,ip=0;ip2&&(Ai.push([lo].concat(Nr.splice(0,2))),ro="l",lo="m"===lo?"l":"L");Nr.length>=Wi[ro]&&(Ai.push([lo].concat(Nr.splice(0,Wi[ro]))),Wi[ro]););}),Ai}(qn)),!qn||!qn.length)return[["M",0,0]];for(var ro,Wi=[],Ai=0,Bi=0,lo=0,nr=0,ki=qn.length,jn=0;jn7){Vn[Ei].shift();for(var Zo=Vn[Ei];Zo.length;)nr[Ei]="A",Vn.splice(Ei++,0,["C"].concat(Zo.splice(0,6)));Vn.splice(Ei,1),ki=Wi.length}}for(var nr=[],Nr="",ro="",ki=Wi.length,jn=0;jn0&&(ro=nr[jn-1])),Wi[jn]=Bi(Wi[jn],Ai,ro),"A"!==nr[jn]&&"C"===Nr&&(nr[jn]="C"),lo(Wi,jn);var yi=Wi[jn],Ii=yi.length;Ai.x=yi[Ii-2],Ai.y=yi[Ii-1],Ai.bx=parseFloat(yi[Ii-4])||Ai.x,Ai.by=parseFloat(yi[Ii-3])||Ai.y}return(!Wi[0][0]||"M"!==Wi[0][0])&&Wi.unshift(["M",0,0]),Wi}return function(qn){return Oi(qn).join(",").split(",").join(" ")}}(),T.namespace=n,T.g=_,T}(),oh={useCSSSelectors:!0,classNamePrefix:"joint-",defaultTheme:"default",doubleTapInterval:300},Zh=function(t){return t&&t.toString().split(" ").map(function(n){return n.substr(0,oh.classNamePrefix.length)!==oh.classNamePrefix&&(n=oh.classNamePrefix+n),n}).join(" ")},Mct=function(t){return t&&t.toString().split(" ").map(function(n){return n.substr(0,oh.classNamePrefix.length)===oh.classNamePrefix&&(n=n.substr(oh.classNamePrefix.length)),n}).join(" ")},pP=function(t,n){for(var e={},i={},o=wi.namespace.svg,r=n||o,a=document.createDocumentFragment(),l=[t,a,r];l.length>0;){r=l.pop();for(var u=l.pop(),f=l.pop(),w=0,T=f.length;w=0){if(xt.length>1){for(var jt=xt.split(T),an=0,pn=jt.length-1;an""!==Ai)),ze--,rt=se.length;continue}we[++qe]="",Ut=!0}if(!Ut)if(f.data=we[qe]?we[qe]+" "+xt:xt,l.getComputedTextLength()<=o)we[qe]=f.data,(He||Be)&&(Me[qe++]=!0,He=0,Be=0);else{if(!we[qe]||He){var yn=!!He;if(He=xt.length-1,yn||!He){if(!He){if(!we[qe]){we=[];break}se.splice(ze,2,xt+se[ze+1]),rt--,Me[qe++]=!0,ze--;continue}se[ze]=xt.substring(0,He),se[ze+1]=xt.substring(He)+(void 0===se[ze+1]?"":se[ze+1])}else{if(Be)se.splice(ze,2,se[ze]+se[ze+1]),Be=0;else{var Kt=xt.search(U);Kt>-1&&Kt!==xt.length-1&&0!==Kt&&(Be=Kt+1,He=0),se.splice(ze,1,xt.substring(0,Be||He),xt.substring(Be||He)),rt++}qe&&!Me[qe-1]&&qe--}ze--;continue}qe++,ze--}var kn=null;if(we.length>ie)kn=ie-1;else if(void 0!==r){var ri;void 0===me&&(me=(ri="auto"===e.lineHeight?{value:1.5,unit:"em"}:Tct(e.lineHeight,["em"])||{value:1,unit:"em"}).value,"em"===ri.unit&&(me*=u.getBBox().height)),me*we.length>r&&(kn=Math.floor(r/me)-1)}if(null!==kn){we.splice(kn+1);var Rn=i.ellipsis;if(!Rn||kn<0)break;"string"!=typeof Rn&&(Rn="\u2026");var ni=we[kn];if(!ni&&!Ut)break;var Oi,qn,Jn=ni.length;do{if(qn=ni[Jn],Oi=ni.substring(0,Jn),qn?qn.match(w)&&(Oi+=qn):Oi+="string"==typeof w?w:" ",f.data=Oi+=Rn,l.getComputedTextLength()<=o){we[kn]=Oi;break}Jn--}while(Jn>=0);break}}}return i.svgDocument?a.removeChild(u):document.body.removeChild(a),we.join(T)},Ect=function(t){var n=As(As.parseHTML("
"+t+"
",null,!1));return n.find("*").each(function(){var e=this;As.each(e.attributes,function(){var o=this.name,r=this.value;(o.startsWith("on")||r.startsWith("javascript:")||r.startsWith("data:")||r.startsWith("vbscript:"))&&As(e).removeAttr(o)})}),n.html()},Q_=function(t){if(Object(t)!==t){var n=0;return isFinite(t)&&(n=+t),{top:n,right:n,bottom:n,left:n}}var e,i,o,r;return e=i=o=r=0,isFinite(t.vertical)&&(e=o=+t.vertical),isFinite(t.horizontal)&&(i=r=+t.horizontal),isFinite(t.top)&&(e=+t.top),isFinite(t.right)&&(i=+t.right),isFinite(t.bottom)&&(o=+t.bottom),isFinite(t.left)&&(r=+t.left),{top:e,right:i,bottom:o,left:r}},kct={linear:function(t){return t},quad:function(t){return t*t},cubic:function(t){return t*t*t},inout:function(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(t<.5?e:3*(t-n)+e-.75)},exponential:function(t){return Math.pow(2,10*(t-1))},bounce:function(t){for(var n=0,e=1;;n+=e,e/=2)if(t>=(7-4*n)/11){var i=(11-6*n-11*t)/4;return-i*i+e*e}},reverse:function(t){return function(n){return 1-t(1-n)}},reflect:function(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}},clamp:function(t,n,e){return n=n||0,e=e||1,function(i){var o=t(i);return oe?e:o}},back:function(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}},elastic:function(t){return t||(t=1.5),function(n){return Math.pow(2,10*(n-1))*Math.cos(20*Math.PI*t/3*n)}}},tae={number:function(t,n){var e=n-t;return function(i){return t+e*i}},object:function(t,n){var e=Object.keys(t);return function(i){var o,r,a={};for(o=e.length-1;-1!=o;o--)a[r=e[o]]=t[r]+(n[r]-t[r])*i;return a}},hexColor:function(t,n){var e=parseInt(t.slice(1),16),i=parseInt(n.slice(1),16),o=255&e,r=(255&i)-o,a=65280&e,l=(65280&i)-a,u=16711680&e,f=(16711680&i)-u;return function(w){return"#"+(1<<24|o+r*w&255|a+l*w&65280|u+f*w&16711680).toString(16).slice(1)}},unit:function(t,n){var e=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=e.exec(t),o=e.exec(n),r=o[1].indexOf("."),a=r>0?o[1].length-r-1:0,l=+o[1]-(t=+i[1]),u=i[2];return function(f){return(t+l*f).toFixed(a)+u}}},Ict={outline:function(t){var e=Number.isFinite(t.margin)?t.margin:2,i=Number.isFinite(t.width)?t.width:1;return h2('')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+i,innerRadius:e})},highlight:function(t){return h2('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var n=Number.isFinite(t.x)?t.x:2;return h2('')({stdDeviation:Number.isFinite(t.y)?[n,t.y]:n})},dropShadow:function(t){var n="SVGFEDropShadowElement"in window?'':'';return h2(n)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({a:.2126+.7874*(1-n),b:.7152-.7152*(1-n),c:.0722-.0722*(1-n),d:.2126-.2126*(1-n),e:.7152+.2848*(1-n),f:.0722-.0722*(1-n),g:.2126-.2126*(1-n),h:.0722+.9278*(1-n)})},sepia:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({a:.393+.607*(1-n),b:.769-.769*(1-n),c:.189-.189*(1-n),d:.349-.349*(1-n),e:.686+.314*(1-n),f:.168-.168*(1-n),g:.272-.272*(1-n),h:.534-.534*(1-n),i:.131+.869*(1-n)})},saturate:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({amount:1-n})},hueRotate:function(t){return h2('')({angle:t.angle||0})},invert:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({amount:n,amount2:1-n})},brightness:function(t){return h2('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({amount:n,amount2:.5-n/2})}},h2=function(t){var n=/<%= ([^ ]+) %>|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(e){return e=e||{},t.replace(n,function(i){for(var o=Array.from(arguments),r=o.slice(1,4).find(function(u){return!!u}),a=r.split("."),l=e[a.shift()];void 0!==l&&a.length;)l=l[a.shift()];return void 0!==l?l:""})}},Ar=Zt.assign,ah=Zt.defaults,Qz=Zt.defaultsDeep,Kh=Zt.invokeMap||Zt.invoke,nae=Zt.sortedIndexBy||Zt.sortedIndex,Z_=Zt.uniqBy||Zt.uniq,ep=Zt.clone,sh=Zt.cloneDeep,S4=Zt.isEmpty,Wv=Zt.isEqual,Hs=Zt.isFunction,z1=Zt.isPlainObject,Ba=Zt.toArray,Nct=Zt.groupBy,Rct=Zt.flattenDeep,Zz=Zt.without,iae=Zt.difference,Kz=Zt.union,tp=Zt.has,_1=Zt.result,P4=Zt.omit,oae=Zt.pick,ch=Zt.forIn,zct=Zt.camelCase,Fct=Zt.uniqueId,F1=function(){if(Zt.mergeWith){var t=Array.from(arguments),n=t[t.length-1],e=Hs(n)?n:K_;return t.push(function(i,o){var r=e(i,o);return void 0!==r?r:Array.isArray(i)&&!Array.isArray(o)?o:void 0}),Zt.mergeWith.apply(this,t)}return Zt.merge.apply(this,arguments)},qc=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},B2=function(t){return"number"==typeof t||!!t&&"object"==typeof t&&"[object Number]"===Object.prototype.toString.call(t)},pd=function(t){return"string"==typeof t||!!t&&"object"==typeof t&&"[object String]"===Object.prototype.toString.call(t)},K_=function(){};function rae(t){t=Z_(t);const n=Ba(t).reduce(function(e,i){return e[i.id]=i.clone(),e},{});return Ba(t).forEach(function(e){const i=n[e.id];if(i.isLink()){const a=i.source(),l=i.target();a.id&&n[a.id]&&i.prop("source/id",n[a.id].id),l.id&&n[l.id]&&i.prop("target/id",n[l.id].id)}const o=e.get("parent");o&&n[o]&&i.set("parent",n[o].id);const r=Ba(e.get("embeds")).reduce(function(a,l){return n[l]&&a.push(n[l].id),a},[]);S4(r)||i.set("embeds",r)}),n}const I3={x:"x",y:"y",width:"w",height:"h",minimum:"s",maximum:"l",diagonal:"d"},Vct=Object.keys(I3).map(t=>I3[t]).join(""),aae="[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?",Bct=/\s/g,sae=new RegExp(`^(${aae}\\*)?([${Vct}])([-+]{1,2}${aae})?$`,"g");function cae(t){throw new Error(`Invalid calc() expression: ${t}`)}function Gct(t,n){const e=sae.exec(t.replace(Bct,""));e||cae(t),sae.lastIndex=0;const[,i=1,o,r=0]=e,{x:a,y:l,width:u,height:f}=n;let w=0;switch(o){case I3.width:w=u;break;case I3.height:w=f;break;case I3.x:w=a;break;case I3.y:w=l;break;case I3.minimum:w=Math.min(f,u);break;case I3.maximum:w=Math.max(f,u);break;case I3.diagonal:w=Math.sqrt(f*f+u*u)}return parseFloat(i)*w+function Yct(t){if(!t)return 0;const[n]=t;switch(n){case"+":return parseFloat(t.substr(1));case"-":return-parseFloat(t.substr(1))}return parseFloat(t)}(r)}function Jz(t){return"string"==typeof t&&t.includes("calc")}const dae="calc(".length;function eF(t,n){let e=t,i=0;for(;;){let o=e.indexOf("calc(",i);if(-1===o)return e;let r=o+dae,a=1;e:for(;;){switch(e[r]){case"(":a++;break;case")":if(a--,0===a)break e;break;case void 0:cae(e)}r++}let l=e.slice(o+dae,r);Jz(l)&&(l=eF(l,n));const u=String(Gct(l,n));e=e.slice(0,o)+u+e.slice(r+1),i=o+u.length}}function T4(t,n){return function(e,i){var o=rh(e);e=parseFloat(e),o&&(e/=100);var r={};if(isFinite(e)){var a=o||e>=0&&e<=1?e*i[n]:Math.max(e+i[n],0);r[t]=a}return r}}function gP(t,n,e){return function(i,o){var a,r=rh(i);if(i=parseFloat(i),r&&(i/=100),isFinite(i)){var l=o[e]();a=r||i>0&&i<1?l[t]+o[n]*i:l[t]+i}var u=wn();return u[t]=a||0,u}}function uae(t,n,e){return function(i,o){var r;r="middle"===i?o[n]/2:i===e?o[n]:isFinite(i)?i>-1&&i<1?-o[n]*i:-i:rh(i)?o[n]*parseFloat(i)/100:0;var a=wn();return a[t]=-(o[t]+r),a}}function hae(t,n){var e="joint-shape",i=n&&n.resetOffset;return function(o,r,a){var l=As(a),u=l.data(e);if(!u||u.value!==o){var f=t(o);u={value:o,shape:f,shapeBBox:f.bbox()},l.data(e,u)}var w=u.shape.clone(),T=u.shapeBBox.clone(),U=T.origin(),ie=r.origin();T.x=ie.x,T.y=ie.y;var se=r.maxRectScaleToFit(T,ie);return w.scale(0===T.width||0===r.width?1:se.sx,0===T.height||0===r.height?1:se.sy,U),i&&w.translate(-U.x,-U.y),w}}function pae(t){var e=hae(function n(i){return new _r(wi.normalizePathData(i))},t);return function(i,o,r){return{d:e(i,o,r).serialize()}}}function fae(t){var n=hae(cc,t);return function(e,i,o){return{points:n(e,i,o).serialize()}}}function mP(t,n){var e=new wn(1,0);return function(i){var o,r,a=this[t](i);return a?(r=n.rotate?a.vector().vectorAngle(e):0,o=a.start):(o=this.path.start,r=0),0===r?{transform:"translate("+o.x+","+o.y+")"}:{transform:"translate("+o.x+","+o.y+") rotate("+r+")"}}}function gae(t){return function(e,i,o){const r=wi(o);r.attr(t)!==e&&r.attr(t,e)}}function J_(t,n,e){return void 0!==e.text}function qv(){return this.model.isLink()}function tF(t){var n={},e=t.stroke;"string"==typeof e&&(n.stroke=e,n.fill=e);var i=t.strokeOpacity;return void 0===i&&(i=t["stroke-opacity"]),void 0===i&&(i=t.opacity),void 0!==i&&(n["stroke-opacity"]=i,n["fill-opacity"]=i),n}function mae(t){const{paper:n}=this;return`url(#${"pattern"===t.type?n.definePattern(t):n.defineGradient(t)})`}const Fa={xlinkShow:{set:"xlink:show"},xlinkRole:{set:"xlink:role"},xlinkType:{set:"xlink:type"},xlinkArcrole:{set:"xlink:arcrole"},xlinkTitle:{set:"xlink:title"},xlinkActuate:{set:"xlink:actuate"},xmlSpace:{set:"xml:space"},xmlBase:{set:"xml:base"},xmlLang:{set:"xml:lang"},preserveAspectRatio:{set:"preserveAspectRatio"},requiredExtension:{set:"requiredExtension"},requiredFeatures:{set:"requiredFeatures"},systemLanguage:{set:"systemLanguage"},externalResourcesRequired:{set:"externalResourceRequired"},href:{set:gae("href")},xlinkHref:{set:gae("xlink:href")},filter:{qualify:z1,set:function(t){return"url(#"+this.paper.defineFilter(t)+")"}},fill:{qualify:z1,set:mae},stroke:{qualify:z1,set:mae},sourceMarker:{qualify:z1,set:function(t,n,e,i){return t=Ar(tF(i),t),{"marker-start":"url(#"+this.paper.defineMarker(t)+")"}}},targetMarker:{qualify:z1,set:function(t,n,e,i){return t=Ar(tF(i),{transform:"rotate(180)"},t),{"marker-end":"url(#"+this.paper.defineMarker(t)+")"}}},vertexMarker:{qualify:z1,set:function(t,n,e,i){return t=Ar(tF(i),t),{"marker-mid":"url(#"+this.paper.defineMarker(t)+")"}}},text:{qualify:function(t,n,e){return!e.textWrap||!z1(e.textWrap)},set:function(t,n,e,i){var o=As(e),r="joint-text",a=o.data(r),l=oae(i,"lineHeight","annotations","textPath","x","textVerticalAnchor","eol","displayEmpty");const{x:u}=l;Jz(u)&&(l.x=eF(u,n));var f=l.fontSize=i["font-size"]||i.fontSize,w=JSON.stringify([t,l]);if(void 0===a||a!==w){f&&e.setAttribute("font-size",f);var T=l.textPath;if(qc(T)){var U=T.selector;if("string"==typeof U){var ie=this.findBySelector(U)[0];ie instanceof SVGPathElement&&(l.textPath=Ar({"xlink:href":"#"+ie.id},T))}}wi(e).text(""+t,l),o.data(r,w)}}},textWrap:{qualify:z1,set:function(t,n,e,i){var o=t.width||0,r={};r.width=rh(o)?n.width*parseFloat(o)/100:o<=0?n.width+o:o;var a=t.height||0;r.height=rh(a)?n.height*parseFloat(a)/100:a<=0?n.height+a:a;var l,u=t.text;void 0===u&&(u=i.text),l=void 0!==u?eae(""+u,r,{"font-weight":i["font-weight"]||i.fontWeight,"font-size":i["font-size"]||i.fontSize,"font-family":i["font-family"]||i.fontFamily,lineHeight:i.lineHeight,"letter-spacing":"letter-spacing"in i?i["letter-spacing"]:i.letterSpacing},{svgDocument:this.paper.svg,ellipsis:t.ellipsis,hyphen:t.hyphen,maxLineCount:t.maxLineCount}):"",Fa.text.set.call(this,l,n,e,i)}},title:{qualify:function(t,n){return n instanceof SVGElement},set:function(t,n,e){var i=As(e),o="joint-title",r=i.data(o);if(void 0===r||r!==t){i.data(o,t);var a=e.firstChild;if(a&&"TITLE"===a.tagName.toUpperCase())a.textContent=t;else{var l=document.createElementNS(e.namespaceURI,"title");l.textContent=t,e.insertBefore(l,a)}}}},lineHeight:{qualify:J_},textVerticalAnchor:{qualify:J_},textPath:{qualify:J_},annotations:{qualify:J_},eol:{qualify:J_},displayEmpty:{qualify:J_},port:{set:function(t){return null===t||void 0===t.id?t:t.id}},style:{qualify:z1,set:function(t,n,e){As(e).css(t)}},html:{set:function(t,n,e){As(e).html(t+"")}},ref:{},refX:{position:gP("x","width","origin")},refY:{position:gP("y","height","origin")},refDx:{position:gP("x","width","corner")},refDy:{position:gP("y","height","corner")},refWidth:{set:T4("width","width")},refHeight:{set:T4("height","height")},refRx:{set:T4("rx","width")},refRy:{set:T4("ry","height")},refRInscribed:{set:(n=T4("r","width"),e=T4("r","height"),function(i,o){return(o.height>o.width?n:e)(i,o)})},refRCircumscribed:{set:function(t,n){var e=rh(t);t=parseFloat(t),e&&(t/=100);var o,i=Math.sqrt(n.height*n.height+n.width*n.width);return isFinite(t)&&(o=e||t>=0&&t<=1?t*i:Math.max(t+i,0)),{r:o}}},refCx:{set:T4("cx","width")},refCy:{set:T4("cy","height")},xAlignment:{offset:uae("x","width","right")},yAlignment:{offset:uae("y","height","bottom")},resetOffset:{offset:function(t,n){return t?{x:-n.x,y:-n.y}:{x:0,y:0}}},refDResetOffset:{set:pae({resetOffset:!0})},refDKeepOffset:{set:pae({resetOffset:!1})},refPointsResetOffset:{set:fae({resetOffset:!0})},refPointsKeepOffset:{set:fae({resetOffset:!1})},connection:{qualify:qv,set:function({stubs:t=0}){let n;if(isFinite(t)&&0!==t){let e;e=t<0?(this.getConnectionLength()+t)/2:t;const i=this.getConnection(),o=i.divideAtLength(e),r=i.divideAtLength(-e);o&&r&&(n=`${o[0].serialize()} ${r[1].serialize()}`)}return{d:n||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:qv,set:mP("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:qv,set:mP("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:qv,set:mP("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:qv,set:mP("getTangentAtRatio",{rotate:!1})}};var n,e;Fa["xlink:href"]=Fa.xlinkHref,["transform","d","points","width","height","cx","cy","r","rx","ry","x1","x2","y1","y2","x","y","dx","dy"].forEach(t=>{Fa[t]={qualify:Jz,set:function(e,i){return{[t]:eF(e,i)}}}}),Fa.refR=Fa.refRInscribed,Fa.refD=Fa.refDResetOffset,Fa.refPoints=Fa.refPointsResetOffset,Fa.atConnectionLength=Fa.atConnectionLengthKeepGradient,Fa.atConnectionRatio=Fa.atConnectionRatioKeepGradient,Fa.refX2=Fa.refX,Fa.refY2=Fa.refY,Fa.refWidth2=Fa.refWidth,Fa.refHeight2=Fa.refHeight,Fa["ref-x"]=Fa.refX,Fa["ref-y"]=Fa.refY,Fa["ref-dy"]=Fa.refDy,Fa["ref-dx"]=Fa.refDx,Fa["ref-width"]=Fa.refWidth,Fa["ref-height"]=Fa.refHeight,Fa["x-alignment"]=Fa.xAlignment,Fa["y-alignment"]=Fa.yAlignment;const _ae=Fa,np=Nd.Model.extend({constructor:function(t,n){var e,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Fct("c"),this.attributes={},n&&n.collection&&(this.collection=n.collection),n&&n.parse&&(i=this.parse(i,n)||{}),(e=_1(this,"defaults"))&&(i=F1({},e,i)),this.set(i,n),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,n,e){throw new Error("Must define a translate() method.")},toJSON:function(){const n=_1(this.constructor.prototype,"defaults").attrs||{},i={};ch(this.attributes.attrs,function(r,a){const l=n[a];ch(r,function(u,f){qc(u)&&!Array.isArray(u)?ch(u,function(w,T){(!l||!l[f]||!Wv(l[f][T],w))&&(i[a]=i[a]||{},(i[a][f]||(i[a][f]={}))[T]=w)}):(!l||!Wv(l[f],u))&&(i[a]=i[a]||{},i[a][f]=u)})});const o=sh(P4(this.attributes,"attrs"));return o.attrs=i,o},initialize:function(t){const n=this.getIdAttribute();(!t||!(n in t))&&this.set(n,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},processPorts:function(){var t=this.ports,n={};ch(this.get("attrs"),function(r,a){r&&r.port&&(void 0!==r.port.id?n[r.port.id]=r.port:n[r.port]={id:r.port})});var e={};ch(t,function(r,a){n[a]||(e[a]=!0)}),this.graph&&!S4(e)&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(r){e[r.get("target").port]&&r.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(r){e[r.get("source").port]&&r.remove()})),this.ports=n},remove:function(t={}){const{graph:n,collection:e}=this;if(!n)return e&&e.remove(this,t),this;n.startBatch("remove");const i=this.getParentCell();i&&i.unembed(this,t);const o=this.getEmbeddedCells();for(let r=0,a=o.length;rthis!==e&&!this.isEmbeddedIn(e))},_embedCells:function(t,n){const e="embed";this.startBatch(e);const i=Ar([],this.get("embeds"));t.forEach(o=>{i[o.isLink()?"unshift":"push"](o.id),o.parent(this.id,n)}),this.set("embeds",Z_(i),n),this.stopBatch(e)},_unembedCells:function(t,n){const e="unembed";this.startBatch(e),t.forEach(i=>i.unset("parent",n)),this.set("embeds",Zz(this.get("embeds"),...t.map(i=>i.id)),n),this.stopBatch(e)},getParentCell:function(){var t=this.parent(),n=this.graph;return t&&n&&n.getCell(t)||null},getAncestors:function(){var t=[];if(!this.graph)return t;for(var n=this.getParentCell();n;)t.push(n),n=n.getParentCell();return t},getEmbeddedCells:function(t){if(t=t||{},this.graph){var n;if(t.deep)if(t.breadthFirst){n=[];for(var e=this.getEmbeddedCells();e.length>0;){var i=e.shift();n.push(i),e.push.apply(e,i.getEmbeddedCells())}}else(n=this.getEmbeddedCells()).forEach(function(o){n.push.apply(n,o.getEmbeddedCells(t))});else n=Ba(this.get("embeds")).map(this.graph.getCell,this.graph);return n}return[]},isEmbeddedIn:function(t,n){var e=pd(t)?t:t.id,i=this.parent();if(n=ah({deep:!0},n),this.graph&&n.deep){for(;i;){if(i===e)return!0;i=this.graph.getCell(i).parent()}return!1}return i===e},isEmbedded:function(){return!!this.parent()},clone:function(t){if((t=t||{}).deep)return Ba(rae([this].concat(this.getEmbeddedCells({deep:!0}))));var n=Nd.Model.prototype.clone.apply(this,arguments);return n.set(this.getIdAttribute(),this.generateId()),n.unset("embeds"),n.unset("parent"),n},prop:function(t,n,e){var i="/",o=pd(t);if(o||Array.isArray(t)){if(arguments.length>1){var r,a;o?a=(r=t).split("/"):(r=t.join(i),a=t.slice());var l=a[0],u=a.length;if((e=e||{}).propertyPath=r,e.propertyValue=n,e.propertyPathArray=a,1===u)return this.set(l,n,e);for(var f={},w=f,T=l,U=1;U{u[t]&&(u[t]=Zz(u[t],f),0===u[t].length&&delete u[t]),this.stopPendingTransitions(t,i),a=e.valueFunction(Uv(this.attributes,t,i),n),this._transitionIds[t]=$z(T),this.trigger("transition:start",this,t)},e.delay,l),u[t]||(u[t]=[]),u[t].push(f),f},getTransitions:function(){return Kz(Object.keys(this._transitionIds),Object.keys(this._scheduledTransitionIds))},stopScheduledTransitions:function(t,n="/"){const{_scheduledTransitionIds:e={}}=this;let i=Object.keys(e);if(t){const o=t.split(n);i=i.filter(r=>Wv(o,r.split(n).slice(0,o.length)))}return i.forEach(o=>{e[o].forEach(a=>clearTimeout(a)),delete e[o]}),this},stopPendingTransitions(t,n="/"){const{_transitionIds:e={}}=this;let i=Object.keys(e);if(t){const o=t.split(n);i=i.filter(r=>Wv(o,r.split(n).slice(0,o.length)))}i.forEach(o=>{Xz(e[o]),delete e[o],this.trigger("transition:end",this,o)})},stopTransitions:function(t,n="/"){return this.stopScheduledTransitions(t,n),this.stopPendingTransitions(t,n),this},addTo:function(t,n){return t.addCell(this,n),this},findView:function(t){return t.findViewByModel(this)},isElement:function(){return!1},isLink:function(){return!1},startBatch:function(t,n){return this.graph&&this.graph.startBatch(t,Ar({},n,{cell:this})),this},stopBatch:function(t,n){return this.graph&&this.graph.stopBatch(t,Ar({},n,{cell:this})),this},getChangeFlag:function(t){var n=0;if(!t)return n;for(var e in t)!t.hasOwnProperty(e)||!this.hasChanged(e)||(n|=t[e]);return n},angle:function(){return 0},position:function(){return new wn(0,0)},getPointFromConnectedLink:function(){return new wn},getBBox:function(){return new Po(0,0,0,0)},getPointRotatedAroundCenter(t,n,e){const i=new wn(n,e);return t&&i.rotate(this.getBBox().center(),t),i},getAbsolutePointFromRelative(t,n){return this.getPointRotatedAroundCenter(-this.angle(),this.position().offset(t,n))},getRelativePointFromAbsolute(t,n){return this.getPointRotatedAroundCenter(this.angle(),t,n).difference(this.position())}},{getAttributeDefinition:function(t){var n=this.attributes;return n&&n[t]||_ae[t]},define:function(t,n,e,i){e=Ar({defaults:Qz({type:t},n,this.prototype.defaults)},e);var o=this.extend(e,i);return"undefined"!=typeof joint&&tp(joint,"shapes")&&qz(joint.shapes,t,o,"."),o}});function Cae(t,n,e){var i=t.toJSON();return i.angle=n||0,ah({},e,i)}function $v(t,n,e){return t.map(function(i,o,r){var a=this.pointAt((o+.5)/r.length);return(i.dx||i.dy)&&a.offset(i.dx||0,i.dy||0),Cae(a.round(),0,i)},Nm(n,e))}function vae(t,n,e,i){var o=n.center(),r=n.width/n.height,a=n.topMiddle(),l=d2.fromRect(n);return t.map(function(u,f,w){var T=e+i(f,w.length),U=a.clone().rotate(o,-T).scale(r,1,o),ie=u.compensateRotation?-l.tangentTheta(U):0;return(u.dx||u.dy)&&U.offset(u.dx||0,u.dy||0),u.dr&&U.move(o,u.dr),Cae(U.round(),ie,u)})}function nF(t,n){var e=n.x;pd(e)&&(e=parseFloat(e)/100*t.width);var i=n.y;return pd(i)&&(i=parseFloat(i)/100*t.height),Bv(e||0,i||0)}const Uct=function(t,n,e){return t.map(nF.bind(null,n))},jct=function(t,n,e){return e.fn(t,n,e)},Wct=function(t,n,e){return $v(t,nF(n,e.start||n.origin()),nF(n,e.end||n.corner()))},qct=function(t,n,e){return $v(t,n.origin(),n.bottomLeft())},$ct=function(t,n,e){return $v(t,n.topRight(),n.corner())},Xct=function(t,n,e){return $v(t,n.origin(),n.topRight())},Qct=function(t,n,e){return $v(t,n.bottomLeft(),n.corner())},Zct=function(t,n,e){var o=e.step||360/t.length;return vae(t,n,e.startAngle||0,function(r){return r*o})},Kct=function(t,n,e){var o=e.step||20;return vae(t,n,e.startAngle||0,function(r,a){return(r+.5-a/2)*o})};function E4(t,n){return Qz({},t,n,{x:0,y:0,angle:0,attrs:{".":{y:"0","text-anchor":"start"}}})}function bae(t,n,e,i){i=ah({},i,{offset:15});var a,l,u,f,o=n.center().theta(t),r=xae(n),w=i.offset,T=0;or[2]?(u=".3em",a=w,l=0,f="start"):oT[2]?(l=".3em",r=-f,a=0,u="end"):o-270&&o<-90?(u="start",r=o-180):u="end";var f=Math.round;return E4({x:f(a.x),y:f(a.y),angle:n?r:0,attrs:{".":{y:l,"text-anchor":u}}})}const Jct=function(t,n,e){return E4(e,n)},elt=function(t,n,e){return E4(e,{x:-15,attrs:{".":{y:".3em","text-anchor":"end"}}})},tlt=function(t,n,e){return E4(e,{x:15,attrs:{".":{y:".3em","text-anchor":"start"}}})},nlt=function(t,n,e){return E4(e,{y:-15,attrs:{".":{"text-anchor":"middle"}}})},ilt=function(t,n,e){return E4(e,{y:15,attrs:{".":{y:".6em","text-anchor":"middle"}}})},olt=function(t,n,e){return bae(t,n,!0,e)},rlt=function(t,n,e){return bae(t,n,!1,e)},alt=function(t,n,e){return yae(t,n,!0,e)},slt=function(t,n,e){return yae(t,n,!1,e)},clt=function(t,n,e){return wae(t.difference(n.center()),!1,e)},llt=function(t,n,e){return wae(t.difference(n.center()),!0,e)};var Mae=function(t){var n=sh(t)||{};this.ports=[],this.groups={},this.portLayoutNamespace=x,this.portLabelLayoutNamespace=S,this._init(n)};Mae.prototype={getPorts:function(){return this.ports},getGroup:function(t){return this.groups[t]||{}},getPortsByGroup:function(t){return this.ports.filter(function(n){return n.group===t})},getGroupPortsMetrics:function(t,n){var e=this.getGroup(t),i=this.getPortsByGroup(t),o=e.position||{},r=o.name,a=this.portLayoutNamespace;a[r]||(r="left");var l=o.args||{},u=i.map(function(T){return T&&T.position&&T.position.args}),f=a[r](u,n,l),w={ports:i,result:[]};return Ba(f).reduce(function(T,U,ie){var se=T.ports[ie];return T.result.push({portId:se.id,portTransformation:U,labelTransformation:this._getPortLabelLayout(se,wn(U),n),portAttrs:se.attrs,portSize:se.size,labelSize:se.label.size}),T}.bind(this),w),w.result},_getPortLabelLayout:function(t,n,e){var i=this.portLabelLayoutNamespace,o=t.label.position.name||"left";return i[o]?i[o](n,e,t.label.position.args):null},_init:function(t){if(qc(t.groups))for(var n=Object.keys(t.groups),e=0,i=n.length;e0},hasPort:function(t){return-1!==this.getPortIndex(t)},getPorts:function(){return sh(this.prop("ports/items"))||[]},getGroupPorts:function(t){const n=Ba(this.prop(["ports","items"])).filter(e=>e.group===t);return sh(n)},getPort:function(t){return sh(Ba(this.prop("ports/items")).find(function(n){return n.id&&n.id===t}))},getPortsPositions:function(t){return this._portSettingsData.getGroupPortsMetrics(t,Po(this.size())).reduce(function(e,i){var o=i.portTransformation;return e[i.portId]={x:o.x,y:o.y,angle:o.angle},e},{})},getPortIndex:function(t){var n=qc(t)?t.id:t;return this._isValidPortId(n)?Ba(this.prop("ports/items")).findIndex(function(e){return e.id===n}):-1},addPort:function(t,n){if(!qc(t)||Array.isArray(t))throw new Error("Element: addPort requires an object.");var e=Ar([],this.prop("ports/items"));return e.push(t),this.prop("ports/items",e,n),this},insertPort:function(t,n,e){const i="number"==typeof t?t:this.getPortIndex(t);if(!qc(n)||Array.isArray(n))throw new Error("dia.Element: insertPort requires an object.");const o=Ar([],this.prop("ports/items"));return o.splice(i,0,n),this.prop("ports/items",o,e),this},portProp:function(t,n,e,i){var o=this.getPortIndex(t);if(-1===o)throw new Error("Element: unable to find port with id "+t);var r=Array.prototype.slice.call(arguments,1);return Array.isArray(n)?r[0]=["ports","items",o].concat(n):pd(n)?r[0]=["ports/items/",o,"/",n].join(""):(r=["ports/items/"+o],z1(n)&&(r.push(n),r.push(e))),this.prop.apply(this,r)},_validatePorts:function(){var t=this.get("ports")||{},n=[],e=Ba((t=t||{}).items);return e.forEach(function(i){"object"!=typeof i&&n.push("Element: invalid port ",i),this._isValidPortId(i.id)||(i.id=this.generatePortId())},this),Z_(e,"id").length!==e.length&&n.push("Element: found id duplicities in ports."),n},generatePortId:function(){return this.generateId()},_isValidPortId:function(t){return null!=t&&!qc(t)},addPorts:function(t,n){return t.length&&this.prop("ports/items",Ar([],this.prop("ports/items")).concat(t),n),this},removePort:function(t,n){const e=n||{},i=this.getPortIndex(t);if(-1!==i){const o=Ar([],this.prop(["ports","items"]));o.splice(i,1),e.rewrite=!0,this.startBatch("port-remove"),this.prop(["ports","items"],o,e),this.stopBatch("port-remove")}return this},removePorts:function(t,n){let e,i;if(Array.isArray(t)){if(e=n||{},0===t.length)return this.this;i=Ar([],this.prop(["ports","items"])).filter(function(r){return!t.some(function(a){const l=qc(a)?a.id:a;return r.id===l})})}else e=t||{},i=[];return this.startBatch("port-remove"),e.rewrite=!0,this.prop(["ports","items"],i,e),this.stopBatch("port-remove"),this},_createPortData:function(){var n,t=this._validatePorts();if(t.length>0)throw this.set("ports",this.previous("ports")),new Error(t.join(" "));this._portSettingsData&&(n=this._portSettingsData.getPorts()),this._portSettingsData=new Mae(this.get("ports"));var e=this._portSettingsData.getPorts();if(n){var i=e.filter(function(r){if(!n.find(function(a){return a.id===r.id}))return r}),o=n.filter(function(r){if(!e.find(function(a){return a.id===r.id}))return r});o.length>0&&this.trigger("ports:remove",this,o),i.length>0&&this.trigger("ports:add",this,i)}}},ult={portContainerMarkup:"g",portMarkup:[{tagName:"circle",selector:"circle",attributes:{r:10,fill:"#FFFFFF",stroke:"#000000"}}],portLabelMarkup:[{tagName:"text",selector:"text",attributes:{fill:"#000000"}}],_portElementsCache:null,_initializePorts:function(){this._cleanPortsCache()},_refreshPorts:function(){this._removePorts(),this._cleanPortsCache(),this._renderPorts()},_cleanPortsCache:function(){this._portElementsCache={}},_renderPorts:function(){for(var t=[],n=this._getContainerElement(),e=0,i=n.node.childNodes.length;e1?wi("g").append(u):wi(u.firstChild),o=l.selectors}else n=wi(a),Array.isArray(n)&&(n=wi("g").append(n));if(!n)throw new Error("ElementView: Invalid port markup.");n.attr({port:t.id,"port-group":t.group});const f=this._getPortLabelMarkup(t.label);if(Array.isArray(f)){const{fragment:U,selectors:ie}=this.parseDOMJSON(f,r.node),se=U.childNodes.length;se>0&&(i=ie,e=1===se?wi(U.firstChild):wi("g").append(U))}else e=wi(f),Array.isArray(e)&&(e=wi("g").append(e));var w;if(o&&i){for(var T in i)if(o[T]&&T!==this.selector)throw new Error("ElementView: selectors within port must be unique.");w=Ar({},o,i)}else w=o||i;return r.append(n.addClass("joint-port-body")),e&&r.append(e.addClass("joint-port-label")),this._portElementsCache[t.id]={portElement:r,portLabelElement:e,portSelectors:w,portLabelSelectors:i,portContentElement:n,portContentSelectors:o},r},_updatePortGroup:function(t){for(var n=Po(this.model.size()),e=this.model._portSettingsData.getGroupPortsMetrics(t,n),i=0,o=e.length;iT.isElement());if(0===e.length)return this;this.startBatch("fit-embeds",t),t.deep&&Kh(e,"fitEmbeds",t);const{left:i,right:o,top:r,bottom:a}=Q_(t.padding);let{x:l,y:u,width:f,height:w}=n.getCellsBBox(e);return l-=i,u-=r,f+=i+o,w+=a+r,this.set({position:{x:l,y:u},size:{width:f,height:w}},t),this.stopBatch("fit-embeds"),this},rotate:function(t,n,e,i){if(e){var o=this.getBBox().center(),r=this.get("size"),a=this.get("position");o.rotate(e,this.get("angle")-t);var l=o.x-r.width/2-a.x,u=o.y-r.height/2-a.y;this.startBatch("rotate",{angle:t,absolute:n,origin:e}),this.position(a.x+l,a.y+u,i),this.rotate(t,n,null,i),this.stopBatch("rotate")}else this.set("angle",n?t:(this.get("angle")+t)%360,i);return this},angle:function(){return K0(this.get("angle")||0)},getBBox:function(t={}){const{graph:n,attributes:e}=this,{deep:i,rotate:o}=t;if(i&&n){const T=this.getEmbeddedCells({deep:!0,breadthFirst:!0});return T.push(this),n.getCellsBBox(T,t)}const{angle:r=0,position:{x:a,y:l},size:{width:u,height:f}}=e,w=new Po(a,l,u,f);return o&&w.rotateAroundCenter(r),w},getPointFromConnectedLink:function(t,n){var e=this.getBBox(),i=e.center(),o=t.get(n);if(!o)return i;var r=o.port;if(!r||!this.hasPort(r))return i;var a=this.portProp(r,["group"]),l=this.getPortsPositions(a),u=new wn(l[r]).offset(e.origin()),f=this.angle();return f&&u.rotate(i,-f),u}});Ar(Vs.prototype,dlt);const Hm={},e8=Nd.View.extend({options:{},theme:null,themeClassNamePrefix:Zh("theme-"),requireSetThemeOverride:!1,defaultTheme:oh.defaultTheme,children:null,childNodes:null,DETACHABLE:!0,UPDATE_PRIORITY:2,FLAG_INSERT:1<<30,FLAG_REMOVE:1<<29,constructor:function(t){this.requireSetThemeOverride=t&&!!t.theme,this.options=Ar({},this.options,t),Nd.View.call(this,t)},initialize:function(){Hm[this.cid]=this,this.setTheme(this.options.theme||this.defaultTheme),this.init()},unmount:function(){this.svgElement?this.vel.remove():this.$el.remove()},renderChildren:function(t){if(t||(t=_1(this,"children")),t){var n=this.svgElement,i=pP(t,wi.namespace[n?"svg":"xhtml"]);(n?this.vel:this.$el).empty().append(i.fragment),this.childNodes=i.selectors}return this},findAttribute:function(t,n){for(var e=n;e&&1===e.nodeType;){var i=e.getAttribute(t);if(i)return i;if(e===this.el)return null;e=e.parentNode}return null},_ensureElement:function(){if(this.el)this.setElement(_1(this,"el"));else{var t=_1(this,"tagName"),n=Ar({},_1(this,"attributes")),e=Ar({},_1(this,"style"));this.id&&(n.id=_1(this,"id")),this.setElement(this._createElement(t)),this._setAttributes(n),this._setStyle(e)}this._ensureElClassName()},_setAttributes:function(t){this.svgElement?this.vel.attr(t):this.$el.attr(t)},_setStyle:function(t){this.$el.css(t)},_createElement:function(t){return this.svgElement?document.createElementNS(wi.namespace.svg,t):document.createElement(t)},_setElement:function(t){this.$el=t instanceof Nd.$?t:Nd.$(t),this.el=this.$el[0],this.svgElement&&(this.vel=wi(this.el))},_ensureElClassName:function(){var t=_1(this,"className");if(t){var n=Zh(t);this.svgElement?this.vel.removeClass(t).addClass(n):this.$el.removeClass(t).addClass(n)}},init:function(){},onRender:function(){},confirmUpdate:function(){return 0},setTheme:function(t,n){return n=n||{},this.theme&&this.requireSetThemeOverride&&!n.override||(this.removeThemeClassName(),this.addThemeClassName(t),this.onSetTheme(this.theme,t),this.theme=t),this},addThemeClassName:function(t){if(!(t=t||this.theme))return this;var n=this.themeClassNamePrefix+t;return this.svgElement?this.vel.addClass(n):this.$el.addClass(n),this},removeThemeClassName:function(t){var n=this.themeClassNamePrefix+(t=t||this.theme);return this.svgElement?this.vel.removeClass(n):this.$el.removeClass(n),this},onSetTheme:function(t,n){},remove:function(){return this.onRemove(),this.undelegateDocumentEvents(),Hm[this.cid]=null,Nd.View.prototype.remove.apply(this,arguments),this},onRemove:function(){},getEventNamespace:function(){return".joint-event-ns-"+this.cid},delegateElementEvents:function(t,n,e){if(!n)return this;e||(e={});var i=this.getEventNamespace();for(var o in n){var r=n[o];"function"!=typeof r&&(r=this[r]),r&&As(t).on(o+i,e,r.bind(this))}return this},undelegateElementEvents:function(t){return As(t).off(this.getEventNamespace()),this},delegateDocumentEvents:function(t,n){return t||(t=_1(this,"documentEvents")),this.delegateElementEvents(document,t,n)},undelegateDocumentEvents:function(){return this.undelegateElementEvents(document)},eventData:function(t,n){if(!t)throw new Error("eventData(): event object required.");var e=t.data,i="__"+this.cid+"__";return void 0===n?e&&e[i]||{}:(e||(e=t.data={}),e[i]||(e[i]={}),Ar(e[i],n),this)},stopPropagation:function(t){return this.eventData(t,{propagationStopped:!0}),this},isPropagationStopped:function(t){return!!this.eventData(t).propagationStopped}},{extend:function(){var t=Array.from(arguments),n=t[0]&&Ar({},t[0])||{},e=t[1]&&Ar({},t[1])||{},i=n.render||this.prototype&&this.prototype.render||null;return n.render=function(){return"function"==typeof i&&i.apply(this,arguments),this.render.__render__===i&&this.onRender(),this},n.render.__render__=i,Nd.View.extend.call(this,n,e)}});if(As.event&&!("dbltap"in As.event.special)){const t=oh.doubleTapInterval,n=30;As.event.special.dbltap={bindType:"touchend",delegateType:"touchend",handle:function(e,...i){const{handleObj:o,target:r}=e,a=As.data(r),l=(new Date).getTime(),u="lastTouch"in a?l-a.lastTouch:0;un?(a.lastTouch=null,e.type=o.origType,o.handler.call(this,e,...i)):a.lastTouch=l}}}function iF(t){return t?Array.isArray(t)?t:[t]:[]}const A4=e8.extend({tagName:"g",svgElement:!0,className:"highlight",HIGHLIGHT_FLAG:1,UPDATE_PRIORITY:3,DETACHABLE:!1,UPDATABLE:!0,MOUNTABLE:!0,cellView:null,nodeSelector:null,node:null,updateRequested:!1,transformGroup:null,requestUpdate(t,n){const{paper:e}=t;this.cellView=t,this.nodeSelector=n,e&&(this.updateRequested=!0,e.requestViewUpdate(this,this.HIGHLIGHT_FLAG,this.UPDATE_PRIORITY))},confirmUpdate(){this.updateRequested=!1;const{cellView:t,nodeSelector:n}=this;return this.update(t,n),this.mount(),this.transform(),0},findNode(t,n=null){let e;if("string"==typeof n)[e]=t.findBySelector(n);else if(z1(n)){const i=t.model.isLink(),{label:o=null,port:r,selector:a}=n;i&&null!==o?e=t.findLabelNode(o,a):!i&&r?e=t.findPortNode(r,a):[e]=t.findBySelector(a)}else n&&(e=wi.toNode(n),e instanceof SVGElement||(e=null));return e||null},mount(){const{MOUNTABLE:t,cellView:n,el:e,options:i,transformGroup:o}=this;if(!t||o)return;const{vel:r,paper:a}=n,{layer:l}=i;if(l){const u=this.transformGroup=wi("g").addClass("highlight-transform").append(e);a.getLayerView(l).insertSortedNode(u.node,i.z)}else(!e.parentNode||e.nextSibling)&&r.append(e)},unmount(){const{MOUNTABLE:t,transformGroup:n,vel:e}=this;!t||(n?(this.transformGroup=null,n.remove()):e.remove())},transform(){const{transformGroup:t,cellView:n,updateRequested:e}=this;if(!t||n.model.isLink()||e)return;const i=n.getRootTranslateMatrix(),o=n.getRootRotateMatrix(),r=i.multiply(o);t.attr("transform",wi.matrixToTransformString(r))},update(){const{node:t,cellView:n,nodeSelector:e,updateRequested:i,id:o}=this;if(i)return;const r=this.node=this.findNode(n,e);t&&this.unhighlight(n,t),r?(this.highlight(n,r),this.mount()):(this.unmount(),n.notify("cell:highlight:invalid",o,this))},onRemove(){const{node:t,cellView:n,id:e,constructor:i}=this;t&&this.unhighlight(n,t),this.unmount(),i._removeRef(n,e)},highlight(t,n){},unhighlight(t,n){}},{_views:{},highlight:function(t,n,e){const i=this.uniqueId(n,e);this.add(t,n,i,e)},unhighlight:function(t,n,e){const i=this.uniqueId(n,e);this.remove(t,i)},get(t,n=null){const{cid:e}=t,{_views:i}=this,o=i[e];if(null===n){const r=[];if(!o)return r;for(let a in o){const l=o[a];l instanceof this&&r.push(l)}return r}if(!o)return null;if(n in o){const r=o[n];if(r instanceof this)return r}return null},add(t,n,e,i={}){if(!e)throw new Error("dia.HighlighterView: An ID required.");const o=A4.get(t,e);o&&o.remove();const r=new this(i);return r.id=e,this._addRef(t,e,r),r.requestUpdate(t,n),r},_addRef(t,n,e){const{cid:i}=t,{_views:o}=this;let r=o[i];r||(r=o[i]={}),r[n]=e},_removeRef(t,n){const{cid:e}=t,{_views:i}=this,o=i[e];if(o){n&&delete o[n];for(let r in o)return;delete i[e]}},remove(t,n=null){iF(this.get(t,n)).forEach(e=>{e.remove()})},update(t,n=null,e=!1){iF(this.get(t,n)).forEach(i=>{(e||i.UPDATABLE)&&i.update()})},transform(t,n=null){iF(this.get(t,n)).forEach(e=>{e.UPDATABLE&&e.transform()})},uniqueId:(t,n="")=>wi.ensureId(t)+JSON.stringify(n)}),t8={DEFAULT:"default",EMBEDDING:"embedding",CONNECTING:"connecting",MAGNET_AVAILABILITY:"magnetAvailability",ELEMENT_AVAILABILITY:"elementAvailability"},us=e8.extend({tagName:"g",svgElement:!0,selector:"root",metrics:null,className:function(){var t=["cell"],n=this.model.get("type");return n&&n.toLowerCase().split(".").forEach(function(e,i,o){t.push("type-"+o.slice(0,i+1).join("-"))}),t.join(" ")},_presentationAttributes:null,_flags:null,setFlags:function(){var i,o,r,t={},n={},e=0,a=_1(this,"presentationAttributes");for(var l in a)if(a.hasOwnProperty(l)){var u=a[l];for(Array.isArray(u)||(u=[u]),i=0,o=u.length;i25)throw new Error("dia.CellView: Maximum number of flags exceeded.");this._flags=t,this._presentationAttributes=n},hasFlag:function(t,n){return t&this.getFlag(n)},removeFlag:function(t,n){return t^t&this.getFlag(n)},getFlag:function(t){var n=this._flags;if(!n)return 0;var e=0;if(Array.isArray(t))for(var i=0,o=t.length;i0&&e.requestViewUpdate(this,t,this.UPDATE_PRIORITY,n)},parseDOMJSON:function(t,n){var e=pP(t),i=e.selectors,o=e.groupSelectors;for(var r in o){if(i[r])throw new Error("dia.CellView: ambiguous group selector");i[r]=o[r]}if(n){var a=this.selector;if(i[a])throw new Error("dia.CellView: ambiguous root selector.");i[a]=n}return{fragment:e.fragment,selectors:i}},can:function(t){var n=Hs(this.options.interactive)?this.options.interactive(this):this.options.interactive;return qc(n)&&!1!==n[t]||function(t){return!0===t||!1===t||!!t&&"object"==typeof t&&"[object Boolean]"===Object.prototype.toString.call(t)}(n)&&!1!==n},findBySelector:function(t,n,e){if(n||(n=this.el),e||(e=this.selectors),!t||"."===t)return[n];if(e){var i=e[t];if(i)return Array.isArray(i)?i:[i]}return oh.useCSSSelectors?As(n).find(t).toArray():[]},notify:function(t){if(this.paper){var n=Array.prototype.slice.call(arguments,1);this.trigger.apply(this,[t].concat(n)),this.paper.trigger.apply(this.paper,[t,this].concat(n))}},getBBox:function(t){var n;if(t&&t.useModelGeometry){var e=this.model;n=e.getBBox().bbox(e.angle())}else n=this.getNodeBBox(this.el);return this.paper.localToPaperRect(n)},getNodeBBox:function(t){var n=this.getNodeBoundingRect(t),e=this.getNodeMatrix(t),i=this.getRootTranslateMatrix(),o=this.getRootRotateMatrix();return wi.transformRect(n,i.multiply(o).multiply(e))},getNodeUnrotatedBBox:function(t){var n=this.getNodeBoundingRect(t),e=this.getNodeMatrix(t),i=this.getRootTranslateMatrix();return wi.transformRect(n,i.multiply(e))},getRootTranslateMatrix:function(){var n=this.model.position();return wi.createSVGMatrix().translate(n.x,n.y)},getRootRotateMatrix:function(){var t=wi.createSVGMatrix(),n=this.model,e=n.angle();if(e){var i=n.getBBox(),o=i.width/2,r=i.height/2;t=t.translate(o,r).rotate(e).translate(-o,-r)}return t},_notifyHighlight:function(t,n,e={}){const{el:i}=this;let o;if([o=i]="string"==typeof n?this.findBySelector(n):this.$(n),e.partial=o!==i,void 0===e.type){let r;switch(!0){case e.embedding:r=t8.EMBEDDING;break;case e.connecting:r=t8.CONNECTING;break;case e.magnetAvailability:r=t8.MAGNET_AVAILABILITY;break;case e.elementAvailability:r=t8.ELEMENT_AVAILABILITY;break;default:r=t8.DEFAULT}e.type=r}return this.notify(t,o,e),this},highlight:function(t,n){return this._notifyHighlight("cell:highlight",t,n)},unhighlight:function(t,n={}){return this._notifyHighlight("cell:unhighlight",t,n)},findMagnet:function(t){const n=this.el;let e=this.$(t)[0];e||(e=n);do{const i=e.getAttribute("magnet"),o=e===n;if((i||o)&&"false"!==i)return e;if(o)return;e=e.parentNode}while(e)},findProxyNode:function(t,n){t||(t=this.el);const e=t.getAttribute(`${n}-selector`);if(e){const[i]=this.findBySelector(e);if(i)return i}return t},getSelector:function(t,n){var e;if(t===this.el)return"string"==typeof n&&(e="> "+n),e;if(t){var i=wi(t).index()+1;e=t.tagName+":nth-child("+i+")",n&&(e+=" > "+n),e=this.getSelector(t.parentNode,e)}return e},addLinkFromMagnet:function(t,n,e){var i=this.paper,o=i.model,r=i.getDefaultLink(this,t);return r.set({source:this.getLinkEnd(t,n,e,r,"source"),target:{x:n,y:e}}).addTo(o,{async:!1,ui:!0}),r.findView(i)},getLinkEnd:function(t,...n){var e=this.model,i=e.id,o=this.findAttribute("port",t),r=t.getAttribute("joint-selector"),a={id:i};return null!=r&&(a.magnet=r),null!=o?(a.port=o,!e.hasPort(o)&&!r&&(a.selector=this.getSelector(t))):null==r&&this.el!==t&&(a.selector=this.getSelector(t)),this.customizeLinkEnd(a,t,...n)},customizeLinkEnd:function(t,n,e,i,o,r){const{paper:a}=this,{connectionStrategy:l}=a.options;if("function"==typeof l){var u=l.call(a,t,this,n,new wn(e,i),o,r,a);if(u)return u}return t},getMagnetFromLinkEnd:function(t){var r,n=this.el,e=t.port,i=t.magnet,o=this.model;return null!=e&&o.isElement()&&o.hasPort(e)?r=this.findPortNode(e,i)||n:(i||(i=t.selector),!i&&null!=e&&(i='[port="'+e+'"]'),r=this.findBySelector(i,n,this.selectors)[0]),this.findProxyNode(r,"magnet")},dragLinkStart:function(t,n,e,i){this.model.startBatch("add-link");const o=this.addLinkFromMagnet(n,e,i);o.notifyPointerdown(t,e,i),o.eventData(t,o.startArrowheadMove("target",{whenNotAllowed:"remove"})),this.eventData(t,{linkView:o})},dragLink:function(t,n,e){var i=this.eventData(t),o=i.linkView;if(o)o.pointermove(t,n,e);else{var r=this.paper,a=r.options.magnetThreshold,l=this.getEventTarget(t),u=i.targetMagnet;if("onleave"===a){if(u===l||wi(u).contains(l))return}else if(r.eventData(t).mousemoved<=a)return;this.dragLinkStart(t,u,n,e)}},dragLinkEnd:function(t,n,e){var o=this.eventData(t).linkView;!o||(o.pointerup(t,n,e),this.model.stopBatch("add-link"))},getAttributeDefinition:function(t){return this.model.constructor.getAttributeDefinition(t)},setNodeAttributes:function(t,n){S4(n)||(t instanceof SVGElement?wi(t).attr(n):As(t).attr(n))},processNodeAttributes:function(t,n){var e,i,o,r,a,l,u,f,w,T=[];for(e in n)!n.hasOwnProperty(e)||(i=n[e],!(o=this.getAttributeDefinition(e))||Hs(o.qualify)&&!o.qualify.call(this,i,t,n)?(l||(l={}),l[Pct(e)]=i):(pd(o.set)&&(l||(l={}),l[o.set]=i),null!==i&&T.push(e,o)));for(r=0,a=T.length;r0&&rt.height>0){var xt=wi.transformRect(rt,se).scale(1/we,1/He);for(o in T)r=T[o],(Be=this.getAttributeDefinition(o).offset.call(this,r,xt,t,l))&&(Me.offset(wn(Be).scale(we,He)),qe||(qe=!0))}}(void 0!==ie||ze||qe)&&(Me.round(1),se.e=Me.x,se.f=Me.y,t.setAttribute("transform",wi.matrixToTransformString(se)))}},getNodeScale:function(t,n){var e,i;if(n&&n.contains(t)){var o=n.scale();e=1/o.sx,i=1/o.sy}else e=1,i=1;return{sx:e,sy:i}},cleanNodesCache:function(){this.metrics={}},nodeCache:function(t){var n=this.metrics;if(!n)return{};var e=wi.ensureId(t),i=n[e];return i||(i=n[e]={}),i},getNodeData:function(t){var n=this.nodeCache(t);return n.data||(n.data={}),n.data},getNodeBoundingRect:function(t){var n=this.nodeCache(t);return void 0===n.boundingRect&&(n.boundingRect=wi(t).getBBox()),new Po(n.boundingRect)},getNodeMatrix:function(t){var n=this.nodeCache(t);if(void 0===n.magnetMatrix){var e=this.rotatableNode||this.el;n.magnetMatrix=wi(t).getTransformToElement(e)}return wi.createSVGMatrix(n.magnetMatrix)},getNodeShape:function(t){var n=this.nodeCache(t);return void 0===n.geometryShape&&(n.geometryShape=wi(t).toGeometryShape()),n.geometryShape.clone()},isNodeConnection:function(t){return this.model.isLink()&&(!t||t===this.el)},findNodesAttributes:function(t,n,e,i){var o,r,a,l,u={},f=[];for(var w in t)if(t.hasOwnProperty(w)&&z1(a=t[w])){var T=e[w]=this.findBySelector(w,n,i);for(o=0,r=T.length;o-1?a.splice(me,0,l):a.push(l)}else r.push(l)}else this.setNodeAttributes(u,T.normal);r.push(...a);for(var ze,qe=0,rt=r.length;qe0&&(r=!0);var a=o.getBBox({recursive:r});o.attr("transform","scale("+i.width/(a.width||1)+","+i.height/(a.height||1)+")");var f=this.rotatableNode,w=f&&f.attr("transform");if(w){f.attr("transform",w+" rotate("+-e+","+i.width/2+","+i.height/2+")");var T=o.getBBox({target:this.paper.cells});n.set("position",{x:T.x,y:T.y},Ar({updateHandled:!0},t)),this.translate(),this.rotate()}this.update()},prepareEmbedding:function(t={}){const n=t.model||this.model,i=(t.paper||this.paper).model,o=t.initialZIndices={},r=n.getEmbeddedCells({deep:!0}),a=i.getConnectedLinks(n,{deep:!0,includeEnclosed:!0});[n,...r,...a].forEach(f=>o[f.id]=f.attributes.z),n.startBatch("to-front"),n.toFront({deep:!0,ui:!0});const l=i.getElements().reduce((f,w)=>Math.max(f,w.attributes.z||0),0);a.forEach(f=>{f.attributes.z<=l&&f.set("z",l+1,{ui:!0})}),n.stopBatch("to-front");const u=n.parent();u?(i.getCell(u).unembed(n,{ui:!0}),t.initialParentId=u):t.initialParentId=null},processEmbedding:function(t={},n,e,i){const o=t.model||this.model,r=t.paper||this.paper,a=r.model,{findParentBy:l,frontParentOnly:u,validateEmbedding:f}=r.options;let w;w=Hs(l)?Ba(l.call(a,this,n,e,i)):"pointer"===l?Ba(a.findModelsFromPoint({x:e,y:i})):a.findModelsUnderElement(o,{searchBy:l}),w=w.filter(ie=>ie instanceof np&&o.id!==ie.id&&!ie.isEmbeddedIn(o)),u&&(w=w.slice(-1));let T=null;const U=t.candidateEmbedView;for(let ie=w.length-1;ie>=0;ie--){const se=w[ie];if(U&&U.model.id==se.id){T=U;break}{const Me=se.findView(r);if(!Hs(f)||f.call(r,this,Me)){T=Me;break}}}T&&T!=U&&(this.clearEmbedding(t),t.candidateEmbedView=T.highlight(T.findProxyNode(null,"container"),{embedding:!0})),!T&&U&&this.clearEmbedding(t)},clearEmbedding:function(t){t||(t={});var n=t.candidateEmbedView;n&&(n.unhighlight(n.findProxyNode(null,"container"),{embedding:!0}),t.candidateEmbedView=null)},finalizeEmbedding:function(t={}){const n=t.candidateEmbedView,e=t.model||this.model,i=t.paper||this.paper;if(n)n.model.embed(e,{ui:!0}),n.unhighlight(n.findProxyNode(null,"container"),{embedding:!0}),t.candidateEmbedView=null;else{const{validateUnembedding:o}=i.options,{initialParentId:r}=t;if(r&&"function"==typeof o&&!o.call(i,this))return void this._disallowUnembed(t)}i.model.getConnectedLinks(e,{deep:!0}).forEach(o=>{o.reparent({ui:!0})})},_disallowUnembed:function(t){const{model:n,whenNotAllowed:e="revert"}=t,i=n||this.model,r=(t.paper||this.paper).model;switch(e){case"remove":i.remove({ui:!0});break;case"revert":{const{initialParentId:a,initialPosition:l,initialZIndices:u}=t;if(l){const{x:w,y:T}=l;i.position(w,T,{deep:!0,ui:!0})}u&&Object.keys(u).forEach(w=>{const T=r.getCell(w);T&&T.set("z",u[w],{ui:!0})});const f=r.getCell(a);f&&f.embed(i,{ui:!0});break}}},getDelegatedView:function(){for(var t=this,n=t.model,e=t.paper;t&&!n.isLink();){if(!n.isEmbedded()||t.can("stopDelegation"))return t;n=n.getParentCell(),t=e.findViewByModel(n)}return null},findProxyNode:function(t,n){t||(t=this.el);const e=t.getAttribute(`${n}-selector`);if(e){const i=this.findAttribute("port",t);if(i){const o=this.findPortNode(i,e);if(o)return o}else{const[o]=this.findBySelector(e);if(o)return o}}return t},notifyPointerdown(t,n,e){us.prototype.pointerdown.call(this,t,n,e),this.notify("element:pointerdown",t,n,e)},notifyPointermove(t,n,e){us.prototype.pointermove.call(this,t,n,e),this.notify("element:pointermove",t,n,e)},notifyPointerup(t,n,e){this.notify("element:pointerup",t,n,e),us.prototype.pointerup.call(this,t,n,e)},pointerdblclick:function(t,n,e){us.prototype.pointerdblclick.apply(this,arguments),this.notify("element:pointerdblclick",t,n,e)},pointerclick:function(t,n,e){us.prototype.pointerclick.apply(this,arguments),this.notify("element:pointerclick",t,n,e)},contextmenu:function(t,n,e){us.prototype.contextmenu.apply(this,arguments),this.notify("element:contextmenu",t,n,e)},pointerdown:function(t,n,e){this.isPropagationStopped(t)||(this.notifyPointerdown(t,n,e),this.dragStart(t,n,e))},pointermove:function(t,n,e){var i=this.eventData(t);switch(i.action){case"magnet":this.dragMagnet(t,n,e);break;case"move":(i.delegatedView||this).drag(t,n,e);default:this.notifyPointermove(t,n,e)}this.eventData(t,i)},pointerup:function(t,n,e){var i=this.eventData(t);switch(i.action){case"magnet":this.dragMagnetEnd(t,n,e);break;case"move":(i.delegatedView||this).dragEnd(t,n,e);default:this.notifyPointerup(t,n,e)}var o=i.targetMagnet;o&&this.magnetpointerclick(t,o,n,e),this.checkMouseleave(t)},mouseover:function(t){us.prototype.mouseover.apply(this,arguments),this.notify("element:mouseover",t)},mouseout:function(t){us.prototype.mouseout.apply(this,arguments),this.notify("element:mouseout",t)},mouseenter:function(t){us.prototype.mouseenter.apply(this,arguments),this.notify("element:mouseenter",t)},mouseleave:function(t){us.prototype.mouseleave.apply(this,arguments),this.notify("element:mouseleave",t)},mousewheel:function(t,n,e,i){us.prototype.mousewheel.apply(this,arguments),this.notify("element:mousewheel",t,n,e,i)},onmagnet:function(t,n,e){this.dragMagnetStart(t,n,e)},magnetpointerdblclick:function(t,n,e,i){this.notify("element:magnet:pointerdblclick",t,n,e,i)},magnetcontextmenu:function(t,n,e,i){this.notify("element:magnet:contextmenu",t,n,e,i)},dragStart:function(t,n,e){var i=this.getDelegatedView();if(!i||!i.can("elementMove"))return;this.eventData(t,{action:"move",delegatedView:i});const o=i.model.position();i.eventData(t,{initialPosition:o,pointerOffset:o.difference(n,e),restrictedArea:this.paper.getRestrictedArea(i,n,e)})},dragMagnetStart:function(t,n,e){if(this.can("addLinkFromMagnet")){var i=t.currentTarget,o=this.paper;this.eventData(t,{targetMagnet:i}),t.stopPropagation(),o.options.validateMagnet(this,i,t)?(o.options.magnetThreshold<=0&&this.dragLinkStart(t,i,n,e),this.eventData(t,{action:"magnet"}),this.stopPropagation(t)):this.pointerdown(t,n,e),o.delegateDragEvents(this,t.data)}},drag:function(t,n,e){var i=this.paper,o=i.options.gridSize,r=this.model,a=this.eventData(t),{pointerOffset:l,restrictedArea:u,embedding:f}=a,w=Im(n+l.x,o),T=Im(e+l.y,o);r.position(w,T,{restrictedArea:u,deep:!0,ui:!0}),i.options.embeddingMode&&(f||(this.prepareEmbedding(a),f=!0),this.processEmbedding(a,t,n,e)),this.eventData(t,{embedding:f})},dragMagnet:function(t,n,e){this.dragLink(t,n,e)},dragEnd:function(t,n,e){var i=this.eventData(t);i.embedding&&this.finalizeEmbedding(i)},dragMagnetEnd:function(t,n,e){this.dragLinkEnd(t,n,e)},magnetpointerclick:function(t,n,e,i){var o=this.paper;o.eventData(t).mousemoved>o.options.clickThreshold||this.notify("element:magnet:pointerclick",t,n,e,i)}},{Flags:hs});Ar(fl.prototype,ult);const Sae={_results:{},_tests:{svgforeignobject:function(){return!!document.createElementNS&&/SVGForeignObject/.test({}.toString.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))}},addTest:function(t,n){return this._tests[t]=n},test:function(t){var n=this._tests[t];if(!n)throw new Error('Test not defined ("'+t+'"). Use `joint.env.addTest(name, fn) to add a new test.`');var e=this._results[t];if(void 0!==e)return e;try{e=n()}catch(i){e=!1}return this._results[t]=e,e}},ws=Vs.define("basic.Generic",{attrs:{".":{fill:"#ffffff",stroke:"none"}}}),hlt=ws.define("basic.Rect",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:100,height:60},text:{fill:"#000000",text:"","font-size":14,"ref-x":.5,"ref-y":.5,"text-anchor":"middle","y-alignment":"middle","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),plt=fl.extend({presentationAttributes:fl.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=fl.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),flt=ws.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),oF=ws.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),glt=ws.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),mlt=ws.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),_lt=ws.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Clt=ws.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Pae=ws.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),vlt=Pae.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),_P=Sae.test("svgforeignobject"),blt=ws.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',_P?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),ws.prototype.initialize.apply(this,arguments)},updateSize:function(t,n){this.attr({".fobj":Ar({},n),div:{style:Ar({},n)}})},updateContent:function(t,n){this.attr(_P?{".content":{html:Ect(n)}}:{".content":{text:n}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),xlt=fl.extend({presentationAttributes:_P?fl.prototype.presentationAttributes:fl.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=fl.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,n){var e=this.model;if(_P)fl.prototype.update.call(this,e,n);else{var i=P4(n||e.get("attrs"),".content");fl.prototype.update.call(this,e,i),(!n||tp(n,".content"))&&this.updateContent(e,n)}},updateContent:function(t,n){var e=F1({},(n||t.get("attrs"))[".content"]);e=P4(e,"text");var i=eae(t.get("content"),t.get("size"),e,{svgDocument:this.paper.svg}),o=qz({},".content",e,"/");o[".content"].text=i,fl.prototype.update.call(this,t,o)}}),H1=np.extend({markup:['','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,n,e){return void 0===t?ep(this.get("source")):t instanceof np?((i=ep(n)||{}).id=t.id,this.set("source",i,e)):z1(t)?this.set("source",i=t,n):((i=ep(n)||{}).x=t.x,i.y=t.y,this.set("source",i,e));var i},target:function(t,n,e){return void 0===t?ep(this.get("target")):t instanceof np?((i=ep(n)||{}).id=t.id,this.set("target",i,e)):z1(t)?this.set("target",i=t,n):((i=ep(n)||{}).x=t.x,i.y=t.y,this.set("target",i,e));var i},router:function(t,n,e){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?ep(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var o="object"==typeof t||"function"==typeof t;return this.set("router",o?t:{name:t,args:n},o?n:e)},connector:function(t,n,e){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?ep(i):i:this.get("smooth")?{name:"smooth"}:null}var o="object"==typeof t||"function"==typeof t;return this.set("connector",o?t:{name:t,args:n},o?n:e)},label:function(t,n,e){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],n,e)},labels:function(t,n){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,n))},hasLabels:function(){const{labels:t}=this.attributes;return Array.isArray(t)&&t.length>0},insertLabel:function(t,n,e){if(!n)throw new Error("dia.Link: no label provided");var i=this.labels(),o=i.length;return(t=isFinite(t)&&null!==t?0|t:o)<0&&(t=o+t+1),i.splice(t,0,n),this.labels(i,e)},appendLabel:function(t,n){return this.insertLabel(-1,t,n)},removeLabel:function(t,n){var e=this.labels();return t=isFinite(t)&&null!==t?0|t:-1,e.splice(t,1),this.labels(e,n)},vertex:function(t,n,e){var i=this.vertices();if((t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1)return this.prop(["vertices",t]);var o=this._normalizeVertex(n);return this.prop(["vertices",t],o,e)},vertices:function(t,n){if(0===arguments.length)return t=this.get("vertices"),Array.isArray(t)?t.slice():[];Array.isArray(t)||(t=[]);for(var e=[],i=0;i0&&(e.vertices=r.map(t)),this.set(e,n)},getSourcePoint:function(){var t=this.getSourceCell();return t?t.getPointFromConnectedLink(this,"source"):new wn(this.source())},getTargetPoint:function(){var t=this.getTargetCell();return t?t.getPointFromConnectedLink(this,"target"):new wn(this.target())},getPointFromConnectedLink:function(){return this.getPolyline().pointAt(.5)},getPolyline:function(){const t=[this.getSourcePoint(),...this.vertices().map(wn),this.getTargetPoint()];return new cc(t)},getBBox:function(){return this.getPolyline().bbox()},reparent:function(t){var n;if(this.graph){var e=this.getSourceElement(),i=this.getTargetElement(),o=this.getParentCell();e&&i&&(n=e===i||e.isEmbeddedIn(i)?i:i.isEmbeddedIn(e)?e:this.graph.getCommonAncestor(e,i)),o&&(!n||n.id!==o.id)&&o.unembed(this,t),n&&n.embed(this,t)}return n},hasLoop:function(t){t=t||{};var{source:n,target:e}=this.attributes,i=n.id,o=e.id;if(!i||!o)return!1;var r=i===o;if(!r&&t.deep&&this.graph){var a=this.getSourceCell(),l=this.getTargetCell();r=a.isEmbeddedIn(l)||l.isEmbeddedIn(a)}return r},getSourceCell:function(){const{graph:t,attributes:n}=this;var e=n.source;return e&&e.id&&t&&t.getCell(e.id)||null},getSourceElement:function(){var t=this,n={};do{if(n[t.id])return null;n[t.id]=!0,t=t.getSourceCell()}while(t&&t.isLink());return t},getTargetCell:function(){const{graph:t,attributes:n}=this;var e=n.target;return e&&e.id&&t&&t.getCell(e.id)||null},getTargetElement:function(){var t=this,n={};do{if(n[t.id])return null;n[t.id]=!0,t=t.getTargetCell()}while(t&&t.isLink());return t},getRelationshipAncestor:function(){var t;if(this.graph){var n=[this,this.getSourceElement(),this.getTargetElement()].filter(function(e){return!!e});t=this.graph.getCommonAncestor.apply(this.graph,n)}return t||null},isRelationshipEmbeddedIn:function(t){var n=pd(t)||B2(t)?t:t.id,e=this.getRelationshipAncestor();return!!e&&(e.id===n||e.isEmbeddedIn(n))},_getDefaultLabel:function(){var t=this.get("defaultLabel")||this.defaultLabel||{},n={};return n.markup=t.markup||this.get("labelMarkup")||this.labelMarkup,n.position=t.position,n.attrs=t.attrs,n.size=t.size,n}},{endsEqual:function(t,n){return t.id===n.id&&(t.port===n.port||!t.port&&!n.port)}}),ylt=Vs.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),wlt=Vs.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),Mlt=Vs.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),Olt=Vs.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),Slt=Vs.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),Plt=Vs.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),Tlt=Vs.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),Elt=Vs.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),Alt=Vs.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),Llt=Vs.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),Dlt=Vs.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),klt=Vs.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,n){if(void 0===t)return this.attr("body/lateralArea");var e=rh(t);return this.attr({body:{lateralArea:t},top:e?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t}},n)}},{attributes:{lateralArea:{set:function(t,n){var e=rh(t);e&&(t=parseFloat(t)/100);var i=n.x,o=n.y,r=n.width,a=n.height,u=e?a*t:t,f=wi.KAPPA,w=f*(r/2),T=f*(e?a*t:t),ie=i+r/2,se=i+r,Me=o+u,we=Me-u,He=o+a-u,Be=o+a;return{d:["M",i,Me,"L",i,He,"C",i,He+T,ie-w,Be,ie,Be,"C",ie+w,Be,se,He+T,se,He,"L",se,Me,"C",se,Me-T,ie+w,we,ie,we,"C",ie-w,we,i,Me-T,i,Me,"Z"].join(" ")}}}}});var Rlt=Sae.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}};const zlt=Vs.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},Rlt]},{attributes:{text:{set:function(t,n,e,i){if(!(e instanceof HTMLElement)){var o=i.style||{},r={text:t,width:-5,height:"100%"},a=Ar({textVerticalAnchor:"middle"},o);return _ae.textWrap.set.call(this,r,n,e,a),{fill:o.color||null}}e.textContent=t},position:function(t,n,e){if(e instanceof SVGElement)return n.center()}}}}),Flt=H1.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),Hlt=H1.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none"}},{tagName:"path",selector:"line",attributes:{fill:"none"}}]}),Vlt=H1.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none"}},{tagName:"path",selector:"line",attributes:{fill:"none"}}]}),aF=ws.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){ws.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,n,e){var i=Z_(this.get("inPorts")),o=iae(Z_(this.get("outPorts")),i),r=this.createPortItems("in",i),a=this.createPortItems("out",o);this.prop("ports/items",r.concat(a),Ar({rewrite:!0},e))},createPortItem:function(t,n){return{id:n,group:t,attrs:{".port-label":{text:n}}}},createPortItems:function(t,n){return Ba(n).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,n,e){var i=this.get(n);return this.set(n,Array.isArray(i)?i.concat(t):[t],e)},addOutPort:function(t,n){return this._addGroupPort(t,"outPorts",n)},addInPort:function(t,n){return this._addGroupPort(t,"inPorts",n)},_removeGroupPort:function(t,n,e){return this.set(n,Zz(this.get(n),t),e)},removeOutPort:function(t,n){return this._removeGroupPort(t,"outPorts",n)},removeInPort:function(t,n){return this._removeGroupPort(t,"inPorts",n)},_changeGroup:function(t,n,e){return this.prop("ports/groups/"+t,qc(n)?n:{},e)},changeInGroup:function(t,n){return this._changeGroup("in",t,n)},changeOutGroup:function(t,n){return this._changeGroup("out",t,n)}}),Blt=aF.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),Glt=aF.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),Tae=H1.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}}),CP=ws.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),sF=CP.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),Ylt=sF.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),Ult=sF.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),cF=CP.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),Vm=CP.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),jlt=cF.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjgiCiAgICAgaW5rc2NhcGU6Y3g9Ijg0LjY4NTM1MiIKICAgICBpbmtzY2FwZTpjeT0iMTUuMjg4NjI4IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzIuMTU2OTEsMjUgTCA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAyOS4wNDM0NzgsMjUgTCA1LjA0MzQ3ODEsMjUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0iTSAyOC45Njg3NSwyLjU5Mzc1IEwgMjguOTY4NzUsNSBMIDI4Ljk2ODc1LDQ1IEwgMjguOTY4NzUsNDcuNDA2MjUgTCAzMS4xMjUsNDYuMzQzNzUgTCA3Mi4xNTYyNSwyNi4zNDM3NSBMIDcyLjE1NjI1LDIzLjY1NjI1IEwgMzEuMTI1LDMuNjU2MjUgTCAyOC45Njg3NSwyLjU5Mzc1IHogTSAzMS45Njg3NSw3LjQwNjI1IEwgNjguMDkzNzUsMjUgTCAzMS45Njg3NSw0Mi41OTM3NSBMIDMxLjk2ODc1LDcuNDA2MjUgeiIKICAgICAgIGlkPSJwYXRoMjYzOCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2NjY2NjYyIgLz4KICA8L2c+Cjwvc3ZnPgo="}}},{operation:function(t){return t}}),Wlt=cF.define("logic.Not",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjgiCiAgICAgaW5rc2NhcGU6Y3g9Ijg0LjY4NTM1MiIKICAgICBpbmtzY2FwZTpjeT0iMTUuMjg4NjI4IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzkuMTU2OTEsMjUgTCA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAyOS4wNDM0NzgsMjUgTCA1LjA0MzQ3ODEsMjUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0iTSAyOC45Njg3NSwyLjU5Mzc1IEwgMjguOTY4NzUsNSBMIDI4Ljk2ODc1LDQ1IEwgMjguOTY4NzUsNDcuNDA2MjUgTCAzMS4xMjUsNDYuMzQzNzUgTCA3Mi4xNTYyNSwyNi4zNDM3NSBMIDcyLjE1NjI1LDIzLjY1NjI1IEwgMzEuMTI1LDMuNjU2MjUgTCAyOC45Njg3NSwyLjU5Mzc1IHogTSAzMS45Njg3NSw3LjQwNjI1IEwgNjguMDkzNzUsMjUgTCAzMS45Njg3NSw0Mi41OTM3NSBMIDMxLjk2ODc1LDcuNDA2MjUgeiIKICAgICAgIGlkPSJwYXRoMjYzOCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2NjY2NjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDI2NzEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzYiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA4MCwyNSBBIDQsNCAwIDEgMSA3MiwyNSBBIDQsNCAwIDEgMSA4MCwyNSB6IgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEsMCkiIC8+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t){return!t}}),qlt=Vm.define("logic.Or",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik9SIEFOU0kuc3ZnIgogICBpbmtzY2FwZTpvdXRwdXRfZXh0ZW5zaW9uPSJvcmcuaW5rc2NhcGUub3V0cHV0LnN2Zy5pbmtzY2FwZSI+CiAgPGRlZnMKICAgICBpZD0iZGVmczQiPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjUwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjI1IDogMTAgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjcxNCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iMSA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMC41IDogMC4zMzMzMzMzMyA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyODA2IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyODE5IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjM3Mi4wNDcyNCA6IDM1MC43ODczOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzc3IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49Ijc1IDogNDAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iMTUwIDogNjAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDYwIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMyNzUiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNTAgOiAzMy4zMzMzMzMgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iMTAwIDogNTAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDUwIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTU1MzMiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzIgOiAyMS4zMzMzMzMgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNjQgOiAzMiA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMzIgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjU1NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDE2LjY2NjY2NyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDI1IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAyNSA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogIDwvZGVmcz4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9ImJhc2UiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6em9vbT0iNCIKICAgICBpbmtzY2FwZTpjeD0iMTEzLjAwMDM5IgogICAgIGlua3NjYXBlOmN5PSIxMi44OTM3MzEiCiAgICAgaW5rc2NhcGU6ZG9jdW1lbnQtdW5pdHM9InB4IgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcyNTYwIgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTpncmlkLWJib3g9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1wb2ludHM9InRydWUiCiAgICAgZ3JpZHRvbGVyYW5jZT0iMTAwMDAiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxMzk5IgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg3NCIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMzciCiAgICAgaW5rc2NhcGU6d2luZG93LXk9Ii00IgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gNzAsMjUgYyAyMCwwIDI1LDAgMjUsMCIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMSwxNSA1LDE1IgogICAgICAgaWQ9InBhdGgzMDYxIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzIsMzUgNSwzNSIKICAgICAgIGlkPSJwYXRoMzk0NCIgLz4KICAgIDxnCiAgICAgICBpZD0iZzI1NjAiCiAgICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2LjUsLTM5LjUpIj4KICAgICAgPHBhdGgKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjQwNjI1LDQ0LjUgTCAtMC40MDYyNSw0Ni45Mzc1IEMgLTAuNDA2MjUsNDYuOTM3NSA1LjI1LDUzLjkzNzU0OSA1LjI1LDY0LjUgQyA1LjI1LDc1LjA2MjQ1MSAtMC40MDYyNSw4Mi4wNjI1IC0wLjQwNjI1LDgyLjA2MjUgTCAtMi40MDYyNSw4NC41IEwgMC43NSw4NC41IEwgMTQuNzUsODQuNSBDIDE3LjE1ODA3Niw4NC41MDAwMDEgMjIuNDM5Njk5LDg0LjUyNDUxNCAyOC4zNzUsODIuMDkzNzUgQyAzNC4zMTAzMDEsNzkuNjYyOTg2IDQwLjkxMTUzNiw3NC43NTA0ODQgNDYuMDYyNSw2NS4yMTg3NSBMIDQ0Ljc1LDY0LjUgTCA0Ni4wNjI1LDYzLjc4MTI1IEMgMzUuNzU5Mzg3LDQ0LjcxNTU5IDE5LjUwNjU3NCw0NC41IDE0Ljc1LDQ0LjUgTCAwLjc1LDQ0LjUgTCAtMi40MDYyNSw0NC41IHogTSAzLjQ2ODc1LDQ3LjUgTCAxNC43NSw0Ny41IEMgMTkuNDM0MTczLDQ3LjUgMzMuMDM2ODUsNDcuMzY5NzkzIDQyLjcxODc1LDY0LjUgQyAzNy45NTE5NjQsNzIuOTI5MDc1IDMyLjE5NzQ2OSw3Ny4xODM5MSAyNyw3OS4zMTI1IEMgMjEuNjM5MzM5LDgxLjUwNzkyNCAxNy4xNTgwNzUsODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo="}}},{operation:function(t,n){return t||n}}),$lt=Vm.define("logic.And",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IkFORCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgPC9kZWZzPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0iYmFzZSIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMS4wIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI4IgogICAgIGlua3NjYXBlOmN4PSI1Ni42OTgzNDgiCiAgICAgaW5rc2NhcGU6Y3k9IjI1LjMyNjg5OSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDcwLDI1IGMgMjAsMCAyNSwwIDI1LDAiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEsMTUgNSwxNSIKICAgICAgIGlkPSJwYXRoMzA2MSIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxLjk5OTk5OTg4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMyLDM1IDUsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZvbnQtc2l6ZTptZWRpdW07Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7bGluZS1oZWlnaHQ6bm9ybWFsO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7dGV4dC1hbmNob3I6c3RhcnQ7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDozO21hcmtlcjpub25lO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGU7Zm9udC1mYW1pbHk6Qml0c3RyZWFtIFZlcmEgU2FuczstaW5rc2NhcGUtZm9udC1zcGVjaWZpY2F0aW9uOkJpdHN0cmVhbSBWZXJhIFNhbnMiCiAgICAgICBkPSJNIDMwLDUgTCAzMCw2LjQyODU3MTQgTCAzMCw0My41NzE0MjkgTCAzMCw0NSBMIDMxLjQyODU3MSw0NSBMIDUwLjQ3NjE5LDQ1IEMgNjEuNzQ0MDk4LDQ1IDcwLjQ3NjE5LDM1Ljk5OTk1NSA3MC40NzYxOSwyNSBDIDcwLjQ3NjE5LDE0LjAwMDA0NSA2MS43NDQwOTksNS4wMDAwMDAyIDUwLjQ3NjE5LDUgQyA1MC40NzYxOSw1IDUwLjQ3NjE5LDUgMzEuNDI4NTcxLDUgTCAzMCw1IHogTSAzMi44NTcxNDMsNy44NTcxNDI5IEMgNDAuODM0MjY0LDcuODU3MTQyOSA0NS45MTgzNjgsNy44NTcxNDI5IDQ4LjA5NTIzOCw3Ljg1NzE0MjkgQyA0OS4yODU3MTQsNy44NTcxNDI5IDQ5Ljg4MDk1Miw3Ljg1NzE0MjkgNTAuMTc4NTcxLDcuODU3MTQyOSBDIDUwLjMyNzM4MSw3Ljg1NzE0MjkgNTAuNDA5MjI3LDcuODU3MTQyOSA1MC40NDY0MjksNy44NTcxNDI5IEMgNTAuNDY1MDI5LDcuODU3MTQyOSA1MC40NzE1NDMsNy44NTcxNDI5IDUwLjQ3NjE5LDcuODU3MTQyOSBDIDYwLjIzNjg1Myw3Ljg1NzE0MyA2Ny4xNDI4NTcsMTUuNDk3MDk4IDY3LjE0Mjg1NywyNSBDIDY3LjE0Mjg1NywzNC41MDI5MDIgNTkuNzYwNjYyLDQyLjE0Mjg1NyA1MCw0Mi4xNDI4NTcgTCAzMi44NTcxNDMsNDIuMTQyODU3IEwgMzIuODU3MTQzLDcuODU3MTQyOSB6IgogICAgICAgaWQ9InBhdGgyODg0IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NzY2NjY3Nzc3NzY2NjIiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return t&&n}}),Xlt=Vm.define("logic.Nor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PUiBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjEiCiAgICAgaW5rc2NhcGU6Y3g9Ijc4LjY3NzY0NCIKICAgICBpbmtzY2FwZTpjeT0iMjIuMTAyMzQ0IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjM3IgogICAgIGlua3NjYXBlOndpbmRvdy15PSItNCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDc5LDI1IEMgOTksMjUgOTUsMjUgOTUsMjUiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEsMTUgNSwxNSIKICAgICAgIGlkPSJwYXRoMzA2MSIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxLjk5OTk5OTg4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMyLDM1IDUsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8ZwogICAgICAgaWQ9ImcyNTYwIgogICAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi41LC0zOS41KSI+CiAgICAgIDxwYXRoCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi40MDYyNSw0NC41IEwgLTAuNDA2MjUsNDYuOTM3NSBDIC0wLjQwNjI1LDQ2LjkzNzUgNS4yNSw1My45Mzc1NDkgNS4yNSw2NC41IEMgNS4yNSw3NS4wNjI0NTEgLTAuNDA2MjUsODIuMDYyNSAtMC40MDYyNSw4Mi4wNjI1IEwgLTIuNDA2MjUsODQuNSBMIDAuNzUsODQuNSBMIDE0Ljc1LDg0LjUgQyAxNy4xNTgwNzYsODQuNTAwMDAxIDIyLjQzOTY5OSw4NC41MjQ1MTQgMjguMzc1LDgyLjA5Mzc1IEMgMzQuMzEwMzAxLDc5LjY2Mjk4NiA0MC45MTE1MzYsNzQuNzUwNDg0IDQ2LjA2MjUsNjUuMjE4NzUgTCA0NC43NSw2NC41IEwgNDYuMDYyNSw2My43ODEyNSBDIDM1Ljc1OTM4Nyw0NC43MTU1OSAxOS41MDY1NzQsNDQuNSAxNC43NSw0NC41IEwgMC43NSw0NC41IEwgLTIuNDA2MjUsNDQuNSB6IE0gMy40Njg3NSw0Ny41IEwgMTQuNzUsNDcuNSBDIDE5LjQzNDE3Myw0Ny41IDMzLjAzNjg1LDQ3LjM2OTc5MyA0Mi43MTg3NSw2NC41IEMgMzcuOTUxOTY0LDcyLjkyOTA3NSAzMi4xOTc0NjksNzcuMTgzOTEgMjcsNzkuMzEyNSBDIDIxLjYzOTMzOSw4MS41MDc5MjQgMTcuMTU4MDc1LDgxLjUwMDAwMSAxNC43NSw4MS41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHNvZGlwb2RpOnR5cGU9ImFyYyIKICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgICBpZD0icGF0aDI2MDQiCiAgICAgICAgIHNvZGlwb2RpOmN4PSI3NSIKICAgICAgICAgc29kaXBvZGk6Y3k9IjI1IgogICAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgICAgc29kaXBvZGk6cnk9IjQiCiAgICAgICAgIGQ9Ik0gNzksMjUgQSA0LDQgMCAxIDEgNzEsMjUgQSA0LDQgMCAxIDEgNzksMjUgeiIKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2LjUsMzkuNSkiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,n){return!(t||n)}}),Qlt=Vm.define("logic.Nand",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5BTkQgQU5TSS5zdmciCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxMCA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzE0IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIwLjUgOiAwLjMzMzMzMzMzIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MDYiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MTkiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9Ijc0NC4wOTQ0OCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3NzciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNzUgOiA0MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxNTAgOiA2MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNjAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzI3NSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MCA6IDMzLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxMDAgOiA1MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlNTUzMyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzMiA6IDIxLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI2NCA6IDMyIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAzMiA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogIDwvZGVmcz4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9ImJhc2UiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6em9vbT0iMTYiCiAgICAgaW5rc2NhcGU6Y3g9Ijc4LjI4MzMwNyIKICAgICBpbmtzY2FwZTpjeT0iMTYuNDQyODQzIgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzksMjUgQyA5MS44LDI1IDk1LDI1IDk1LDI1IgogICAgICAgaWQ9InBhdGgzMDU5IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMxLDE1IDUsMTUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk4ODtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMiwzNSA1LDM1IgogICAgICAgaWQ9InBhdGgzOTQ0IiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmb250LXNpemU6bWVkaXVtO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO2xpbmUtaGVpZ2h0Om5vcm1hbDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO3RleHQtYW5jaG9yOnN0YXJ0O2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MzttYXJrZXI6bm9uZTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlO2ZvbnQtZmFtaWx5OkJpdHN0cmVhbSBWZXJhIFNhbnM7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpCaXRzdHJlYW0gVmVyYSBTYW5zIgogICAgICAgZD0iTSAzMCw1IEwgMzAsNi40Mjg1NzE0IEwgMzAsNDMuNTcxNDI5IEwgMzAsNDUgTCAzMS40Mjg1NzEsNDUgTCA1MC40NzYxOSw0NSBDIDYxLjc0NDA5OCw0NSA3MC40NzYxOSwzNS45OTk5NTUgNzAuNDc2MTksMjUgQyA3MC40NzYxOSwxNC4wMDAwNDUgNjEuNzQ0MDk5LDUuMDAwMDAwMiA1MC40NzYxOSw1IEMgNTAuNDc2MTksNSA1MC40NzYxOSw1IDMxLjQyODU3MSw1IEwgMzAsNSB6IE0gMzIuODU3MTQzLDcuODU3MTQyOSBDIDQwLjgzNDI2NCw3Ljg1NzE0MjkgNDUuOTE4MzY4LDcuODU3MTQyOSA0OC4wOTUyMzgsNy44NTcxNDI5IEMgNDkuMjg1NzE0LDcuODU3MTQyOSA0OS44ODA5NTIsNy44NTcxNDI5IDUwLjE3ODU3MSw3Ljg1NzE0MjkgQyA1MC4zMjczODEsNy44NTcxNDI5IDUwLjQwOTIyNyw3Ljg1NzE0MjkgNTAuNDQ2NDI5LDcuODU3MTQyOSBDIDUwLjQ2NTAyOSw3Ljg1NzE0MjkgNTAuNDcxNTQzLDcuODU3MTQyOSA1MC40NzYxOSw3Ljg1NzE0MjkgQyA2MC4yMzY4NTMsNy44NTcxNDMgNjcuMTQyODU3LDE1LjQ5NzA5OCA2Ny4xNDI4NTcsMjUgQyA2Ny4xNDI4NTcsMzQuNTAyOTAyIDU5Ljc2MDY2Miw0Mi4xNDI4NTcgNTAsNDIuMTQyODU3IEwgMzIuODU3MTQzLDQyLjE0Mjg1NyBMIDMyLjg1NzE0Myw3Ljg1NzE0MjkgeiIKICAgICAgIGlkPSJwYXRoMjg4NCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2Njc2NjY2Nzc3Nzc2NjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDQwMDgiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return!(t&&n)}}),Zlt=Vm.define("logic.Xor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IlhPUiBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjUuNjU2ODU0MiIKICAgICBpbmtzY2FwZTpjeD0iMjUuOTM4MTE2IgogICAgIGlua3NjYXBlOmN5PSIxNy4yMzAwNSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDcwLDI1IGMgMjAsMCAyNSwwIDI1LDAiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzAuMzg1NzE3LDE1IEwgNC45OTk5OTk4LDE1IgogICAgICAgaWQ9InBhdGgzMDYxIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5NzY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEuMzYyMDkxLDM1IEwgNC45OTk5OTk4LDM1IgogICAgICAgaWQ9InBhdGgzOTQ0IiAvPgogICAgPGcKICAgICAgIGlkPSJnMjU2MCIKICAgICAgIGlua3NjYXBlOmxhYmVsPSJMYXllciAxIgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYuNSwtMzkuNSkiPgogICAgICA8cGF0aAogICAgICAgICBpZD0icGF0aDM1MTYiCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi4yNSw4MS41MDAwMDUgQyAtMy44NDczNzQsODQuMTQ0NDA1IC00LjUsODQuNTAwMDA1IC00LjUsODQuNTAwMDA1IEwgLTguMTU2MjUsODQuNTAwMDA1IEwgLTYuMTU2MjUsODIuMDYyNTA1IEMgLTYuMTU2MjUsODIuMDYyNTA1IC0wLjUsNzUuMDYyNDUxIC0wLjUsNjQuNSBDIC0wLjUsNTMuOTM3NTQ5IC02LjE1NjI1LDQ2LjkzNzUgLTYuMTU2MjUsNDYuOTM3NSBMIC04LjE1NjI1LDQ0LjUgTCAtNC41LDQ0LjUgQyAtMy43MTg3NSw0NS40Mzc1IC0zLjA3ODEyNSw0Ni4xNTYyNSAtMi4yODEyNSw0Ny41IEMgLTAuNDA4NTMxLDUwLjU5OTgxNSAyLjUsNTYuNTI2NjQ2IDIuNSw2NC41IEMgMi41LDcyLjQ1MDY1IC0wLjM5NjY5Nyw3OC4zNzk0MjUgLTIuMjUsODEuNTAwMDA1IHoiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY3NjY2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi40MDYyNSw0NC41IEwgLTAuNDA2MjUsNDYuOTM3NSBDIC0wLjQwNjI1LDQ2LjkzNzUgNS4yNSw1My45Mzc1NDkgNS4yNSw2NC41IEMgNS4yNSw3NS4wNjI0NTEgLTAuNDA2MjUsODIuMDYyNSAtMC40MDYyNSw4Mi4wNjI1IEwgLTIuNDA2MjUsODQuNSBMIDAuNzUsODQuNSBMIDE0Ljc1LDg0LjUgQyAxNy4xNTgwNzYsODQuNTAwMDAxIDIyLjQzOTY5OSw4NC41MjQ1MTQgMjguMzc1LDgyLjA5Mzc1IEMgMzQuMzEwMzAxLDc5LjY2Mjk4NiA0MC45MTE1MzYsNzQuNzUwNDg0IDQ2LjA2MjUsNjUuMjE4NzUgTCA0NC43NSw2NC41IEwgNDYuMDYyNSw2My43ODEyNSBDIDM1Ljc1OTM4Nyw0NC43MTU1OSAxOS41MDY1NzQsNDQuNSAxNC43NSw0NC41IEwgMC43NSw0NC41IEwgLTIuNDA2MjUsNDQuNSB6IE0gMy40Njg3NSw0Ny41IEwgMTQuNzUsNDcuNSBDIDE5LjQzNDE3Myw0Ny41IDMzLjAzNjg1LDQ3LjM2OTc5MyA0Mi43MTg3NSw2NC41IEMgMzcuOTUxOTY0LDcyLjkyOTA3NSAzMi4xOTc0NjksNzcuMTgzOTEgMjcsNzkuMzEyNSBDIDIxLjYzOTMzOSw4MS41MDc5MjQgMTcuMTU4MDc1LDgxLjUwMDAwMSAxNC43NSw4MS41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,n){return(!t||n)&&(t||!n)}}),Klt=Vm.define("logic.Xnor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IlhOT1IgQU5TSS5zdmciCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxMCA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzE0IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIwLjUgOiAwLjMzMzMzMzMzIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MDYiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MTkiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9Ijc0NC4wOTQ0OCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3NzciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNzUgOiA0MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxNTAgOiA2MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNjAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzI3NSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MCA6IDMzLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxMDAgOiA1MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlNTUzMyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzMiA6IDIxLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI2NCA6IDMyIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAzMiA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNTU3IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjI1IDogMTYuNjY2NjY3IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjUwIDogMjUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDI1IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgPC9kZWZzPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0iYmFzZSIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMS4wIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI0IgogICAgIGlua3NjYXBlOmN4PSI5NS43MjM2NiIKICAgICBpbmtzY2FwZTpjeT0iLTI2Ljc3NTAyMyIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyLjAwMDAwMDI0O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDc4LjMzMzMzMiwyNSBDIDkxLjY2NjY2NiwyNSA5NSwyNSA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk4ODtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMC4zODU3MTcsMTUgTCA0Ljk5OTk5OTgsMTUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk3NjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMS4zNjIwOTEsMzUgTCA0Ljk5OTk5OTgsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8ZwogICAgICAgaWQ9ImcyNTYwIgogICAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi41LC0zOS41KSI+CiAgICAgIDxwYXRoCiAgICAgICAgIGlkPSJwYXRoMzUxNiIKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjI1LDgxLjUwMDAwNSBDIC0zLjg0NzM3NCw4NC4xNDQ0MDUgLTQuNSw4NC41MDAwMDUgLTQuNSw4NC41MDAwMDUgTCAtOC4xNTYyNSw4NC41MDAwMDUgTCAtNi4xNTYyNSw4Mi4wNjI1MDUgQyAtNi4xNTYyNSw4Mi4wNjI1MDUgLTAuNSw3NS4wNjI0NTEgLTAuNSw2NC41IEMgLTAuNSw1My45Mzc1NDkgLTYuMTU2MjUsNDYuOTM3NSAtNi4xNTYyNSw0Ni45Mzc1IEwgLTguMTU2MjUsNDQuNSBMIC00LjUsNDQuNSBDIC0zLjcxODc1LDQ1LjQzNzUgLTMuMDc4MTI1LDQ2LjE1NjI1IC0yLjI4MTI1LDQ3LjUgQyAtMC40MDg1MzEsNTAuNTk5ODE1IDIuNSw1Ni41MjY2NDYgMi41LDY0LjUgQyAyLjUsNzIuNDUwNjUgLTAuMzk2Njk3LDc4LjM3OTQyNSAtMi4yNSw4MS41MDAwMDUgeiIKICAgICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2Njc2NjY2NzYyIgLz4KICAgICAgPHBhdGgKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjQwNjI1LDQ0LjUgTCAtMC40MDYyNSw0Ni45Mzc1IEMgLTAuNDA2MjUsNDYuOTM3NSA1LjI1LDUzLjkzNzU0OSA1LjI1LDY0LjUgQyA1LjI1LDc1LjA2MjQ1MSAtMC40MDYyNSw4Mi4wNjI1IC0wLjQwNjI1LDgyLjA2MjUgTCAtMi40MDYyNSw4NC41IEwgMC43NSw4NC41IEwgMTQuNzUsODQuNSBDIDE3LjE1ODA3Niw4NC41MDAwMDEgMjIuNDM5Njk5LDg0LjUyNDUxNCAyOC4zNzUsODIuMDkzNzUgQyAzNC4zMTAzMDEsNzkuNjYyOTg2IDQwLjkxMTUzNiw3NC43NTA0ODQgNDYuMDYyNSw2NS4yMTg3NSBMIDQ0Ljc1LDY0LjUgTCA0Ni4wNjI1LDYzLjc4MTI1IEMgMzUuNzU5Mzg3LDQ0LjcxNTU5IDE5LjUwNjU3NCw0NC41IDE0Ljc1LDQ0LjUgTCAwLjc1LDQ0LjUgTCAtMi40MDYyNSw0NC41IHogTSAzLjQ2ODc1LDQ3LjUgTCAxNC43NSw0Ny41IEMgMTkuNDM0MTczLDQ3LjUgMzMuMDM2ODUsNDcuMzY5NzkzIDQyLjcxODc1LDY0LjUgQyAzNy45NTE5NjQsNzIuOTI5MDc1IDMyLjE5NzQ2OSw3Ny4xODM5MSAyNyw3OS4zMTI1IEMgMjEuNjM5MzM5LDgxLjUwNzkyNCAxNy4xNTgwNzUsODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDM1NTEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return(!t||!n)&&(t||n)}}),Jlt=H1.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")}),e1t=ws.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),t1t=ws.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),n1t=ws.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),i1t=ws.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),o1t=ws.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),r1t=ws.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),a1t=ws.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),s1t=ws.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),c1t=ws.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),l1t=ws.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),d1t=ws.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),u1t=ws.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''}),Eae=Vs.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),h1t=Eae.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),Aae=Vs.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),p1t=Aae.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),Xv=Vs.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),f1t=Xv.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),g1t=Xv.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),m1t=Xv.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),_1t=Xv.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),C1t=Vs.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),v1t=H1.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}}),b1t=oF.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),x1t=Vs.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),y1t=Vs.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),w1t=H1.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0}),M1t=Vs.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),O1t=H1.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1}),S1t=ws.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),P1t=fl.extend({presentationAttributes:fl.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:fl.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(...t){let n=fl.prototype.confirmUpdate.call(this,...t);return this.hasFlag(n,"TOKENS")&&(this.renderTokens(),this.update(),n=this.removeFlag(n,"TOKENS")),n},renderTokens:function(){const t=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(e){t.removeClass(e)});var n=this.model.get("tokens");if(n)switch(n){case 1:t.addClass("one"),t.append(wi("circle"));break;case 2:t.addClass("two"),t.append([wi("circle"),wi("circle")]);break;case 3:t.addClass("three"),t.append([wi("circle"),wi("circle"),wi("circle")]);break;default:t.addClass("alot"),t.append(wi("text").text(n+""))}}}),T1t=ws.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),E1t=H1.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}}),lF=ws.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),ws.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var t=this.get("attrs"),n=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],e=0;n.forEach(function(i){var o=Array.isArray(i.text)?i.text:[i.text],r=20*o.length+20;t[".uml-class-"+i.type+"-text"].text=o.join("\n"),t[".uml-class-"+i.type+"-rect"].height=r,t[".uml-class-"+i.type+"-rect"].transform="translate(0,"+e+")",e+=r})}}),dF=fl.extend({initialize:function(){fl.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),A1t=lF.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),L1t=dF,D1t=lF.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),k1t=dF,I1t=H1.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),N1t=H1.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),R1t=H1.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),z1t=H1.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),F1t=H1.define("uml.Association"),H1t=ws.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),ws.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),V1t=oF.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),B1t=ws.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),G1t=H1.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}}),Y1t=Vs.define("noctua.StencilNode",{size:{width:80,height:80},attrs:{body:{refWidth:"100%",refHeight:"100%",fill:"#FFFFFF",stroke:"#AAAAAA"},iconBackground:{ref:"icon",refWidth:"100%",refHeight:"100%",fill:"transparent"},icon:{x:0,y:10,refWidth:"100%",height:50},label:{y:70,height:"30px",refX:"50%",fill:"#000",textAnchor:"middle",textVerticalAnchor:"middle",fontFamily:"sans-serif",fontSize:8,textWrap:{ellipsis:!1,width:"95%"}}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"statusLine"},{tagName:"rect",selector:"iconBackground"},{tagName:"image",selector:"icon"},{tagName:"text",selector:"label"}]},{}),U1t=Vs.define("noctua.NodeCell",{attrs:{root:{magnet:!0},wrapper:{magnet:!0,refWidth:"100%",refHeight:"100%",stroke:"rgba(0,0,255,0.3)"},body:{refWidth:"100%",refHeight:"100%",fill:"#FFFFFF",stroke:"rgba(0,0,255,0.3)"},noctuaTitle:{x:0,refX:"10px",refY:"10px",fill:"#000000",textAnchor:"left",textVerticalAnchor:"top",fontSize:12,text:"",textWrap:{ellipsis:!0}}}},{markup:[{tagName:"rect",selector:"wrapper"},{tagName:"rect",selector:"body"},{tagName:"text",selector:"noctuaTitle"}]},{create:function(t){return new this({attrs:{label:{text:t}}})}}),W1t=(Vs.define("noctua.NodeCellList",{attrs:{root:{magnet:!0},".wrapper":{magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".highlighter":{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"transparent","stroke-width":10},rect:{width:300},".activity-gp-rect":{fill:"#d5d2d5",stroke:"#fff",height:50,"stroke-width":.5},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:5,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"},".activity-mf-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-cc-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-bp-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-gp-text":{ref:".activity-gp-rect","ref-y":.5,"ref-x":5,"text-anchor":"left","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}},".activity-mf-text":{ref:".activity-mf-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}},".activity-cc-text":{ref:".activity-cc-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{ellipsis:!1}},".activity-bp-text":{ref:".activity-bp-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}}},name:[],attributes:[],gp:[]},{markup:['','','','','','','','',"",'','','','','','',""].join(""),initialize:function(){this.on("change:name change:attributes change:gp",function(){this.updateRectangles(),this.trigger("activity-update")},this),this.updateRectangles(),Vs.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){const t=this.get("attrs"),n=[{type:"gp",text:this.get("gp")},{type:"mf",text:this.get("mf")}],e=this.get("cc"),i=this.get("bp");e&&n.push({type:"cc",text:e}),i&&n.push({type:"bp",text:i});let o=0;n.forEach(function(r){const a=Array.isArray(r.text)?r.text:[r.text],l=30*a.length+200;t[".activity-"+r.type+"-text"].text=a.join("\n"),t[".activity-"+r.type+"-rect"].height=l,t[".activity-"+r.type+"-rect"].transform="translate(0,"+o+")",o+=l})}}),Vs.define("noctua.NodeCellMolecule",{attrs:{".wrapper":{refCx:"50%",refCy:"50%",refR:"50%",magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".circle":{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2},".label":{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:12,fill:"#333333",textWrap:{ellipsis:!1,width:"95%"}},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:-10,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"}}},{markup:['','','','',"",'','','',""].join("")},{create:function(t){return new this({attrs:{label:{text:t}}})}})),q1t=Tae.define("noctua.NodeLink",{attrs:{line:{connection:!0,stroke:"#005580",strokeWidth:1,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"black",fill:"black",d:"M 10 -5 0 0 10 5 Z"}},defaultLabel:{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{label:{text:{text:"150"},fill:"blue",fontSize:10,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},body:{ref:"label",fill:"pink",stroke:"#005580",strokeWidth:1,refWidth:"120%",refHeight:"120%",refX:"-10%",refY:"-10%"}}}}},{markup:[{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]},{}),uF=(fl.extend({initialize:function(){fl.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"activity-update",function(){this.update(),this.resize()})}}),"sans-serif"),K1t=(t,n)=>t.map((e,i,{length:o})=>new wn(0,n.height-27.5-8-35*(o-1-i))),J1t={attrs:{body:{width:"calc(w)",height:"calc(h)",x:"0",y:"calc(-0.5*h)",fill:"transparent",stroke:"white",strokeWidth:1},relationship:{width:60,pointerEvents:"none",fontFamily:uF,fontWeight:400,fontSize:9,fill:"black",textAnchor:"start",textVerticalAnchor:"middle",textWrap:{width:60,maxLineCount:2,ellipsis:!0},x:8},portLabel:{width:100,pointerEvents:"none",fontFamily:uF,fontSize:12,fill:"black",textAnchor:"start",textVerticalAnchor:"middle",textWrap:{width:140,maxLineCount:2,ellipsis:!0},x:60},noEvidence:{"xlink:href":"./assets/icons/no-evidence.png",ref:"body",x:60,y:-8,height:15,cursor:"pointer",visibility:"hidden"}},size:{width:200,height:35},markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"relationship"},{tagName:"text",selector:"portLabel"},{tagName:"image",selector:"noEvidence"}]},edt={attrs:{root:{magnet:!0},".wrapper":{magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".highlighter":{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"transparent","stroke-width":10},body:{width:"calc(w)",height:"calc(h)"},icon:{width:30,height:30,x:5,y:5},label:{x:40,y:15,fontFamily:uF,fontWeight:600,fontSize:12,fill:"black",text:"Label",textWrap:{width:"90%",maxLineCount:1,ellipsis:!0},textVerticalAnchor:"top"},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:5,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"}},markup:[{tagName:"rect",selector:".wrapper"},{tagName:"rect",selector:".highlighter"},{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"},{tagName:"image",selector:"icon"},{tagName:"image",selector:".edit"},{tagName:"image",selector:".delete"}]};class tdt extends Vs{defaults(){return Object.assign(Object.assign(Object.assign({},super.defaults),edt),{type:"ListElement",size:{width:200,height:0},ports:{groups:{list:Object.assign({position:K1t},J1t)},items:[]}})}initialize(...n){this.on("change:ports",()=>this.resizeToFitPorts()),this.resizeToFitPorts(),super.initialize.call(this,...n)}resizeToFitPorts(){const{length:n}=this.getPorts();this.prop(["size","height"],40+35*n+16)}}class pF extends Y1t{setColor(n){const e=this,i=kl(n,800),o=kl(n,100);return e.attr("body/stroke",o),e.attr("statusLine/fill",i),e.attr("statusType/fill",i),e.attr("iconBackground/fill",o),this}setIcon(n){return n&&this.attr("icon/xlink:href",`${n}`),this}}class ndt extends U1t{addNodePorts(){return this}addColor(n){const e=this,i=kl(n,800),o=kl(n,100);return e.attr("body/stroke",o),e.attr("statusLine/fill",i),e.attr("statusType/fill",i),this}hover(n){return this.attr("wrapper/strokeWidth",n?20:0),this}}class fF extends tdt{constructor(){super()}addHeader(n){this.attr("label/text",n)}addEntity(n,e,i){const o={};n?(o.relationship={text:n},o.portLabel={text:e},i||(o.portLabel.x=75)):(o.relationship={visibility:"hidden"},o.portLabel={text:e,x:i?8:25,width:200,textWrap:{width:184}}),i||(o.noEvidence={visibility:"visible"},o.textWrap={width:150},n||(o.noEvidence.x=8)),this.addPort({group:"list",attrs:o})}setColor(n,e,i){kl(n,e||200);const a=kl(n,i||100);return this.attr("body/fill",a),this}setBorder(n,e){const o=kl(n,e||500);return this.attr(".highlighter/stroke",o),this}unsetBorder(){return this.attr(".highlighter/stroke","transparent"),this}addIcon(n){this.attr("icon/xlinkHref",n)}hover(n){const e=this;return e.attr(".wrapper/strokeWidth",n?40:0),e.attr(".edit/visibility",n?"visible":"hidden"),e.attr(".delete/visibility",n?"visible":"hidden"),this}}class Nae extends W1t{constructor(){super()}addNodePorts(){return this}setColor(n,e,i){const r=kl(n,e||200),a=kl(n,i||100);return this.attr(".circle/stroke",r),this.attr(".circle/fill",a),this}setText(n){return this.attr(".label/text",n),this}setBorder(n,e){const o=kl(n,e||500);return this.attr(".highlighter/stroke",o),this}unsetBorder(){return this.attr(".highlighter/stroke","transparent"),this}hover(n){const e=this;return e.attr(".wrapper/strokeWidth",n?40:0),e.attr(".edit/visibility",n?"visible":"hidden"),e.attr(".delete/visibility",n?"visible":"hidden"),this}}class n8 extends q1t{constructor(){super(...arguments),this.colorKey="grey"}static create(){const n=new n8;return n.prop({z:-1,labels:[{markup:[{tagName:"rect",selector:"labelBody"},{tagName:"text",selector:"labelText"}],attrs:{labelText:{fill:"#7c68fc",fontSize:8,fontFamily:"sans-serif",textAnchor:"middle",textVerticalAnchor:"middle"},labelBody:{ref:"labelText",refX:-5,refY:-5,refWidth:"100%",refHeight:"100%",refWidth2:10,refHeight2:10,stroke:"#7c68fc",fill:"white",strokeWidth:1,rx:5,ry:5}},position:{distance:.5,args:{ensureLegibility:!0,absoluteOffset:!0}}}]}),n.router("normal",{}).connector("smooth"),n}setText(n){return this.label(0,{attrs:{labelText:{text:n}}}),this}setColor(n,e=!1){const i=this;e&&(this.colorKey=n);const o=kl(n,800),a=kl(n,600)||n,l=o||n;return i.attr("line/stroke",a),i.attr("line/targetMarker/stroke",a),i.attr("line/targetMarker/fill",a),i.label(0,{attrs:{labelText:{fill:l},labelBody:{stroke:a}}}),this}hover(n){return this.attr("line/strokeWidth",n?4:1),this.label(0,{attrs:{labelBody:{strokeWidth:n?2:1}}}),this}}let Rae=(()=>{class t{constructor(){this._initialize()}_initialize(){Object.assign(te,{noctua:{StencilNode:pF,NodeCell:ndt,NodeCellMolecule:Nae,NodeCellList:fF,NodeLink:n8}}),Vs.define("noctua.NodeCellBase",{z:3,attrs:{root:{pointerEvents:"bounding-box",magnet:!1},body:{strokeWidth:2,fillOpacity:.2},label:{textWrap:{height:-20,width:-20,ellipsis:!0},refX:"50%",refY:"50%",fontSize:16,fontFamily:"sans-serif",fill:"#333333",textAnchor:"middle",textVerticalAnchor:"middle"}}},{},{})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const idt=[{id:"activity_unit",label:"Activity Type",nodes:[{type:so.default,id:Ft.activityType.options.default.name,label:Ft.activityType.options.default.label.toUpperCase(),iconUrl:"./assets/images/activity/default.png",description:"Click and drag onto canvas to create new activity for a single object, either a gene product or a protein complex identifier"},{type:so.proteinComplex,id:Ft.activityType.options.proteinComplex.name,label:Ft.activityType.options.proteinComplex.label.toUpperCase(),iconUrl:"./assets/images/activity/proteinComplex.png",description:"Click and drag onto canvas to create new activity for a protein complex that you define using a GO complex term and specifying the gene product subunits"},{type:so.molecule,id:Ft.activityType.options.molecule.name,label:Ft.activityType.options.molecule.label.toUpperCase(),iconUrl:"./assets/images/activity/molecule.png",description:"Click and drag onto canvas to create a new small molecule that is either a substrate, a product, or a regulator of an activity"}]}],zae={camStencil:(0,Zt.cloneDeep)(idt)},gF={cells:function(t){return function(){var n=Array.from(arguments),e=n.length,i=e>0&&n[0]||[],o=e>1&&n[e-1]||{};return Array.isArray(i)||(o instanceof np?i=n:i instanceof np&&(n.length>1&&n.pop(),i=n)),o instanceof np&&(o={}),t.call(this,i,o)}}},rdt=Nd.Collection.extend({initialize:function(t,n){this.cellNamespace=n.cellNamespace?n.cellNamespace:"undefined"!=typeof joint&&tp(joint,"shapes")?joint.shapes:null,this.graph=n.graph},model:function(t,n){var e=n.collection,r=new("link"===t.type?H1:Uv(e.cellNamespace,t.type,".")||Vs)(t,n);return n.dry||(r.graph=e.graph),r},comparator:function(t){return t.get("z")||0}}),Jh=Nd.Model.extend({initialize:function(t,n){var e=new rdt([],{model:(n=n||{}).cellModel,cellNamespace:n.cellNamespace,graph:this});Nd.Model.prototype.set.call(this,"cells",e),e.on("all",this.trigger,this),this.on("change:z",this._sortOnChangeZ,this),this._out={},this._in={},this._nodes={},this._edges={},this._batches={},e.on("add",this._restructureOnAdd,this),e.on("remove",this._restructureOnRemove,this),e.on("reset",this._restructureOnReset,this),e.on("change:source",this._restructureOnChangeSource,this),e.on("change:target",this._restructureOnChangeTarget,this),e.on("remove",this._removeCell,this)},_sortOnChangeZ:function(){this.get("cells").sort()},_restructureOnAdd:function(t){if(t.isLink()){this._edges[t.id]=!0;var{source:n,target:e}=t.attributes;n.id&&((this._out[n.id]||(this._out[n.id]={}))[t.id]=!0),e.id&&((this._in[e.id]||(this._in[e.id]={}))[t.id]=!0)}else this._nodes[t.id]=!0},_restructureOnRemove:function(t){if(t.isLink()){delete this._edges[t.id];var{source:n,target:e}=t.attributes;n.id&&this._out[n.id]&&this._out[n.id][t.id]&&delete this._out[n.id][t.id],e.id&&this._in[e.id]&&this._in[e.id][t.id]&&delete this._in[e.id][t.id]}else delete this._nodes[t.id]},_restructureOnReset:function(t){t=t.models,this._out={},this._in={},this._nodes={},this._edges={},t.forEach(this._restructureOnAdd,this)},_restructureOnChangeSource:function(t){var n=t.previous("source");n.id&&this._out[n.id]&&delete this._out[n.id][t.id];var e=t.attributes.source;e.id&&((this._out[e.id]||(this._out[e.id]={}))[t.id]=!0)},_restructureOnChangeTarget:function(t){var n=t.previous("target");n.id&&this._in[n.id]&&delete this._in[n.id][t.id];var e=t.get("target");e.id&&((this._in[e.id]||(this._in[e.id]={}))[t.id]=!0)},getOutboundEdges:function(t){return this._out&&this._out[t]||{}},getInboundEdges:function(t){return this._in&&this._in[t]||{}},toJSON:function(){var t=Nd.Model.prototype.toJSON.apply(this,arguments);return t.cells=this.get("cells").toJSON(),t},fromJSON:function(t,n){if(!t.cells)throw new Error("Graph JSON must contain cells array.");return this.set(t,n)},set:function(t,n,e){var i;return"object"==typeof t?(i=t,e=n):(i={})[t]=n,i.hasOwnProperty("cells")&&(this.resetCells(i.cells,e),i=P4(i,"cells")),Nd.Model.prototype.set.call(this,i,e)},clear:function(t){t=Ar({},t,{clear:!0});var n=this.get("cells");if(0===n.length)return this;this.startBatch("clear",t);var e=n.sortBy(function(i){return i.isLink()?1:2});do{e.shift().remove(t)}while(e.length>0);return this.stopBatch("clear"),this},_prepareCell:function(t,n){var e;if(t instanceof Nd.Model?(e=t.attributes,!t.graph&&(!n||!n.dry)&&(t.graph=this)):e=t,!pd(e.type))throw new TypeError("dia.Graph: cell type must be a string.");return t},minZIndex:function(){var t=this.get("cells").first();return t&&t.get("z")||0},maxZIndex:function(){var t=this.get("cells").last();return t&&t.get("z")||0},addCell:function(t,n){return Array.isArray(t)?this.addCells(t,n):(t instanceof Nd.Model?t.has("z")||t.set("z",this.maxZIndex()+1):void 0===t.z&&(t.z=this.maxZIndex()+1),this.get("cells").add(this._prepareCell(t,n),n||{}),this)},addCells:function(t,n){return 0===t.length||(t=Rct(t),n.maxPosition=n.position=t.length-1,this.startBatch("add",n),t.forEach(function(e){this.addCell(e,n),n.position--},this),this.stopBatch("add",n)),this},resetCells:function(t,n){var e=Ba(t).map(function(i){return this._prepareCell(i,n)},this);return this.get("cells").reset(e,n),this},removeCells:function(t,n){return t.length&&(this.startBatch("remove"),Kh(t,"remove",n),this.stopBatch("remove")),this},_removeCell:function(t,n,e){(e=e||{}).clear||(e.disconnectLinks?this.disconnectLinks(t,e):this.removeLinks(t,e)),this.get("cells").remove(t,{silent:!0}),t.graph===this&&(t.graph=null)},getCell:function(t){return this.get("cells").get(t)},getCells:function(){return this.get("cells").toArray()},getElements:function(){return this.get("cells").filter(t=>t.isElement())},getLinks:function(){return this.get("cells").filter(t=>t.isLink())},getFirstCell:function(){return this.get("cells").first()},getLastCell:function(){return this.get("cells").last()},getConnectedLinks:function(t,n){var e=(n=n||{}).indirect,i=n.inbound,o=n.outbound;void 0===i&&void 0===o&&(i=o=!0);var r=[],a={};function l(T,U){if(ch(T.getOutboundEdges(U.id),function(se,Me){if(!a[Me]){var we=T.getCell(Me);r.push(we),a[Me]=!0,e&&(i&&u(T,we),o&&l(T,we))}}.bind(T)),e&&U.isLink()){var ie=U.getTargetCell();ie&&ie.isLink()&&(a[ie.id]||(r.push(ie),l(T,ie)))}}function u(T,U){if(ch(T.getInboundEdges(U.id),function(se,Me){if(!a[Me]){var we=T.getCell(Me);r.push(we),a[Me]=!0,e&&(i&&u(T,we),o&&l(T,we))}}.bind(T)),e&&U.isLink()){var ie=U.getSourceCell();ie&&ie.isLink()&&(a[ie.id]||(r.push(ie),u(T,ie)))}}if(o&&l(this,t),i&&u(this,t),n.deep){var f=t.getEmbeddedCells({deep:!0}),w={};f.forEach(function(T){T.isElement()&&(w[T.id]=!0)}),f.forEach(function(T){T.isLink()||(o&&ch(this.getOutboundEdges(T.id),function(U,ie){if(!a[ie]){var se=this.getCell(ie),{source:Me,target:we}=se.attributes,He=Me.id,Be=we.id;if(!n.includeEnclosed&&He&&w[He]&&Be&&w[Be])return;r.push(this.getCell(ie)),a[ie]=!0}}.bind(this)),i&&ch(this.getInboundEdges(T.id),function(U,ie){if(!a[ie]){var se=this.getCell(ie),{source:Me,target:we}=se.attributes,He=Me.id,Be=we.id;if(!n.includeEnclosed&&He&&w[He]&&Be&&w[Be])return;r.push(this.getCell(ie)),a[ie]=!0}}.bind(this)))},this)}return r},getNeighbors:function(t,n){n||(n={});var e=n.inbound,i=n.outbound;void 0===e&&void 0===i&&(e=i=!0);var o=this.getConnectedLinks(t,n).reduce(function(l,u){var{source:f,target:w}=u.attributes,T=u.hasLoop(n);if(e&&tp(f,"id")&&!l[f.id]){var U=this.getCell(f.id);U.isElement()&&(T||U&&U!==t&&(!n.deep||!U.isEmbeddedIn(t)))&&(l[f.id]=U)}if(i&&tp(w,"id")&&!l[w.id]){var ie=this.getCell(w.id);ie.isElement()&&(T||ie&&ie!==t&&(!n.deep||!ie.isEmbeddedIn(t)))&&(l[w.id]=ie)}return l}.bind(this),{});if(t.isLink()){if(e){var r=t.getSourceCell();r&&r.isElement()&&!o[r.id]&&(o[r.id]=r)}if(i){var a=t.getTargetCell();a&&a.isElement()&&!o[a.id]&&(o[a.id]=a)}}return Ba(o)},getCommonAncestor:function(){var t=Array.from(arguments).map(function(e){for(var i=[],o=e.get("parent");o;)i.push(o),o=this.getCell(o).get("parent");return i},this);t=t.sort(function(e,i){return e.length-i.length});var n=Ba(t.shift()).find(function(e){return t.every(function(i){return i.includes(e)})});return this.getCell(n)},getSuccessors:function(t,n){var e=[];return this.search(t,function(i){i!==t&&e.push(i)},Ar({},n=n||{},{outbound:!0})),e},cloneCells:rae,cloneSubgraph:function(t,n){var e=this.getSubgraph(t,n);return this.cloneCells(e)},getSubgraph:function(t,n){n=n||{};var e=[],i={},o=[],r=[];return Ba(t).forEach(function(a){i[a.id]||(e.push(a),i[a.id]=a,a.isLink()?r.push(a):o.push(a)),n.deep&&a.getEmbeddedCells({deep:!0}).forEach(function(u){i[u.id]||(e.push(u),i[u.id]=u,u.isLink()?r.push(u):o.push(u))})}),r.forEach(function(a){var{source:l,target:u}=a.attributes;if(l.id&&!i[l.id]){var f=this.getCell(l.id);e.push(f),i[f.id]=f,o.push(f)}if(u.id&&!i[u.id]){var w=this.getCell(u.id);e.push(this.getCell(u.id)),i[w.id]=w,o.push(w)}},this),o.forEach(function(a){this.getConnectedLinks(a,n).forEach(function(u){var{source:f,target:w}=u.attributes;!i[u.id]&&f.id&&i[f.id]&&w.id&&i[w.id]&&(e.push(u),i[u.id]=u)})},this),e},getPredecessors:function(t,n){var e=[];return this.search(t,function(i){i!==t&&e.push(i)},Ar({},n=n||{},{inbound:!0})),e},search:function(t,n,e){(e=e||{}).breadthFirst?this.bfs(t,n,e):this.dfs(t,n,e)},bfs:function(t,n,e={}){const i={},o={},r=[];for(r.push(t),o[t.id]=0;r.length>0;){var a=r.shift();if(i[a.id]||(i[a.id]=!0,!1===n.call(this,a,o[a.id])))continue;const l=this.getNeighbors(a,e);for(let u=0,f=l.length;u0;){const a=r.pop();if(i[a.id]||(i[a.id]=!0,!1===n.call(this,a,o[a.id])))continue;const l=this.getNeighbors(a,e),u=r.length;for(let f=0,w=l.length;fn.getBBox({rotate:!0}).containsPoint(t))},findModelsInArea:function(t,n={}){const e=new Po(t),{strict:i=!1}=n,o=i?"containsRect":"intersect";return this.getElements().filter(r=>e[o](r.getBBox({rotate:!0})))},findModelsUnderElement:function(t,n={}){const{searchBy:e="bbox"}=n,i=t.getBBox().rotateAroundCenter(t.angle());return("bbox"===e?this.findModelsInArea(i):this.findModelsFromPoint(i[e]())).filter(r=>t.id!==r.id&&!r.isEmbeddedIn(t))},getBBox:function(){return this.getCellsBBox(this.getCells())},getCellsBBox:function(t,n={}){const{rotate:e=!0}=n;return Ba(t).reduce(function(i,o){const r=o.getBBox({rotate:e});return r?i?i.union(r):r:i},null)},translate:function(t,n,e){var i=this.getCells().filter(function(o){return!o.isEmbedded()});return Kh(i,"translate",t,n,e),this},resize:function(t,n,e){return this.resizeCells(t,n,this.getCells(),e)},resizeCells:function(t,n,e,i){var o=this.getCellsBBox(e);if(o){var r=Math.max(t/o.width,0),a=Math.max(n/o.height,0);Kh(e,"scale",r,a,o.origin(),i)}return this},startBatch:function(t,n){return n=n||{},this._batches[t]=(this._batches[t]||0)+1,this.trigger("batch:start",Ar({},n,{batchName:t}))},stopBatch:function(t,n){return n=n||{},this._batches[t]=(this._batches[t]||0)-1,this.trigger("batch:stop",Ar({},n,{batchName:t}))},hasActiveBatch:function(t){const n=this._batches;let e;return e=0===arguments.length?Object.keys(n):Array.isArray(t)?t:[t],e.some(i=>n[i]>0)}},{validations:{multiLinks:function(t,n){var{source:e,target:i}=n.attributes;if(e.id&&i.id){var o=n.getSourceCell();if(o&&t.getConnectedLinks(o,{outbound:!0}).filter(function(l){var{source:u,target:f}=l.attributes;return u&&u.id===e.id&&(!u.port||u.port===e.port)&&f&&f.id===i.id&&(!f.port||f.port===i.port)}).length>1)return!1}return!0},linkPinning:function(t,n){var{source:e,target:i}=n.attributes;return e.id&&i.id}}});!function(t,n,e){if(pd(e)){if(!gF[e])throw new Error('Unknown wrapper: "'+e+'"');e=gF[e]}if(!Hs(e))throw new Error("Wrapper must be a function.");Ba(["resetCells","addCells","removeCells"]).forEach(function(i){t[i]=e(t[i])})}(Jh.prototype,0,gF.cells);const adt=function(t,n,e){return t},sdt=function(t,n,e){var f,w,T,i=n.side||"bottom",o=Q_(n.padding||40),r=e.sourceBBox,a=e.targetBBox,l=r.center(),u=a.center();switch(i){case"bottom":T=1,f="y",w="height";break;case"top":T=-1,f="y",w="height";break;case"left":T=-1,f="x",w="width";break;case"right":T=1,f="x",w="width";break;default:throw new Error("Router: invalid side")}return l[f]+=T*(r[w]/2+o[i]),u[f]+=T*(a[w]/2+o[i]),T*(l[f]-u[f])>0?u[f]=l[f]:l[f]=u[f],[l].concat(t,u)};var cdt={N:"S",S:"N",E:"W",W:"E"},ldt={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function bP(t,n,e){var i=new wn(t.x,n.y);return e.containsPoint(i)&&(i=new wn(n.x,t.y)),i}function mF(t,n){return t["W"===n||"E"===n?"width":"height"]}function p2(t,n){return t.x===n.x?t.y>n.y?"N":"S":t.y===n.y?t.x>n.x?"W":"E":null}function xP(t){return new Po(t.x,t.y,0,0)}function yP(t){var n=Q_(t.padding||t.elementPadding||20);return{x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}function Fae(t,n){return t.sourceBBox.clone().moveAndExpand(yP(n))}function Hae(t,n){return t.targetBBox.clone().moveAndExpand(yP(n))}function Vae(t,n,e){var i=new wn(t.x,n.y),o=new wn(n.x,t.y),r=p2(t,i),a=p2(t,o),l=cdt[e],u=r===e||r!==l&&(a===l||a!==e)?i:o;return{points:[u],direction:p2(u,n)}}function wP(t,n,e){var i=bP(t,n,e);return{points:[i],direction:p2(i,n)}}function hdt(t,n,e,i){var u,o={},r=[new wn(t.x,n.y),new wn(n.x,t.y)],a=r.filter(function(T){return!e.containsPoint(T)}),l=a.filter(function(T){return p2(T,t)!==i});if(l.length>0)u=l.filter(function(T){return p2(t,T)===i}).pop(),o.points=[u=u||l[0]],o.direction=p2(u,n);else{u=iae(r,a)[0];var f=new wn(n).move(u,-mF(e,i)/2),w=bP(f,t,e);o.points=[w,f],o.direction=p2(f,n)}return o}function pdt(t,n,e,i){var o=wP(n,t,i),r=o.points[0];if(e.containsPoint(r)){var a=(o=wP(t,n,e)).points[0];if(i.containsPoint(a)){var l=new wn(t).move(a,-mF(e,p2(t,a))/2),u=new wn(n).move(r,-mF(i,p2(n,r))/2),f=new Ho(l,u).midpoint(),w=wP(t,f,e),T=Vae(f,n,w.direction);o.points=[w.points[0],T.points[0]],o.direction=T.direction}}return o}function _F(t,n,e,i,o){var w,T,U,r={},a=e.union(i).inflate(1),l=a.center().distance(n)>a.center().distance(t),u=l?n:t,f=l?t:n;return o?(w=wn.fromPolar(a.width+a.height,ldt[o],u),w=a.pointNearestToPoint(w).move(w,-1)):w=a.pointNearestToPoint(u).move(u,1),T=bP(w,f,a),w.round().equals(T.round())?(T=wn.fromPolar(a.width+a.height,H2(w.theta(u))+Math.PI/2,f),U=bP(w,T=a.pointNearestToPoint(T).move(f,1).round(),a),r.points=l?[T,U,w]:[w,U,T]):r.points=l?[T,w]:[w,T],r.direction=p2(l?w:T,n),r}function CF(t,n,e){var i=Fae(e,n),o=Hae(e,n),r=function ddt(t,n){return t.sourceAnchor?t.sourceAnchor:Fae(t,n).center()}(e,n),a=function udt(t,n){return t.targetAnchor?t.targetAnchor:Hae(t,n).center()}(e,n);i=i.union(xP(r)),o=o.union(xP(a)),(t=Ba(t).map(wn)).unshift(r),t.push(a);for(var l,u=[],f=0,w=t.length-1;f180?360-e:e}function Wae(t,n){if(!t)return n;var e=Math.abs(t),i=Math.round(e/n);return i?n+(e-i*n)/i:e}function Zv(t,n){return t.round(n)}function MP(t,n,e){return Zv(function Cdt(t,n){var e=n.source,i=Im(t.x-e.x,n.x)+e.x,o=Im(t.y-e.y,n.y)+e.y;return new wn(i,o)}(t.clone(),n),e)}function Kv(t){return t.clone().toString()}function xF(t){return new wn(0===t.x?0:Math.abs(t.x)/t.x,0===t.y?0:Math.abs(t.y)/t.y)}function vdt(t,n,e,i,o,r,a){for(var T,l=[],u=xF(o.difference(e)),f=Kv(e),w=t[f];w;){var U=xF((T=n[f]).difference(w));U.equals(u)||(l.unshift(T),u=U),w=t[f=Kv(w)]}var ie=n[f];return xF(ie.difference(i)).equals(u)||l.unshift(ie),l}function qae(t,n){for(var e=1/0,i=0,o=n.length;iBe)&&(Be=rt,me=qe)}if(me){var xt=MP(me,i,r);n.containsPoint(xt)&&(xt=MP(xt.offset(ie.x*i.x,ie.y*i.y),i,r)),T.push(xt)}}return T},[]);return n.containsPoint(t)||w.push(MP(t,i,r)),w}function bdt(t,n,e,i){var r,a,o=i.precision;r=Zv(t instanceof Po?Uae(this,i).clone():t.clone(),o),a=Zv(n instanceof Po?function fdt(t,n){return t.targetAnchor?t.targetAnchor:Yae(t,n).center()}(this,i).clone():n.clone(),o);var u,f,w,T,l=function _dt(t,n,e){return{source:n.clone(),x:Wae(e.x-n.x,t),y:Wae(e.y-n.y,t)}}(i.step,r,a);if(w=t instanceof Po?$ae(u=r,t,i.startDirections,l,i):[u=r],n instanceof Po?(f=a,T=$ae(a,n,i.endDirections,l,i)):T=[f=a],w=w.filter(Ii=>!e(Ii)),T=T.filter(Ii=>!e(Ii)),w.length>0&&T.length>0){for(var U=new Bm,ie={},se={},Me={},we=0,He=w.length;we0;){var Jn,yn=U.pop(),Kt=ie[yn],kn=se[yn],ri=Me[yn],Rn=void 0===kn,ni=Kt.equals(u);Jn=Rn?qe?ni?null:bF(u,Kt,jt,l,i):ze:bF(kn,Kt,jt,l,i);var Oi=w.length===T.length;if(Oi)for(var qn=0;qn=0)return i.previousDirectionAngle=Jn,vdt(se,ie,Kt,u,f);for(we=0;wei.maxAllowedDirectionChange)){var Bi=MP(Kt.clone().offset(rt.gridOffsetX,rt.gridOffsetY),l,o),lo=Kv(Bi);if(!U.isClose(lo)&&!e(Bi)){if(an.indexOf(lo)>=0&&!Bi.equals(f)&&jae(Ai,bF(Bi,f,jt,l,i))>i.maxAllowedDirectionChange)continue;var yi=ri+rt.cost+(ni?0:i.penalties[xt]);(!U.isOpen(lo)||yi!me.isPointAccessible(ze)}for(var w,T,l=Ba(t).map(wn),u=[],f=r,U=0,ie=l.length;U<=ie;U++){var se=null;if(T=w||i,!(w=l[U])&&(w=o,(!e.model.get("source").id||!e.model.get("target").id)&&Hs(n.draggingRoute))){var we=T===i?r:T,He=w.origin();se=n.draggingRoute.call(e,we,He,n)}if(null===(se=se||bdt.call(e,T,w,a,n)))return n.fallbackRouter(t,n,e);var Be=se[0];Be&&Be.equals(f)&&se.shift(),f=se[se.length-1]||f,Array.prototype.push.apply(u,se)}return u}(t,Ar({},Bae,n),e)};var wdt={maxAllowedDirectionChange:45,diagonalCost:function(){var t=this.step;return Math.ceil(Math.sqrt(t*t<<1))},directions:function(){var t=this.step,n=this.cost(),e=this.diagonalCost();return[{offsetX:t,offsetY:0,cost:n},{offsetX:t,offsetY:t,cost:e},{offsetX:0,offsetY:t,cost:n},{offsetX:-t,offsetY:t,cost:e},{offsetX:-t,offsetY:0,cost:n},{offsetX:-t,offsetY:-t,cost:e},{offsetX:0,offsetY:-t,cost:n},{offsetX:t,offsetY:-t,cost:e}]},fallbackRoute:function(t,n,e){var i=t.theta(n),o=[],r={x:n.x,y:t.y},a={x:t.x,y:n.y};if(i%180>90){var l=r;r=a,a=l}var u=i%90<45?r:a,f=new Ho(t,u),w=90*Math.ceil(i/90),T=wn.fromPolar(f.squaredLength(),H2(w+135),u),U=new Ho(n,T),ie=f.intersection(U),se=ie||n,we=360/e.directions.length,He=(ie?se:t).theta(n),Be=K0(He+we/2),me=we*Math.floor(Be/we);return e.previousDirectionAngle=me,se&&o.push(se.round()),o.push(n),o}};const Mdt=function(t,n,e){if(!Hs(yF))throw new Error("Metro requires the manhattan router.");return yF(t,Ar({},wdt,n),e)};var Xae=["arc","gap","cubic"],Pdt=["smooth"],OP=1/3,SP=2/3;function wF(t,n,e){var i=[].concat(t,e,n);return i.reduce(function(o,r,a){var l=i[a+1];return null!=l&&(o[a]=Nm(r,l)),o},[])}function Zae(t,n){return Nm(t,n).squaredLength()}function Kae(t,n,e,i){var r,o=new _r;return r=_r.createSegment("M",t[0].start),o.appendSegment(r),Ba(t).forEach(function(a,l){if(a.isJump){var u,f,w,T;if("arc"===e){u=-90,f=a.start.difference(a.end);var U=Number(f.x<0||0===f.x&&f.y<0);U&&(u+=180);var Me,ie=a.midpoint(),se=new Ho(ie,a.end).rotate(ie,u);w=(Me=new Ho(a.start,ie)).pointAt(2/3).rotate(a.start,u),T=se.pointAt(1/3).rotate(se.end,-u),r=_r.createSegment("C",w,T,se.end),o.appendSegment(r),Me=new Ho(ie,a.end),w=se.pointAt(1/3).rotate(se.end,u),T=Me.pointAt(1/3).rotate(a.end,-u),r=_r.createSegment("C",w,T,a.end),o.appendSegment(r)}else if("gap"===e)r=_r.createSegment("M",a.end),o.appendSegment(r);else if("cubic"===e){u=a.start.theta(a.end);var we=.6*n,He=1.35*n;f=a.start.difference(a.end),(U=Number(f.x<0||0===f.x&&f.y<0))&&(He*=-1),w=wn(a.start.x+we,a.start.y+He).rotate(a.start,u),T=wn(a.end.x-we,a.end.y+He).rotate(a.end,u),r=_r.createSegment("C",w,T,a.end),o.appendSegment(r)}}else{var Be=t[l+1];0==i||!Be||Be.isJump?(r=_r.createSegment("L",a.end),o.appendSegment(r)):function Ddt(t,n,e,i,o){var ie,r=e.distance(i)/2,a=e.distance(o)/2,l=-Math.min(t,r),u=-Math.min(t,a),f=e.clone().move(i,l).round(),w=e.clone().move(o,u).round(),T=new wn(OP*f.x+SP*e.x,SP*e.y+OP*f.y),U=new wn(OP*w.x+SP*e.x,SP*e.y+OP*w.y);ie=_r.createSegment("L",f),n.appendSegment(ie),ie=_r.createSegment("C",T,U,w),n.appendSegment(ie)}(i,o,a.end,a.start,Be.end)}}),o}const kdt=function(t,n,e,i){!function Tdt(t){var n=t.paper,e=n._jumpOverUpdateList;if(null==e){e=n._jumpOverUpdateList=[];var i=n.model;i.on("batch:stop",function(){this.hasActiveBatch()||function Edt(t){for(var n=t._jumpOverUpdateList,e=0;eie&&"jumpover"===xt.name)}),we=Me.map(function(qe){return f.findViewByModel(qe)}),He=wF(t,n,e),Be=we.map(function(qe){return null==qe?[]:qe===this?He:wF(qe.sourcePoint,qe.targetPoint,qe.route)},this),me=He.reduce(function(qe,rt){var xt=Me.reduce(function(Ut,jt,an){if(jt!==U){var pn=function Adt(t,n){return Ba(n).reduce(function(e,i){var o=t.intersection(i);return o&&e.push(o),e},[])}(rt,Be[an]);Ut.push.apply(Ut,pn)}return Ut},[]).sort(function(Ut,jt){return Zae(rt.start,Ut)-Zae(rt.start,jt)});return xt.length>0?qe.push.apply(qe,function Ldt(t,n,e){return n.reduce(function(i,o,r){if(!0===o.skip)return i;var a=i.pop()||t,l=Bv(o).move(a.start,-e),u=Bv(o).move(a.start,+e),f=n[r+1];if(null!=f){var w=u.distance(f);w<=e&&(u=f.move(a.start,w),f.skip=!0)}else if(l.distance(a.end)<2*e+1)return i.push(a),i;if(u.distance(a.start)<2*e+1)return i.push(a),i;var ie=Nm(l,u);return ie.isJump=!0,i.push(Nm(a.start,l),ie,Nm(u,a.end)),i},[])}(rt,xt,r)):qe.push(rt),qe},[]),ze=Kae(me,r,a,l);return o?ze:ze.serialize()},Idt=function(t,n,e,i){var o=i&&i.raw,r=[t].concat(e).concat([n]),a=new cc(r),l=new _r(a);return o?l:l.serialize()},Ndt=function(t,n,e,i){i||(i={});var l,o=i.radius||10,r=i.raw,a=new _r;l=_r.createSegment("M",t),a.appendSegment(l);for(var w,T,U,ie,se,Me,we,He,Be,me,ze,u=1/3,f=2/3,qe=0,rt=e.length;qe=Math.abs(t.y-n.y)){var f=(t.x+n.x)/2;u=_r.createSegment("C",f,t.y,f,n.y,n.x,n.y),r.appendSegment(u)}else{var w=(t.y+n.y)/2;u=_r.createSegment("C",t.x,w,n.x,w,n.x,n.y),r.appendSegment(u)}}return o?r:r.serialize()},lh={AUTO:"auto",HORIZONTAL:"horizontal",VERTICAL:"vertical",CLOSEST_POINT:"closest-point",OUTWARDS:"outwards"},f2={UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",AUTO:"auto",CLOSEST_POINT:"closest-point",OUTWARDS:"outwards"},MF=function(t,n,e=[],i={},o){const r=Boolean(i.raw),{direction:a=lh.AUTO,precision:l=3}=i,u={coeff:i.distanceCoefficient||.6,angleTangentCoefficient:i.angleTangentCoefficient||80,tau:i.tension||.5,sourceTangent:i.sourceTangent?new wn(i.sourceTangent):null,targetTangent:i.targetTangent?new wn(i.targetTangent):null};u.sourceDirection="string"==typeof i.sourceDirection?i.sourceDirection:"number"==typeof i.sourceDirection?new wn(1,0).rotate(null,i.sourceDirection):i.sourceDirection?new wn(i.sourceDirection).normalize():null,u.targetDirection="string"==typeof i.targetDirection?i.targetDirection:"number"==typeof i.targetDirection?new wn(1,0).rotate(null,i.targetDirection):i.targetDirection?new wn(i.targetDirection).normalize():null;const f=[t,...e.map(Me=>new wn(Me)),n];let w,T;if(u.sourceTangent)w=u.sourceTangent;else{const Me=function Bdt(t,n,e,i){if(i.sourceDirection)switch(i.sourceDirection){case f2.UP:return new wn(0,-1);case f2.DOWN:return new wn(0,1);case f2.LEFT:return new wn(-1,0);case f2.RIGHT:return new wn(1,0);case f2.AUTO:return Jae(t,n);case f2.CLOSEST_POINT:return tse(0,n);case f2.OUTWARDS:return ise(t,n);default:return i.sourceDirection}switch(e){case lh.HORIZONTAL:return function zdt(t,n,e){const{sourceBBox:i}=t;let o;return"left"===(o=i.width&&i.height?i.sideNearestToPoint(n[0]):i.x>n[1].x?"right":"left",o)?new wn(-1,0):new wn(1,0)}(t,n);case lh.VERTICAL:return function Hdt(t,n,e){const{sourceBBox:i}=t;let o;return"top"===(o=i.width&&i.height?i.sideNearestToPoint(n[0]):i.y>n[1].y?"bottom":"top",o)?new wn(0,-1):new wn(0,1)}(t,n);case lh.CLOSEST_POINT:return tse(0,n);case lh.OUTWARDS:return ise(t,n);default:return Jae(t,n)}}(o,f,a,u),we=f[0].distance(f[1])*u.coeff,Be=OF(Me,f[1].difference(f[0]).normalize());if(Be>Math.PI/4){const me=we+(Be-Math.PI/4)*u.angleTangentCoefficient;w=Me.clone().scale(me,me)}else w=Me.clone().scale(we,we)}if(u.targetTangent)T=u.targetTangent;else{const Me=function Gdt(t,n,e,i){if(i.targetDirection)switch(i.targetDirection){case f2.UP:return new wn(0,-1);case f2.DOWN:return new wn(0,1);case f2.LEFT:return new wn(-1,0);case f2.RIGHT:return new wn(0,1);case f2.AUTO:return ese(t,n);case f2.CLOSEST_POINT:return nse(0,n);case f2.OUTWARDS:return ose(t,n);default:return i.targetDirection}switch(e){case lh.HORIZONTAL:return function Fdt(t,n,e){const{targetBBox:i}=t;let o;return"left"===(o=i.width&&i.height?i.sideNearestToPoint(n[n.length-1]):i.x>n[n.length-2].x?"left":"right",o)?new wn(-1,0):new wn(1,0)}(t,n);case lh.VERTICAL:return function Vdt(t,n,e){const{targetBBox:i}=t;let o;return"top"===(o=i.width&&i.height?i.sideNearestToPoint(n[n.length-1]):i.y>n[n.length-2].y?"top":"bottom",o)?new wn(0,-1):new wn(0,1)}(t,n);case lh.CLOSEST_POINT:return nse(0,n);case lh.OUTWARDS:return ose(t,n);default:return ese(t,n)}}(o,f,a,u),we=f.length-1,He=f[we-1].distance(f[we])*u.coeff,me=OF(Me,f[we-1].difference(f[we]).normalize());if(me>Math.PI/4){const ze=He+(me-Math.PI/4)*u.angleTangentCoefficient;T=Me.clone().scale(ze,ze)}else T=Me.clone().scale(He,He)}const ie=function Udt(t,n,e,i){const{tau:o,coeff:r}=i,a=[],l=[],u=[],f=t.length-1;for(let w=0;w0&&me>0)&&(we-=Math.PI),He=se.clone(),Ydt(He,we);const ze=He.clone(),qe=He.clone(),rt=a[w-1]*r,xt=a[w]*r;ze.scale(rt,rt),qe.scale(xt,xt),l[w]=[ze,qe]}for(let w=0;wfunction jdt(t,n){const{tau:e}=n,i=new wn;i.x=t[1].x+(t[2].x-t[0].x)/(6*e),i.y=t[1].y+(t[2].y-t[0].y)/(6*e);const o=new wn;return o.x=t[2].x+(t[3].x-t[1].x)/(6*e),o.y=t[2].y+(t[3].y-t[1].y)/(6*e),new Ls(t[1],i,o,t[2])}(Me,u)),se=new _r(ie).round(l);return r?se:se.serialize()};function Jae(t,n,e){const{sourceBBox:i}=t;let o;switch(o=i.sideNearestToPoint(i.width&&i.height?n[0]:n[1]),o){case"top":return new wn(0,-1);case"bottom":return new wn(0,1);case"right":return new wn(1,0);case"left":return new wn(-1,0)}}function ese(t,n,e){const{targetBBox:i}=t;let o;switch(o=i.sideNearestToPoint(i.width&&i.height?n[n.length-1]:n[n.length-2]),o){case"top":return new wn(0,-1);case"bottom":return new wn(0,1);case"right":return new wn(1,0);case"left":return new wn(-1,0)}}function tse(t,n,e){return n[1].difference(n[0]).normalize()}function nse(t,n,e){const i=n.length-1;return n[i-1].difference(n[i]).normalize()}function ise(t,n,e){const{sourceBBox:i}=t,o=i.center();return n[0].difference(o).normalize()}function ose(t,n,e){const{targetBBox:i}=t,o=i.center();return n[n.length-1].difference(o).normalize()}function Ydt(t,n){const e=Math.cos(n),i=Math.sin(n),r=i*t.x+e*t.y;t.x=e*t.x-i*t.y,t.y=r}function OF(t,n){let e=t.dot(n)/(t.magnitude()*n.magnitude());return e<-1&&(e=-1),e>1&&(e=1),Math.acos(e)}function rse(t,n){return t.x*n.y-t.y*n.x}MF.Directions=lh,MF.TangentDirections=f2;const ia={RENDER:"RENDER",UPDATE:"UPDATE",TOOLS:"TOOLS",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},Jv=us.extend({className:function(){var t=us.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){us.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[ia.RENDER],attrs:[ia.UPDATE],router:[ia.UPDATE],connector:[ia.CONNECTOR],smooth:[ia.UPDATE],manhattan:[ia.UPDATE],toolMarkup:[ia.LEGACY_TOOLS],labels:[ia.LABELS],labelMarkup:[ia.LABELS],vertices:[ia.VERTICES,ia.UPDATE],vertexMarkup:[ia.VERTICES],source:[ia.SOURCE,ia.UPDATE],target:[ia.TARGET,ia.UPDATE]},initFlag:[ia.RENDER,ia.SOURCE,ia.TARGET,ia.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,n){if(n||(n={}),this.hasFlag(t,ia.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,ia.SOURCE)}if(this.hasFlag(t,ia.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,ia.TARGET)}const{paper:e,sourceView:i,targetView:o}=this;if(e&&(i&&!e.isViewMounted(i)||o&&!e.isViewMounted(o)))return t;if(this.hasFlag(t,ia.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(n),this.removeFlag(t,[ia.RENDER,ia.UPDATE,ia.VERTICES,ia.LABELS,ia.TOOLS,ia.LEGACY_TOOLS,ia.CONNECTOR]);let r=!1;this.hasFlag(t,ia.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,ia.VERTICES));const{model:a}=this,{attributes:l}=a;let u=this.hasFlag(t,ia.LABELS),f=this.hasFlag(t,ia.LEGACY_TOOLS);u&&(this.onLabelsChange(a,l.labels,n),t=this.removeFlag(t,ia.LABELS),r=!0),f&&(this.renderTools(),t=this.removeFlag(t,ia.LEGACY_TOOLS));const w=this.hasFlag(t,ia.UPDATE),T=this.hasFlag(t,ia.CONNECTOR);return(w||T)&&(w?n.translateBy&&a.isRelationshipEmbeddedIn(n.translateBy)?this.translate(n.tx,n.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(n),t=this.removeFlag(t,[ia.UPDATE,ia.TOOLS,ia.CONNECTOR]),u=!1,f=!1,r=!0),u&&this.updateLabelPositions(),f&&this.updateToolsPosition(),r&&this.updateHighlighters(),this.hasFlag(t,ia.TOOLS)&&(this.updateTools(n),t=this.removeFlag(t,ia.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(ia.UPDATE),t)},isLabelsRenderRequired:function(t={}){const n=this.model.previous("labels");if(!n)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var e=t.propertyPathArray||[],i=e.length;if(i>1&&n[e[1]]){if(2===i)return"markup"in Object(t.propertyValue);if("markup"!==e[2])return!1}}return!0},onLabelsChange:function(t,n,e){this.isLabelsRenderRequired(e)?this.renderLabels():this.updateLabels()},render:function(){return this.vel.empty(),this.unmountLabels(),this._V={},this.renderMarkup(),this.renderLabels(),this.update(),this},renderMarkup:function(){var t=this.model,n=t.get("markup")||t.markup;if(!n)throw new Error("dia.LinkView: markup required");if(Array.isArray(n))return this.renderJSONMarkup(n);if("string"==typeof n)return this.renderStringMarkup(n);throw new Error("dia.LinkView: invalid markup")},renderJSONMarkup:function(t){var n=this.parseDOMJSON(t,this.el);this.selectors=n.selectors,this.vel.append(n.fragment)},renderStringMarkup:function(t){var n=wi(t);Array.isArray(n)||(n=[n]);for(var e=this._V,i=0,o=n.length;i1||"G"!==i[0].nodeName.toUpperCase()?wi("g").append(n):wi(i[0])).addClass("label"),{node:e.node,selectors:t.selectors}}},renderLabels:function(){var t=this._V,n=t.labels,e=this._labelCache={},i=this._labelSelectors={},o=this.model,r=o.attributes.labels||[],a=r.length;if(0===a)return n&&n.remove(),this;n?n.empty():(n=t.labels=wi("g").addClass("labels"),this.options.labelsLayer&&(n.addClass(Zh(_1(this,"className"))),n.attr("model-id",o.id)));for(var l=0;lf.toJSON()),u=l.length;return r===u?0:(e.vertices(l.slice(1,u-1),t),r-u)},updateDefaultConnectionPath:function(){var t=this._V;t.connection&&t.connection.attr("d",this.getSerializedConnection()),t.connectionWrap&&t.connectionWrap.attr("d",this.getSerializedConnection()),t.markerSource&&t.markerTarget&&this._translateAndAutoOrientArrows(t.markerSource,t.markerTarget)},getEndView:function(t){switch(t){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error("dia.LinkView: type parameter required.")}},getEndAnchor:function(t){switch(t){case"source":return new wn(this.sourceAnchor);case"target":return new wn(this.targetAnchor);default:throw new Error("dia.LinkView: type parameter required.")}},getEndConnectionPoint:function(t){switch(t){case"source":return new wn(this.sourcePoint);case"target":return new wn(this.targetPoint);default:throw new Error("dia.LinkView: type parameter required.")}},getEndMagnet:function(t){switch(t){case"source":var n=this.sourceView;if(!n)break;return this.sourceMagnet||n.el;case"target":var e=this.targetView;if(!e)break;return this.targetMagnet||e.el;default:throw new Error("dia.LinkView: type parameter required.")}return null},update:function(){return this.updateRoute(),this.updatePath(),this.updateDOM(),this},translate:function(t=0,n=0){const{route:e,path:i}=this;if(!e||!i)return;const o=new cc(e);o.translate(t,n),this.route=o.points,this._translateConnectionPoints(t,n),i.translate(t,n),this.updateDOM()},updateDOM(){const{el:t,model:n,selectors:e}=this;this.cleanNodesCache(),this.updateDOMSubtreeAttributes(t,n.attr(),{selectors:e}),this.updateDefaultConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),this.options.perpendicular=null},updateRoute:function(){const{model:t}=this,n=t.vertices(),e=this.findAnchors(n),i=this.sourceAnchor=e.source,o=this.targetAnchor=e.target,r=this.findRoute(n);this.route=r;var a=this.findConnectionPoints(r,i,o);this.sourcePoint=a.source,this.targetPoint=a.target},updatePath:function(){const{route:t,sourcePoint:n,targetPoint:e}=this,i=this.findMarkerPoints(t,n,e),o=this.findPath(t,i.source||n,i.target||e);this.path=o},findMarkerPoints:function(t,n,e){var a,l,i=t[0],o=t[t.length-1],r=this._markerCache;return this._V.markerSource&&(r.sourceBBox=r.sourceBBox||this._V.markerSource.getBBox(),a=wn(n).move(i||e,r.sourceBBox.width*this._V.markerSource.scale().sx*-1).round()),this._V.markerTarget&&(r.targetBBox=r.targetBBox||this._V.markerTarget.getBBox(),l=wn(e).move(o||n,r.targetBBox.width*this._V.markerTarget.scale().sx*-1).round()),r.sourcePoint=a||n.clone(),r.targetPoint=l||e.clone(),{source:a,target:l}},findAnchorsOrdered:function(t,n,e,i){var o,r,a,l,u=this.model,f=u.get(t),w=u.get(e),T=this.getEndView(t),U=this.getEndView(e),ie=this.getEndMagnet(t),se=this.getEndMagnet(e);T?(a=n?new wn(n):U?se:new wn(w),o=this.getAnchor(f.anchor,T,ie,a,t)):o=new wn(f),U?(l=new wn(i||o),r=this.getAnchor(w.anchor,U,se,l,e)):r=new wn(w);var Me={};return Me[t]=o,Me[e]=r,Me},findAnchors:function(t){var n=this.model,e=t[0],i=t[t.length-1];return n.target().priority&&!n.source().priority?this.findAnchorsOrdered("target",i,"source",e):this.findAnchorsOrdered("source",e,"target",i)},findConnectionPoints:function(t,n,e){var T,U,ie,He,i=t[0],o=t[t.length-1],r=this.model,a=r.get("source"),l=r.get("target"),u=this.sourceView,f=this.targetView,w=this.paper.options;if(u&&!u.isNodeConnection(this.sourceMagnet)){T=this.sourceMagnet||u.el;var se=a.connectionPoint||w.defaultConnectionPoint,we=new Ho(i||e,n);ie=this.getConnectionPoint(se,u,T,we,"source")}else ie=n;if(f&&!f.isNodeConnection(this.targetMagnet)){U=this.targetMagnet||f.el;var Be=l.connectionPoint||w.defaultConnectionPoint,ze=new Ho(o||n,e);He=this.getConnectionPoint(Be,f,U,ze,"target")}else He=e;return{source:ie,target:He}},getAnchor:function(t,n,e,i,o){var l,r=n.isNodeConnection(e),a=this.paper.options;if(t||(t=r?a.defaultLinkAnchor:a.perpendicularLinks||this.options.perpendicular?{name:"perpendicular"}:a.defaultAnchor),!t)throw new Error("Anchor required.");if("function"==typeof t)l=t;else{var u=t.name;if("function"!=typeof(l=a[r?"linkAnchorNamespace":"anchorNamespace"][u]))throw new Error("Unknown anchor: "+u)}var w=l.call(this,n,e,i,t.args||{},o,this);return w?w.round(this.decimalsRounding):new wn},getConnectionPoint:function(t,n,e,i,o){var r,f,a=i.end,l=this.paper.options;if("function"==typeof l.linkConnectionPoint&&(r=l.linkConnectionPoint(this,n,e===n.el?void 0:e,i.start,o)))return r;if(!t)return a;if("function"==typeof t)f=t;else{var w=t.name;if("function"!=typeof(f=l.connectionPointNamespace[w]))throw new Error("Unknown connection point: "+w)}return(r=f.call(this,i,n,e,t.args||{},o,this))?r.round(this.decimalsRounding):a},_translateConnectionPoints:function(t,n){var e=this._markerCache;e.sourcePoint.offset(t,n),e.targetPoint.offset(t,n),this.sourcePoint.offset(t,n),this.targetPoint.offset(t,n),this.sourceAnchor.offset(t,n),this.targetAnchor.offset(t,n)},_normalizeLabelPosition:function(t){return"number"==typeof t?{distance:t,offset:null,angle:0,args:null}:t},updateLabelPositions:function(){if(!this._V.labels)return this;if(!this.path)return this;var n=this.model,e=n.get("labels")||[];if(!e.length)return this;for(var o=n._builtins.defaultLabel.position,r=n._getDefaultLabel(),a=this._normalizeLabelPosition(r.position),l=F1({},o,a),u=0,f=e.length;u=this.options.longLinkLength?(i=this.getPointAtLength(e-(this.options.doubleLinkToolsOffset||n)),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("visibility","visible")):this.options.doubleLinkTools&&this._tool2Cache.attr("visibility","hidden")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===As.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()0&&n<=1,r=0,a={x:0,y:0};if(t.offset){var l=t.offset;"number"==typeof l&&(r=l),l.x&&(a.x=l.x),l.y&&(a.y=l.y)}var Me,u=0!==a.x||0!==a.y||0===r,f=i.keepGradient,w=i.ensureLegibility,T=this.path,U={segmentSubdivisions:this.getConnectionSubdivisions()},ie=o?n*this.getConnectionLength():n,se=T.tangentAtLength(ie,U),we=e;if(se){if(u)(Me=se.start).offset(a);else{var He=se.clone();He.rotate(se.start,-90),He.setLength(r),Me=He.end}f&&(we=se.angle()+e,w&&(we=K0((we+90)%180-90)))}else Me=T.start,u&&Me.offset(a);return wi.createSVGMatrix().translate(Me.x,Me.y).rotate(we)},getLabelCoordinates:function(t){var n=this._getLabelTransformationMatrix(t);return new wn(n.e,n.f)},getVertexIndex:function(t,n){for(var i=this.model.vertices(),o=this.getClosestPointLength(new wn(t,n)),r=0,a=i.length;r{qe.push({bbox:ze.getNodeBBox(rt),magnet:rt})}),qe.forEach(rt=>{const{magnet:xt,bbox:Ut}=rt,jt=Ut.center().squaredDistance(ie);jt0){for(var f=0,w=u.length;fo&&(o=r);return n.insertBefore(i,o!==-1/0?e[o].nextSibling:n.firstChild),i},removePivots:function(){const{el:t,pivotNodes:n}=this;for(let e in n)t.removeChild(n[e]);this.pivotNodes={}}}),qdt=A4.extend({tagName:"path",className:"highlight-stroke",attributes:{"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},options:{padding:3,rx:0,ry:0,useFirstSubpath:!1,attrs:{"stroke-width":3,stroke:"#FEB663"}},getPathData(t,n){const{options:e}=this,{useFirstSubpath:i}=e;let o;try{const r=wi(n);if(o=r.convertToPathData().trim(),"PATH"===r.tagName()&&i){const a=o.search(/.M/i)+1;a>0&&(o=o.substr(0,a))}}catch(r){const a=t.getNodeBoundingRect(n);o=wi.rectToPath(Ar({},e,a.toJSON()))}return o},highlightConnection(t){this.vel.attr("d",t.getSerializedConnection())},highlightNode(t,n){const{vel:e,options:i}=this,{padding:o,layer:r}=i;let a=t.getNodeMatrix(n);if(o){!r&&n===t.el&&e.remove();let l=t.getNodeBoundingRect(n);const u=l.x+l.width/2,f=l.y+l.height/2;l=wi.transformRect(l,a);const w=Math.max(l.width,1),T=Math.max(l.height,1),U=(w+o)/w,ie=(T+o)/T,se=wi.createSVGMatrix({a:U,b:0,c:0,d:ie,e:u-U*u,f:f-ie*f});a=a.multiply(se)}e.attr({d:this.getPathData(t,n),transform:wi.matrixToTransformString(a)})},highlight(t,n){const{vel:e,options:i}=this;e.attr(i.attrs),t.isNodeConnection(n)?this.highlightConnection(t):this.highlightNode(t,n)}}),ase=20,Xdt=A4.extend({tagName:"rect",className:"highlight-mask",attributes:{"pointer-events":"none"},options:{padding:3,maskClip:ase,deep:!1,attrs:{stroke:"#FEB663","stroke-width":3,"stroke-linecap":"butt","stroke-linejoin":"miter"}},VISIBLE:"white",INVISIBLE:"black",MASK_ROOT_ATTRIBUTE_BLACKLIST:["marker-start","marker-end","marker-mid","transform","stroke-dasharray"],MASK_CHILD_ATTRIBUTE_BLACKLIST:["stroke","fill","stroke-width","stroke-opacity","stroke-dasharray","fill-opacity","marker-start","marker-end","marker-mid"],MASK_REPLACE_TAGS:["FOREIGNOBJECT","IMAGE","USE","TEXT","TSPAN","TEXTPATH"],MASK_REMOVE_TAGS:["TEXT","TSPAN","TEXTPATH"],transformMaskChild(t,n){const{MASK_CHILD_ATTRIBUTE_BLACKLIST:e,MASK_REPLACE_TAGS:i,MASK_REMOVE_TAGS:o}=this,r=n.tagName();if(!wi.isSVGGraphicsElement(n)||o.includes(r))return n.remove(),!1;if(i.includes(r)){const a=t.vel.findOne(`#${n.id}`);if(a){const{node:l}=a;let u=t.getNodeBoundingRect(l);t.model.isElement()&&(u=wi.transformRect(u,t.getNodeMatrix(l)));const f=wi("rect",u.toJSON()),{x:w,y:T}=u.center(),{angle:U,cx:ie=w,cy:se=T}=a.rotate();U&&f.rotate(U,ie,se),n.parent().append(f)}return n.remove(),!1}return e.forEach(a=>{"fill"===a&&"none"===n.attr("fill")||n.removeAttr(a)}),!0},transformMaskRoot(t,n){const{MASK_ROOT_ATTRIBUTE_BLACKLIST:e}=this;e.forEach(i=>{n.removeAttr(i)})},getMaskShape(t,n){const{options:e,MASK_REPLACE_TAGS:i}=this,{deep:o}=e,r=n.tagName();let a;if("G"===r){if(!o)return null;a=n.clone(),function $dt(t,n){const e=t.children();for(;e.length>0;){const i=e.shift();n(i)&&e.push(...i.children())}}(a,l=>this.transformMaskChild(t,l))}else{if(i.includes(r))return null;a=n.clone()}return this.transformMaskRoot(t,a),a},getMaskId(){return`highlight-mask-${this.cid}`},getMask(t,n){const{VISIBLE:e,INVISIBLE:i,options:o}=this,{padding:r,attrs:a}=o,l="stroke-width"in a?a["stroke-width"]:1,u="none"!==n.attr("fill");let f=parseFloat(n.attr("stroke-width"));isNaN(f)&&(f=1);const w=f+2*r,T=w+2*l;let U=this.getMaskShape(t,n);if(!U){const ie=t.getNodeBoundingRect(n.node);ie.inflate(ie.width?0:.5,ie.height?0:.5),U=wi("rect",ie.toJSON())}return U.attr(a),wi("mask",{id:this.getMaskId()}).append([U.clone().attr({fill:u?e:"none",stroke:e,"stroke-width":T}),U.clone().attr({fill:u?i:"none",stroke:i,"stroke-width":w})])},removeMask(t){const n=t.svg.getElementById(this.getMaskId());n&&t.defs.removeChild(n)},addMask(t,n){t.defs.appendChild(n.node)},highlight(t,n){const{options:e,vel:i}=this,{padding:o,attrs:r,maskClip:a=ase,layer:l}=e,u="stroke"in r?r.stroke:"#000000";!l&&n===t.el&&i.remove();const f=t.getNodeBoundingRect(n).inflate(o+a),w=this.getMask(t,wi(n));this.addMask(t.paper,w),i.attr(f.toJSON()),i.attr({transform:wi.matrixToTransformString(t.getNodeMatrix(n)),mask:`url(#${w.id})`,fill:u})},unhighlight(t){this.removeMask(t.paper)}}),Qdt=A4.extend({UPDATABLE:!1,MOUNTABLE:!1,opacityClassName:Zh("highlight-opacity"),highlight:function(t,n){wi(n).addClass(this.opacityClassName)},unhighlight:function(t,n){wi(n).removeClass(this.opacityClassName)}}),sse=Zh("highlighted"),Zdt=A4.extend({UPDATABLE:!1,MOUNTABLE:!1,options:{className:sse},highlight:function(t,n){wi(n).addClass(this.options.className)},unhighlight:function(t,n){wi(n).removeClass(this.options.className)}},{className:sse});function Kdt(t,n,e,i){return t.getPointAtRatio("ratio"in i?i.ratio:.5)}function Jdt(t,n,e,i){return t.getPointAtLength("length"in i?i.length:20)}function eb(t){return function(n,e,i,o){if(i instanceof Element){var a,r=this.paper.findView(i);if(r)if(r.isNodeConnection(i)){var l="fixedAt"in o?o.fixedAt:"50%";a=cse(r,l)}else a=r.getNodeBBox(i).center();else a=new wn;return t.call(this,n,e,a,o)}return t.apply(this,arguments)}}function cse(t,n){var e=parseFloat(n);return rh(n)?t.getPointAtRatio(e/100):t.getPointAtLength(e)}const n2t=eb(function e2t(t,n,e,i){var o=1e6,r=t.getConnection(),a=t.getConnectionSubdivisions(),l=new Ho(e.clone().offset(0,o),e.clone().offset(0,-o)),u=new Ho(e.clone().offset(o,0),e.clone().offset(-o,0)),f=l.intersect(r,{segmentSubdivisions:a}),w=u.intersect(r,{segmentSubdivisions:a}),T=[];return f&&Array.prototype.push.apply(T,f),w&&Array.prototype.push.apply(T,w),T.length>0?e.chooseClosest(T):"fallbackAt"in i?cse(t,i.fallbackAt):lse(t,n,e,i)}),lse=eb(function t2t(t,n,e,i){return t.getClosestPoint(e)||new wn});function PP(t,n,e){if(z1(e)){const{x:o,y:r}=e;if(isFinite(r)){const a=new Ho(n,t),{start:l,end:u}=a.parallel(r);n=l,t=u}e=o}if(!isFinite(e))return t;var i=t.distance(n);return 0===e&&i>0?t:t.move(n,-Math.min(e,i-1))}function SF(t){var n=t.getAttribute("stroke-width");return null===n?0:parseFloat(n)||0}function dse(t,n,e,i){var o=n.getNodeBBox(e);i.stroke&&o.inflate(SF(e)/2);var r=t.intersect(o);return PP(r?t.start.chooseClosest(r):t.end,t.start,i.offset)}var PF="segmentSubdivisons",TF="shapeBBox";const c2t=function o2t(t,n,e,i){let{offset:o,alignOffset:r,align:a}=i;return a&&function i2t(t,n,e=0){let i,o,r,a;const{start:l,end:u}=t;switch(n){case"left":i="x",o=u,r=l,a=-1;break;case"right":i="x",o=l,r=u,a=1;break;case"top":i="y",o=u,r=l,a=-1;break;case"bottom":i="y",o=l,r=u,a=1;break;default:return}l[i]{const a=new Wdt({name:o});this.layers.appendChild(a.el),this._layers[o]=a});const n=this.getLayerView(e0.CELLS),e=this.getLayerView(e0.TOOLS),i=this.getLayerView(e0.LABELS);this.tools=e.el,this.cells=this.viewport=n.el,n.vel.addClass(Zh("viewport")),i.vel.addClass(Zh("viewport"))},removeLayers:function(){const{_layers:t}=this;Object.keys(t,n=>{t[n].remove(),delete t[n]})},resetLayers:function(){const{_layers:t}=this;Object.keys(t,n=>{t[n].removePivots()})},update:function(){return this.options.drawGrid&&this.drawGrid(),this._background&&this.updateBackgroundImage(this._background),this},matrix:function(t){var n=this.layers;if(void 0===t){var e=n.getAttribute("transform");return(this._viewportTransformString||null)===e?t=this._viewportMatrix:(t=n.getCTM(),this._viewportMatrix=t,this._viewportTransformString=e),wi.createSVGMatrix(t)}t=wi.createSVGMatrix(t);var i=wi.matrixToTransformString(t);return n.setAttribute("transform",i),this._viewportMatrix=t,this._viewportTransformString=n.getAttribute("transform"),this},clientMatrix:function(){return wi.createSVGMatrix(this.cells.getScreenCTM())},requestConnectedLinksUpdate:function(t,n,e){if(t instanceof us)for(var i=t.model,o=this.model.getConnectedLinks(i),r=0,a=o.length;ru)for(let ie=e-1;ie>=u;ie--){const se=o.priorities[ie];!se||!(f in se)||(w[f]|=se[f],delete se[f])}let T=w[f]||0;if((T&n)===n)return;T||o.count++,n&a&&T&l?w[f]^=l:n&l&&T&a&&(w[f]^=a),w[f]|=n;const U=r.onViewUpdate;"function"==typeof U&&U.call(this,t,n,e,i||{},this)},dumpViewUpdate:function(t){if(!t)return 0;var e=t.cid,i=this._updates.priorities[t.UPDATE_PRIORITY],o=this.registerMountedView(t)|i[e];return delete i[e],o},dumpView:function(t,n){var e=this.dumpViewUpdate(t);return e?this.updateView(t,e,n):0},updateView:function(t,n,e){if(!t)return 0;const{FLAG_REMOVE:i,FLAG_INSERT:o,model:r}=t;if(t instanceof us){if(n&i)return this.removeView(r),0;n&o&&(this.insertView(t),n^=o)}return n?t.confirmUpdate(n,e||{}):0},requireView:function(t,n){var e=this.findViewByModel(t);return e?(this.dumpView(e,n),e):null},registerUnmountedView:function(t){var n=t.cid,e=this._updates;if(n in e.unmounted)return 0;var i=e.unmounted[n]|=t.FLAG_INSERT;return e.unmountedCids.push(n),delete e.mounted[n],i},registerMountedView:function(t){var n=t.cid,e=this._updates;if(n in e.mounted)return 0;e.mounted[n]=!0,e.mountedCids.push(n);var i=e.unmounted[n]||0;return delete e.unmounted[n],i},isViewMounted:function(t){return!!t&&t.cid in this._updates.mounted},dumpViews:function(t){var n=ah({},t,{viewport:null});this.checkViewport(n),this.updateViews(n)},updateViews:function(t){this.notifyBeforeRender(t);let n,e=0,i=0,o=TP;do{i++,n=this.updateViewsBatch(t),e+=n.updated,o=Math.min(n.priority,o)}while(!n.empty);const r={updated:e,batches:i,priority:o};return this.notifyAfterRender(r,t),r},hasScheduledUpdates:function(){const t=this._updates.priorities,n=Object.keys(t);let e=n.length;for(;e>0&&e--;)for(let i in t[n[e]])return!0;return!1},updateViewsAsync:function(t,n){t||(t={}),n||(n={processed:0,priority:TP});var e=this._updates,i=e.id;if(i){Xz(i),0===n.processed&&this.hasScheduledUpdates()&&this.notifyBeforeRender(t);var o=this.updateViewsBatch(t),r=ah({},t,{mountBatchSize:1e3-o.mounted,unmountBatchSize:1e3-o.unmounted}),a=this.checkViewport(r),l=a.unmounted,u=a.mounted,f=n.processed,w=e.count;o.updated>0&&(o.processed=f+=o.updated+o.unmounted,n.priority=Math.min(o.priority,n.priority),o.empty&&0===u?(o.unmounted+=l,o.mounted+=u,o.priority=n.priority,this.notifyAfterRender(o,t),n.processed=0,n.priority=TP,e.count=0):n.processed=f);var T=t.progress;if(w&&"function"==typeof T&&T.call(this,o.empty,f,w,o,this),e.id!==i)return}e.id=$z(this.updateViewsAsync,this,t,n)},notifyBeforeRender:function(t={}){let n=t.beforeRender;"function"!=typeof n&&(n=this.options.beforeRender,"function"!=typeof n)||n.call(this,t,this)},notifyAfterRender:function(t,n={}){let e=n.afterRender;"function"!=typeof e&&(e=this.options.afterRender),"function"==typeof e&&e.call(this,t,n,this),this.trigger("render:done",t,n)},updateViewsBatch:function(t){t||(t={});var n=t.batchSize||1/0,e=this._updates,i=0,o=0,r=0,a=0,l=TP,u=!0,f=this.options,w=e.priorities,T="viewport"in t?t.viewport:f.viewport;"function"!=typeof T&&(T=null);var U=f.onViewPostponed;"function"!=typeof U&&(U=null);var ie=Object.keys(w);e:for(var se=0,Me=ie.length;se=n){u=!1;break e}var me=Hm[Be];if(me){var ze=He[Be];if(0==(ze&me.FLAG_REMOVE)){var qe=Be in e.unmounted;if(me.DETACHABLE&&T&&!T.call(this,me,!qe,this)){qe||(this.registerUnmountedView(me),me.unmount()),e.unmounted[Be]|=ze,delete He[Be],r++;continue}qe&&(ze|=me.FLAG_INSERT,a++),ze|=this.registerMountedView(me)}var rt=this.updateView(me,ze,t);rt>0&&(He[Be]=rt,!U||!U.call(this,me,rt,this)||He[Be])?(o++,u=!1):(l>we&&(l=we),i++,delete He[Be])}else delete He[Be]}}return{priority:l,updated:i,postponed:o,unmounted:r,mounted:a,empty:u}},getUnmountedViews:function(){const n=Object.keys(this._updates.unmounted),e=n.length,i=new Array(e);for(var o=0;o0&&(n.mountBatchSize=Math.min(this._updates.unmountedCids.length-i,n.mountBatchSize)),{mounted:this.checkUnmountedViews(e,n),unmounted:i}},freeze:function(t){t||(t={});var n=this._updates,e=t.key,i=this.options.frozen,o=n.freezeKey;if(e&&e!==o){if(i&&o)return;n.freezeKey=e,n.keyFrozen=i}this.options.frozen=!0;var r=n.id;n.id=null,this.isAsync()&&r&&Xz(r)},unfreeze:function(t){t||(t={});var n=this._updates,e=t.key,i=n.freezeKey;e&&i&&e!==i||(n.freezeKey=null,(!e||e!==i||!n.keyFrozen)&&(this.isAsync()?(this.freeze(),this.updateViewsAsync(t)):this.updateViews(t),this.options.frozen=n.keyFrozen=!1,n.sort&&(this.sortViews(),n.sort=!1)))},isAsync:function(){return!!this.options.async},isFrozen:function(){return!!this.options.frozen},isExactSorting:function(){return this.options.sorting===o8.EXACT},onRemove:function(){this.freeze(),this.removeLayers(),this.removeViews()},getComputedSize:function(){var t=this.options,n=t.width,e=t.height;return B2(n)||(n=this.el.clientWidth),B2(e)||(e=this.el.clientHeight),{width:n,height:e}},setDimensions:function(t,n){const{options:e}=this,{width:i,height:o}=e;let r=void 0===t?i:t,a=void 0===n?o:n;if(i===r&&o===a)return;e.width=r,e.height=a,this._setDimensions();const l=this.getComputedSize();this.trigger("resize",l.width,l.height)},_setDimensions:function(){const{options:t}=this;let n=t.width,e=t.height;B2(n)&&(n=Math.round(n)),B2(e)&&(e=Math.round(e)),this.$el.css({width:null===n?"":n,height:null===e?"":e})},setOrigin:function(t,n){return this.translate(t||0,n||0)},fitToContent:function(t,n,e,i){i=qc(t)?t:Ar({gridWidth:t,gridHeight:n,padding:e},i);const{x:o,y:r,width:a,height:l}=this.getFitToContentArea(i),{sx:u,sy:f}=this.scale();return this.setOrigin(-o*u,-r*f),this.setDimensions(a*u,l*f),new Po(o,r,a,l)},getFitToContentArea:function(t={}){const n=t.gridWidth||1,e=t.gridHeight||1,i=Q_(t.padding||0),o=Math.max(t.minWidth||0,n),r=Math.max(t.minHeight||0,e),a=t.maxWidth||Number.MAX_VALUE,l=t.maxHeight||Number.MAX_VALUE,u=t.allowNewOrigin,f="contentArea"in t?new Po(t.contentArea):this.getContentArea(t),{sx:w,sy:T}=this.scale();f.x*=w,f.y*=T,f.width*=w,f.height*=T;let U=Math.ceil((f.width+f.x)/n),ie=Math.ceil((f.height+f.y)/e);t.allowNegativeBottomRight||(U=Math.max(U,1),ie=Math.max(ie,1)),U*=n,ie*=e;let se=0;("negative"===u&&f.x<0||"positive"===u&&f.x>=0||"any"===u)&&(se=Math.ceil(-f.x/n)*n,se+=i.left,U+=se);let Me=0;return("negative"===u&&f.y<0||"positive"===u&&f.y>=0||"any"===u)&&(Me=Math.ceil(-f.y/e)*e,Me+=i.top,ie+=Me),U+=i.right,ie+=i.bottom,U=Math.max(U,o),ie=Math.max(ie,r),U=Math.min(U,a),ie=Math.min(ie,l),new Po(-se/w,-Me/T,U/w,ie/T)},scaleContentToFit:function(t){var n,e;if(t||(t={}),"contentArea"in t){var i=t.contentArea;n=this.localToPaperRect(i),e=new wn(i)}else n=this.getContentBBox(t),e=this.paperToLocalPoint(n);if(n.width&&n.height){ah(t,{padding:0,preserveAspectRatio:!0,scaleGrid:null,minScale:0,maxScale:Number.MAX_VALUE});var f,o=Q_(t.padding),r=t.minScaleX||t.minScale,a=t.maxScaleX||t.maxScale,l=t.minScaleY||t.minScale,u=t.maxScaleY||t.maxScale;if(t.fittingBBox)f=t.fittingBBox;else{var w=this.translate(),T=this.getComputedSize();f={x:w.tx,y:w.ty,width:T.width,height:T.height}}f=new Po(f).moveAndExpand({x:o.left,y:o.top,width:-o.left-o.right,height:-o.top-o.bottom});var U=this.scale(),ie=f.width/n.width*U.sx,se=f.height/n.height*U.sy;if(t.preserveAspectRatio&&(ie=se=Math.min(ie,se)),t.scaleGrid){var Me=t.scaleGrid;ie=Me*Math.floor(ie/Me),se=Me*Math.floor(se/Me)}ie=Math.min(a,Math.max(r,ie)),se=Math.min(u,Math.max(l,se));var we=this.options.origin,He=f.x-e.x*ie-we.x,Be=f.y-e.y*se-we.y;this.scale(ie,se),this.translate(He,Be)}},getContentArea:function(t){return t&&t.useModelGeometry?this.model.getBBox()||new Po:wi(this.cells).getBBox()},getContentBBox:function(t){return this.localToPaperRect(this.getContentArea(t))},getArea:function(){return this.paperToLocalRect(this.getComputedSize())},getRestrictedArea:function(...t){const{restrictTranslate:n}=this.options;let e;return e=Hs(n)?n.apply(this,t):!0===n?this.getArea():n?new Po(n):null,e},createViewForModel:function(t){const{options:n}=this;var e,i,o=n.cellViewNamespace,r=t.get("type")+"View",a=Uv(o,r,".");return t.isLink()?(e=n.linkView,i=Jv):(e=n.elementView,i=fl),new(e.prototype instanceof Nd.View?a||e:e.call(this,t)||a||i)({model:t,interactive:n.interactive,labelsLayer:!0===n.labelsLayer?e0.LABELS:n.labelsLayer})},removeView:function(t){const{id:n}=t,{_views:e,_updates:i}=this,o=e[n];if(o){var{cid:r}=o;const{mounted:a,unmounted:l}=i;o.remove(),delete e[n],delete a[r],delete l[r]}return o},renderView:function(t,n){const{id:e}=t,i=this._views;let o,r,a=!0;return e in i&&(o=i[e],o.model===t?(r=o.FLAG_INSERT,a=!1):this.removeView(t)),a&&(o=i[e]=this.createViewForModel(t),o.paper=this,r=this.registerUnmountedView(o)|o.getFlag(_1(o,"initFlag"))),this.requestViewUpdate(o,r,o.UPDATE_PRIORITY,n),o},onImageDragStart:function(){return!1},resetViews:function(t,n){n||(n={}),t||(t=[]),this._resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(var e=0,i=t.length;ewi("stop").attr({offset:f,"stop-color":w,"stop-opacity":Number.isFinite(T)?T:1})),u=wi(i,a,l);return u.id=o,u.appendTo(e),o},definePattern:function(t){if(!qc(t))throw new TypeError("dia.Paper: definePattern() requires 1. argument to be an object.");const{svg:n,defs:e}=this,{id:i=n.id+fP(JSON.stringify(t)),markup:o,attrs:r={}}=t;if(!o)throw new TypeError("dia.Paper: definePattern() requires markup.");if(this.isDefined(i))return i;const a=wi("pattern",{patternUnits:"userSpaceOnUse"});if(a.id=i,a.attr(r),"string"==typeof o)a.append(wi(o));else{const{fragment:l}=pP(o);a.append(l)}return a.appendTo(e),i},defineMarker:function(t){if(!qc(t))throw new TypeError("dia.Paper: defineMarker() requires 1. argument to be an object.");const{svg:n,defs:e}=this,{id:i=n.id+fP(JSON.stringify(t)),markup:o,attrs:r={},markerUnits:a="userSpaceOnUse"}=t;if(this.isDefined(i))return i;const l=wi("marker",{orient:"auto",overflow:"visible",markerUnits:a});if(l.id=i,l.attr(r),o)if("string"==typeof o)l.append(wi(o));else{const{fragment:u}=pP(o);l.append(u)}else{const{type:u="path"}=t,f=wi(u,P4(t,"type","id","markup","attrs","markerUnits"));l.append(f)}return l.appendTo(e),i}},{sorting:o8,Layers:e0,backgroundPatterns:{flipXy:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=2*e,n.height=2*i;var o=n.getContext("2d");return o.drawImage(t,0,0,e,i),o.setTransform(-1,0,0,-1,n.width,n.height),o.drawImage(t,0,0,e,i),o.setTransform(-1,0,0,1,n.width,0),o.drawImage(t,0,0,e,i),o.setTransform(1,0,0,-1,0,n.height),o.drawImage(t,0,0,e,i),n},flipX:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=2*e,n.height=i;var o=n.getContext("2d");return o.drawImage(t,0,0,e,i),o.translate(2*e,0),o.scale(-1,1),o.drawImage(t,0,0,e,i),n},flipY:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=e,n.height=2*i;var o=n.getContext("2d");return o.drawImage(t,0,0,e,i),o.translate(0,2*i),o.scale(1,-1),o.drawImage(t,0,0,e,i),n},watermark:function(t,n){n=n||{};var e=t.width,i=t.height,o=document.createElement("canvas");o.width=3*e,o.height=3*i;for(var r=o.getContext("2d"),a=B2(n.watermarkAngle)?-n.watermarkAngle:-20,l=H2(a),u=o.width/4,f=o.height/4,w=0;w<4;w++)for(var T=0;T<4;T++)(w+T)%2>0&&(r.setTransform(1,0,0,1,(2*w-1)*u,(2*T-1)*f),r.rotate(l),r.drawImage(t,-e/2,-i/2,e,i));return o}},gridPatterns:{dot:[{color:"#AAAAAA",thickness:1,markup:"rect",update:function(t,n){wi(t).attr({width:n.thickness*n.sx,height:n.thickness*n.sy,fill:n.color})}}],fixedDot:[{color:"#AAAAAA",thickness:1,markup:"rect",update:function(t,n){var e=n.sx<=1?n.thickness*n.sx:n.thickness;wi(t).attr({width:e,height:e,fill:n.color})}}],mesh:[{color:"#AAAAAA",thickness:1,markup:"path",update:function(t,n){var e,i=n.width,o=n.height,r=n.thickness;e=i-r>=0&&o-r>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",wi(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}}],doubleMesh:[{color:"#AAAAAA",thickness:1,markup:"path",update:function(t,n){var e,i=n.width,o=n.height,r=n.thickness;e=i-r>=0&&o-r>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",wi(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}},{color:"#000000",thickness:3,scaleFactor:4,markup:"path",update:function(t,n){var e,i=n.width,o=n.height,r=n.thickness;e=i-r>=0&&o-r>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",wi(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}}]}}),r8={exportElement:function(t){return t.size()},exportLink:function(t){var n=t.get("labelSize")||{};return{minLen:t.get("minLen")||1,weight:t.get("weight")||1,labelpos:t.get("labelPosition")||"c",labeloffset:t.get("labelOffset")||0,width:n.width||0,height:n.height||0}},importElement:function(t,n,e){var i=this.getCell(n),o=e.node(n);t.setPosition?t.setPosition(i,o):i.set("position",{x:o.x-o.width/2,y:o.y-o.height/2})},importLink:function(t,n,e){const o=this.getCell(n.name),r=e.edge(n),a=r.points||[],l=new cc(a);if(t.setVertices||t.setLinkVertices)if(Hs(t.setVertices))t.setVertices(o,a);else{l.simplify({threshold:.001});const u=l.points.map(w=>w.toJSON());o.set("vertices",u.slice(1,u.length-1))}if(t.setLabels&&"x"in r&&"y"in r){const u={x:r.x,y:r.y};if(Hs(t.setLabels))t.setLabels(o,u,a);else{const f=l.closestPointLength(u),w=l.pointAtLength(f),T=f/l.length(),U=new wn(u).difference(w).toJSON();o.label(0,{position:{distance:T,offset:U}})}}},layout:function(t,n){var e;e=t instanceof Jh?t:(new Jh).resetCells(t,{dry:!0,sort:!1}),t=null;const i=(n=ah(n||{},{resizeClusters:!0,clusterPadding:10,exportElement:this.exportElement,exportLink:this.exportLink})).dagre||("undefined"!=typeof dagre?dagre:void 0);if(void 0===i)throw new Error('The the "dagre" utility is a mandatory dependency.');var o=r8.toGraphLib(e,{graphlib:n.graphlib,directed:!0,multigraph:!0,compound:!0,setNodeLabel:n.exportElement,setEdgeLabel:n.exportLink,setEdgeName:function(w){return w.id}}),r={},a=n.marginX||0,l=n.marginY||0;if(n.rankDir&&(r.rankdir=n.rankDir),n.align&&(r.align=n.align),n.nodeSep&&(r.nodesep=n.nodeSep),n.edgeSep&&(r.edgesep=n.edgeSep),n.rankSep&&(r.ranksep=n.rankSep),n.ranker&&(r.ranker=n.ranker),a&&(r.marginx=a),l&&(r.marginy=l),o.setGraph(r),i.layout(o,{debugTiming:!!n.debugTiming}),e.startBatch("layout"),r8.fromGraphLib(o,{importNode:this.importElement.bind(e,n),importEdge:this.importLink.bind(e,n)}),n.resizeClusters){var u=o.nodes().filter(function(w){return o.children(w).length>0}).map(e.getCell.bind(e)).sort(function(w,T){return T.getAncestors().length-w.getAncestors().length});Kh(u,"fitEmbeds",{padding:n.clusterPadding})}e.stopBatch("layout");var f=o.graph();return new Po(a,l,Math.abs(f.width-2*a),Math.abs(f.height-2*l))},fromGraphLib:function(t,n){var e=(n=n||{}).importNode||K_,i=n.importEdge||K_,o=this instanceof Jh?this:new Jh;return t.nodes().forEach(function(r){e.call(o,r,t,o,n)}),t.edges().forEach(function(r){i.call(o,r,t,o,n)}),o},toGraphLib:function(t,n){const e=(n=n||{}).graphlib||("undefined"!=typeof graphlib?graphlib:void 0);if(void 0===e)throw new Error('The the "graphlib" utility is a mandatory dependency.');for(var i=oae(n,"directed","compound","multigraph"),o=new e.Graph(i),r=n.setNodeLabel||K_,a=n.setEdgeLabel||K_,l=n.setEdgeName||K_,u=t.get("cells"),f=0,w=u.length;f{"noctua.NodeLink"!==r.get("type")&&r.setColor("grey",200,300)}),(0,Zt.each)(o,r=>{"noctua.NodeLink"!==r.get("type")&&r.setColor("amber",200,300)}),(0,Zt.each)(i,r=>{"noctua.NodeLink"!==r.get("type")&&r.setColor("yellow",50,100)}),n.setColor("yellow",100,200)}selectNode(n){this.unselectAll(),n.setBorder("orange",500)}updateLocation(){const n=this;(0,Zt.each)(n.canvasGraph.getElements(),e=>{if("noctua.NodeLink"!==e.get("type")){const i=e.prop("activity");if(i){const o=e.position();i.position.x=o.x,i.position.y=o.y}}}),n.onUpdateCamLocations(n.cam)}unhighlightAllNodes(){(0,Zt.each)(this.canvasGraph.getCells(),e=>{if("noctua.NodeLink"!==e.get("type")){const i=e.prop("activity");e.setColor(i.backgroundColor)}})}unselectAll(){(0,Zt.each)(this.canvasGraph.getCells(),e=>{"noctua.NodeLink"!==e.get("type")&&e.unsetBorder()})}createLinkFromElements(n,e){const o=n.get("activity"),r=e.get("activity");this.createLink(o,new u3(Pi.createEntity(Ft.edge.causallyUpstreamOf)),r)}createLink(n,e,i){const r=new D2(n,i,e);this.createLinkFromTriple(r,!0)}createLinkFromTriple(n,e){const i=this,o=n8.create();o.setText(n.predicate.edge.label),o.set({activity:n.predicate,id:n.predicate.edge.id,source:{id:n.subject.id,port:"right"},target:{id:n.object.id,port:"left"}}),o.addTo(i.canvasGraph),e&&i.autoLayoutGraph(i.canvasGraph)}paperScale(n,e){const i=this.canvasPaper.$el,o=this.canvasPaper.scale().sx+n;if(o>.1&&n<10){const r=e.offsetX||e.clientX-i.offset().left,a=e.offsetY||e.clientY-i.offset().top,l=this._offsetToLocalPoint(r,a);this.canvasPaper.translate(0,0),this.canvasPaper.scale(o,o,l.x,l.y)}}zoom(n,e){e?this.paperScale(n,e):(this.canvasPaper.translate(0,0),this.canvasPaper.scale(this.canvasPaper.scale().sx+n,this.canvasPaper.scale().sx+n))}resetZoom(){this.canvasPaper.scale(1,1)}toggleActivityVisibility(n,e){const i=this,o=i.canvasGraph.getSuccessors(n).concat(n);i.canvasGraph.getSubgraph(o).forEach(e.expanded?a=>{a.attr("./visibility","hidden")}:a=>{a.attr("./visibility","visible")}),n.attr("./visibility","visible"),e.expanded=!e.expanded,i.autoLayoutGraph(i.canvasGraph),i.canvasPaper.translate(0,0)}_addGPEntity(n,e){var i,o,r,a;const l=this;(null===(i=n.node)||void 0===i?void 0:i.displaySection.id)===Ft.displaySection.gp.id&&((null===(o=n.node)||void 0===o?void 0:o.term)&&(null===(r=n.node.predicate.edge)||void 0===r?void 0:r.id)!==Ft.edge.enabledBy.id&&e.addEntity(zh.pad("\u2014",n.node.treeLevel-2)+(null===(a=n.node.predicate.edge)||void 0===a?void 0:a.label),n.node.term.label,n.node.predicate.hasEvidence()),n.children.forEach(u=>{l._addGPEntity(u,e)}))}_addFDEntity(n,e){var i,o,r;const a=this;(null===(i=n.node)||void 0===i?void 0:i.displaySection.id)===Ft.displaySection.fd.id&&((null===(o=n.node)||void 0===o?void 0:o.term)&&e.addEntity(zh.pad("\u2014",n.node.treeLevel-2)+(null===(r=n.node.predicate.edge)||void 0===r?void 0:r.label),n.node.term.label,n.node.predicate.hasEvidence()),n.children.forEach(l=>{a._addFDEntity(l,e)}))}createNode(n,e){var i,o;const r=new fF;if(r.addIcon(`./assets/images/activity/coverage-${n.summary.coverage}.png`),e===Ft.graphLayoutDetail.options.detailed.id)n.activityType===so.proteinComplex&&n.buildGPTrees().forEach(u=>this._addGPEntity(u,r)),n.buildTrees().forEach(l=>this._addFDEntity(l,r));else if(e===Ft.graphLayoutDetail.options.simple.id&&n.mfNode){const a=n.getEdges(n.mfNode.id);r.addEntity("",null===(i=n.mfNode)||void 0===i?void 0:i.term.label,n.mfNode.predicate.hasEvidence()),a.forEach(l=>{var u,f;const w=(0,Zt.find)(Ft.defaultGraphDisplayEdges,T=>{var U;return T.id===(null===(U=l.predicate.edge)||void 0===U?void 0:U.id)});(null===(u=l.object)||void 0===u?void 0:u.term.hasValue())&&w&&r.addEntity(l.object.predicate.edge.label,null===(f=l.object)||void 0===f?void 0:f.term.label,l.object.predicate.hasEvidence())})}return n.gpNode?r.addHeader(null===(o=n.gpNode)||void 0===o?void 0:o.term.label):r.prop("GP info unavailable"),r.setColor(n.backgroundColor),r.attr({expand:{event:"element:expand:pointerdown",stroke:"black",strokeWidth:2}}),r.set({activity:n,id:n.id,position:n.position}),r}createMolecule(n){const e=new Nae;n.size.width=120,n.size.height=120,e.setColor(n.backgroundColor);const i=n.getActivityTypeDetail(),o=n.rootNode;if(e.prop({name:[i?i.label:"Activity Unity"]}),o){let r=o.term.label;n.ccNode&&(r+=`\nlocated in: ${n.ccNode.term.label}`),e.setText(r)}return e.attr({expand:{event:"element:expand:pointerdown",stroke:"black",strokeWidth:2}}),e.set({activity:n,id:n.id,position:n.position,size:n.size}),e}addCanvasGraph(n,e){const i=this,o=[];i.cam=n,i.canvasGraph.resetCells(o),(0,Zt.each)(n.activities,r=>{if(r.visible){let a;a=r.activityType===so.molecule?i.createMolecule(r):i.createNode(r,e),o.push(a)}}),(0,Zt.each)(n.causalRelations,r=>{if(r.predicate.visible&&r.isTripleComplete()){const a=function A2t(t){switch(t){case Ft.edge.directlyRegulates.id:case Ft.edge.causallyUpstreamOfOrWithin.id:case Ft.edge.causallyUpstreamOf.id:return"grey";case Ft.edge.positivelyRegulates.id:case Ft.edge.directlyPositivelyRegulates.id:case Ft.edge.causallyUpstreamOfPositiveEffect.id:case Ft.edge.isSmallMoleculeActivator.id:return"green";case Ft.edge.negativelyRegulates.id:case Ft.edge.directlyNegativelyRegulates.id:case Ft.edge.causallyUpstreamOfNegativeEffect.id:case Ft.edge.isSmallMoleculeInhibitor.id:return"red";default:return"black"}}(r.predicate.edge.id),l=n8.create();r.predicate.isReverseLink?this.reverseLink(r,l):(l.setText(r.predicate.edge.label),l.set({activity:r.predicate,source:{id:r.subject.id},target:{id:r.object.id}})),l.setColor(a),o.push(l)}}),i.canvasPaper.setDimensions("30000px","30000px"),i.canvasPaper.scaleContentToFit({minScaleX:.3,minScaleY:.3,maxScaleX:1,maxScaleY:1}),i.canvasGraph.resetCells(o),n.manualLayout||i.autoLayoutGraph(i.canvasGraph),i.canvasPaper.unfreeze(),i.canvasPaper.render()}reverseLink(n,e){e.setText(n.predicate.reverseLinkTitle),e.set({activity:n.predicate,source:{id:n.object.id},target:{id:n.subject.id}})}addStencilGraph(n,e){const o=[];(0,Zt.each)(e,r=>{const a=new pF;a.attr("label/text",r.title),a.set({activity:(0,Zt.cloneDeep)(r)}),o.push(a)}),n.resetCells(o),this._layout(n)}_layout(n){let e=10;n.getElements().forEach(i=>{i.position(10,e),e+=i.size().height+10})}autoLayoutGraph(n){const e=[];n.getElements().forEach(o=>{"hidden"!==o.attr("./visibility")&&e.push(o)}),r8.layout(n.getSubgraph(e),{align:"UL",setLabels:!0,marginX:50,marginY:50,rankSep:200,rankDir:"TB"}),[].forEach(function(o){const r=n.getNeighbors(o,{inbound:!0})[0];if(!r)return;const a=r.getBBox().bottomRight();o.position(a.x+20,a.y-o.size().height/2-20)})}_offsetToLocalPoint(n,e){return E2t.createSVGPoint(n,e).matrixTransform(this.canvasPaper.viewport.getCTM().inverse())}}class D2t{constructor(n,e){this.stencils=[];const i=this;i.camCanvas=n,i.stencils=e,i._initializeStencils(e)}_initializeStencils(n){const e=this;e.stencils=[],(0,Zt.each)(n,i=>{const o=new Jh,r=e.generateStencilPaper(i,o);e.addStencilGraph(o,i.nodes),r.on("cell:pointerdown",e.onMouseDown(i.id,e.camCanvas.canvasPaper)),e.stencils.push({id:i.id,paper:r,graph:o})})}addStencilGraph(n,e){const o=[];(0,Zt.each)(e,r=>{const a=new pF;a.setIcon(r.iconUrl),a.attr("label/text",r.label),a.set({node:(0,Zt.cloneDeep)(r)}),o.push(a)}),n.resetCells(o),this._layout(n)}generateStencilPaper(n,e){return new EP({el:document.getElementById(n.id),height:120*n.nodes.length,width:"100%",model:e,interactive:!1})}onMouseDown(n,e){const i=this;return function(o,r,a,l){$("#noc-canvas").append('
');const u=new Jh,w=(new EP({el:document.getElementById("noc-flypaper"),model:u,interactive:!1}),o.model.clone()),T=o.model.position(),U_x=a-T.x,U_y=l-T.y;i.selectedStencilElement=o.model,w.position(0,0),u.addCell(w),$("#noc-flypaper").offset({left:r.pageX-U_x,top:r.pageY-U_y}),$("#noc-canvas").on("mousemove.fly",function(ie){$("#noc-flypaper").offset({left:ie.pageX-U_x,top:ie.pageY-U_y})}),$("#noc-canvas").on("mouseup.fly",function(ie){const se=ie.pageX,Me=ie.pageY,we=e.$el.offset();se>we.left&&sewe.top&&Me{i.position(10,e),e+=i.size().height+10})}_layoutGraph(n){const e=[];n.getElements().forEach(o=>{"hidden"!==o.attr("./visibility")&&e.push(o)}),r8.layout(n.getSubgraph(e),{align:"UR",setVertices:!0,setLabels:!0,marginX:0,marginY:0,rankSep:0,rankDir:"LR"})}}let pse=(()=>{class t{constructor(e){this.noctuaFormConfigService=e,this.selectedGraphLayoutDetail=this.noctuaFormConfigService.graphLayoutDetail.selected,this.onGraphLayoutDetailChanged=new Io(null)}}return t.\u0275fac=function(e){return new(e||t)(qt(Co))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k2t=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this._camService=e,this.noctuaGraphEditorService=i,this._bbopGraphService=o,this._noctuaFormDialogService=r,this._noctuaUserService=a,this.confirmDialogService=l,this._activityFormService=u,this._activityConnectorService=f,this.noctuaCommonMenuService=w,this.noctuaShapesService=T,this.stencils=[],this.placeholderElement=new fF}initializeGraph(){const e=this;e.camCanvas=new L2t,e.camCanvas.elementOnClick=e.openTable.bind(e),e.camCanvas.editOnClick=e.openTable.bind(e),e.camCanvas.deleteOnClick=e.deleteActivity.bind(e),e.camCanvas.linkOnClick=e.openConnector.bind(e),e.camCanvas.onLinkCreated=e.createActivityConnector.bind(e),e.camCanvas.onUpdateCamLocations=e.updateCamLocations.bind(e)}initializeStencils(){const e=this;e.camStencil=new D2t(e.camCanvas,zae.camStencil),e.camStencil.onAddElement=e.createActivity.bind(e)}addToCanvas(e,i){this.cam=e,this.camCanvas.addCanvasGraph(e,i)}zoom(e,i){this.camCanvas.zoom(e,i)}reset(){this.camCanvas.resetZoom()}updateCamLocations(e){this._bbopGraphService.setActivityLocations(e)}createActivity(e,i,o){const r=this,a=e.get("node");r.placeholderElement.position(i,o),r._activityFormService.setActivityType(a.type),r._activityFormService.activity.validateEvidence=!1,r._noctuaFormDialogService.openCreateActivityDialog(f_.ACTIVITY)}createActivityConnector(e,i,o){this._activityConnectorService.initializeForm(e,i),this._noctuaFormDialogService.openCreateActivityDialog(f_.ACTIVITY_CONNECTOR)}addActivity(e,i){const o=this,r=o.placeholderElement.prop("position");e.position.x=r.x,e.position.y=r.y;const a=o.camCanvas.createNode(e,i);o.camCanvas.canvasGraph.addCell(a),this._bbopGraphService.addActivityLocation(o.cam,e)}deleteActivity(e){const i=this,o=e.get("activity");i._noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this._camService.deleteActivity(o).then(()=>{this._camService.onSelectedActivityChanged.next(null),this.noctuaCommonMenuService.closeRightDrawer(),this._camService.getCam(this.cam.id),i._noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}openTable(e){const i=e.prop("activity");this.selectedElement=e,this._camService.onSelectedActivityChanged.next(i),this.noctuaCommonMenuService.selectRightPanel(g3.activityTable),this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.openRightDrawer(),i.expanded=!0,this._camService.currentMatch.activityDisplayId=i.displayId,this.noctuaCommonMenuService.scrollTo(`#${i.displayId}`)}openConnector(e){const i=this;i.selectedElement=e;const o=e.get("source"),r=e.get("target");!o||!r||(i._activityConnectorService.initializeForm(o.id,r.id),i.noctuaCommonMenuService.selectRightPanel(g3.activityConnectorTable),i.noctuaCommonMenuService.closeLeftDrawer(),i.noctuaCommonMenuService.openRightDrawer())}autoLayoutGraph(){this.camCanvas.autoLayoutGraph(this.camCanvas.canvasGraph)}save(){const i=this.camCanvas.canvasGraph.getCells(),o=[],r=[];(0,Zt.each)(i,l=>{if("noctua.NodeLink"===l.get("type")){const f=l.get("source"),w=l.get("target");r.push({subject:{uuid:f.id},predicate:{id:l.get("id")},object:{uuid:w.id}})}else o.push({uuid:l.get("id"),id:l.get("id"),position:l.get("position"),size:l.get("size")})})}}return t.\u0275fac=function(e){return new(e||t)(qt(Zr),qt(pse),qt(Yc),qt(jc),qt(yr),qt(dd),qt(Ts),qt(NO),qt(ul),qt(Rae))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const I2t=["stencils"];function N2t(t,n){if(1&t&&(H(0,"div",null,24),Qe(2,"div",25),G()),2&t){const e=n.$implicit;W(2),Un("id",e.id)}}const R2t=function(){return["fas","caret-down"]};function z2t(t,n){1&t&&Qe(0,"fa-icon",26),2&t&&J("icon",_i(1,R2t))}function F2t(t,n){if(1&t){const e=Ln();H(0,"button",27),et("click",function(){const r=Dt(e).$implicit;return Ae().selectLayoutDetail(r)}),ue(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}const H2t=function(){return["fas","search-minus"]},V2t=function(){return["fas","search-plus"]};let B2t=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaDataService=e,this.noctuaFormConfigService=i,this.noctuaGraphEditorService=o,this._bbopGraphService=r,this.noctuaCommonMenuService=a,this.noctuaCamGraphService=l,this.noctuaCamShapesService=u,this.stencils=[],this._unsubscribeAll=new N,this.stencils=zae.camStencil,this.noctuaGraphEditorService.onGraphLayoutDetailChanged.pipe(Yn(this._unsubscribeAll)).subscribe(f=>{!f||this.noctuaCamGraphService.addToCanvas(this.cam,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id)})}ngAfterViewInit(){const e=this;e.noctuaCamGraphService.initializeGraph(),e.noctuaCamGraphService.initializeStencils(),e._bbopGraphService.onCamGraphChanged.pipe(Yn(e._unsubscribeAll)).subscribe(i=>{!i||i.id!==e.cam.id||(e.cam=i,e.noctuaCamGraphService.cam=e.cam,i.operation!==p3.ADD_ACTIVITY&&e.noctuaCamGraphService.addToCanvas(e.cam,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id))})}ngOnInit(){const e=this;e._bbopGraphService.onActivityAdded.pipe(Yn(e._unsubscribeAll)).subscribe(i=>{!i||e.noctuaCamGraphService.addActivity(i,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectLayoutDetail(e){this.noctuaGraphEditorService.selectedGraphLayoutDetail=e,this.noctuaGraphEditorService.onGraphLayoutDetailChanged.next(e)}canMove(e){return-1===e.indexOf("Disabled")}automaticLayout(){this.noctuaCamGraphService.autoLayoutGraph()}zoomIn(){this.noctuaCamGraphService.zoom(.1)}zoomOut(){this.noctuaCamGraphService.zoom(-.1)}onCtrlScroll(e){const o=Math.max(-1,Math.min(1,e.wheelDelta||e.detail))/10;e.ctrlKey&&(this.noctuaCamGraphService.zoom(o,e),e.returnValue=!1,e.preventDefault&&e.preventDefault())}}return t.\u0275fac=function(e){return new(e||t)(de(pm),de(Co),de(pse),de(Yc),de(ul),de(k2t),de(Rae))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-graph"]],viewQuery:function(e,i){if(1&e&&_o(I2t,5),2&e){let o;fi(o=gi())&&(i.stencilContainers=o)}},inputs:{cam:"cam"},decls:33,vars:11,consts:[["id","noc-canvas",1,""],["id","noc-palette",1,""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],[4,"ngFor","ngForOf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start ",1,"noc-middle-panel"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-workflow-toolbar","w-100-p"],["mat-stroked-button","","color","primary","matTooltip","Automatic Tree Layout",1,"noc-rounded-button","noc-xs","mr-8",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-title","mr-4"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-half-button","noc-xs",3,"matMenuTriggerFor"],[3,"icon",4,"ngIf"],[1,"noc-dropdown-menu"],["graphLayoutDetailMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],[1,"noc-button-row","ml-12"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-r",3,"click"],[1,"",3,"icon"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-m",3,"click"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-l",3,"click"],[1,"noc-paper-container",3,"wheel"],["id","noc-paper",1,""],["paper",""],["stencils",""],[1,""],[3,"icon"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),ue(5," TOOLBOX "),G()(),H(6,"div",5),ke(7,N2t,3,1,"div",6),G()()(),H(8,"div",7)(9,"div",8)(10,"button",9),et("click",function(){return i.automaticLayout()}),ue(11," Automatic Layout "),G(),H(12,"span",10),ue(13," Layout Detail: "),G(),H(14,"button",11),ue(15),ke(16,z2t,1,2,"fa-icon",12),G(),H(17,"mat-menu",13,14),ke(19,F2t,2,1,"button",15),G(),H(20,"div",16)(21,"span",10),ue(22," Zoom : "),G(),H(23,"button",17),et("click",function(){return i.zoomOut()}),Qe(24,"fa-icon",18),G(),H(25,"button",19),et("click",function(){return i.zoomIn()}),Qe(26,"fa-icon",18),G(),H(27,"button",20),et("click",function(){return i.noctuaCamGraphService.reset()}),H(28,"mat-icon"),ue(29,"youtube_searched_for"),G()()()(),H(30,"div",21),et("wheel",function(r){return i.onCtrlScroll(r)}),Qe(31,"div",22,23),G()()()),2&e){const o=Di(18);W(7),J("ngForOf",i.stencils),W(3),J("matTooltipPosition","after")("matTooltipShowDelay",1500),W(4),J("matMenuTriggerFor",o),W(1),Nt(" ",i.noctuaGraphEditorService.selectedGraphLayoutDetail.label," "),W(1),J("ngIf",i.cam.expanded),W(3),J("ngForOf",i.noctuaFormConfigService.graphLayoutDetail.options),W(5),J("icon",_i(9,H2t)),W(2),J("icon",_i(10,V2t))}},directives:[Oo,So,ts,$o,ko,Fo,Tl,il,Yi,ps,Ql,nl,Ir],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] #noc-canvas[_ngcontent-%COMP%]{position:absolute;inset:0}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%]{background-color:#fff;padding:2px 12px;height:35px;min-height:35px;max-height:35px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:12px;font-weight:700}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0;color:#5872a7;font-size:14px;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{font-size:16px;color:#3b5998}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}[_nghost-%COMP%] .noc-paper-container[_ngcontent-%COMP%]{height:calc(100% - 35px);overflow:auto;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%]{background-color:#fff;border-right:solid 1px #002255;width:100px;min-width:100px;max-width:100px;height:100%;min-height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{height:35px;min-height:35px;max-height:35px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding-left:8px;display:flex;align-items:center;height:35px;color:#025;border-bottom:solid 1px #324c74;font-size:12px;font-weight:700;text-transform:uppercase}[_nghost-%COMP%] #noc-flypaper[_ngcontent-%COMP%]{height:400px;width:400px}']}),t})();function G2t(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.evidence)("evidenceIndex",e)}}const fse=function(t){return{"noc-highlight-modified":t}},AF=function(){return["far","trash-alt"]};function Y2t(t,n){if(1&t){const e=Ln();H(0,"div",9)(1,"div",10),ue(2," Evidence "),G(),H(3,"span",11),ue(4),Qe(5,"br"),H(6,"a",12),et("click",function(o){return o.stopPropagation()}),ue(7),G()(),H(8,"button",13),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae(2).removeEvidence(o)}),Qe(9,"fa-icon",14),G(),ke(10,G2t,1,5,"noctua-inline-editor",15),G()}if(2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(6,fse,null==e.evidence?null:e.evidence.modified)),W(4),qo(null==e.evidence?null:e.evidence.label),W(2),Ro("href",null==e.evidence?null:e.evidence.url,ao),W(1),Nt(" ",null==e.evidence?null:e.evidence.id," "),W(2),J("icon",_i(8,AF)),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableEvidence)}}function U2t(t,n){if(1&t&&(H(0,"span",11),ue(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.reference)}}function j2t(t,n){if(1&t&&(H(0,"span",11)(1,"a",12),et("click",function(i){return i.stopPropagation()}),ue(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.referenceEntity?null:e.referenceEntity.url,ao),W(1),Nt(" ",e.reference," ")}}function W2t(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.reference)("evidenceIndex",e)}}const q2t=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function $2t(t,n){if(1&t){const e=Ln();H(0,"div",17)(1,"div",10),ue(2," Reference "),G(),H(3,"button",13),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae(2).removeReference(o)}),Qe(4,"fa-icon",14),G(),ke(5,U2t,2,1,"span",18),ke(6,j2t,3,2,"span",18),ke(7,W2t,1,5,"noctua-inline-editor",15),G()}if(2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",M2(5,q2t,null==e.referenceEntity?null:e.referenceEntity.highlight,null==e.referenceEntity?null:e.referenceEntity.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==e.referenceEntity?null:e.referenceEntity.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),W(4),J("icon",_i(9,AF)),W(1),J("ngIf",!(null!=e.referenceEntity&&e.referenceEntity.url)),W(1),J("ngIf",null==e.referenceEntity?null:e.referenceEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableReference)}}function X2t(t,n){if(1&t&&(H(0,"span",11),ue(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.with)}}function Q2t(t,n){if(1&t&&(H(0,"span",11)(1,"a",12),et("click",function(i){return i.stopPropagation()}),ue(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.withEntity?null:e.withEntity.url,ao),W(1),Nt(" ",e.with," ")}}function Z2t(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.with)("evidenceIndex",e)}}function K2t(t,n){if(1&t){const e=Ln();H(0,"div",19)(1,"div",10),ue(2," With "),G(),H(3,"button",13),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae(2).removeWith(o)}),Qe(4,"fa-icon",14),G(),ke(5,X2t,2,1,"span",18),ke(6,Q2t,3,2,"span",18),ke(7,Z2t,1,5,"noctua-inline-editor",15),G()}if(2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(5,fse,null==e.withEntity?null:e.withEntity.modified)),W(4),J("icon",_i(7,AF)),W(1),J("ngIf",!(null!=e.withEntity&&e.withEntity.url)),W(1),J("ngIf",null==e.withEntity?null:e.withEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableWith)}}function J2t(t,n){if(1&t){const e=Ln();H(0,"div",20)(1,"button",21),et("click",function(o){return Dt(e),Ae(3).updateCurrentMenuEvent(o)}),H(2,"mat-icon"),ue(3,"more_vert"),G()(),H(4,"mat-menu",null,22)(6,"button",23),et("click",function(){Dt(e);const o=Ae(3);return o.addEvidence(o.entity)}),ue(7," Add Evidence "),G(),H(8,"button",24),et("click",function(){Dt(e);const o=Ae().index,r=Ae(2);return r.removeEvidence(r.entity,o)}),ue(9," Remove Evidence "),G()()()}if(2&t){const e=Di(5);W(1),J("matMenuTriggerFor",e)}}function eut(t,n){if(1&t&&(H(0,"div",4),ke(1,Y2t,11,9,"div",5),ke(2,$2t,8,10,"div",6),ke(3,K2t,8,8,"div",7),ke(4,J2t,10,1,"div",8),G()),2&t){const e=Ae(2);W(1),J("ngIf",e.settings.showEvidenceCode),W(1),J("ngIf",e.settings.showReference),W(1),J("ngIf",e.settings.showWith),W(1),J("ngIf",e.noctuaUserService.user&&e.options.showEvidenceMenu)}}function tut(t,n){if(1&t&&(H(0,"div",2),ke(1,eut,5,4,"div",3),G()),2&t){const e=Ae();W(1),J("ngForOf",null==e.entity.predicate?null:e.entity.predicate.evidence)}}function nut(t,n){if(1&t){const e=Ln();H(0,"button",27),et("click",function(){return Dt(e),Ae(2).createEvidence()}),ue(1," + "),G()}}function iut(t,n){if(1&t&&(H(0,"div",25),ue(1," no evidence present. "),ke(2,nut,2,0,"button",26),G()),2&t){const e=Ae();W(2),J("ngIf",e.options.showAddEvidenceButton)}}let gse=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.camService=e,this.noctuaUserService=i,this.confirmDialogService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.inlineEditorService=u,this.noctuaActivityEntityService=f,this.EditorCategory=ga,this.settings=new hm,this.options={},this.currentMenuEvent={},this.unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}createEvidence(){const e=this;this.noctuaFormDialogService.openAddEvidenceDialog(o=>{o&&(this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,this.entity),e.noctuaActivityEntityService.createEvidence(o).then(()=>{e.noctuaFormDialogService.openInfoToast("Evidence successfully added.","OK"),e.noctuaActivityFormService.initializeForm()}))})}removeEvidence(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete ${e.evidence.label} \n \n ${e.reference} \n \n ${e.with}`,()=>{i.noctuaActivityEntityService.deleteEvidence(e.uuid).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.evidence.label} successfully deleted.`,"OK")})})}removeReference(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete Reference: ${e.reference}`,()=>{i.noctuaActivityEntityService.deleteEvidenceReference(e.uuid,e.reference).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.reference} successfully deleted.`,"OK")})})}removeWith(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete With/From: ${e.with}`,()=>{i.noctuaActivityEntityService.deleteEvidenceWith(e.uuid,e.with).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.with} successfully deleted.`,"OK")})})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(yr),de(dd),de(jc),de(Co),de(Ts),de(k3),de(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noc-evidence-form-table"]],inputs:{settings:"settings",options:"options",cam:"cam",activity:"activity",entity:"entity"},decls:2,vars:2,consts:[["class","noc-evidence-table w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-no-info","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-table","w-100-p"],["class","h-100-p mb-8","fxLayout","row","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start stretch",1,"h-100-p","mb-8"],["class","noc-evidence-code-cell noc-box-cell","fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-reference-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-with-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-code-cell","noc-box-cell",3,"ngClass"],[1,"noc-cell-floating-title"],[1,""],["target","_blank",3,"href","click"],["mat-icon-button","","aria-label","Delete Evidence",1,"noc-delete-button",3,"click"],[3,"icon"],["class","noc-edit-button",3,"cam","activity","entity","category","evidenceIndex",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category","evidenceIndex"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-reference-cell","noc-box-cell",3,"ngClass"],["class","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-with-cell","noc-box-cell",3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-no-info"],["mat-button","","class","",3,"click",4,"ngIf"],["mat-button","",1,"",3,"click"]],template:function(e,i){1&e&&(ke(0,tut,2,1,"div",0),ke(1,iut,3,1,"div",1)),2&e&&(J("ngIf",(null==i.entity.predicate?null:i.entity.predicate.evidence.length)>0),W(1),J("ngIf",0===i.entity.predicate.evidence.length))},directives:[Yi,Oo,So,$o,ko,ds,ac,Fo,ps,km,il,Ir,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-qualifier[_ngcontent-%COMP%]{padding:5px;width:100%;font-size:12px;text-align:center;border-bottom:1px solid rgba(46,111,154,.3)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;margin:0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{padding:20px 10px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px!important;color:#000;border:#aaa solid 1px;margin-left:4px;border-radius:8px;position:relative;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{height:100%;width:400px;position:relative;padding:3px 8px;font-size:10px;font-style:italic;color:#aaa}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{position:relative}'],data:{animation:sc}}),t})();const rut=function(){return["far","trash-alt"]};function aut(t,n){if(1&t){const e=Ln();H(0,"button",11),et("click",function(){Dt(e);const o=Ae();return o.deleteEntity(o.entity)}),Qe(1,"fa-icon",12),G()}2&t&&(W(1),J("icon",_i(1,rut)))}function sut(t,n){if(1&t&&Qe(0,"noctua-inline-editor",14),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.term)}}function cut(t,n){if(1&t&&(er(0),ke(1,sut,1,4,"noctua-inline-editor",13),tr()),2&t){const e=Ae();W(1),J("ngIf",e.noctuaUserService.user&&e.entity.term&&e.options.editableTerms)}}function lut(t,n){if(1&t&&Qe(0,"noc-evidence-form-table",17),2&t){const e=Ae(2);J("settings",e.settings)("options",e.optionsDisplay)("cam",e.cam)("entity",e.entity)}}function dut(t,n){if(1&t&&(H(0,"div",15),ke(1,lut,1,4,"noc-evidence-form-table",16),G()),2&t){const e=Ae();W(1),J("ngIf",e.entity.showEvidence)}}function uut(t,n){if(1&t&&(H(0,"div",5),ue(1),G()),2&t){const e=Ae(3);W(1),Nt(" ",null==e.entity.predicate?null:e.entity.predicate.evidence.length," evidence ")}}function hut(t,n){1&t&&(H(0,"div",22),ue(1," no evidence present. "),G())}function put(t,n){if(1&t&&(H(0,"div",0),ke(1,uut,2,1,"div",20),ke(2,hut,2,0,"div",21),G()),2&t){const e=Ae(2);W(1),J("ngIf",(null==e.entity.predicate?null:e.entity.predicate.evidence.length)>0),W(1),J("ngIf",0===(null==e.entity.predicate?null:e.entity.predicate.evidence.length))}}function fut(t,n){if(1&t&&(H(0,"div",18),ke(1,put,3,2,"div",19),G()),2&t){const e=Ae();W(1),J("ngIf",!e.entity.skipEvidenceCheck)}}function gut(t,n){if(1&t){const e=Ln();H(0,"button",34),et("click",function(){Dt(e);const o=Ae(2);return o.openSearchDatabaseDialog(o.entity)}),ue(1," Search Annotations "),G()}}function mut(t,n){1&t&&(H(0,"button",29),ue(1,"Add"),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(12)))}function _ut(t,n){if(1&t){const e=Ln();H(0,"button",35),et("click",function(){Dt(e);const o=Ae(2);return o.deleteEntity(o.entity)}),ue(1," Delete "),G()}}function Cut(t,n){if(1&t){const e=Ln();H(0,"button",34),et("click",function(){const r=Dt(e).$implicit,a=Ae(2);return a.insertEntity(a.entity,r)}),ue(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}function vut(t,n){if(1&t){const e=Ln();H(0,"div",23)(1,"button",24),et("click",function(o){return Dt(e),Ae().updateCurrentMenuEvent(o)}),H(2,"mat-icon"),ue(3,"more_vert"),G()(),H(4,"mat-menu",25,26),ke(6,gut,2,0,"button",27),ke(7,mut,2,1,"button",28),H(8,"button",29),ue(9,"Evidence"),G(),ke(10,_ut,2,0,"button",30),G(),H(11,"mat-menu",null,31),ke(13,Cut,2,1,"button",32),G(),H(14,"mat-menu",null,33)(16,"button",34),et("click",function(){Dt(e);const o=Ae();return o.addEvidence(o.entity)}),ue(17," Add Evidence "),G()()()}if(2&t){const e=Di(5),i=Di(15),o=Ae();W(1),J("matMenuTriggerFor",e),W(5),J("ngIf",o.entity.aspect),W(1),J("ngIf",o.entity.insertMenuNodes),W(1),J("matMenuTriggerFor",i),W(2),J("ngIf",o.entity.canDelete),W(3),J("ngForOf",o.entity.insertMenuNodes)}}const but=function(t){return{"noc-selected":t}},xut=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};let yut=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=l,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ft.activityType.options,this.options={},this.relationWidth="0px",this.optionsDisplay={},this.termEditable=!0,this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new N}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.relationWidth=250-16*this.entity.treeLevel+"px"}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}deleteEntity(e){const i=this,r=this.activity.descendants(e.id).map(l=>l.term.label).join(", ");let a=`You are about to delete an ${e.term.label}`;r&&(a+=` and its descendants ${r}`),this.confirmDialogService.openConfirmDialog("Confirm Delete?",`${a}`,()=>{this.noctuaActivityEntityService.deleteActivityNode(i.activity,e).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.term.label} successfully deleted.`,"OK")})})}openSearchDatabaseDialog(e){const i=this,o=this.activity.gpNode;if(o&&o.hasValue()){const a=l=>{if(l.term){const u=new Pi(l.term.term.id,l.term.term.label);l.evidences&&l.evidences.length>0&&(i.noctuaActivityEntityService.initializeForm(this.activity,e),e.term=u,e.predicate.setEvidence(l.evidences),i.noctuaActivityEntityService.saveSearchDatabase())}};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new wd(Al.error,El.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}editEntity(e){const i={cam:this.cam,activity:this.activity,entity:e,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:i})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ft.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ft.evidenceAutoPopulate.nd.evidence.id,Ft.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ft.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(dd),de(yr),de(Co),de(jc),de(Pd),de(Ts),de(k3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-form-table-node"]],inputs:{settings:"settings",cam:"cam",activity:"activity",entity:"entity",options:"options"},decls:15,vars:19,consts:[[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-node","noctua-form-table","w-100-p",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-term-cell","noc-entity-cell",3,"fxFlex","ngClass"],[1,"noc-cell-floating-title"],["mat-icon-button","","class","noc-delete-button",3,"click",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],[4,"ngIf"],["fxFlex","","class","noc-evidence-cell p-0","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],["class","evidence-summary-cell p-0","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["mat-icon-button","",1,"noc-delete-button",3,"click"],[3,"icon"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-evidence-cell","p-0"],["class","w-100-p",3,"settings","options","cam","entity",4,"ngIf"],[1,"w-100-p",3,"settings","options","cam","entity"],["fxLayout","column","fxLayoutAlign","center center",1,"evidence-summary-cell","p-0"],["class","w-100-p ",4,"ngIf"],["class","",4,"ngIf"],["class","noc-no-info",4,"ngIf"],[1,"noc-no-info"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","class","","color","warn",3,"click",4,"ngIf"],["addMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","","color","warn",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),ue(4),G(),ke(5,aut,2,2,"button",4),H(6,"span",5),ue(7),Qe(8,"br"),H(9,"a",6),et("click",function(r){return r.stopPropagation()}),ue(10),G()(),ke(11,cut,2,1,"ng-container",7),G(),ke(12,dut,2,1,"div",8),ke(13,fut,2,1,"div",9),ke(14,vut,18,6,"div",10),G()()),2&e&&(W(1),J("ngClass",wo(13,but,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),W(1),Ro("fxFlex",i.relationWidth),J("ngClass",M2(15,xut,null==i.entity.term?null:i.entity.term.highlight,null==i.entity.term?null:i.entity.term.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==i.entity.term?null:i.entity.term.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),Un("id",null==i.entity.term?null:i.entity.term.displayId),W(2),Nt(" ",i.entity.label," "),W(1),J("ngIf",i.entity.canDelete),W(2),Nt(" ",null==i.entity.term?null:i.entity.term.label," "),W(2),Ro("href",null==i.entity.term?null:i.entity.term.url,ao),W(1),Nt(" ",null==i.entity.term?null:i.entity.term.id," "),W(1),J("ngIf",i.termEditable),W(1),J("ngIf",i.settings.showEvidence),W(1),J("ngIf",!i.settings.showEvidence&&i.settings.showEvidenceSummary),W(1),J("ngIf",i.noctuaUserService.user&&i.options.showMenu))},directives:[Oo,So,ds,ac,ko,Yi,Fo,ps,km,gse,il,Ir,Ql,nl,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:initial;min-width:initial;max-width:initial}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{position:relative;width:initial;min-width:initial;max-width:initial;width:250px;margin-bottom:8px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .evidence-summary-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px;text-align:center;font-size:10px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .evidence-summary-cell[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:3px 8px;font-size:10px;font-style:italic;color:#aaa}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:initial;min-width:initial;max-width:initial}}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{background-color:#5872a7;color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px;color:#000;border-radius:5px;border:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-align:center;height:20px;min-height:20px;max-height:20px;font-size:10px;font-weight:700;padding:2px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.F[_ngcontent-%COMP%]{border:#7cd488 solid 1px;color:#56c765}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.P[_ngcontent-%COMP%]{border:#f4c89c solid 1px;color:#efaf6e}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.C[_ngcontent-%COMP%]{border:#d3b5f5 solid 1px;color:#b888ef}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-relation-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-extension-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-node.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();const wut=["tree"],Mut=["gpTree"],mse=function(){return["fas","caret-right"]};function Out(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,mse))}const _se=function(){return["fas","caret-down"]};function Sut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,_se))}function Put(t,n){if(1&t){const e=Ln();H(0,"button",17),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,Out,1,2,"fa-icon",18),ke(2,Sut,1,2,"fa-icon",18),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function Tut(t,n){1&t&&Qe(0,"div",20)}function Eut(t,n){if(1&t&&Qe(0,"noc-activity-form-table-node",21),2&t){const e=Ae().$implicit,i=Ae(2);J("settings",i.gpSettings)("options",i.gpOptions)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function Aut(t,n){if(1&t&&Qe(0,"noc-activity-form-table-node",21),2&t){const e=Ae().$implicit,i=Ae(2);J("settings",i.settings)("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function Lut(t,n){if(1&t){const e=Ln();H(0,"div",11),ke(1,Put,3,2,"button",12),ke(2,Tut,1,0,"div",13),H(3,"div",14),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),H(4,"div",15),ke(5,Eut,1,5,"noc-activity-form-table-node",16),ke(6,Aut,1,5,"noc-activity-form-table-node",16),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(2),J("ngIf",(null==e.data.node?null:e.data.node.id)===(null==i.activity.gpNode?null:i.activity.gpNode.id)),W(1),J("ngIf",(null==e.data.node?null:e.data.node.id)!==(null==i.activity.gpNode?null:i.activity.gpNode.id))}}function Dut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,mse))}function kut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,_se))}function Iut(t,n){if(1&t){const e=Ln();H(0,"button",17),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,Dut,1,2,"fa-icon",18),ke(2,kut,1,2,"fa-icon",18),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function Nut(t,n){1&t&&Qe(0,"div",20)}function Rut(t,n){if(1&t){const e=Ln();H(0,"div",11),ke(1,Iut,3,2,"button",12),ke(2,Nut,1,0,"div",13),H(3,"div",14),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),H(4,"div",15),Qe(5,"noc-activity-form-table-node",21),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(2),J("settings",i.settings)("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}const zut=function(t){return{"noc-selected":t}};function Fut(t,n){if(1&t){const e=Ln();H(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),ue(4),G(),Qe(5,"span",5),G(),H(6,"div",6)(7,"tree-root",7,8),et("initialized",function(){return Dt(e),Ae().onGPTreeLoad()}),ke(9,Lut,7,13,"ng-template",null,9,tu),G()()(),H(11,"div",2)(12,"div",3)(13,"div",4),ue(14),G(),Qe(15,"span",5),G(),H(16,"div",6)(17,"tree-root",7,10),et("initialized",function(){return Dt(e),Ae().onTreeLoad()}),ke(19,Rut,6,16,"ng-template",null,9,tu),G()()()()}if(2&t){const e=Ae();J("ngClass",wo(8,zut,e.activity.displayId===(null==e.camService.currentMatch?null:e.camService.currentMatch.activityDisplayId))),Un("id",e.activity.displayId),W(4),Nt(" ",e.annotatedSectionTitle," "),W(3),J("nodes",e.gpTreeNodes)("options",e.treeOptions),W(7),Nt(" ",e.descriptionSectionTitle," "),W(3),J("nodes",e.treeNodes)("options",e.treeOptions)}}let Hut=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.camService=e,this._bbopGraphService=i,this.noctuaCommonMenuService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.noctuaFormDialogService=l,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.inlineEditorService=w,this.ActivityDisplayType=k2,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ft.activityType.options,this.settings=new hm,this.gpSettings=new hm,this.options={},this.gpOptions={},this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.descriptionSectionTitle="Function Description",this.annotatedSectionTitle="Gene Product",this.treeNodes=[],this.treeControl=new fS(T=>T.treeLevel,T=>T.expandable),this.gpTreeNodes=[],this.gpTreeControl=new fS(T=>T.treeLevel,T=>T.expandable),this.treeOptions={allowDrag:!1,allowDrop:!1,getNodeClone:T=>Object.assign(Object.assign({},T.data),{name:`Copy of ${T.data.name}`})},this.dataSource=new EM,this._unsubscribeAll=new N}ngOnChanges(e){}ngOnInit(){var e;this.loadTree(),this.gpOptions=(0,Zt.cloneDeep)(this.options),this.gpOptions.showMenu=this.activity.activityType===so.molecule||this.activity.activityType===so.proteinComplex,this.activity.activityType===so.ccOnly?this.descriptionSectionTitle="Localization Description":this.activity.activityType===so.molecule?(this.annotatedSectionTitle="Small Molecule",this.descriptionSectionTitle="Location (optional)"):this.descriptionSectionTitle="Function Description",this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.settings=i,this.gpSettings=(0,Zt.cloneDeep)(i),this.gpSettings.showEvidence=!1,this.gpSettings.showEvidenceSummary=!1)}),(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||i.id!==this.cam.id||(this.cam=i,this.activity=i.findActivityById(this.activity.id),this.loadTree())})}ngAfterViewInit(){var e,i;null===(e=this.gpTree)||void 0===e||e.treeModel.filterNodes(o=>{const r=o.data.node;return(null==r?void 0:r.displaySection.id)===Ft.displaySection.gp.id}),null===(i=this.tree)||void 0===i||i.treeModel.filterNodes(o=>{const r=o.data.node;return(null==r?void 0:r.displaySection.id)===Ft.displaySection.fd.id})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadTree(){!this.activity||(this.gpNode=this.activity.gpNode,this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.treeNodes=this.activity.buildTrees(),this.gpTreeNodes=this.activity.buildGPTrees())}onTreeLoad(){var e;null===(e=this.tree)||void 0===e||e.treeModel.expandAll()}onGPTreeLoad(){var e;null===(e=this.gpTree)||void 0===e||e.treeModel.expandAll()}setActivityDisplayType(e){this.activity.activityDisplayType=e}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(Yc),de(ul),de(yr),de(Co),de(jc),de(Pd),de(Ts),de(k3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-form-table"]],viewQuery:function(e,i){if(1&e&&(_o(wut,5),_o(Mut,5)),2&e){let o;fi(o=gi())&&(i.tree=o.first),fi(o=gi())&&(i.gpTree=o.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},features:[Yo],decls:1,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch","class","w-100-p",3,"ngClass",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],[1,"noc-form-section","noc-tree-container"],[3,"nodes","options","initialized"],["gpTree",""],["treeNodeWrapperTemplate",""],["tree",""],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"],["class","w-100-p",3,"settings","options","cam","activity","entity",4,"ngIf"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[3,"icon",4,"ngIf"],[3,"icon"],[1,"noc-expander-placeholder"],[1,"w-100-p",3,"settings","options","cam","activity","entity"]],template:function(e,i){1&e&&ke(0,Fut,21,10,"div",0),2&e&&J("ngIf",i.activity)},directives:[Yi,Oo,So,ds,ac,ko,rR,Fo,ps,rS,fv,yut],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-display-number-cell[_ngcontent-%COMP%]{width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:200px;line-height:12px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;background-color:#fff;font-size:12px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:2px 0;overflow:hidden}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;max-width:170px;line-height:12px;padding:4px 8px;font-size:12px!important;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:0;font-size:10px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%]{font-size:10px;color:#555;width:90px;min-width:90px;max-width:90px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%] noc-icon[_ngcontent-%COMP%]{color:#777}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding:12px 8px 8px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();function Vut(t,n){if(1&t&&Qe(0,"noc-activity-form-table",11),2&t){const e=Ae();J("options",e.options)("cam",e.cam)("activity",e.activity)}}let But=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w,T){this.ngZone=e,this.changeDetectorRef=i,this.camService=o,this.noctuaCommonMenuService=r,this.noctuaUserService=a,this.noctuaFormConfigService=l,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.confirmDialogService=w,this.noctuaFormDialogService=T,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ft.activityType.options,this.options={},this.nodes=[],this.editableTerms=!1,this.currentMenuEvent={},this._unsubscribeAll=new N}ngOnInit(){this.camService.onSelectedActivityChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.activity=null,setTimeout(()=>{this.activity=i},100))})}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{this.camService.onSelectedActivityChanged.next(null),this.noctuaCommonMenuService.closeRightDrawer(),this.camService.getCam(this.cam.id),i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Xr),de(Zr),de(ul),de(yr),de(Co),de(Pd),de(Ts),de(dd),de(jc))},t.\u0275cmp=vn({type:t,selectors:[["noc-graph-activity-table"]],inputs:{options:"options",panelDrawer:"panelDrawer",cam:"cam"},decls:17,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-icon-button","","fxFlex","40px","color","primary",1,"",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["activityOptionMenu","matMenu"],["mat-menu-item","","color","warn",1,"",3,"click"],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-activities-table-body","fxLayout","row","fxLayoutAlign","start center",3,"options","cam","activity",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activities-table-body",3,"options","cam","activity"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1),Qe(2,"span",2)(3,"span",3),H(4,"button",4)(5,"mat-icon"),ue(6,"more_vert"),G()(),H(7,"mat-menu",5,6)(9,"button",7),et("click",function(){return i.deleteActivity(i.activity)}),ue(10," Delete "),G()(),H(11,"button",8),et("click",function(){return i.close()}),H(12,"mat-icon"),ue(13,"close"),G(),ue(14," Close "),G()(),H(15,"div",9),ke(16,Vut,1,3,"noc-activity-form-table",10),G()()),2&e){const o=Di(8);W(4),J("matMenuTriggerFor",o),W(12),J("ngIf",i.activity)}},directives:[Oo,So,ko,Fo,il,Ir,Ql,nl,ts,Yi,Hut],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:55px;min-height:55px;max-height:55px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:27px;left:-15px;width:25px;height:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:after{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:"";z-index:1}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:350px;line-height:12px;height:55px;min-height:55px;max-height:55px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 3px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;padding-bottom:4px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] noc-activity-tree-node[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;overflow:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row.noc-row-term[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row.noc-row-term[_ngcontent-%COMP%]:before{position:absolute;left:0;width:20px;height:2px;top:50%;transform:translateY(-50%);color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{padding-left:15px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-activity-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}']}),t})();function Gut(t,n){if(1&t&&(H(0,"div",24),ue(1," This relation is not supported, please choose a new relation below "),Qe(2,"br"),ue(3," ("),H(4,"strong"),ue(5),G(),ue(6,") "),G()),2&t){const e=Ae(2);W(5),qo(null==e.currentConnectorActivity||null==e.currentConnectorActivity.predicate?null:e.currentConnectorActivity.predicate.edge.label)}}function Yut(t,n){if(1&t&&(H(0,"div",28),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function Uut(t,n){if(1&t&&(H(0,"div",25)(1,"mat-radio-button",26),ue(2),G(),ke(3,Yut,2,1,"div",27),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.relationship?null:i.connectorActivity.rule.relationship.id))("value",e),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function jut(t,n){if(1&t&&(H(0,"div",25)(1,"mat-radio-button",32),ue(2),G()()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.effectDirection?null:i.connectorActivity.rule.effectDirection.id)),W(1),Nt(" ",e.label," ")}}function Wut(t,n){if(1&t&&(H(0,"div",13)(1,"div",14)(2,"p"),ue(3,"Effect Direction"),G()(),H(4,"mat-radio-group",29),ke(5,jut,3,3,"div",16),G(),H(6,"div",30)(7,"div",31),ue(8," The mechanism regulation should be known, so it should be possible to pick the direction of the regulation. "),G()()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.effectDirection.options)}}function qut(t,n){if(1&t&&(H(0,"div",28),ue(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function $ut(t,n){if(1&t&&(H(0,"div",25)(1,"mat-radio-button",32),ue(2),G(),ke(3,qut,2,1,"div",27),G()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.directness?null:i.connectorActivity.rule.directness.id)),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function Xut(t,n){if(1&t&&(H(0,"div",13)(1,"div",14)(2,"p"),ue(3,"Directness "),G()(),H(4,"mat-radio-group",33),ke(5,$ut,4,4,"div",16),G()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.directness.options)}}function Qut(t,n){if(1&t&&(H(0,"div",9)(1,"div",10),ke(2,Gut,7,1,"div",11),H(3,"div",12)(4,"div",13)(5,"div",14)(6,"p"),ue(7,"Relationship"),G()(),H(8,"mat-radio-group",15),ke(9,Uut,4,4,"div",16),G()(),ke(10,Wut,9,1,"div",17),ke(11,Xut,6,1,"div",17),G(),H(12,"div",18)(13,"div",19),ue(14," Suggested Causal Relation "),G()(),H(15,"div",20)(16,"span",21),ue(17),G()(),H(18,"div",22)(19,"div",19),ue(20," Evidence "),G()(),Qe(21,"noc-evidence-form-table",23),G()()),2&t){const e=Ae();W(2),J("ngIf",!(null!=e.connectorActivity&&null!=e.connectorActivity.rule.relationship&&e.connectorActivity.rule.relationship.id)),W(7),J("ngForOf",e.relationshipOptions),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.effectDirection),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.directness),W(6),Nt(" ",null==e.connectorActivity||null==e.connectorActivity.predicate.edge?null:e.connectorActivity.predicate.edge.label," "),W(4),J("settings",e.settings)("options",e.evidenceOptions)("cam",e.cam)("activity",e.connectorActivity)("entity",e.connectorActivity.subjectNode)}}let Zut=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.confirmDialogService=e,this.noctuaActivityConnectorService=i,this.noctuaUserService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.noctuaCommonMenuService=u,this.noctuaActivityEntityService=f,this.ConnectorType=Od,this.evidenceOptions={editableEvidence:!0,editableReference:!0,editableWith:!0,showEvidenceMenu:!0,showAddEvidenceButton:!0},this.settings=new hm,this.connectorState=f3,this.searchCriteria={},this._unsubscribeAll=new N}ngOnInit(){this.connectorFormSub=this.noctuaActivityConnectorService.connectorFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.connectorFormGroup=e,this.currentConnectorActivity=this.noctuaActivityConnectorService.currentConnectorActivity,this.connectorActivity=this.noctuaActivityConnectorService.connectorActivity,this.relationshipOptions=this.noctuaFormConfigService[this.connectorActivity.connectorType+"Relationship"].options)}),this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e)})}openActivityConnector(e){this.noctuaActivityConnectorService.initializeForm(this.noctuaActivityConnectorService.objectActivity.id,e.id)}save(){const e=this;this.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully created.","OK"),this.noctuaActivityConnectorService.initializeForm(e.noctuaActivityConnectorService.subjectActivity.id,e.noctuaActivityConnectorService.objectActivity.id),this.closeDialog&&this.closeDialog()})}editActivity(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully updated.","OK")})})}deleteConnectorEdge(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.deleteConnectorEdge(this.currentConnectorActivity).then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully deleted.","OK")})})}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(dd),de(NO),de(yr),de(jc),de(Co),de(Ts),de(ul),de(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-connector-table"]],inputs:{panelDrawer:"panelDrawer",cam:"cam",activity:"activity",closeDialog:"closeDialog"},decls:15,vars:2,consts:[["name","connectorFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-connector-form",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","","color","warn",1,"mr-8",3,"click"],[1,"noc-connector-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","w-100-p"],["class","alert alert-warning w-100-p",4,"ngIf"],[1,"noc-form-section","p-0","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"px-8","noc-group-row"],[1,"noc-title"],["fxFlex","","formControlName","relationship","fxLayout","column","fxLayoutAlign","start start"],["class","noc-radio-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","px-8 noc-group-row","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","noc-bt"],[1,"noc-section-heading"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-note","mb-4"],[1,"noc-description"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"w-100-p",3,"settings","options","cam","activity","entity"],[1,"alert","alert-warning","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-radio-row"],[1,"noc-radio-button-rounded","noc-label",3,"checked","value"],["fxFlex","","class","noc-hint",4,"ngIf"],["fxFlex","",1,"noc-hint"],["formControlName","effectDirection","fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","column","fxLayoutAlign","center start"],[1,"noc-hint","noc-sm"],[1,"noc-radio-button-rounded","noc-label",3,"value","checked"],["fxFlex","","formControlName","directness","fxLayout","column","fxLayoutAlign","start start"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Causal Relation Form"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," Close "),G()(),H(9,"div",5),ke(10,Qut,22,10,"div",6),G(),H(11,"div",7),Qe(12,"span",3),H(13,"button",8),et("click",function(){return i.deleteConnectorEdge()}),ue(14,"Delete"),G()()()),2&e&&(J("formGroup",i.connectorFormGroup),W(10),J("ngIf",i.connectorFormGroup))},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,Yi,gM,Pl,Xl,$o,mM,gse],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 80px);padding-bottom:150px}[_nghost-%COMP%] .noc-radio-button-rounded[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .noc-connector-form[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:10px 0;border-bottom:rgba(59,89,152,.6) solid 1px;color:#000;font-size:12px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]{width:100%;padding:5px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-border-0[_ngcontent-%COMP%]{border:none!important}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{width:170px;min-width:170px;max-width:170px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint[_ngcontent-%COMP%]{margin-left:12px;font-size:12px;max-width:300px;color:#676767;font-style:italic}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint.noc-sm[_ngcontent-%COMP%]{max-width:260px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%]{margin-bottom:12px;width:100%;padding:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;background-color:#fff;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-bottom:12px;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-graph-preview[_ngcontent-%COMP%]{height:100px;width:100%}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%]{width:100%;background-color:#dfe3ee99}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%]{padding:20px 0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{padding-left:10px;font-size:12px}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%]{color:#bbb}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ccc}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:200px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{padding:4px;height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:14px;color:#777}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding:4px;font-size:12px;width:100%;border-bottom:#bbb solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%]{height:180px;min-height:180px;max-height:180px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:8px;width:180px;min-width:180px;max-width:180px;height:110px;min-height:110px;max-height:110px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:initial;background-color:#fff}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding:4px;height:55px;min-height:55px;max-height:55px;font-size:10px;text-align:center;border-bottom:2px solid #2e6f9a}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{color:#2e6f9a;margin-top:40px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%]{height:120px;min-height:120px;max-height:120px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:4px;width:150px;min-width:150px;max-width:150px;height:100px;min-height:100px;max-height:100px;font-size:10px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{height:50px;min-height:50px;max-height:50px;border-bottom:1px solid #2e6f9a}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{margin-top:35px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-row[_ngcontent-%COMP%]{height:150px;min-height:150px;max-height:150px;background-color:#f5f5f5;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}']}),t})();function Kut(t,n){1&t&&(H(0,"form",7)(1,"h2"),ue(2,"Columns"),G(),H(3,"mat-checkbox",8),ue(4,"Show Aspect "),G(),H(5,"mat-checkbox",9),ue(6,"Show Is Extension "),G(),H(7,"mat-checkbox",10),ue(8,"Show Evidence "),G(),H(9,"mat-checkbox",11),ue(10,"Show Evidence Code "),G(),H(11,"mat-checkbox",12),ue(12,"Show Reference "),G(),H(13,"mat-checkbox",13),ue(14,"Show With/From "),G(),H(15,"mat-checkbox",14),ue(16,"Show Group "),G(),H(17,"mat-checkbox",15),ue(18,"Show Contributor "),G()()),2&t&&J("formGroup",Ae().settingsForm)}let Jut=(()=>{class t{constructor(e,i,o,r,a){this.camService=e,this.noctuaCommonMenuService=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaActivityFormService=a,this.displayedColumns=["category","count"],this._unsubscribeAll=new N}ngOnInit(){this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e,this.settingsForm=this.settings.createSettingsForm(),this._onValueChanges())})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createSettingsForm(e){}populateSettings(e){this.settings.populateSettings(e),this.noctuaCommonMenuService.onCamSettingsChanged.next(this.settings)}_onValueChanges(){const e=this;this.settingsForm.valueChanges.pipe(Cs(),Ks(400),Yn(this._unsubscribeAll)).subscribe(i=>{e.populateSettings(i)})}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(ul),de(yr),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-graph-settings"]],inputs:{panelDrawer:"panelDrawer"},decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["fxLayout","column","fxLayoutAlign","start stretch","name","settingsForm",3,"formGroup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","name","settingsForm",3,"formGroup"],["formControlName","showAspect","color","primary",1,"noc-checkbox"],["formControlName","showIsExtension","color","primary",1,"noc-checkbox"],["formControlName","showEvidence","color","primary",1,"noc-checkbox"],["formControlName","showEvidenceCode","color","primary",1,"noc-checkbox"],["formControlName","showReference","color","primary",1,"noc-checkbox"],["formControlName","showWith","color","primary",1,"noc-checkbox"],["formControlName","showGroup","color","primary",1,"noc-checkbox"],["formControlName","showContributor","color","primary",1,"noc-checkbox"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Graph Settings"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"div",5),ke(10,Kut,19,1,"form",6),G()()),2&e&&(W(10),J("ngIf",i.settingsForm))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,nd,tl,Gc,Uf,Pl,Xl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:520px;min-width:520px;max-width:520px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{border-top:#888 solid 1px;padding:24px 12px 100px;min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}'],data:{animation:sc}}),t})();const eht=["leftDrawer"],tht=["rightDrawer"],LF=function(t){return{"noc-active":t}},nht=function(){return["fas","sitemap"]},iht=function(){return["fas","table"]},oht=function(){return["fas","list"]};function rht(t,n){if(1&t){const e=Ln();H(0,"div",21)(1,"button",22),et("click",function(){return Dt(e),Ae().openGraph()}),Qe(2,"fa-icon",23),G(),H(3,"button",22),et("click",function(){return Dt(e),Ae().openTable()}),Qe(4,"fa-icon",23),G(),H(5,"button",22),et("click",function(){return Dt(e),Ae().openTable()}),Qe(6,"fa-icon",23),G()()}if(2&t){const e=Ae();W(1),J("ngClass",wo(12,LF,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camGraph))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(14,nht)),W(1),J("ngClass",wo(15,LF,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camTable))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(17,iht)),W(1),J("ngClass",wo(18,LF,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camTable))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(20,oht))}}function aht(t,n){1&t&&(H(0,"div",24),ue(1," Not Logged In: You can only view existing annotations "),G())}function sht(t,n){1&t&&Qe(0,"noc-cam-form",25),2&t&&(Ae(),J("panelDrawer",Di(7)))}function cht(t,n){1&t&&Qe(0,"noc-activity-form",25),2&t&&(Ae(),J("panelDrawer",Di(7)))}function lht(t,n){1&t&&Qe(0,"noc-copy-model",26),2&t&&(Ae(),J("panelDrawer",Di(7))("panelSide","left"))}function dht(t,n){if(1&t&&Qe(0,"noc-cam-table",4),2&t){const e=Ae();J("cam",e.cam)("options",e.noctuaFormOptions)}}function uht(t,n){1&t&&Qe(0,"noc-cam-graph",27),2&t&&J("cam",Ae().cam)}const hht=function(t){return{width:t}};function pht(t,n){if(1&t&&Qe(0,"noc-cam-table",28),2&t){const e=Ae(),i=Di(17);J("ngStyle",wo(4,hht,e.tableWidth))("panelDrawer",i)("cam",e.cam)("options",e.tableOptions)}}function fht(t,n){if(1&t&&Qe(0,"noc-graph-activity-table",29),2&t){const e=Ae();J("panelDrawer",Di(17))("options",e.tableOptions)("cam",e.cam)}}function ght(t,n){if(1&t&&Qe(0,"noc-activity-connector-table",30),2&t){const e=Ae();J("panelDrawer",Di(17))("cam",e.cam)}}function mht(t,n){1&t&&Qe(0,"noc-graph-settings",25),2&t&&(Ae(),J("panelDrawer",Di(17)))}const _ht=[{path:"g",component:(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.route=e,this.camService=i,this.noctuaActivityFormService=o,this.noctuaReviewSearchService=r,this.noctuaFormConfigService=a,this.noctuaCommonMenuService=l,this.noctuaUserService=u,this.noctuaSearchService=f,this.tableWidth="550px",this.loadingSpinner={color:"primary",mode:"indeterminate"},this.ActivityType=so,this.ReviewMode=hl,this.LeftPanel=a2,this.MiddlePanel=Ju,this.RightPanel=g3,this.artBasket=new C_,this.searchResults=[],this.modelId="",this.searchCriteria={},this.searchFormData=[],this.cams=[],this.camToolbarOptions={showCreateButton:!1},this.tableOptions={displayType:k2.SLIM_TREE,slimViewer:!0,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,showMenu:!0},this.noctuaFormOptions={displayType:k2.TREE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,showMenu:!0},this.scrollbarConfig={suppressScrollX:!0},this._unsubscribeAll=new N,this.route.queryParams.pipe(Yn(this._unsubscribeAll)).subscribe(w=>{this.modelId=w.model_id||null,this.noctuaUserService.getUser(w.barista_token||null)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(w=>{this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.loadCam(this.modelId)})}ngOnInit(){this.noctuaCommonMenuService.selectedMiddlePanel=Ju.camGraph,this.noctuaCommonMenuService.setLeftDrawer(this.leftDrawer),this.noctuaCommonMenuService.setRightDrawer(this.rightDrawer),this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e,this.tableWidth=this.getTableWidth(e))})}ngAfterViewInit(){this.noctuaCommonMenuService.resultsViewScrollbar=this.scrollbarRef}loadCam(e){this.cam=this.camService.getCam(e)}openGraph(){this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camGraph)}openTable(){this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camTable)}openPreview(){this.noctuaCommonMenuService.selectMiddlePanel(Ju.camPreview)}openLeftDrawer(e){this.noctuaCommonMenuService.selectLeftPanel(e)}selectMiddlePanel(e){this.noctuaCommonMenuService.selectMiddlePanel(e)}openRightDrawer(e){this.noctuaCommonMenuService.selectRightPanel(e),this.noctuaCommonMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaCommonMenuService.toggleLeftDrawer(e)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openSettings(){this.openRightDrawer(g3.graphSettings)}getTableWidth(e){let i=500;return e.showEvidence&&(i+=e.showEvidenceCode?150:0,i+=e.showReference?100:0,i+=e.showWith?100:0,i+=e.showGroup?100:0,i+=e.showContributor?100:0),i+"px"}search(){this.noctuaSearchService.search(this.searchForm.value)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(a2.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(a2.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(a2.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(lu),de(Zr),de(Ts),de(k1),de(Co),de(ul),de(yr),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-graph"]],viewQuery:function(e,i){if(1&e&&(_o(eht,7),_o(tht,7),_o(s4,5)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first),fi(o=gi())&&(i.scrollbarRef=o.first)}},decls:24,vars:18,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-sidemenu","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p","h-100-p"],["class","noc-not-loggedin","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"cam","options"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],["noctuaPerfectScrollbar","",1,"w-100-p","h-100-p",3,"ngSwitch"],[3,"cam","options",4,"ngSwitchCase"],[3,"cam",4,"ngSwitchCase"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""],[1,"h-100-p",3,"ngSwitch","perfectScrollbar"],["scrollbarRef",""],[3,"ngStyle","panelDrawer","cam","options",4,"ngSwitchCase"],[3,"panelDrawer","options","cam",4,"ngSwitchCase"],[3,"panelDrawer","cam",4,"ngSwitchCase"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","matTooltip","Filter",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-not-loggedin"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"],[3,"cam"],[3,"ngStyle","panelDrawer","cam","options"],[3,"panelDrawer","options","cam"],[3,"panelDrawer","cam"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,rht,7,21,"div",1),H(2,"div",2),ke(3,aht,2,0,"div",3),Qe(4,"noc-cam-toolbar",4),H(5,"mat-drawer-container",5)(6,"mat-drawer",6,7)(8,"div",8),ke(9,sht,1,1,"noc-cam-form",9),ke(10,cht,1,1,"noc-activity-form",9),ke(11,lht,1,2,"noc-copy-model",10),G()(),H(12,"mat-drawer-content",2)(13,"div",11),ke(14,dht,1,2,"noc-cam-table",12),ke(15,uht,1,1,"noc-cam-graph",13),G()(),H(16,"mat-drawer",14,15)(18,"div",16,17),ke(20,pht,1,6,"noc-cam-table",18),ke(21,fht,1,3,"noc-graph-activity-table",19),ke(22,ght,1,2,"noc-activity-connector-table",20),ke(23,mht,1,1,"noc-graph-settings",9),G()()()()()),2&e&&(W(1),J("ngIf",!1),W(2),J("ngIf",!i.noctuaUserService.user),W(1),J("cam",i.cam)("options",i.camToolbarOptions),W(1),J("hasBackdrop",!1),W(3),J("ngSwitch",i.noctuaCommonMenuService.selectedLeftPanel),W(1),J("ngSwitchCase",i.LeftPanel.camForm),W(1),J("ngSwitchCase",i.LeftPanel.activityForm),W(1),J("ngSwitchCase",i.LeftPanel.copyModel),W(2),J("ngSwitch",i.noctuaCommonMenuService.selectedMiddlePanel),W(1),J("ngSwitchCase",i.MiddlePanel.camTable),W(1),J("ngSwitchCase",i.MiddlePanel.camGraph),W(3),J("ngSwitch",i.noctuaCommonMenuService.selectedRightPanel)("perfectScrollbar",i.scrollbarConfig),W(2),J("ngSwitchCase",i.RightPanel.camTable),W(1),J("ngSwitchCase",i.RightPanel.activityTable),W(1),J("ngSwitchCase",i.RightPanel.activityConnectorTable),W(1),J("ngSwitchCase",i.RightPanel.graphSettings))},directives:[Oo,So,Yi,Fo,Tl,ds,ac,ps,aR,Rf,ko,Nf,bd,iu,cS,MR,_S,A0,ts,tP,B2t,s4,Og,pI,But,Zut,Jut],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] noc-cam-table[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] noc-activity-connector[_ngcontent-%COMP%]{display:block;width:600px;min-width:600px;max-width:600px}[_nghost-%COMP%] noc-graph-settings[_ngcontent-%COMP%]{display:block;width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] noc-graph-activity-table[_ngcontent-%COMP%]{display:block;min-width:400px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]{font-size:18px;color:#5872a7}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]:hover{font-size:20px;color:#3b5998}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;margin-right:5px;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;color:#798fb84d}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:sc}}),t})()}];let Cse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[D1,I9,va,xd.forChild(_ht),Yf,$p,$_,nv,M4]]}),t})();const Gm=XC||sVe,vse=new ui("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Cht(){return{useUtc:!1}}});function vht(t,n){const e=Array(t);for(let i=0;i{class t extends l1{constructor(e,i){super(),this._options=i,this.setLocale(e||Gm.locale())}setLocale(e){super.setLocale(e);let i=Gm.localeData(e);this._localeData={firstDayOfWeek:i.firstDayOfWeek(),longMonths:i.months(),shortMonths:i.monthsShort(),dates:vht(31,o=>this.createDate(2017,0,o+1).format("D")),longDaysOfWeek:i.weekdays(),shortDaysOfWeek:i.weekdaysShort(),narrowDaysOfWeek:i.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,i,o){const r=this._createMoment({year:e,month:i,date:o}).locale(this.locale);return r.isValid(),r}today(){return this._createMoment().locale(this.locale)}parse(e,i){return e&&"string"==typeof e?this._createMoment(e,i,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,i){return e=this.clone(e),this.isValid(e),e.format(i)}addCalendarYears(e,i){return this.clone(e).add({years:i})}addCalendarMonths(e,i){return this.clone(e).add({months:i})}addCalendarDays(e,i){return this.clone(e).add({days:i})}toIso8601(e){return this.clone(e).format()}deserialize(e){let i;if(e instanceof Date)i=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;i=this._createMoment(e,Gm.ISO_8601).locale(this.locale)}return i&&this.isValid(i)?this._createMoment(i).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Gm.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Gm.invalid()}_createMoment(e,i,o){const{strict:r,useUtc:a}=this._options||{};return a?Gm.utc(e,i,o,r):Gm(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(qt(ek,8),qt(vse,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const xht=["searchInput"];function yht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.terms)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.label," (",e.id,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.label," ")}}function wht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G(),Qe(4,"span",3),H(5,"div",71),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Mht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.obsoleteTerms)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.label," (",e.id,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.label," ")}}function Oht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G(),Qe(4,"span",3),H(5,"div",71),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Sht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.gps)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.label," (",e.id,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.label," ")}}function Pht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G(),Qe(4,"span",3),H(5,"div",71),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Tht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.pmids)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;bf("matTooltip","Reference: ",e,""),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e," ")}}function Eht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.organisms)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Species: ",e.taxonName," (",e.taxonIri,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.taxonName," ")}}function Aht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G(),Qe(4,"span",3),H(5,"div",71),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.taxonName," "),W(3),Nt(" ",e.taxonId," ")}}function Lht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.contributors)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Contributor: ",e.name," (",e.orcid,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name," ")}}function Dht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G(),Qe(4,"span",3),H(5,"div",71),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.name," "),W(3),Nt(" ",e.orcid," ")}}function kht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.groups)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.name," (",e.url,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name," ")}}function Iht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G(),Qe(4,"span",3),H(5,"div",71),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.name," "),W(3),Nt(" ",e.url," ")}}function Nht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae(2);return a.remove(r,a.SearchFilterType.exactdates)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e," ")}}function Rht(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",12)(1,"mat-label"),ue(2,"Filter by Exact Date"),G(),H(3,"mat-chip-list",null,72),ke(5,Nht,5,3,"mat-chip",54),H(6,"input",73,74),et("matChipInputTokenEnd",function(o){Dt(e);const r=Ae();return r.add(o,r.SearchFilterType.exactdates)}),G()(),Qe(9,"mat-datepicker-toggle",75)(10,"mat-datepicker",null,76),G()}if(2&t){const e=Di(4),i=Di(11),o=Ae();W(5),J("ngForOf",o.noctuaSearchService.searchCriteria.exactdates),W(1),J("matDatepicker",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("for",i)}}function zht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae(2);return a.remove(r,a.SearchFilterType.startdates)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e," ")}}function Fht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae(2);return a.remove(r,a.SearchFilterType.enddates)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e," ")}}function Hht(t,n){if(1&t){const e=Ln();H(0,"div",78)(1,"mat-form-field",79)(2,"mat-label"),ue(3,"Start Date"),G(),H(4,"mat-chip-list",null,80),ke(6,zht,5,3,"mat-chip",54),H(7,"input",81,74),et("matChipInputTokenEnd",function(o){Dt(e);const r=Ae();return r.add(o,r.SearchFilterType.startdates)}),G()(),Qe(10,"mat-datepicker-toggle",75)(11,"mat-datepicker",null,82),G(),H(13,"mat-form-field",79)(14,"mat-label"),ue(15,"End Date"),G(),H(16,"mat-chip-list",null,72),ke(18,Fht,5,3,"mat-chip",54),H(19,"input",83,74),et("matChipInputTokenEnd",function(o){Dt(e);const r=Ae();return r.add(o,r.SearchFilterType.enddates)}),G()(),Qe(22,"mat-datepicker-toggle",75)(23,"mat-datepicker",null,84),G()()}if(2&t){const e=Di(5),i=Di(12),o=Di(17),r=Di(24),a=Ae();W(6),J("ngForOf",a.noctuaSearchService.searchCriteria.startdates),W(1),J("matDatepicker",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("for",i),W(8),J("ngForOf",a.noctuaSearchService.searchCriteria.enddates),W(1),J("matDatepicker",r)("matChipInputFor",o)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("for",r)}}function Vht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.ids)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;bf("matTooltip","Keyword: ",e,""),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e," ")}}function Bht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.titles)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;bf("matTooltip","Keyword: ",e,""),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e," ")}}function Ght(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.states)}),H(1,"div",66),ue(2),G(),H(3,"mat-icon",67),ue(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e.name," ")}}function Yht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),ue(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," ")}}LO();const Uht={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let jht=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.noctuaDataService=e,this.noctuaUserService=i,this.confirmDialogService=o,this.inlineReferenceService=r,this.noctuaSearchMenuService=a,this.noctuaFormConfigService=l,this.noctuaLookupService=u,this.noctuaSearchService=f,this.SearchFilterType=sd,this.searchCriteria={},this.isDateRange=!1,this.selectedOrganism={},this.searchFormData=[],this.cams=[],this.separatorKeysCodes=[13,188],this.selectedContributors=[],this.gpNode=mu([Jl]),this.termNode=mu([p1,Kl,FHe,jC,l3,l_,TO]),this.obsoleteTermNode=mu([RHe]),this._unsubscribeAll=new N,this.filterForm=this.createAnswerForm(),this._onValueChanges()}ngOnInit(){this.noctuaDataService.onOrganismsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.noctuaSearchService.organisms=e,this._onValueOrganismChanges())})}createAnswerForm(){return new td({ids:new Do,gps:new Do,obsoleteTerms:new Do,terms:new Do,pmids:new Do,contributors:new Do,groups:new Do,organisms:new Do,titles:new Do,states:new Do,exactdates:new Do,startdates:new Do,enddates:new Do,isDateRange:new Do,exactTerm:new Do})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}contributorDisplayFn(e){return e?e.name:void 0}groupDisplayFn(e){return e?e.name:void 0}organismDisplayFn(e){return e?e.taxonName:void 0}stateDisplayFn(e){return e?e.name:void 0}close(){this.noctuaSearchMenuService.closeLeftDrawer()}clear(){this.noctuaSearchService.clearSearchCriteria(),this.searchInput.forEach(e=>{e.nativeElement.value=null})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}add(e,i,o=10){const r=e.input,a=e.value;this.noctuaSearchService.searchCriteria[i].length>=o?this.confirmDialogService.openInfoToast(`Reached maximum number of ${i} filters allowed`,"OK"):(a||"").trim()&&(this.noctuaSearchService.searchCriteria[i].push(i===this.SearchFilterType.ids?zh.cleanModelId(a.trim()):a.trim()),this.noctuaSearchService.updateSearch(!0),this.searchInput.forEach(l=>{l.nativeElement.value=null}),this.filterForm.controls[i].setValue("")),r&&(r.value="")}remove(e,i){const o=this.noctuaSearchService.searchCriteria[i].indexOf(e);o>=0&&(this.noctuaSearchService.searchCriteria[i].splice(o,1),this.noctuaSearchService.updateSearch())}selected(e,i){this.noctuaSearchService.searchCriteria[i].push(e.option.value),this.noctuaSearchService.updateSearch(),this.searchInput.forEach(o=>{o.nativeElement.value=null}),this.filterForm.controls[i].setValue("")}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.filterForm.controls[i]}})}downloadFilter(){this.noctuaSearchService.downloadSearchConfig()}_onValueChanges(){const e=this,i=e.noctuaLookupService.lookupFunc();this.filterForm.get("terms").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{const r=e.termNode.termLookup;i.termLookup(o,r.requestParams).subscribe(a=>{r.results=a})}),this.filterForm.get("obsoleteTerms").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{const r=e.obsoleteTermNode.termLookup;i.termLookup(o,r.requestParams).subscribe(a=>{r.results=a})}),this.filterForm.get("gps").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{const r=e.gpNode.termLookup;i.termLookup(o,r.requestParams).subscribe(a=>{r.results=a})}),this.filterForm.get("isDateRange").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{this.isDateRange=o}),this.filterForm.get("exactTerm").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{this.noctuaSearchService.searchCriteria.expand=!o,this.noctuaSearchService.updateSearch()}),this.filteredContributors=this.filterForm.controls.contributors.valueChanges.pipe(Sc(""),it(o=>"string"==typeof o?o:o.name),it(o=>o?this.noctuaUserService.filterContributors(o):this.noctuaUserService.contributors.slice())),this.filteredGroups=this.filterForm.controls.groups.valueChanges.pipe(Sc(""),it(o=>"string"==typeof o?o:o.name),it(o=>o?this.noctuaUserService.filterGroups(o):this.noctuaUserService.groups.slice())),this.filteredStates=this.filterForm.controls.states.valueChanges.pipe(Sc(""),it(o=>"string"==typeof o?o:o.name),it(o=>o?this.noctuaSearchService.filterStates(o):this.noctuaSearchService.states.slice()))}_onValueOrganismChanges(){this.filteredOrganisms=this.filterForm.controls.organisms.valueChanges.pipe(Sc(""),it(i=>"string"==typeof i?i:i.short_name),it(i=>i?this.noctuaSearchService.filterOrganisms(i):this.noctuaSearchService.organisms.slice()))}onFileChange(e){const i=this;let o=new FileReader;if(e.target.files&&e.target.files.length){const[r]=e.target.files;o.readAsText(r),o.onload=()=>{try{let a=JSON.parse(o.result);i.noctuaSearchService.uploadSearchConfig(a)}catch(a){alert("invalid file")}}}}}return t.\u0275fac=function(e){return new(e||t)(de(pm),de(yr),de(dd),de(xm),de(pl),de(Co),de(Sd),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-filter"]],viewQuery:function(e,i){if(1&e&&_o(xht,5),2&e){let o;fi(o=gi())&&(i.searchInput=o)}},features:[mo([{provide:l1,useClass:bht,deps:[ek,vse]},{provide:If,useValue:Uht}])],decls:177,vars:72,consts:[["fxLayout","column","fxLayoutAlign","start stretch","name","filterForm",1,"noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-filter-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["formControlName","exactTerm","color","primary",1,"noc-checkbox"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],["fxLayout","column",1,"noc-activity-group-row"],["appearance","outline",1,"noc-sm","w-100-p"],["termChipList",""],["class","noc-form-chip","fxLayout","row","fxLayoutAlign","start center",3,"selectable","removable","matTooltip","matTooltipPosition","matTooltipShowDelay","removed",4,"ngFor","ngForOf"],["formControlName","terms","placeholder","Add Term Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput",""],[1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["termAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],["obsoleteTermChipList",""],["formControlName","obsoleteTerms","placeholder","Add Obsolete Term Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["obsoleteTermAuto","matAutocomplete"],["gpChipList",""],["formControlName","gps","placeholder","Add GP Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","gpInput",""],["gpAuto","matAutocomplete"],["pmidChipList",""],["formControlName","pmids","placeholder","Add PMID Filter",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","pmidInput",""],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],["organismChipList",""],["formControlName","organisms","placeholder","Add Organism Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","organismInput",""],["organismAuto","matAutocomplete"],["contributorChipList",""],["formControlName","contributors","placeholder","Add Contributor Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","contributorInput",""],["contributorAuto","matAutocomplete"],["groupChipList",""],["formControlName","groups","placeholder","Add Group Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","groupInput",""],["groupAuto","matAutocomplete"],["formControlName","isDateRange","color","primary",1,"noc-checkbox"],["appearance","outline","class","noc-sm w-100-p",4,"ngIf"],["class","noc-sm w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["idChipList",""],["formControlName","ids","placeholder","Add Model Id Filter",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","idInput",""],["titleChipList",""],["formControlName","titles","placeholder","Add Title Filter (only one allowed)",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","titleInput",""],["fxLayout","column",1,"noc-activity-state-row"],["stateChipList",""],["class","noc-form-chip","fxLayout","row","fxLayoutAlign","start center",3,"selectable","removable","removed",4,"ngFor","ngForOf"],["formControlName","states","placeholder","Add State Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","stateInput",""],["stateAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["for","noc-upload-filter","fxLayout","row","fxLayoutAlign","start center",1,"noc-file-upload"],["mat-icon-button","",1,"noc-file-button"],[1,"s-16","mr-4"],["type","file","id","noc-upload-filter",1,"noc-file-upload",3,"change"],["type","button","mat-icon-button","",3,"click"],["type","button","mat-raised-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-chip",3,"selectable","removable","matTooltip","matTooltipPosition","matTooltipShowDelay","removed"],["fxFlex","",1,"noc-chip-label"],["matChipRemove",""],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"],["dateChipList",""],["formControlName","exactdates","placeholder","Add Exact Date Filter",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","dateInput",""],["matSuffix","",3,"for"],["exactDatePicker",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-chip",3,"selectable","removable","removed"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-sm","w-100-p"],["appearance","outline",1,"noc-sm"],["startDateChipList",""],["formControlName","startdates","placeholder","Start Date",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["startDatePicker",""],["formControlName","enddates","placeholder","End Date",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["endDatePicker",""]],template:function(e,i){if(1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Filter By"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),ue(13," Annotations "),G(),Qe(14,"span",3),H(15,"mat-checkbox",9),ue(16,"Exact Term "),G()(),H(17,"div",10)(18,"div",11)(19,"mat-form-field",12)(20,"mat-label"),ue(21,"Filter by Term"),G(),H(22,"mat-chip-list",null,13),ke(24,yht,5,7,"mat-chip",14),Qe(25,"input",15,16),G(),H(27,"mat-autocomplete",17,18),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.terms)}),ke(29,wht,7,3,"mat-option",19),G()()(),H(30,"div",11)(31,"mat-form-field",12)(32,"mat-label"),ue(33,"Filter by Obsolete Term"),G(),H(34,"mat-chip-list",null,20),ke(36,Mht,5,7,"mat-chip",14),Qe(37,"input",21,16),G(),H(39,"mat-autocomplete",17,22),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.obsoleteTerms)}),ke(41,Oht,7,3,"mat-option",19),G()()(),H(42,"div",11)(43,"mat-form-field",12)(44,"mat-label"),ue(45,"Filter by Gene Product"),G(),H(46,"mat-chip-list",null,23),ke(48,Sht,5,7,"mat-chip",14),Qe(49,"input",24,25),G(),H(52,"mat-autocomplete",17,26),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.gps)}),ke(54,Pht,7,3,"mat-option",19),G()()(),H(55,"div",11)(56,"mat-form-field",12)(57,"mat-label"),ue(58,"Filter by Reference"),G(),H(59,"mat-chip-list",null,27),ke(61,Tht,5,6,"mat-chip",14),H(62,"input",28,29),et("matChipInputTokenEnd",function(r){return i.add(r,i.SearchFilterType.pmids)}),G(),H(65,"button",30),et("click",function(r){return i.openAddReference(r,"pmids")}),H(66,"mat-icon"),ue(67,"playlist_add"),G()()()()(),H(68,"div",11)(69,"mat-form-field",12)(70,"mat-chip-list",null,31),ke(72,Eht,5,7,"mat-chip",14),Qe(73,"input",32,33),G(),H(76,"mat-autocomplete",17,34),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.organisms)}),ke(78,Aht,7,3,"mat-option",19),y0(79,"async"),G()()()()(),H(80,"div",6)(81,"div",7)(82,"div",8),ue(83," Contributor "),G(),Qe(84,"span",3),G(),H(85,"div",10)(86,"div",11)(87,"mat-form-field",12)(88,"mat-label"),ue(89,"Filter by Contributor"),G(),H(90,"mat-chip-list",null,35),ke(92,Lht,5,7,"mat-chip",14),Qe(93,"input",36,37),G(),H(96,"mat-autocomplete",17,38),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.contributors)}),ke(98,Dht,7,3,"mat-option",19),y0(99,"async"),G()()(),H(100,"div",11)(101,"mat-form-field",12)(102,"mat-label"),ue(103,"Filter by Group"),G(),H(104,"mat-chip-list",null,39),ke(106,kht,5,7,"mat-chip",14),Qe(107,"input",40,41),G(),H(110,"mat-autocomplete",17,42),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.groups)}),ke(112,Iht,7,3,"mat-option",19),y0(113,"async"),G()()()()(),H(114,"div",6)(115,"div",7)(116,"div",8),ue(117," Model Date "),G(),Qe(118,"span",3),H(119,"mat-checkbox",43),ue(120,"Date Range "),G()(),H(121,"div",10)(122,"div",11),ke(123,Rht,12,6,"mat-form-field",44),ke(124,Hht,25,12,"div",45),G()()(),H(125,"div",6)(126,"div",7)(127,"div",8),ue(128," Model "),G(),Qe(129,"span",3),G(),H(130,"div",10)(131,"div",11)(132,"mat-form-field",12)(133,"mat-label"),ue(134,"Filter by Model Ids"),G(),H(135,"mat-chip-list",null,46),ke(137,Vht,5,6,"mat-chip",14),H(138,"input",47,48),et("matChipInputTokenEnd",function(r){return i.add(r,i.SearchFilterType.ids)}),G()()()(),H(141,"div",11)(142,"mat-form-field",12)(143,"mat-label"),ue(144,"Filter by Title"),G(),H(145,"mat-chip-list",null,49),ke(147,Bht,5,6,"mat-chip",14),H(148,"input",50,51),et("matChipInputTokenEnd",function(r){return i.add(r,i.SearchFilterType.titles,1)}),G()()()(),H(151,"div",52)(152,"mat-form-field",12)(153,"mat-label"),ue(154,"Filter by State"),G(),H(155,"mat-chip-list",null,53),ke(157,Ght,5,3,"mat-chip",54),Qe(158,"input",55,56),G(),H(161,"mat-autocomplete",17,57),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.states)}),ke(163,Yht,4,2,"mat-option",19),y0(164,"async"),G()()()()()(),H(165,"div",58)(166,"label",59)(167,"button",60)(168,"mat-icon",61),ue(169,"cloud_upload"),G()()(),H(170,"input",62),et("change",function(r){return i.onFileChange(r)}),G(),Qe(171,"span",3),H(172,"button",63),et("click",function(){return i.downloadFilter()}),H(173,"mat-icon",61),ue(174,"cloud_download"),G()(),H(175,"button",64),et("click",function(){return i.clear()}),ue(176,"Clear"),G()()()),2&e){const o=Di(23),r=Di(28),a=Di(35),l=Di(40),u=Di(47),f=Di(53),w=Di(60),T=Di(71),U=Di(77),ie=Di(91),se=Di(97),Me=Di(105),we=Di(111),He=Di(136),Be=Di(146),me=Di(156),ze=Di(162);J("formGroup",i.filterForm),W(24),J("ngForOf",i.noctuaSearchService.searchCriteria.terms),W(1),J("matAutocomplete",r)("matChipInputFor",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(2),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",i.termNode.termLookup.results),W(7),J("ngForOf",i.noctuaSearchService.searchCriteria.obsoleteTerms),W(1),J("matAutocomplete",l)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(2),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",i.obsoleteTermNode.termLookup.results),W(7),J("ngForOf",i.noctuaSearchService.searchCriteria.gps),W(1),J("matAutocomplete",f)("matChipInputFor",u)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",i.gpNode.termLookup.results),W(7),J("ngForOf",i.noctuaSearchService.searchCriteria.pmids),W(1),J("matChipInputFor",w)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(10),J("ngForOf",i.noctuaSearchService.searchCriteria.organisms),W(1),J("matAutocomplete",U)("matChipInputFor",T)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.organismDisplayFn),W(2),J("ngForOf",bg(79,64,i.filteredOrganisms)),W(14),J("ngForOf",i.noctuaSearchService.searchCriteria.contributors),W(1),J("matAutocomplete",se)("matChipInputFor",ie)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.contributorDisplayFn),W(2),J("ngForOf",bg(99,66,i.filteredContributors)),W(8),J("ngForOf",i.noctuaSearchService.searchCriteria.groups),W(1),J("matAutocomplete",we)("matChipInputFor",Me)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.groupDisplayFn),W(2),J("ngForOf",bg(113,68,i.filteredGroups)),W(11),J("ngIf",!i.isDateRange),W(1),J("ngIf",i.isDateRange),W(13),J("ngForOf",i.noctuaSearchService.searchCriteria.ids),W(1),J("matChipInputFor",He)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(9),J("ngForOf",i.noctuaSearchService.searchCriteria.titles),W(1),J("matChipInputFor",Be)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(9),J("ngForOf",i.noctuaSearchService.searchCriteria.states),W(1),J("matAutocomplete",ze)("matChipInputFor",me)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.stateDisplayFn),W(2),J("ngForOf",bg(164,70,i.filteredStates))}},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,Uf,Pl,Xl,id,yd,A6,$o,T2,Tl,Ik,ed,kh,xX,I0,J1,E6,Yi,Gk,YOe,zOe],pipes:[Iy],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-checkbox[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;line-height:20px}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-right:12px;height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:16px 8px 0}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%]{padding:0;height:20px;min-height:20px;max-height:20px;font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] button[_ngcontent-%COMP%]{height:35px;min-height:35px;max-height:35px}[_nghost-%COMP%] button.noc-file-button[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] label[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-file-upload-title[_ngcontent-%COMP%]{margin-left:4px;color:#888;font-weight:700}']}),t})();function Wht(t,n){if(1&t&&(H(0,"mat-option",22)(1,"div",23)(2,"div",24),ue(3),G(),Qe(4,"span",3),H(5,"div",25),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function qht(t,n){if(1&t&&(H(0,"mat-option",22)(1,"div",23)(2,"div",24),ue(3),G(),Qe(4,"span",3),H(5,"div",25),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function $ht(t,n){if(1&t&&(H(0,"mat-option",22)(1,"div",23)(2,"div",24),ue(3),G(),Qe(4,"span",3),H(5,"div",25),ue(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Xht(t,n){if(1&t){const e=Ln();H(0,"button",20),et("click",function(){return Dt(e),Ae().cancel()}),ue(1,' Why is the "Search" button disabled? '),G()}}let Qht=(()=>{class t{constructor(e,i,o,r){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaFormConfigService=o,this.noctuaSearchService=r,this.searchCriteria={},this.selectedOrganism={},this.searchFormData=[],this.cams=[],this.searchForm=this.createAnswerForm(),this.unsubscribeAll=new N,this.onValueChanges()}ngOnInit(){}createAnswerForm(){return new td({subject:new Do,predicate:new Do,object:new Do})}onValueChanges(){this.searchForm.get("subject").valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{}),this.searchForm.get("object").valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{}),this.searchForm.get("predicate").valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{})}termDisplayFn(e){return e?e.label:void 0}contributorDisplayFn(e){return e?e.name:void 0}search(){this.noctuaSearchService.search(this.searchForm.value)}clear(){this.searchForm.controls.subject.setValue(""),this.searchForm.controls.predicate.setValue(""),this.searchForm.controls.object.setValue("")}close(){this.noctuaSearchMenuService.closeLeftDrawer()}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(pl),de(Co),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-relation"]],decls:43,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",1,"noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-filter-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","pt-8"],["fxLayout","column",1,"noc-activity-group-row"],["appearance","outline",1,"noc-sm"],["type","text","matInput","","formControlName","subject","rows","2","placeholder","e.g. an upstream activity",3,"matAutocomplete"],[1,"noc-term-autocomplete",3,"displayWith"],["subjectAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],["type","text","matInput","","formControlName","predicate","placeholder","e.g. a causal relation","rows","2",3,"matAutocomplete"],["predicateAuto","matAutocomplete"],["type","text","matInput","","formControlName","object","placeholder","e.g. a downstream activity","rows","2",3,"matAutocomplete"],["objectAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","","color","","class","mr-8",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"]],template:function(e,i){if(1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),ue(3," Search Relations"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),ue(15,"Subject"),G(),Qe(16,"textarea",10),H(17,"mat-autocomplete",11,12),ke(19,Wht,7,3,"mat-option",13),G()()(),H(20,"div",8)(21,"mat-form-field",9)(22,"mat-label"),ue(23,"Relation"),G(),Qe(24,"textarea",14),H(25,"mat-autocomplete",11,15),ke(27,qht,7,3,"mat-option",13),G()()(),H(28,"div",8)(29,"mat-form-field",9)(30,"mat-label"),ue(31,"Object"),G(),Qe(32,"textarea",16),H(33,"mat-autocomplete",11,17),ke(35,$ht,7,3,"mat-option",13),G()()()()()(),H(36,"div",18),ke(37,Xht,2,0,"button",19),Qe(38,"span",3),H(39,"button",20),et("click",function(){return i.clear()}),ue(40,"Clear"),G(),H(41,"button",21),et("click",function(){return i.search()}),ue(42,"Search"),G()()()),2&e){const o=Di(18),r=Di(26),a=Di(34);J("formGroup",i.searchForm),W(16),J("matAutocomplete",o),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.searchFormData.subject?null:i.searchFormData.subject.searchResults),W(5),J("matAutocomplete",r),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.searchFormData.predicate?null:i.searchFormData.predicate.searchResults),W(5),J("matAutocomplete",a),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.searchFormData.object?null:i.searchFormData.object.searchResults),W(2),J("ngIf",!1)}},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,id,yd,E2,ed,kh,Pl,Xl,I0,$o,J1,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;border-right:rgba(0,0,0,.12) solid 1px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-tree-input.noc-level-0[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%]{margin:0;padding-top:20px;padding-bottom:8px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:0;bottom:auto!important;left:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] .md-errors-spacer[_ngcontent-%COMP%]{visibility:hidden;display:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function Zht(t,n){if(1&t){const e=Ln();H(0,"div",7),et("click",function(){const r=Dt(e).$implicit;return Ae().selectGroup(r)}),H(1,"div",8),ue(2),G(),H(3,"mat-icon",9),ue(4," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),Nt(" ",e.name," ")}}let Kht=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=o,this.formBuilder=r,this.noctuaFormConfigService=a,this.searchCriteria={},this.searchFormData=[],this.unsubscribeAll=new N,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectGroup(e){this.searchCriteria.group=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new td({term:new Do,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(pl),de(ld),de(e2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-groups"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["class","noc-group-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-group-row",3,"click"],["fxFlex","",1,"noc-name"],[1,"s-24"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Browse By Groups"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"form",5),ke(10,Zht,5,1,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.noctuaUserService.groups))},directives:[Oo,So,ko,Fo,Ir,nd,tl,D0,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:0 10px;height:50px;min-height:50px;max-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}']}),t})();function Jht(t,n){if(1&t){const e=Ln();H(0,"div",7),et("click",function(){const r=Dt(e).$implicit;return Ae().selectContributor(r)}),H(1,"div",8),ue(2),G(),Qe(3,"span",3),H(4,"mat-icon",9),ue(5," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),Nt(" ",e.name," ")}}let e0t=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=o,this.formBuilder=r,this.noctuaFormConfigService=a,this.searchCriteria={},this.unsubscribeAll=new N,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectContributor(e){this.searchCriteria.contributor=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new td({term:new Do,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(pl),de(ld),de(e2),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-contributors"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["class","noc-contributor-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-contributor-row",3,"click"],["fxFlex","",1,"noc-name"],[1,"s-24"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Browse By Contributors"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"form",5),ke(10,Jht,6,1,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.noctuaUserService.contributors))},directives:[Oo,So,ko,Fo,Ir,nd,tl,D0,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 20px 0 10px;height:50px;min-height:50px;max-height:50px;border-bottom:#999 solid 1px;margin-bottom:5px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%] .noc-comparison-toggle[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px;height:50px;min-height:50px;max-height:50px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-expansion-panel-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%]{padding:0 10px;height:50px;min-height:50px;max-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}']}),t})();function t0t(t,n){if(1&t){const e=Ln();H(0,"div",7),et("click",function(){const r=Dt(e).$implicit;return Ae().selectOrganism(r)}),H(1,"div",8),ue(2),G(),Qe(3,"div",9)(4,"span",3),H(5,"mat-icon",10),ue(6," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),Nt(" ",e.taxonName," ")}}let n0t=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.formBuilder=o,this.noctuaFormConfigService=r,this.noctuaSearchService=a,this.searchCriteria={},this.searchFormData=[],this.unsubscribeAll=new N,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectOrganism(e){this.searchCriteria.organism=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new td({term:new Do,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(pl),de(e2),de(Co),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-organisms"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["fxFlex","","class","noc-organism-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-organism-row",3,"click"],[1,"noc-name"],["fxLayout","column","fxLayoutAlign","center center",1,"w-100-p"],[1,"s-24"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Browse By Species"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"form",5),ke(10,t0t,7,1,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.noctuaSearchService.organisms))},directives:[Oo,So,ko,Fo,Ir,nd,tl,D0,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%]{padding:8px 10px;min-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}']}),t})();const i0t=function(t){return["fas",t]};function o0t(t,n){if(1&t&&Qe(0,"fa-icon",15),2&t){const e=Ae().$implicit;J("icon",wo(1,i0t,e.icon))}}function r0t(t,n){if(1&t&&(H(0,"div",13),ke(1,o0t,1,3,"fa-icon",14),ue(2),G()),2&t){const e=n.$implicit;W(1),J("ngIf",e.icon),W(1),Nt(" ",e.value," ")}}function a0t(t,n){if(1&t){const e=Ln();H(0,"div",9),et("click",function(){const r=Dt(e).$implicit;return Ae().selectSearch(r)}),H(1,"div",10),ke(2,r0t,3,2,"div",11),G(),Qe(3,"span",3),H(4,"mat-icon",12),ue(5," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),J("ngForOf",e.displaySections)}}let s0t=(()=>{class t{constructor(e,i,o,r){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=o,this.noctuaFormConfigService=r,this.searchCriteria={},this.searchHistory=[],this._unsubscribeAll=new N}ngOnInit(){this.noctuaSearchService.onSearchHistoryChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.searchHistory=e})}selectSearch(e){this.noctuaSearchService.searchCriteria=e.getSearchCriteria(),this.noctuaSearchService.updateSearch(!0,!1)}clear(){this.noctuaSearchService.clearHistory()}close(){this.noctuaSearchMenuService.closeLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(yr),de(pl),de(ld),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-history"]],decls:15,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-group-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-group-row",3,"click"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-history-item",4,"ngFor","ngForOf"],[1,"s-24"],[1,"noc-history-item"],[3,"icon",4,"ngIf"],[3,"icon"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),ue(3," Search History"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),ue(7,"close"),G(),ue(8," CLOSE "),G()(),H(9,"div",5),ke(10,a0t,6,1,"div",6),G(),H(11,"div",7),Qe(12,"span",3),H(13,"button",8),et("click",function(){return i.clear()}),ue(14,"Clear Search"),G()()()),2&e&&(W(10),J("ngForOf",i.searchHistory))},directives:[Oo,So,ko,Fo,Ir,ts,$o,Yi,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:12px 10px;min-height:40px;max-height:300px;border-bottom:#BBB solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-history-item[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:100%;min-width:100%;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function c0t(t,n){1&t&&(H(0,"div",12),ue(1," Log in to Continue "),G())}function l0t(t,n){if(1&t&&Qe(0,"mat-progress-bar",25),2&t){const e=Ae(2);J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function d0t(t,n){if(1&t){const e=Ln();H(0,"div",26)(1,"div",19),ue(2,"Modified Model: "),G(),Qe(3,"span",4),H(4,"button",27),et("click",function(o){Dt(e);const r=Ae().$implicit;return Ae().reviewCamChanges(r),o.stopPropagation()}),ue(5),G(),H(6,"button",28),et("click",function(o){Dt(e);const r=Ae().$implicit;return Ae().resetCam(r),o.stopPropagation()}),ue(7," Undo "),G(),H(8,"button",29),et("click",function(o){Dt(e);const r=Ae().$implicit;return Ae().submitChange(r),o.stopPropagation()}),ue(9," Save "),G()()}if(2&t){const e=Ae().$implicit;W(4),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",null==e.modifiedStats?null:e.modifiedStats.totalChanges," change(s) "),W(1),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("matTooltipPosition","below")("matTooltipShowDelay",1e3)}}function u0t(t,n){if(1&t&&(H(0,"div",36),ue(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function h0t(t,n){if(1&t&&(H(0,"span",37)(1,"div",38),ue(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function p0t(t,n){if(1&t&&(H(0,"div",30)(1,"div",18)(2,"div",19),ue(3,"Contributors:"),G(),ke(4,u0t,2,4,"div",31),G(),H(5,"div",18)(6,"div",19),ue(7,"Groups:"),G(),ke(8,h0t,3,4,"span",32),G(),H(9,"div",20)(10,"div",19),ue(11,"Open In:"),G(),H(12,"a",33),ue(13," Pathway Editor "),G(),H(14,"span"),ue(15,"\u2022"),G(),H(16,"a",34),ue(17," Form Editor "),G(),H(18,"span"),ue(19,"\u2022"),G(),H(20,"a",35),ue(21," Graph Editor "),G()()()),2&t){const e=Ae().$implicit;W(4),J("ngForOf",e.contributors),W(4),J("ngForOf",e.groups),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)}}const f0t=function(){return["fas","angle-double-down"]};function g0t(t,n){1&t&&(H(0,"span"),ue(1,"More Details "),Qe(2,"fa-icon",39),G()),2&t&&(W(2),J("icon",_i(1,f0t)))}const m0t=function(){return["fas","angle-double-up"]};function _0t(t,n){1&t&&(H(0,"span"),ue(1,"Less Details "),Qe(2,"fa-icon",39),G()),2&t&&(W(2),J("icon",_i(1,m0t)))}const C0t=function(t){return{"noc-selected":t}};function v0t(t,n){if(1&t){const e=Ln();H(0,"div",13),et("click",function(){const r=Dt(e).$implicit;return Ae().selectItem(r)}),ke(1,l0t,1,2,"mat-progress-bar",14),ke(2,d0t,10,7,"div",15),H(3,"div",16)(4,"div",17)(5,"div",18)(6,"div",19),ue(7,"Title:"),G(),ue(8),G(),H(9,"div",20)(10,"div",19),ue(11,"State:"),G(),ue(12),G(),ke(13,p0t,22,5,"div",21),H(14,"div",22)(15,"a",23),et("click",function(o){const a=Dt(e).$implicit;return o.stopPropagation(),a.moreDetail=!a.moreDetail}),ke(16,g0t,3,2,"span",11),ke(17,_0t,3,2,"span",11),G()()(),Qe(18,"span",4),H(19,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae().remove(r)}),ue(20,"X"),G()()()}if(2&t){const e=n.$implicit,i=Ae();Ro("id","noc-basket-"+e.displayId),J("ngClass",wo(9,C0t,e.id===(null==i.camService.currentMatch?null:i.camService.currentMatch.modelId))),W(1),J("ngIf",e.loading.status),W(1),J("ngIf",e.modified),W(6),Nt(" ",e.title," "),W(4),Nt(" ",null==e.state?null:e.state.label," "),W(1),J("ngIf",e.moreDetail),W(3),J("ngIf",!e.moreDetail),W(1),J("ngIf",e.moreDetail)}}function b0t(t,n){if(1&t){const e=Ln();er(0),H(1,"button",40),et("click",function(){return Dt(e),Ae().clear()}),ue(2,"Clear List"),G(),tr()}}function x0t(t,n){if(1&t){const e=Ln();er(0),H(1,"button",40),et("click",function(){return Dt(e),Ae().clear()}),ue(2,"Clear List"),G(),Qe(3,"span",4),H(4,"button",41),et("click",function(){return Dt(e),Ae().resetCams()}),ue(5,"Undo Changes"),G(),H(6,"button",42),et("click",function(){return Dt(e),Ae().reviewChanges()}),ue(7," Review Changes "),G(),tr()}}function y0t(t,n){if(1&t){const e=Ln();er(0),Qe(1,"span",4),H(2,"button",41),et("click",function(){return Dt(e),Ae().backToReview()}),ue(3,"Back"),G(),H(4,"button",42),et("click",function(){return Dt(e),Ae().submitChanges()}),ue(5," Submit "),G(),tr()}}let w0t=(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.zone=e,this.camService=i,this.confirmDialogService=o,this.noctuaSearchDialogService=r,this.noctuaUserService=a,this.noctuaReviewSearchService=l,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.MiddlePanel=fa,this.artBasket=new C_,this.cams=[],this.loadingSpinner={color:"primary",mode:"indeterminate"},this._unsubscribeAll=new N}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)}),this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e)}),this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}backToReview(){this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview)}clear(){var e;const i=this,o=r=>{r&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaReviewSearchService.clear(),this.camService.clearCams(),this.noctuaReviewSearchService.clearBasket())};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(o,i.summary,{title:"Confirm Clear Basket?",message:"You are about to remove all items from the basket. Please save changes or undo changes.",cancelLabel:"Go Back",confirmLabel:"Clear Anyway"}):this.confirmDialogService.openConfirmDialog("Confirm Clear Basket?","You are about to remove all items from the basket.",o,{cancelLabel:"No",confirmLabel:"Yes"})}close(){this.noctuaSearchMenuService.closeLeftDrawer()}remove(e){const i=this,o=i.camService.reviewCamChanges(e),r=a=>{a&&this.noctuaReviewSearchService.removeCamFromReview(e)};(null==o?void 0:o.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(r,o,{title:"Removing Unsaved Model",message:`Please save changes or undo changes before removing model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"Remove Anyway"}):this.confirmDialogService.openConfirmDialog("Removing Unsaved Model?",`You are about to remove model from the basket. No changes were made. Model Name:"${e.title}"`,r,{cancelLabel:"No",confirmLabel:"Yes"})}resetCam(e){const i=this,o=i.camService.reviewCamChanges(e),r=a=>{a&&i._resetCamsQuery([e])};(null==o?void 0:o.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(r,o,{title:"Discard Unsaved Changes",message:`All your changes will be discarded for model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"OK"}):r(!0)}resetCams(){var e;const i=this,o=r=>{r&&i._resetCamsQuery(i.camService.cams)};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(o,i.summary,{title:"Discard Unsaved Changes",message:"All your changes will be discarded.",cancelLabel:"Cancel",confirmLabel:"OK"}):o(!0)}reviewChanges(){this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(fa.reviewChanges)}reviewCamChanges(e){const r=this.camService.reviewCamChanges(e);this.noctuaSearchDialogService.openCamReviewChangesDialog(a=>{},r)}selectItem(e){this.camService.onSelectedCamChanged.next(e.id),this.noctuaSearchMenuService.scrollTo("#noc-review-cams-"+e.displayId)}submitChanges(){var e;const i=this,o=r=>{r&&(i.noctuaSearchMenuService.scrollToTop(),i._storeCamsQuery(i.camService.cams,!0),this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview))};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0&&i.noctuaSearchDialogService.openCamReviewChangesDialog(o,i.summary,{title:"Save Changes?",message:"Bulk edit all changes",cancelLabel:"Go Back",confirmLabel:"Submit"})}submitChange(e){const i=this,o=i.camService.reviewCamChanges(e);if((null==o?void 0:o.stats.totalChanges)>0){const r=l=>{l&&i._storeCamsQuery([e])};i.noctuaSearchDialogService.openCamReviewChangesDialog(r,o,{title:"Save Changes?",message:`All your changes will be saved for model. Model Name:"${e.title}"`,cancelLabel:"Go Back",confirmLabel:"Submit"})}}_storeCamsQuery(e,i=!1){this.noctuaReviewSearchService.reloadCams(e,this.camService.cams,Cu.STORE,i)}_resetCamsQuery(e,i=!1){this.noctuaReviewSearchService.reloadCams(e,this.camService.cams,Cu.RESET,i)}}return t.\u0275fac=function(e){return new(e||t)(de(oo),de(Zr),de(dd),de(U0),de(yr),de(k1),de(pl),de(ld),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-art-basket"]],decls:18,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"pt-4","px-12"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["class","noc-group-row","fxLayout","column","fxLayoutAlign","start stretch",3,"id","ngClass","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],[4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-row",3,"id","ngClass","click"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["class","noc-modified-header w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],["class","w-100-p",4,"ngIf"],[1,"noc-item"],[1,"noc-more-details-button",3,"click"],["mat-icon-button","","color","warn",1,"noc-remove-button",3,"click"],[1,"noc-cam-progress",3,"color","mode"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-modified-header","w-100-p"],["mat-stroked-button","","color","primary","matTooltip","View Model Changes",1,"noc-rounded-button","noc-half-button","noc-r","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-stroked-button","","color","primary","matTooltip","Undo Model Changes",1,"noc-rounded-button","noc-half-button","noc-m","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-stroked-button","","color","primary","matTooltip","Save Model Changes",1,"noc-rounded-button","noc-half-button","noc-l","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],[3,"icon"],["type","button","mat-raised-button","",3,"click"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","submit","mat-raised-button","","color","primary",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),ue(4," Annotation Review"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),ue(8,"close"),G(),ue(9," CLOSE "),G()(),Qe(10,"noc-review-form",6),G(),H(11,"div",7),ke(12,c0t,2,0,"div",8),ke(13,v0t,21,11,"div",9),G(),H(14,"div",10),ke(15,b0t,3,0,"ng-container",11),ke(16,x0t,8,0,"ng-container",11),ke(17,y0t,6,0,"ng-container",11),G()()),2&e&&(W(12),J("ngIf",!i.noctuaUserService.user),W(1),J("ngForOf",i.cams),W(2),J("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.cams),W(1),J("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.camsReview),W(1),J("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.reviewChanges))},directives:[Oo,So,ko,Fo,Ir,One,ts,Yi,$o,ds,ac,G9,Tl,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:280px;min-height:280px;max-height:280px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#BBB solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{position:relative;min-height:40px;max-height:500px;border-bottom:#CCC solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function M0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",44),et("click",function(){return Dt(e),Ae().reset()}),ue(1," Clear All "),G()}}function O0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.ids)}),ue(1," Model IDs: "),H(2,"span"),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.ids.length,")")}}function S0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.gps)}),ue(1," GPs: "),H(2,"span"),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.gps.length,")")}}function P0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.terms)}),ue(1," GO Terms: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.terms.length,")")}}function T0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.contributors)}),ue(1," Contributors: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.contributors.length,")")}}function E0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.groups)}),ue(1," Groups: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.groups.length,")")}}function A0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.organisms)}),ue(1," Species: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.organisms.length,")")}}function L0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.pmids)}),ue(1," References: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.pmids.length,")")}}function D0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.states)}),ue(1," Model States: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.states.length,")")}}function k0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.exactdates)}),ue(1," Date Modified: "),H(2,"span",47),ue(3),G(),H(4,"mat-icon",46),ue(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.exactdates.length,")")}}function I0t(t,n){if(1&t&&Qe(0,"mat-progress-bar",48),2&t){const e=Ae();J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function N0t(t,n){if(1&t){const e=Ln();H(0,"mat-paginator",49,50),et("page",function(o){Dt(e);const r=Ae();return r.pageEvent=o,r.setPage(o)}),G()}if(2&t){const e=Ae();J("length",e.camPage.total)("pageIndex",e.camPage.pageNumber)("pageSize",e.camPage.size)("pageSizeOptions",e.camPage.pageSizeOptions)("showFirstLastButtons",!0)}}function R0t(t,n){1&t&&Qe(0,"th",51)}function z0t(t,n){if(1&t){const e=Ln();H(0,"td",52)(1,"mat-checkbox",53),et("click",function(o){return o.stopPropagation()})("change",function(o){const a=Dt(e).$implicit,l=Ae();return o?l.toggleSelection(a):null}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("checked",i.selection.isSelected(e))("aria-label",i.checkboxLabel(e))}}function F0t(t,n){1&t&&Qe(0,"th",54)}const H0t=function(){return["fas","caret-right"]};function V0t(t,n){1&t&&Qe(0,"fa-icon",59),2&t&&J("icon",_i(1,H0t))}const B0t=function(){return["fas","caret-down"]};function G0t(t,n){1&t&&Qe(0,"fa-icon",59),2&t&&J("icon",_i(1,B0t))}function Y0t(t,n){if(1&t){const e=Ln();H(0,"td",55)(1,"button",56),et("click",function(){const r=Dt(e).$implicit;return Ae().toggleCamExpand(r)}),ke(2,V0t,1,2,"fa-icon",57),ke(3,G0t,1,2,"fa-icon",57),G(),H(4,"div",58),ue(5),G()()}if(2&t){const e=n.$implicit;W(2),J("ngIf",!e.expanded),W(1),J("ngIf",e.expanded),W(2),Nt(" ",e.displayNumber," ")}}function U0t(t,n){1&t&&(H(0,"th",60),ue(1," Title "),G())}function j0t(t,n){if(1&t&&(H(0,"td",61),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.title," ")}}function W0t(t,n){1&t&&(H(0,"th",62),ue(1,"Saved"),G())}const q0t=function(){return["far","times-circle"]};function $0t(t,n){1&t&&Qe(0,"fa-icon",66),2&t&&J("icon",_i(1,q0t))}const X0t=function(){return["far","check-circle"]};function Q0t(t,n){1&t&&Qe(0,"fa-icon",67),2&t&&J("icon",_i(1,X0t))}function Z0t(t,n){if(1&t&&(H(0,"td",63),ke(1,$0t,1,2,"fa-icon",64),ke(2,Q0t,1,2,"fa-icon",65),G()),2&t){const e=n.$implicit;W(1),J("ngIf",e.modified),W(1),J("ngIf",!e.modified)}}function K0t(t,n){1&t&&(H(0,"th",68),ue(1,"State"),G())}const J0t=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},ept=function(){return["fas","tasks"]};function tpt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",71),et("click",function(){Dt(e);const o=Ae().$implicit,r=Ae();return r.noctuaSearchService.filter(r.SearchFilterType.states,o.state)}),H(1,"div",72),Qe(2,"fa-icon",59),G(),H(3,"div",73),ue(4),G()()}if(2&t){const e=Ae().$implicit;J("ngClass",M2(5,J0t,"development"===e.state.name,"production"===e.state.name,"review"===e.state.name))("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(9,ept)),W(2),Nt(" ",e.state.label," ")}}function npt(t,n){if(1&t&&(H(0,"td",69),ke(1,tpt,5,10,"mat-chip",70),G()),2&t){const e=n.$implicit;W(1),J("ngIf",e.state)}}function ipt(t,n){1&t&&(H(0,"th",74),ue(1," Date Modified "),G())}const opt=function(){return["fas","calendar-day"]};function rpt(t,n){if(1&t){const e=Ln();H(0,"td",75)(1,"mat-chip",76),et("click",function(){const r=Dt(e).$implicit,a=Ae();return a.noctuaSearchService.filter(a.SearchFilterType.exactdates,r.date)}),H(2,"div",72),Qe(3,"fa-icon",59),G(),H(4,"div",73),ue(5),G()()()}if(2&t){const e=n.$implicit;W(1),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(4,opt)),W(2),Nt(" ",e.date," ")}}function apt(t,n){1&t&&(H(0,"th",77),ue(1,"Contributors"),G())}function spt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",80),et("click",function(){const r=Dt(e).$implicit,a=Ae(2);return a.noctuaSearchService.filter(a.SearchFilterType.contributors,r)}),H(1,"div",81),ue(2),G(),H(3,"div",73),ue(4),G()()}if(2&t){const e=n.$implicit;Br("border-color",e.color),bf("matTooltip","Add ",e.name," to Filters"),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Br("background-color",e.color),W(1),Nt(" ",e.initials," "),W(2),Nt(" ",e.name?e.name:e.orcid," ")}}function cpt(t,n){if(1&t&&(H(0,"td",78)(1,"mat-chip-list"),ke(2,spt,5,9,"mat-chip",79),G()()),2&t){const e=n.$implicit;W(2),J("ngForOf",e.contributors)}}function lpt(t,n){1&t&&(H(0,"th",82),ue(1,"Open In"),G())}const dpt=function(){return["fas","list-alt"]},upt=function(){return["fas","sitemap"]};function hpt(t,n){if(1&t){const e=Ln();H(0,"td",83)(1,"a",84),Qe(2,"img",85),G(),H(3,"a",86),Qe(4,"fa-icon",59),G(),H(5,"a",87),Qe(6,"fa-icon",59),G(),H(7,"a",88)(8,"mat-icon"),ue(9,"more_horiz"),G()(),H(10,"mat-menu",null,89)(12,"a",90),ue(13," Standard Annotations "),G(),H(14,"a",90),ue(15," Alliance Pathway Preview "),G(),H(16,"button",91),et("click",function(){const r=Dt(e).$implicit;return Ae().openCamForm(r)}),ue(17," Model Info "),G(),H(18,"button",91),et("click",function(){const r=Dt(e).$implicit;return Ae().openCopyModel(r)}),ue(19," Copy Model "),G(),H(20,"button",92),ue(21," Export As "),G()(),H(22,"mat-menu",null,93)(24,"a",94),ue(25," GPAD "),G(),H(26,"a",94),ue(27," OWL "),G()()()}if(2&t){const e=n.$implicit,i=Di(11),o=Di(23);W(1),J("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-visual-pathway-editor"]?null:e.model.modelInfo.workbenches["noctua-visual-pathway-editor"].url,ao)("matTooltipPosition","above")("matTooltipShowDelay",1500),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao)("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(18,dpt)),W(1),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(19,upt)),W(1),J("matMenuTriggerFor",i),W(5),J("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-standard-annotations"]?null:e.model.modelInfo.workbenches["noctua-standard-annotations"].url,ao),Un("data-cy","open-standard-annotation-button"),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-alliance-pathway-preview"]?null:e.model.modelInfo.workbenches["noctua-alliance-pathway-preview"].url,ao),W(6),J("matMenuTriggerFor",o),W(4),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.gpadUrl,ao),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.owlUrl,ao)}}function ppt(t,n){if(1&t&&Qe(0,"mat-progress-bar",48),2&t){const e=Ae(2);J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function fpt(t,n){if(1&t&&Qe(0,"noc-cam-table",98),2&t){const e=Ae().$implicit,i=Ae();J("cam",e)("options",i.tableOptions)}}function gpt(t,n){if(1&t&&(H(0,"td",95)(1,"div",96),ke(2,ppt,1,2,"mat-progress-bar",6),ke(3,fpt,1,2,"noc-cam-table",97),G()()),2&t){const e=n.$implicit;Un("colspan",Ae().displayedColumns.length),W(2),J("ngIf",e.loading.status),W(1),J("ngIf",e.expanded)}}function mpt(t,n){1&t&&Qe(0,"tr",99)}function _pt(t,n){if(1&t&&(H(0,"tr",100),et("click",function(i){return i.stopPropagation()}),G()),2&t){const e=n.$implicit;Ro("id",Ae().cleanId(e.id))}}function Cpt(t,n){1&t&&Qe(0,"tr",101),2&t&&J("@detailExpand",n.$implicit.expanded?"expanded":"collapsed")}function vpt(t,n){1&t&&(H(0,"div",102),ue(1," no results yet. "),G())}const bpt=function(t){return{"noc-review-mode":t}},xpt=function(){return{value:"50"}},ypt=function(){return["expandedDetail"]};function wpt(){const t=new z6;return t.itemsPerPageLabel="GO CAMs per page:",t}let Mpt=(()=>{class t{constructor(e,i,o,r,a,l,u){this.camService=e,this.noctuaReviewSearchService=i,this.noctuaFormConfigService=o,this.noctuaCommonMenuService=r,this.noctuaSearchMenuService=a,this.noctuaUserService=l,this.noctuaSearchService=u,this.SearchFilterType=sd,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.displayedColumns=[],this.searchCriteria={},this.searchFormData=[],this.cams=[],this.tableOptions={displayType:k2.TREE,slimViewer:!1},this.selection=new Qu(!0,[]),this._unsubscribeAll=new N,this.selection.sort()}set isReviewMode(e){this._isReviewMode=e,this.initTable(this._isReviewMode)}get isReviewMode(){return this._isReviewMode}initTable(e){this.displayedColumns=["expand","title","saved","state","date","contributor","edit"],e&&this.displayedColumns.unshift("select")}ngOnInit(){this.noctuaSearchService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e,this.preCheck())}),this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.preCheck()}),this.noctuaSearchService.onCamsPageChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.camPage=e)}),this.noctuaReviewSearchService.onResetReview.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.camService.clearCams(),this.selection.clear())}),this.noctuaReviewSearchService.onReplaceChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&this.refresh()})}isAllSelected(){return this.selection.selected.length===this.cams.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.cams.forEach(e=>this.selection.select(e))}toggleSelection(e){this.selection.toggle(e),this.selection.isSelected(e)?this.addToReview(e):this.noctuaReviewSearchService.removeCamFromReview(e)}preCheck(){const e=this;this.selection.clear(),(0,Zt.each)(e.cams,i=>{(0,Zt.find)(e.camService.cams,{id:i.id})&&e.selection.select(i)})}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:(this.isAllSelected()?"select":"deselect")+" all"}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e)}search(){this.noctuaSearchService.search(this.searchForm.value)}getStateClass(e){return{"noc-development":"development"===e,"noc-production":"production"===e,"noc-review":"review"===e}}setPage(e){if(this.camPage){let i=e.pageIndex;this.noctuaSearchService.searchCriteria.camPage.size>e.pageSize&&(i=0),this.noctuaSearchService.getPage(i,e.pageSize)}}isExpansionDetailRow(e,i){return i.expanded}toggleCamExpand(e){e.expanded?e.expanded=!1:this.openCam(e)}addToReview(e){this.noctuaReviewSearchService.addCamsToReview([e],this.camService.cams),this.noctuaReviewSearchService.addToArtBasket(e.id,e.title)}openCam(e){this.camService.loadCam(e),e.expanded=!0,this.camService.cam=e,this.camService.onCamChanged.next(e)}openCamForm(e){this.camService.cam=e,this.camService.initializeForm(e),this.camService.onCamChanged.next(e),this.openRightDrawer(Fh.camForm)}openCopyModel(e){this.camService.loadCamMeta(e),this.camService.cam=e,this.camService.onCamChanged.next(e),this.openRightDrawer(Fh.copyModel)}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(k1),de(Co),de(ul),de(pl),de(yr),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-table"]],inputs:{isReviewMode:"isReviewMode"},features:[mo([{provide:z6,useValue:wpt()}])],decls:57,vars:26,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cams-result","noc-drawer-body",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-filter-bar"],[1,"mr-12"],["class","noc-clearall-chip",3,"click",4,"ngIf"],["class","noc-filter-chip",3,"removable","click","removed",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-results-bar"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"ml-8","mr-16"],["mat-stroked-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-sm","noc-r"],["mat-stroked-button","","color","primary","matTooltip","Refresh Search",1,"noc-rounded-button","noc-half-button","noc-sm","noc-l",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,""],["fxFlex",""],["class","noc-paginator",3,"length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"noc-cams-table",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","fxFlex","30px",4,"matHeaderCellDef"],["class","noc-checkbox-cell","mat-cell","","fxFlex","30px",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","class","noc-expand-cell","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","200px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","saved"],["mat-header-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","50px","class","noc-model-saved pr-12","fxLayout","row","fxLayoutAlign","center center",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","110px","class","noc-model-state pr-12","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","class","noc-date","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","contributor"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","edit"],["mat-header-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","expandedDetail"],["class","p-0","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"id","click",4,"matRowDef","matRowDefColumns"],["mat-row","","style","overflow: hidden",4,"matRowDef","matRowDefColumns"],["class","noc-no-info",4,"ngIf"],[1,"noc-clearall-chip",3,"click"],[1,"noc-filter-chip",3,"removable","click","removed"],["matChipRemove",""],[1,"noc-filter-number"],[1,"noc-cam-progress",3,"color","mode"],[1,"noc-paginator",3,"length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page"],["paginatorBottom",""],["mat-header-cell","","fxFlex","30px"],["mat-cell","","fxFlex","30px",1,"noc-checkbox-cell"],[3,"checked","aria-label","click","change"],["mat-header-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",1,"noc-expand-cell"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","mr-8"],[3,"icon"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","center center",1,"noc-model-saved","pr-12"],["class","red-500-fg",3,"icon",4,"ngIf"],["class","green-500-fg",3,"icon",4,"ngIf"],[1,"red-500-fg",3,"icon"],[1,"green-500-fg",3,"icon"],["mat-header-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state","pr-12"],["class","noc-table-chip noc-state-chip","fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",1,"noc-table-chip","noc-state-chip",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["mat-header-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add date to exact date filter",1,"noc-table-chip","noc-date-chip",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","borderColor","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon","noc-icon-initials"],["mat-header-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","target","_blank","matTooltip","Pathway Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-r",3,"href","matTooltipPosition","matTooltipShowDelay"],["width","15","src","assets/icons/pathway.png"],["mat-icon-button","","target","_blank","matTooltip","Form Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","mr-4","noc-half-button","noc-m",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","target","_blank","matTooltip","Graph Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-m",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","color","primary",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-l",3,"matMenuTriggerFor"],["optionsMenu","matMenu"],["mat-menu-item","","target","_blank",1,"",3,"href"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","",1,"",3,"matMenuTriggerFor"],["exportMenu","matMenu"],["target","_blank","mat-menu-item","",3,"href"],["mat-cell","",1,"p-0"],[1,"noc-cam-table-container"],[3,"cam","options",4,"ngIf"],[3,"cam","options"],["mat-header-row",""],["mat-row","",3,"id","click"],["mat-row","",2,"overflow","hidden"],[1,"noc-no-info"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"small",2),ue(3,"Filtered By: "),G(),ke(4,M0t,2,0,"mat-chip",3),ke(5,O0t,6,2,"mat-chip",4),ke(6,S0t,6,2,"mat-chip",4),ke(7,P0t,6,2,"mat-chip",4),ke(8,T0t,6,2,"mat-chip",4),ke(9,E0t,6,2,"mat-chip",4),ke(10,A0t,6,2,"mat-chip",4),ke(11,L0t,6,2,"mat-chip",4),ke(12,D0t,6,2,"mat-chip",4),ke(13,k0t,6,2,"mat-chip",4),G(),H(14,"div",5),ke(15,I0t,1,2,"mat-progress-bar",6),H(16,"small"),ue(17,"Results:"),G(),H(18,"div",7)(19,"button",8),ue(20),G(),H(21,"button",9),et("click",function(){return i.refresh()}),H(22,"mat-icon",10),ue(23," youtube_searched_for "),G()()(),Qe(24,"span",11),ke(25,N0t,2,5,"mat-paginator",12),G(),H(26,"table",13),er(27,14),ke(28,R0t,1,0,"th",15),ke(29,z0t,2,2,"td",16),tr(),er(30,17),ke(31,F0t,1,0,"th",18),ke(32,Y0t,6,3,"td",19),tr(),er(33,20),ke(34,U0t,2,0,"th",21),ke(35,j0t,2,1,"td",22),tr(),er(36,23),ke(37,W0t,2,0,"th",24),ke(38,Z0t,3,2,"td",25),tr(),er(39,26),ke(40,K0t,2,0,"th",27),ke(41,npt,2,1,"td",28),tr(),er(42,29),ke(43,ipt,2,0,"th",30),ke(44,rpt,6,5,"td",31),tr(),er(45,32),ke(46,apt,2,0,"th",33),ke(47,cpt,3,1,"td",34),tr(),er(48,35),ke(49,lpt,2,0,"th",36),ke(50,hpt,28,20,"td",37),tr(),er(51,38),ke(52,gpt,4,3,"td",39),tr(),ke(53,mpt,1,0,"tr",40),ke(54,_pt,1,1,"tr",41),ke(55,Cpt,1,1,"tr",42),G(),ke(56,vpt,2,0,"div",43),G()),2&e&&(J("ngClass",wo(22,bpt,i.isReviewMode)),W(4),J("ngIf",(null==i.noctuaSearchService||null==i.noctuaSearchService.searchCriteria?null:i.noctuaSearchService.searchCriteria.filtersCount)>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.ids.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.gps.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.terms.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.contributors.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.groups.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.organisms.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.pmids.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.states.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.exactdates.length>0),W(2),J("ngIf",i.noctuaSearchService.loading),W(5),Nt(" ",null==i.camPage?null:i.camPage.total," "),W(1),J("matTooltipPosition","above")("matTooltipShowDelay",1e3),W(4),J("ngIf",i.camPage),W(1),J("dataSource",i.cams)("@animateStagger",_i(24,xpt)),W(27),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns),W(1),J("matRowDefColumns",_i(25,ypt)),W(1),J("ngIf",0===(null==i.cams?null:i.cams.length)))},directives:[Oo,So,ds,ac,Yi,T2,Ir,Ik,G9,Fo,Tl,ko,_Pe,$g,Zf,Qf,Kf,Xf,Jf,Uf,ps,A6,$o,V9,il,Ql,nl,tP,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#f7f7f7}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-hide-column[_ngcontent-%COMP%]{visibility:hidden;overflow:hidden;display:none;width:0!important;min-width:0!important;max-width:0!important}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;width:100%;min-width:100%;max-width:100%;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%]{position:sticky;top:31px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-search-table-header[_ngcontent-%COMP%]{position:absolute;top:0;right:0;left:0;z-index:1000;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-search-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ccc solid 1px;background-color:#ccc3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#888;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ccc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon.noc-icon-initials[_ngcontent-%COMP%]{font-size:10px;color:#000}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%]{background-color:#f7f7f7;font-size:12px;width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;padding-bottom:300px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cams-table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cams-table[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;font-weight:700}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{position:sticky;top:72px;background-color:#fff;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;z-index:10}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:6px;padding-bottom:6px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-checkbox-cell[_ngcontent-%COMP%]{padding-left:16px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-expand-cell[_ngcontent-%COMP%]{position:relative;padding-left:8px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-expand-cell[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:70px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]:before{position:absolute;top:0;left:52px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:12px;padding-left:12px;padding-right:10px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-model-saved[_ngcontent-%COMP%]{font-size:18px;padding-left:12px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{top:101px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%]{top:131px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{top:172px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]{padding-left:100px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]:before{left:82px}'],data:{animation:[sc,na("detailExpand",[cr("collapsed",ti({height:"0px",minHeight:"0",visibility:"hidden"})),cr("expanded",ti({height:"*",visibility:"visible"})),Lo("expanded <=> collapsed",Mo("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();function Opt(t,n){1&t&&(H(0,"div",8),ue(1," Log in to Continue "),G())}function Spt(t,n){if(1&t&&Qe(0,"mat-progress-bar",23),2&t){const e=Ae(2);J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}const Ppt=function(){return["fas","caret-right"]};function Tpt(t,n){1&t&&Qe(0,"fa-icon",24),2&t&&J("icon",_i(1,Ppt))}const Ept=function(){return["fas","caret-down"]};function Apt(t,n){1&t&&Qe(0,"fa-icon",24),2&t&&J("icon",_i(1,Ept))}function Lpt(t,n){if(1&t&&(H(0,"div",25)(1,"div",26)(2,"strong"),ue(3,"Title: "),G(),ue(4),G()()),2&t){const e=Ae().$implicit;W(4),Nt("",null==e?null:e.title," ")}}const Dpt=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},kpt=function(){return["fas","tasks"]};function Ipt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",39),et("click",function(){Dt(e);const o=Ae(2).$implicit,r=Ae();return r.noctuaSearchService.filter(r.SearchFilterType.states,o.state)}),H(1,"div",32),Qe(2,"fa-icon",24),G(),H(3,"div",33),ue(4),G()()}if(2&t){const e=Ae(2).$implicit;J("ngClass",M2(5,Dpt,"development"===e.state.name,"production"===e.state.name,"review"===e.state.name))("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(9,kpt)),W(2),Nt(" ",e.state.label," ")}}function Npt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",40),et("click",function(){const r=Dt(e).$implicit,a=Ae(3);return a.noctuaSearchService.filter(a.SearchFilterType.contributors,r)}),H(1,"div",41),ue(2),G(),H(3,"div",33),ue(4),G()()}if(2&t){const e=n.$implicit;Br("border-color",e.color),bf("matTooltip","Add ",e.name," to Filters"),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Br("background-color",e.color),W(1),Nt(" ",e.initials," "),W(2),Nt(" ",e.name?e.name:e.orcid," ")}}const Rpt=function(){return["fas","calendar-day"]},zpt=function(){return["fas","list-alt"]},Fpt=function(){return["fas","sitemap"]};function Hpt(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"div",28),ke(2,Ipt,5,10,"mat-chip",29),G(),H(3,"div",30)(4,"mat-chip",31),et("click",function(){Dt(e);const o=Ae().$implicit,r=Ae();return r.noctuaSearchService.filter(r.SearchFilterType.exactdates,o.date)}),H(5,"div",32),Qe(6,"fa-icon",24),G(),H(7,"div",33),ue(8),G()()(),H(9,"div",34)(10,"mat-chip-list"),ke(11,Npt,5,9,"mat-chip",35),G()(),H(12,"div",36)(13,"a",37),Qe(14,"fa-icon",24),G(),H(15,"a",38),Qe(16,"fa-icon",24),G()()()}if(2&t){const e=Ae().$implicit;W(2),J("ngIf",e.state),W(2),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(14,Rpt)),W(2),Nt(" ",e.date," "),W(3),J("ngForOf",e.contributors),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao)("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(15,zpt)),W(1),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(16,Fpt))}}function Vpt(t,n){if(1&t&&Qe(0,"noc-cam-table",42),2&t){const e=Ae().$implicit,i=Ae();J("cam",e)("options",i.tableOptions)}}const Bpt=function(t){return{"noc-selected":t}},Gpt=function(){return{value:"50"}};function Ypt(t,n){if(1&t){const e=Ln();H(0,"div",9)(1,"div",10),ke(2,Spt,1,2,"mat-progress-bar",11),H(3,"button",12),et("click",function(){return Dt(e).$implicit.toggleExpand()}),ke(4,Tpt,1,2,"fa-icon",13),ke(5,Apt,1,2,"fa-icon",13),G(),H(6,"div",14),ue(7),G(),ke(8,Lpt,5,1,"div",15),Qe(9,"div",16),H(10,"button",17),ue(11," Options "),G(),H(12,"mat-menu",18,19)(14,"button",20),et("click",function(){return Dt(e).$implicit.expandAllActivities(!0)}),ue(15," Expand All "),G(),H(16,"button",20),et("click",function(){return Dt(e).$implicit.expandAllActivities(!1)}),ue(17," Collapse All "),G()()(),ke(18,Hpt,17,17,"div",21),ke(19,Vpt,1,2,"noc-cam-table",22),G()}if(2&t){const e=n.$implicit,i=Di(13),o=Ae();Ro("id","noc-review-cams-"+e.displayId),J("ngClass",wo(11,Bpt,e.id===(null==o.camService.currentMatch?null:o.camService.currentMatch.modelId))),W(1),J("@animateStagger",_i(13,Gpt)),W(1),J("ngIf",e.loading.status),W(2),J("ngIf",!e.expanded),W(1),J("ngIf",e.expanded),W(2),Nt(" ",e.displayNumber," "),W(1),J("ngIf",null==e?null:e.title),W(2),J("matMenuTriggerFor",i),W(8),J("ngIf",!1),W(1),J("ngIf",e.expanded)}}function Upt(t,n){if(1&t){const e=Ln();H(0,"div",43),ue(1," No models to review "),H(2,"a",44),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.cams)}),ue(3," Add Models "),G()()}}let jpt=(()=>{class t{constructor(e,i,o,r,a){this.camService=e,this.noctuaSearchMenuService=i,this.noctuaReviewSearchService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.SearchFilterType=sd,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.cams=[],this.searchResults=[],this.displayReplaceForm={replaceSection:!1,replaceActions:!1},this.tableOptions={displayType:k2.TREE_TABLE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0},this.loadingSpinner={color:"primary",mode:"indeterminate"},this.noctuaFormConfig=Ft,this.searchCriteria={},this._unsubscribeAll=new N,this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(l=>{!l||(this.cams=l)})}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}compareCategory(e,i){return!(!e||!i)&&e.name===i.name}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(pl),de(k1),de(yr),de(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-review"]],decls:12,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-header-title","mr-8"],[1,"noc-review-number"],[1,"noc-cams-results"],["class","noc-cam-container","fxLayout","column","fxLayoutAlign","start stretch",3,"id","ngClass",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-container",3,"id","ngClass"],["fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-heading"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["mat-icon-button","",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","mr-8"],["class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["activityOptionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["class","noc-cam-heading",4,"ngIf"],["class","noc-cam-table",3,"cam","options",4,"ngIf"],[1,"noc-cam-progress",3,"color","mode"],[3,"icon"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],[1,"text-truncate","pr-8"],[1,"noc-cam-heading"],["fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state","pr-12"],["class","noc-table-chip noc-state-chip","fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add date to exact date filter",1,"noc-table-chip","noc-date-chip",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","borderColor","click",4,"ngFor","ngForOf"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","target","_blank","matTooltip","Form Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","mr-4","noc-half-button","noc-r",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","target","_blank","matTooltip","Graph Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-l",3,"href","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",1,"noc-table-chip","noc-state-chip",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon","noc-icon-initials"],[1,"noc-cam-table",3,"cam","options"],[1,"noc-no-info"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,Opt,2,0,"div",1),H(2,"div",2)(3,"span",3),ue(4," Review Models"),G(),ue(5," ("),H(6,"span",4),ue(7),G(),ue(8,") "),G(),H(9,"div",5),ke(10,Ypt,20,14,"div",6),G(),ke(11,Upt,4,0,"div",7),G()),2&e&&(W(1),J("ngIf",!i.noctuaUserService.user),W(6),Nt("",null==i.artBasket?null:i.artBasket.cams.length," models "),W(3),J("ngForOf",i.cams),W(1),J("ngIf",0===(null==i.artBasket?null:i.artBasket.cams.length)))},directives:[Oo,So,Yi,$o,ds,ac,ko,G9,Fo,ps,il,Ql,nl,T2,Tl,A6,V9,tP],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{border-bottom:#DDD solid 1px}[_nghost-%COMP%] .noc-cams[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding:8px 12px;height:80px;min-height:80px;max-height:80px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-review-number[_ngcontent-%COMP%]{color:#555;font-size:12px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%]{position:relative;padding:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container.noc-selected[_ngcontent-%COMP%]{border-left:#97dcfc solid 1px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container.noc-selected[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]:before{left:43px;width:5px;background-color:#97dcfc}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:0;padding:0 10px 0 0;height:35px;min-height:35px;max-height:35px;width:100%;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:0;padding-right:8px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]{position:relative;padding-left:60px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]:before{position:absolute;top:0;left:45px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}'],data:{animation:sc}}),t})();function Wpt(t,n){1&t&&(H(0,"div",17),ue(1," Log in to Continue "),G())}function qpt(t,n){1&t&&(H(0,"th",18),ue(1," Category "),G())}function $pt(t,n){if(1&t&&(H(0,"td",19),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.category," ")}}function Xpt(t,n){1&t&&(H(0,"th",20),ue(1,"Changes"),G())}function Qpt(t,n){if(1&t&&(H(0,"td",21),ue(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.count," ")}}function Zpt(t,n){1&t&&Qe(0,"tr",22)}function Kpt(t,n){1&t&&(H(0,"tr",23),et("click",function(i){return i.stopPropagation()}),G())}function Jpt(t,n){if(1&t){const e=Ln();H(0,"div",24),ue(1," No models to review "),H(2,"a",25),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.camsReview)}),ue(3," Add Models "),G()()}}const e3t=function(){return{value:"50"}};let t3t=(()=>{class t{constructor(e,i,o,r,a,l){this.camService=e,this.noctuaReviewSearchService=i,this.noctuaSearchMenuService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.stats=[],this.displayedColumns=["category","count"],this._unsubscribeAll=new N,this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(u=>{!u||(this.summary=u,this.stats=this.generateStats(u.stats))})}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zr),de(k1),de(pl),de(yr),de(Co),de(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-review-changes"]],decls:22,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-header-title"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"noc-stat-summary"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","250px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["class","noc-no-info",4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"],[1,"noc-no-info"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,Wpt,2,0,"div",1),H(2,"div",2)(3,"span",3),ue(4," Review and submit changes"),G()(),H(5,"div",4)(6,"div",5)(7,"span",6),ue(8),G(),ue(9," changes across "),H(10,"span",6),ue(11),G()(),H(12,"table",7),er(13,8),ke(14,qpt,2,0,"th",9),ke(15,$pt,2,1,"td",10),tr(),er(16,11),ke(17,Xpt,2,0,"th",12),ke(18,Qpt,2,1,"td",13),tr(),ke(19,Zpt,1,0,"tr",14),ke(20,Kpt,1,0,"tr",15),G()(),ke(21,Jpt,4,0,"div",16),G()),2&e&&(W(1),J("ngIf",!i.noctuaUserService.user),W(7),Nt(" ",null==i.summary?null:i.summary.stats.totalChanges," "),W(3),Nt(" ",null==i.summary?null:i.summary.stats.camsCount," models "),W(1),J("dataSource",i.stats)("@animateStagger",_i(8,e3t)),W(7),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns),W(1),J("ngIf",0===(null==i.artBasket?null:i.artBasket.cams.length)))},directives:[Oo,So,Yi,$g,ko,Zf,Qf,Kf,Xf,Jf,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:400px;min-width:400px;max-width:400px}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}'],data:{animation:sc}}),t})();const n3t=["leftDrawer"],i3t=["rightDrawer"];function o3t(t,n){if(1&t&&(H(0,"div",29),ue(1),G()),2&t){const e=Ae();W(1),Nt(" ",null==e.artBasket?null:e.artBasket.cams.length," ")}}function r3t(t,n){1&t&&Qe(0,"noc-search-filter")}function a3t(t,n){1&t&&Qe(0,"noc-search-relation")}function s3t(t,n){1&t&&Qe(0,"noc-search-groups")}function c3t(t,n){1&t&&Qe(0,"noc-search-contributors")}function l3t(t,n){1&t&&Qe(0,"noc-search-organisms")}function d3t(t,n){1&t&&Qe(0,"noc-search-history")}function u3t(t,n){if(1&t&&(H(0,"h4",30),ue(1," You must "),H(2,"a",31),ue(3," Login "),G(),ue(4," to create or edit models. Models may be viewed without login. "),G()),2&t){const e=Ae();W(2),Ro("href",e.noctuaFormConfigService.loginUrl,ao)}}const h3t=function(t){return{"noc-selected":t}};function p3t(t,n){if(1&t){const e=Ln();H(0,"div",32)(1,"div",33)(2,"div",34),ue(3," Create "),G(),H(4,"div",35)(5,"button",36),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.STANDARD_ANNOTATIONS)}),ue(6," STANDARD ANNOTATIONS "),Qe(7,"br"),ue(8," EDITOR "),H(9,"div",37),ue(10," beta "),G()(),H(11,"button",38),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.VISUAL_PATHWAY_EDITOR)}),ue(12," PATHWAY "),Qe(13,"br"),ue(14," EDITOR "),G(),H(15,"button",38),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.FORM)}),ue(16," FORM "),Qe(17,"br"),ue(18,"EDITOR "),G(),H(19,"button",39),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.GRAPH_EDITOR)}),ue(20," GRAPH "),Qe(21,"br"),ue(22," EDITOR "),G()()(),H(23,"div",40)(24,"div",34)(25,"span"),ue(26,"Review"),G()(),H(27,"div",35)(28,"button",41),et("click",function(){return Dt(e),Ae().toggleReviewMode()}),ue(29," ANNOTATION REVIEW "),Qe(30,"br"),ue(31," TOOL "),G()()()()}if(2&t){const e=Ae();W(28),J("ngClass",wo(1,h3t,e.noctuaSearchMenuService.reviewMode!==e.ReviewMode.off))}}const DF=function(t,n){return{"noc-active":t,"noc-visited":n}},kF=function(t){return{"noc-visited":t}};function f3t(t,n){if(1&t){const e=Ln();H(0,"div",42)(1,"div",43),Qe(2,"div",44),H(3,"button",45),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.cams)}),H(4,"div",46),ue(5,"Search"),G(),Qe(6,"br"),H(7,"div",47),ue(8,"Add/remove to review"),G(),H(9,"div",29),ue(10),G()(),Qe(11,"div",48),H(12,"button",45),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.camsReview)}),H(13,"div",46),ue(14,"Review"),G(),Qe(15,"br"),H(16,"div",47),ue(17,"Edit models"),G()(),Qe(18,"div",48),H(19,"button",45),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.reviewChanges)}),H(20,"div",46),ue(21,"Checkout"),G(),Qe(22,"br"),H(23,"div",47),ue(24,"Review and submit changes"),G()(),Qe(25,"div",49),G()()}if(2&t){const e=Ae();W(3),J("ngClass",x0(7,DF,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.cams,e.noctuaSearchMenuService.reviewLevel>0)),W(7),Nt(" ",null==e.artBasket?null:e.artBasket.cams.length," selected "),W(1),J("ngClass",wo(10,kF,e.noctuaSearchMenuService.reviewLevel>0)),W(1),J("ngClass",x0(12,DF,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.camsReview,e.noctuaSearchMenuService.reviewLevel>1)),W(6),J("ngClass",wo(15,kF,e.noctuaSearchMenuService.reviewLevel>1)),W(1),J("ngClass",x0(17,DF,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.reviewChanges,e.noctuaSearchMenuService.reviewLevel>2)),W(6),J("ngClass",wo(20,kF,e.noctuaSearchMenuService.reviewLevel>2))}}function g3t(t,n){1&t&&Qe(0,"noc-cam-form",50),2&t&&(Ae(),J("panelDrawer",Di(43)))}function m3t(t,n){1&t&&Qe(0,"noc-copy-model",51),2&t&&(Ae(),J("panelDrawer",Di(43))("panelSide","right"))}const a8=function(t){return{"noc-active":t}},_3t=function(){return["fas","search"]},C3t=function(){return["fas","user"]},v3t=function(){return["fas","users"]},b3t=function(){return["fas","paw"]},x3t=function(){return["fas","history"]},y3t=function(){return["fas","shopping-basket"]},bse=function(){return{delay:"100ms",y:"25px"}},xse=function(t){return{value:"*",params:t}},w3t=[{path:"s",component:(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.route=e,this.camService=i,this.noctuaReviewSearchService=o,this.noctuaFormConfigService=r,this.noctuaCommonMenuService=a,this.noctuaSearchMenuService=l,this.noctuaUserService=u,this.noctuaSearchService=f,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this.WorkbenchId=eh,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.artBasket=new C_,this.cams=[],this._unsubscribeAll=new N,this.route.queryParams.subscribe(w=>{const T=w.barista_token||null;this.noctuaSearchService.paramsToSearch(w),this.noctuaUserService.getUser(T)}),this.noctuaSearchService.onCamsPageChanged.pipe(Yn(this._unsubscribeAll)).subscribe(w=>{!w||(this.camPage=w)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(w=>{void 0!==w&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.noctuaSearchService.setup(),this.noctuaReviewSearchService.setup())})}ngOnInit(){this.noctuaSearchMenuService.setLeftDrawer(this.leftDrawer),this.noctuaSearchMenuService.setRightDrawer(this.rightDrawer),this.rightDrawer.open(),this.noctuaSearchService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.cams=e}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngAfterViewInit(){this.noctuaSearchMenuService.resultsViewScrollbar=this.scrollbarRef}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}selectMiddlePanel(e){const i=this;switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:i.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e),this.noctuaSearchMenuService.selectMiddlePanel(fa.cams)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openBasketPanel(){this.openLeftDrawer(Is.artBasket),this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview),this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0}toggleReviewMode(){this.noctuaSearchMenuService.reviewMode===hl.off?(this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0):this.noctuaSearchMenuService.reviewMode===hl.on&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaSearchMenuService.reviewMode=hl.off,this.noctuaSearchMenuService.selectMiddlePanel(fa.cams),this.noctuaSearchMenuService.selectLeftPanel(Is.filter),this.noctuaSearchMenuService.isReviewMode=!1)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(lu),de(Zr),de(k1),de(Co),de(ul),de(pl),de(yr),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-search"]],viewQuery:function(e,i){if(1&e&&(_o(n3t,7),_o(i3t,7),_o(s4,5)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first),fi(o=gi())&&(i.scrollbarRef=o.first)}},decls:47,vars:71,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","matTooltip","Filter",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],["mat-icon-button","","color","","matTooltip","Browse by contributor",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Browse by group",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Search by organism",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","History",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Art Basket",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["class","noc-badge",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"hidden"],[1,"noc-section-body","w-100-p",3,"perfectScrollbar"],["scrollbarRef",""],["fxLayout","column","fxLayoutAlign","center center",1,"header","accent","p-8","w-100-p"],["class","",4,"ngIf"],["class","noc-create","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-art-info","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"noc-middle-panel","w-100-p"],[1,"w-100-p",3,"hidden","isReviewMode"],[1,"w-100-p"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],[1,"noc-badge"],[1,""],["mat-button","",1,"noc-login-button",3,"href"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-create"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","75",1,"noc-create-section"],[1,"noc-heading"],["fxLayout","row","fxLayoutAlign","start center"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-r",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-badge"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-m",3,"click"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-l",3,"click"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","25",1,"noc-create-section"],["mat-raised-button","","color","",1,"noc-rounded-button","noc-half-button","noc-review-mode-button",3,"ngClass","click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-art-info"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-art-tabs"],["fxFlex","",1,"noc-line","noc-visited"],["mat-stroked-button","","color","",1,"",3,"ngClass","click"],[1,"noc-title"],[1,"noc-description"],["fxFlex","80px",1,"noc-line",3,"ngClass"],["fxFlex","",1,"noc-line",3,"ngClass"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"button",2),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.filter)}),Qe(3,"fa-icon",3),G(),H(4,"button",4),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.contributor)}),Qe(5,"fa-icon",3),G(),H(6,"button",5),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.group)}),Qe(7,"fa-icon",3),G(),H(8,"button",6),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.organism)}),Qe(9,"fa-icon",3),G(),H(10,"button",7),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.history)}),Qe(11,"fa-icon",3),G(),H(12,"button",8),et("click",function(){return i.openBasketPanel()}),ke(13,o3t,2,1,"div",9),Qe(14,"fa-icon",3),G()(),H(15,"mat-drawer-container",10)(16,"mat-drawer",11,12)(18,"div",13),ke(19,r3t,1,0,"noc-search-filter",14),ke(20,a3t,1,0,"noc-search-relation",14),ke(21,s3t,1,0,"noc-search-groups",14),ke(22,c3t,1,0,"noc-search-contributors",14),ke(23,l3t,1,0,"noc-search-organisms",14),ke(24,d3t,1,0,"noc-search-history",14),Qe(25,"noc-art-basket",15),G()(),H(26,"mat-drawer-content",16,17)(28,"div",18)(29,"h1"),ue(30," WELCOME TO NOCTUA "),G(),H(31,"h3"),ue(32," Noctua is a web-based, collaborative Gene Ontology (GO) annotation tool developed by the GO Consortium. It can be used to create standard GO annotations as well as more expressive models of biological processes, known as GO-CAMs (Gene Ontology Causal Activity Models) "),G(),ke(33,u3t,5,1,"h4",19),ke(34,p3t,32,3,"div",20),G(),ke(35,f3t,26,22,"div",21),H(36,"div",22),Qe(37,"noc-cams-table",23)(38,"noc-cams-review",15)(39,"noc-cams-review-changes",15),G(),H(40,"div",24),Qe(41,"app-footer"),G()(),H(42,"mat-drawer",25,26)(44,"div",13),ke(45,g3t,1,1,"noc-cam-form",27),ke(46,m3t,1,2,"noc-copy-model",28),G()()()()),2&e&&(W(2),J("ngClass",wo(47,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.filter))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(49,_3t)),W(1),J("ngClass",wo(50,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.contributor))("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(52,C3t)),W(1),J("ngClass",wo(53,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.group))("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(55,v3t)),W(1),J("ngClass",wo(56,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.organism))("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(58,b3t)),W(1),J("ngClass",wo(59,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.history))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(61,x3t)),W(1),J("ngClass",wo(62,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.artBasket))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("ngIf",(null==i.artBasket?null:i.artBasket.cams.length)>0),W(1),J("icon",_i(64,y3t)),W(1),J("hasBackdrop",!1),W(3),J("ngSwitch",i.noctuaSearchMenuService.selectedLeftPanel),W(1),J("ngSwitchCase",i.LeftPanel.filter),W(1),J("ngSwitchCase",i.LeftPanel.relation),W(1),J("ngSwitchCase",i.LeftPanel.group),W(1),J("ngSwitchCase",i.LeftPanel.contributor),W(1),J("ngSwitchCase",i.LeftPanel.organism),W(1),J("ngSwitchCase",i.LeftPanel.history),W(1),J("hidden",i.noctuaSearchMenuService.selectedLeftPanel!==i.LeftPanel.artBasket),W(1),J("perfectScrollbar",i.scrollbarConfig),W(3),J("@animate",wo(66,xse,_i(65,bse))),W(2),J("@animate",wo(69,xse,_i(68,bse))),W(2),J("ngIf",!i.noctuaUserService.user),W(1),J("ngIf",i.noctuaUserService.user),W(1),J("ngIf",i.noctuaSearchMenuService.reviewMode!==i.ReviewMode.off),W(2),J("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.cams)("isReviewMode",i.noctuaSearchMenuService.isReviewMode),W(1),J("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.camsReview),W(1),J("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.reviewChanges),W(5),J("ngSwitch",i.noctuaSearchMenuService.selectedRightPanel),W(1),J("ngSwitchCase",i.RightPanel.camForm),W(1),J("ngSwitchCase",i.RightPanel.copyModel))},directives:[Oo,So,Fo,Tl,ds,ac,ps,Yi,Rf,ko,Nf,bd,iu,jht,Qht,Kht,e0t,n0t,s0t,w0t,A0,s4,V9,Mpt,jpt,t3t,NN,cS,_S],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;font-size:20px;color:#3b599880}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:20px;height:20px;color:#fff;background-color:#ff9800;font-size:10px;text-align:center;line-height:20px}[_nghost-%COMP%] .noc-welcome[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:10px;background-image:linear-gradient(to right,#00174f,rgba(0,23,79,.8),rgba(0,23,79,.5)),url(gene.373d39c394531926.jpeg);background-blend-mode:initial;background-size:cover;background-position:top;padding-top:50px!important;position:relative;flex:1 0 auto;height:320px;min-width:800px;max-height:320px;text-align:center;overflow:hidden}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%]{height:200px;min-width:600px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:40px;font-weight:300;letter-spacing:.01em;text-align:center;margin-top:0;margin-bottom:16px;color:#ffffffe6}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{max-width:80%;text-align:center;font-weight:300;letter-spacing:.03em;margin:0;color:#fff;line-height:1.5}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding-top:10px;max-width:80%;text-align:center;font-weight:300;font-size:12px;margin:0;color:#fffc}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .noc-login-button[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px;margin-top:20px;background-color:#52a16c;color:#eee}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{margin-top:20px;padding:8px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-create-section[_ngcontent-%COMP%]{margin:8px;padding:8px;background-color:#039be580}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{width:100%;color:#eee;font-size:16px;font-weight:700;text-transform:uppercase;margin-bottom:8px;overflow:hidden}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:after{background-color:#ddd;content:"";display:inline-block;height:1px;position:relative;vertical-align:middle;width:50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:before{right:.5em;margin-left:-50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:after{left:.5em;margin-right:-50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 12px;color:#039be5;height:50px;min-height:50px;max-height:50px;line-height:20px;min-width:120px;font-size:12px;text-transform:capitalize!important;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:8px;border-radius:7px;width:40px;height:15px;color:#eee;background-color:#f0b74b;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button.noc-selected[_ngcontent-%COMP%]{background-color:#cdf8cd;box-shadow:10px 10px 40px #e3e3e3;color:#000}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%]{margin-bottom:5px;position:sticky;position:-webkit-sticky;top:0;z-index:1001;padding:0;height:100px;min-height:100px;max-height:100px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{display:block;height:5px;border-top:#ccc solid 1px;border-bottom:#ccc solid 1px;background-color:#ccc;padding:0}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line.noc-visited[_ngcontent-%COMP%]{border-top:#768bb7 solid 1px;border-bottom:#768bb7 solid 1px;background-color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:180px;min-width:180px;max-width:180px;line-height:12px!important;border:#bbb solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-12px;border-radius:7px;width:70px;height:15px;color:#eee;background-color:#ff9800;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;color:#aaa}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#bbb}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%]{border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{border:#355190 solid 1px;border-bottom:#355190 solid 5px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-icon-separator[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{min-height:500px;border-bottom:200px}[_nghost-%COMP%] .noc-table-container[_ngcontent-%COMP%]{min-height:500px}'],data:{animation:sc}}),t})()}];let yse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[D1,va,xd.forChild(w3t),Yf,$p,$_,nv,M4,MO]]}),t})();var AP=(()=>(function(t){t.home="home",t.checklist="checklist",t.obsolete="obsolete",t.terms="terms",t.group="group",t.contributor="contributor",t.calendar="calendar",t.chat="chat",t.notes="notes",t.activities="activities"}(AP||(AP={})),AP))(),Ym=(()=>(function(t){t.home="home",t.cams="cams",t.camsReview="camReview",t.reviewChanges="reviewChanges"}(Ym||(Ym={})),Ym))();let M3t=(()=>{class t{constructor(){this.isReviewMode=!1,this.reviewLevel=0,this.selectedLeftPanel=AP.obsolete,this.selectedMiddlePanel=Ym.cams}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e,e===Ym.cams?this.reviewLevel=0:e===Ym.camsReview?this.reviewLevel=1:e===Ym.reviewChanges&&(this.reviewLevel=2),this.scrollToTop()}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this.leftDrawer=e}openLeftDrawer(){return this.leftDrawer.open()}closeLeftDrawer(){return this.leftDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this.leftDrawer.toggle()}setRightDrawer(e){this.rightDrawer=e}openRightDrawer(){return this.rightDrawer.open()}closeRightDrawer(){return this.rightDrawer.close()}scrollToTop(){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToTop(0)}))})}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const O3t=["leftDrawer"],S3t=["rightDrawer"],P3t=function(){return["fas","plus"]},s8=function(t){return{"noc-active":t}},c8=function(){return["fas","home"]},wse=function(){return{delay:"100ms",y:"25px"}},Mse=function(t){return{value:"*",params:t}},T3t=[{path:"doctor",component:(()=>{class t{constructor(e,i,o,r,a,l,u,f,w){this.route=e,this.camService=i,this.noctuaDoctorMenuService=o,this.noctuaReviewSearchService=r,this.noctuaFormConfigService=a,this.noctuaCommonMenuService=l,this.noctuaSearchMenuService=u,this.noctuaUserService=f,this.noctuaSearchService=w,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.artBasket=new C_,this.searchResults=[],this.modelId="",this.searchCriteria={},this.searchFormData=[],this.cams=[],this._unsubscribeAll=new N,this.route.queryParams.subscribe(T=>{this.noctuaUserService.getUser(T.barista_token||null)}),this.noctuaSearchService.onCamsPageChanged.pipe(Yn(this._unsubscribeAll)).subscribe(T=>{!T||(this.camPage=T)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(T=>{void 0!==T&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.noctuaSearchService.setup(),this.noctuaReviewSearchService.setup())})}ngOnInit(){this.noctuaSearchMenuService.setLeftDrawer(this.leftDrawer),this.noctuaSearchMenuService.setRightDrawer(this.rightDrawer),this.rightDrawer.open(),this.noctuaSearchService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.cams=e}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngAfterViewInit(){this.noctuaSearchMenuService.resultsViewScrollbar=this.scrollbarRef}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}selectMiddlePanel(e){const i=this;switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:i.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e),this.noctuaSearchMenuService.selectMiddlePanel(fa.cams)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openBasketPanel(){this.openLeftDrawer(Is.artBasket),this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview),this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0}toggleReviewMode(){this.noctuaSearchMenuService.reviewMode===hl.off?(this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0):this.noctuaSearchMenuService.reviewMode===hl.on&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaSearchMenuService.reviewMode=hl.off,this.noctuaSearchMenuService.selectMiddlePanel(fa.cams),this.noctuaSearchMenuService.selectLeftPanel(Is.filter),this.noctuaSearchMenuService.isReviewMode=!1)}search(){this.noctuaSearchService.search(this.searchForm.value)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(lu),de(Zr),de(M3t),de(k1),de(Co),de(ul),de(pl),de(yr),de(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-doctor"]],viewQuery:function(e,i){if(1&e&&(_o(O3t,7),_o(S3t,7),_o(s4,5)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first),fi(o=gi())&&(i.scrollbarRef=o.first)}},decls:47,vars:58,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-button","","color","","fxLayout","row","fxLayoutAlign","start center","matTooltip","Filter",1,"noc-rounded-button","green-400-bg",3,"matTooltipPosition","matTooltipShowDelay"],[1,"noc-icon",3,"icon"],["fxFlex","",1,"noc-label"],["mat-button","","color","","fxLayout","row","fxLayoutAlign","start center","matTooltip","Board home",1,"",3,"ngClass","matTooltipPosition","matTooltipShowDelay"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[1,"noc-section-body","w-100-p",3,"perfectScrollbar"],["scrollbarRef",""],["fxLayout","column","fxLayoutAlign","center center",1,"header","accent","p-8","w-100-p"],[1,"noc-middle-panel","w-100-p"],[1,"w-100-p"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"button",2),Qe(3,"fa-icon",3),H(4,"div",4),ue(5," Create "),G()(),H(6,"button",5),Qe(7,"fa-icon",3),H(8,"div",4),ue(9," Home "),G()(),H(10,"button",5),Qe(11,"fa-icon",3),H(12,"div",4),ue(13," Obsolete Manager "),G()(),H(14,"button",5),Qe(15,"fa-icon",3),H(16,"div",4),ue(17," My Terms "),G()(),H(18,"button",5),Qe(19,"fa-icon",3),H(20,"div",4),ue(21," Checklist "),G()(),H(22,"button",5),Qe(23,"fa-icon",3),H(24,"div",4),ue(25," Calendar "),G()(),H(26,"button",5),Qe(27,"fa-icon",3),H(28,"div",4),ue(29," Chat "),G()()(),H(30,"mat-drawer-container",6)(31,"mat-drawer",7,8),Qe(33,"div",9),G(),H(34,"mat-drawer-content",10,11)(36,"div",12)(37,"h1"),ue(38," WELCOME TO NOCTUA DOCTOR "),G(),H(39,"h3"),ue(40," Notify "),G()(),Qe(41,"div",13),H(42,"div",14),Qe(43,"app-footer"),G()(),H(44,"mat-drawer",15,16),Qe(46,"div",9),G()()()),2&e&&(W(2),J("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(33,P3t)),W(3),J("ngClass",wo(34,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(36,c8)),W(3),J("ngClass",wo(37,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(39,c8)),W(3),J("ngClass",wo(40,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(42,c8)),W(3),J("ngClass",wo(43,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(45,c8)),W(3),J("ngClass",wo(46,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(48,c8)),W(3),J("ngClass",wo(49,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(51,c8)),W(3),J("hasBackdrop",!1),W(3),J("ngSwitch",i.noctuaSearchMenuService.selectedLeftPanel),W(1),J("perfectScrollbar",i.scrollbarConfig),W(3),J("@animate",wo(53,Mse,_i(52,wse))),W(2),J("@animate",wo(56,Mse,_i(55,wse))),W(7),J("ngSwitch",i.noctuaSearchMenuService.selectedRightPanel))},directives:[Oo,So,Fo,Tl,ps,ko,ds,ac,Rf,Nf,bd,A0,s4,NN],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:12px 8px;height:100%;min-height:100%;max-height:100%;width:200px;min-width:200px;max-width:200px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:8px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.btn-flat[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-welcome[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:10px;background-image:linear-gradient(to right,#00174f,rgba(0,23,79,.8),rgba(0,23,79,.5)),url(gene.373d39c394531926.jpeg);background-blend-mode:initial;background-size:cover;background-position:top;padding-top:50px!important;position:relative;flex:1 0 auto;height:280px;min-width:800px;max-height:280px;text-align:center;overflow:hidden}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%]{height:200px;min-width:600px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:40px;font-weight:300;letter-spacing:.01em;text-align:center;margin-top:0;margin-bottom:16px;color:#ffffffe6}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{max-width:80%;text-align:center;font-weight:300;letter-spacing:.03em;margin:0;color:#fff;line-height:1.5}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding-top:10px;max-width:80%;text-align:center;font-weight:300;font-size:12px;margin:0;color:#fffc}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .noc-login-button[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px;margin-top:20px;background-color:#52a16c;color:#eee}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 8px;color:#039be5;width:250px;font-weight:500;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:200px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button.noc-selected[_ngcontent-%COMP%]{background-color:#cdf8cd;box-shadow:10px 10px 40px #e3e3e3;color:#000}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%]{margin-bottom:5px;position:sticky;position:-webkit-sticky;top:0;z-index:1001;padding:0;height:100px;min-height:100px;max-height:100px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{display:block;height:5px;border-top:#ccc solid 1px;border-bottom:#ccc solid 1px;background-color:#ccc;padding:0}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line.noc-visited[_ngcontent-%COMP%]{border-top:#768bb7 solid 1px;border-bottom:#768bb7 solid 1px;background-color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:180px;min-width:180px;max-width:180px;line-height:12px!important;border:#bbb solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-12px;border-radius:7px;width:70px;height:15px;color:#eee;background-color:#ff9800;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;color:#aaa}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#bbb}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%]{border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{border:#355190 solid 1px;border-bottom:#355190 solid 5px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-icon-separator[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{min-height:500px;border-bottom:200px}[_nghost-%COMP%] .noc-table-container[_ngcontent-%COMP%]{min-height:500px}'],data:{animation:sc}}),t})()}];let Ose=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[D1,va,xd.forChild(T3t),Yf,$p,$_,nv,M4,MO]]}),t})();function Sse(t,n,e,i,o,r,a){try{var l=t[r](a),u=l.value}catch(f){return void e(f)}l.done?n(u):Promise.resolve(u).then(i,o)}const l8=(t,n)=>{for(let e in n)t[e]=n[e];return t},Yr=(t,n)=>Array.from(t.querySelectorAll(n)),IF=(t,n,e)=>{e?t.classList.add(n):t.classList.remove(n)},d8=t=>{if("string"==typeof t){if("null"===t)return null;if("true"===t)return!0;if("false"===t)return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},L4=(t,n)=>{t.style.transform=n},LP=(t,n)=>{let e=t.matches||t.matchesSelector||t.msMatchesSelector;return!(!e||!e.call(t,n))},Rd=(t,n)=>{if("function"==typeof t.closest)return t.closest(n);for(;t;){if(LP(t,n))return t;t=t.parentNode}return null},A3t=(t,n,e,i="")=>{let o=t.querySelectorAll("."+e);for(let a=0;a{let n=document.createElement("style");return n.type="text/css",t&&t.length>0&&(n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))),document.head.appendChild(n),n},Pse=()=>{let t={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,n=>{t[n.split("=").shift()]=n.split("=").pop()});for(let n in t)t[n]=d8(unescape(t[n]));return void 0!==t.dependencies&&delete t.dependencies,t},L3t=(t,n=0)=>{if(t){let e,i=t.style.height;return t.style.height="0px",t.parentNode.style.height="auto",e=n-t.parentNode.offsetHeight,t.style.height=i+"px",t.parentNode.style.removeProperty("height"),e}return n},D3t={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},DP=navigator.userAgent,u8=/(iphone|ipod|ipad|android)/gi.test(DP)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;/chrome/i.test(DP)&&/edge/i.test(DP);const Tse=/android/gi.test(DP);var Ese={};Object.defineProperty(Ese,"__esModule",{value:!0});var Ase=Object.assign||function(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof Kt?pn(n(document.querySelectorAll(Kt)),kn):pn([Kt],kn)[0]}}("undefined"==typeof window?null:window);class I3t{constructor(n){this.Reveal=n,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(n){let e=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof e&&(e=n.hasAttribute("data-preload")),e}load(n,e={}){n.style.display=this.Reveal.getConfig().display,Yr(n,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(o=>{("IFRAME"!==o.tagName||this.shouldPreload(o))&&(o.setAttribute("src",o.getAttribute("data-src")),o.setAttribute("data-lazy-loaded",""),o.removeAttribute("data-src"))}),Yr(n,"video, audio").forEach(o=>{let r=0;Yr(o,"source[data-src]").forEach(a=>{a.setAttribute("src",a.getAttribute("data-src")),a.removeAttribute("data-src"),a.setAttribute("data-lazy-loaded",""),r+=1}),u8&&"VIDEO"===o.tagName&&o.setAttribute("playsinline",""),r>0&&o.load()});let i=n.slideBackgroundElement;if(i){i.style.display="block";let o=n.slideBackgroundContentElement,r=n.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");let l=n.getAttribute("data-background-image"),u=n.getAttribute("data-background-video"),f=n.hasAttribute("data-background-video-loop"),w=n.hasAttribute("data-background-video-muted");if(l)o.style.backgroundImage=/^data:/.test(l.trim())?`url(${l.trim()})`:l.split(",").map(T=>`url(${((U="")=>encodeURI(U).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,ie=>`%${ie.charCodeAt(0).toString(16).toUpperCase()}`))(decodeURI(T.trim()))})`).join(",");else if(u&&!this.Reveal.isSpeakerNotes()){let T=document.createElement("video");f&&T.setAttribute("loop",""),w&&(T.muted=!0),u8&&(T.muted=!0,T.setAttribute("playsinline","")),u.split(",").forEach(U=>{let ie=((se="")=>D3t[se.split(".").pop()])(U);T.innerHTML+=ie?``:``}),o.appendChild(T)}else if(r&&!0!==e.excludeIframes){let T=document.createElement("iframe");T.setAttribute("allowfullscreen",""),T.setAttribute("mozallowfullscreen",""),T.setAttribute("webkitallowfullscreen",""),T.setAttribute("allow","autoplay"),T.setAttribute("data-src",r),T.style.width="100%",T.style.height="100%",T.style.maxHeight="100%",T.style.maxWidth="100%",o.appendChild(T)}}let a=o.querySelector("iframe[data-src]");a&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(r)&&a.getAttribute("src")!==r&&a.setAttribute("src",r)}this.layout(n)}layout(n){Array.from(n.querySelectorAll(".r-fit-text")).forEach(e=>{k3t(e,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})})}unload(n){n.style.display="none";let e=this.Reveal.getSlideBackground(n);e&&(e.style.display="none",Yr(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),Yr(n,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),Yr(n,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let n=(e,i,o)=>{Yr(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(r=>{let a=r.getAttribute(e);a&&-1===a.indexOf(o)&&r.setAttribute(e,a+(/\?/.test(a)?"&":"?")+o)})};n("src","youtube.com/embed/","enablejsapi=1"),n("data-src","youtube.com/embed/","enablejsapi=1"),n("src","player.vimeo.com/","api=1"),n("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(n){n&&!this.Reveal.isSpeakerNotes()&&(Yr(n,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),Yr(n,"video, audio").forEach(e=>{if(Rd(e,".fragment")&&!Rd(e,".fragment.visible"))return;let i=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof i&&(i=e.hasAttribute("data-autoplay")||!!Rd(e,".slide-background")),i&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(u8){let o=e.play();o&&"function"==typeof o.catch&&!1===e.controls&&o.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}),Yr(n,"iframe[src]").forEach(e=>{Rd(e,".fragment")&&!Rd(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),Yr(n,"iframe[data-src]").forEach(e=>{Rd(e,".fragment")&&!Rd(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(n){let e=!!Rd(n.target,"html"),i=!!Rd(n.target,".present");e&&i&&(n.target.currentTime=0,n.target.play()),n.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(n){let e=n.target;if(e&&e.contentWindow){let i=!!Rd(n.target,"html"),o=!!Rd(n.target,".present");if(i&&o){let r=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof r&&(r=e.hasAttribute("data-autoplay")||!!Rd(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&r?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&r?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(n,e={}){e=l8({unloadIframes:!0},e),n&&n.parentNode&&(Yr(n,"video, audio").forEach(i=>{i.hasAttribute("data-ignore")||"function"!=typeof i.pause||(i.setAttribute("data-paused-by-reveal",""),i.pause())}),Yr(n,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.startEmbeddedIframe)}),Yr(n,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&"function"==typeof i.contentWindow.postMessage&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),Yr(n,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&"function"==typeof i.contentWindow.postMessage&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===e.unloadIframes&&Yr(n,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}}class N3t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(n,e){let i="none";n.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===n.showSlideNumber||"speaker"===n.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(n=this.Reveal.getCurrentSlide()){let e,i=this.Reveal.getConfig(),o="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(n);else{"string"==typeof i.slideNumber&&(o=i.slideNumber),/c/.test(o)||1!==this.Reveal.getHorizontalSlides().length||(o="c");let a=n&&"uncounted"===n.dataset.visibility?0:1;switch(e=[],o){case"c":e.push(this.Reveal.getSlidePastCount(n)+a);break;case"c/t":e.push(this.Reveal.getSlidePastCount(n)+a,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(n);e.push(l.h+a);let u="h/v"===o?"/":".";this.Reveal.isVerticalSlide(n)&&e.push(u,l.v+1)}}let r="#"+this.Reveal.location.getHash(n);return this.formatNumber(e[0],e[1],e[2],r)}formatNumber(n,e,i,o="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i)?`\n\t\t\t\t\t${n}\n\t\t\t\t\t`:`\n\t\t\t\t\t${n}\n\t\t\t\t\t${e}\n\t\t\t\t\t${i}\n\t\t\t\t\t`}destroy(){this.element.remove()}}class R3t{constructor(n){this.Reveal=n,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;const n=this.jumpInput.value.trim("");let e=this.Reveal.location.getIndicesFromHash(n,{oneBasedIndex:!0});return!e&&/\S+/i.test(n)&&n.length>1&&(e=this.search(n)),e&&""!==n?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(n){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),n)}search(n){const e=new RegExp("\\b"+n.trim()+"\\b","i"),i=this.Reveal.getSlides().find(o=>e.test(o.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(n){13===n.keyCode?this.confirm():27===n.keyCode&&(this.cancel(),n.stopImmediatePropagation())}onInput(n){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}}const RF=t=>{let n=t.match(/^#([0-9a-f]{3})$/i);if(n&&n[1])return n=n[1],{r:17*parseInt(n.charAt(0),16),g:17*parseInt(n.charAt(1),16),b:17*parseInt(n.charAt(2),16)};let e=t.match(/^#([0-9a-f]{6})$/i);if(e&&e[1])return e=e[1],{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)};let i=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};let o=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return o?{r:parseInt(o[1],10),g:parseInt(o[2],10),b:parseInt(o[3],10),a:parseFloat(o[4])}:null};class z3t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(n=>{let e=this.createBackground(n,this.element);Yr(n,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(n,e){let i=document.createElement("div");i.className="slide-background "+n.className.replace(/present|past|future/,"");let o=document.createElement("div");return o.className="slide-background-content",i.appendChild(o),e.appendChild(i),n.slideBackgroundElement=i,n.slideBackgroundContentElement=o,this.sync(n),i}sync(n){const e=n.slideBackgroundElement,i=n.slideBackgroundContentElement,o={background:n.getAttribute("data-background"),backgroundSize:n.getAttribute("data-background-size"),backgroundImage:n.getAttribute("data-background-image"),backgroundVideo:n.getAttribute("data-background-video"),backgroundIframe:n.getAttribute("data-background-iframe"),backgroundColor:n.getAttribute("data-background-color"),backgroundGradient:n.getAttribute("data-background-gradient"),backgroundRepeat:n.getAttribute("data-background-repeat"),backgroundPosition:n.getAttribute("data-background-position"),backgroundTransition:n.getAttribute("data-background-transition"),backgroundOpacity:n.getAttribute("data-background-opacity")},r=n.hasAttribute("data-preload");n.classList.remove("has-dark-background"),n.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",o.background&&(/^(http|file|\/\/)/gi.test(o.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(o.background)?n.setAttribute("data-background-image",o.background):e.style.background=o.background),(o.background||o.backgroundColor||o.backgroundGradient||o.backgroundImage||o.backgroundVideo||o.backgroundIframe)&&e.setAttribute("data-background-hash",o.background+o.backgroundSize+o.backgroundImage+o.backgroundVideo+o.backgroundIframe+o.backgroundColor+o.backgroundGradient+o.backgroundRepeat+o.backgroundPosition+o.backgroundTransition+o.backgroundOpacity),o.backgroundSize&&e.setAttribute("data-background-size",o.backgroundSize),o.backgroundColor&&(e.style.backgroundColor=o.backgroundColor),o.backgroundGradient&&(e.style.backgroundImage=o.backgroundGradient),o.backgroundTransition&&e.setAttribute("data-background-transition",o.backgroundTransition),r&&e.setAttribute("data-preload",""),o.backgroundSize&&(i.style.backgroundSize=o.backgroundSize),o.backgroundRepeat&&(i.style.backgroundRepeat=o.backgroundRepeat),o.backgroundPosition&&(i.style.backgroundPosition=o.backgroundPosition),o.backgroundOpacity&&(i.style.opacity=o.backgroundOpacity);let a=o.backgroundColor;if(!a||!RF(a)){let u=window.getComputedStyle(e);u&&u.backgroundColor&&(a=u.backgroundColor)}if(a){const u=RF(a);u&&0!==u.a&&("string"==typeof(l=a)&&(l=RF(l)),n.classList.add((l?(299*l.r+587*l.g+114*l.b)/1e3:null)<128?"has-dark-background":"has-light-background"))}var l}update(n=!1){let e=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),o=null,r=this.Reveal.getConfig().rtl?"future":"past",a=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((l,u)=>{l.classList.remove("past","present","future"),ui.h?l.classList.add(a):(l.classList.add("present"),o=l),(n||u===i.h)&&Yr(l,".slide-background").forEach((f,w)=>{f.classList.remove("past","present","future"),wi.v?f.classList.add("future"):(f.classList.add("present"),u===i.h&&(o=f))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),o){this.Reveal.slideContent.startEmbeddedContent(o);let l=o.querySelector(".slide-background-content");if(l){let w=l.style.backgroundImage||"";/\.gif/i.test(w)&&(l.style.backgroundImage="",window.getComputedStyle(l),l.style.backgroundImage=w)}let u=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,f=o.getAttribute("data-background-hash");f&&f===u&&o!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=o}e&&["has-light-background","has-dark-background"].forEach(l=>{e.classList.contains(l)?this.Reveal.getRevealElement().classList.add(l):this.Reveal.getRevealElement().classList.remove(l)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){let n=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e,i,o=this.Reveal.getHorizontalSlides(),r=this.Reveal.getVerticalSlides(),a=this.element.style.backgroundSize.split(" ");1===a.length?e=i=parseInt(a[0],10):(e=parseInt(a[0],10),i=parseInt(a[1],10));let l,u,f=this.element.offsetWidth,w=o.length;l="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:w>1?(e-f)/(w-1):0,u=l*n.h*-1;let T,U,ie=this.element.offsetHeight,se=r.length;T="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-ie)/(se-1),U=se>0?T*n.v:0,this.element.style.backgroundPosition=u+"px "+-U+"px"}}destroy(){this.element.remove()}}const Um=".slides section",jm=".slides>section",Lse=".slides>section.present>section",F3t=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Dse=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;let kse=0;class H3t{constructor(n){this.Reveal=n}run(n,e){this.reset();let i=this.Reveal.getSlides(),o=i.indexOf(e),r=i.indexOf(n);if(n.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&n.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(o>r?e:n).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||NF();let a=this.getAutoAnimateOptions(e);n.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",a.slideDirection=o>r?"forward":"backward";let l="none"===n.style.display;l&&(n.style.display=this.Reveal.getConfig().display);let u=this.getAutoAnimatableElements(n,e).map(f=>this.autoAnimateElements(f.from,f.to,f.options||{},a,kse++));if(l&&(n.style.display="none"),"false"!==e.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){let f=.8*a.duration,w=.2*a.duration;this.getUnmatchedAutoAnimateElements(e).forEach(T=>{let U=this.getAutoAnimateOptions(T,a),ie="unmatched";U.duration===a.duration&&U.delay===a.delay||(ie="unmatched-"+kse++,u.push(`[data-auto-animate="running"] [data-auto-animate-target="${ie}"] { transition: opacity ${U.duration}s ease ${U.delay}s; }`)),T.dataset.autoAnimateTarget=ie},this),u.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${f}s ease ${w}s; }`)}this.autoAnimateStyleSheet.innerHTML=u.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet),e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:n,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){Yr(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(n=>{n.dataset.autoAnimate=""}),Yr(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(n=>{delete n.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(n,e,i,o,r){n.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=r;let a=this.getAutoAnimateOptions(e,o);void 0!==i.delay&&(a.delay=i.delay),void 0!==i.duration&&(a.duration=i.duration),void 0!==i.easing&&(a.easing=i.easing);let l=this.getAutoAnimatableProperties("from",n,i),u=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&(delete u.styles.opacity,n.classList.contains("fragment"))&&(n.className.match(Dse)||[""])[0]===(e.className.match(Dse)||[""])[0]&&"forward"===o.slideDirection&&e.classList.add("visible","disabled"),!1!==i.translate||!1!==i.scale){let T=this.Reveal.getScale(),U={x:(l.x-u.x)/T,y:(l.y-u.y)/T,scaleX:l.width/u.width,scaleY:l.height/u.height};U.x=Math.round(1e3*U.x)/1e3,U.y=Math.round(1e3*U.y)/1e3,U.scaleX=Math.round(1e3*U.scaleX)/1e3,U.scaleX=Math.round(1e3*U.scaleX)/1e3;let ie=!1!==i.translate&&(0!==U.x||0!==U.y),se=!1!==i.scale&&(0!==U.scaleX||0!==U.scaleY);if(ie||se){let Me=[];ie&&Me.push(`translate(${U.x}px, ${U.y}px)`),se&&Me.push(`scale(${U.scaleX}, ${U.scaleY})`),l.styles.transform=Me.join(" "),l.styles["transform-origin"]="top left",u.styles.transform="none"}}for(let T in u.styles){const U=u.styles[T],ie=l.styles[T];U===ie?delete u.styles[T]:(!0===U.explicitValue&&(u.styles[T]=U.value),!0===ie.explicitValue&&(l.styles[T]=ie.value))}let f="",w=Object.keys(u.styles);return w.length>0&&(l.styles.transition="none",u.styles.transition=`all ${a.duration}s ${a.easing} ${a.delay}s`,u.styles["transition-property"]=w.join(", "),u.styles["will-change"]=w.join(", "),f='[data-auto-animate-target="'+r+'"] {'+Object.keys(l.styles).map(T=>T+": "+l.styles[T]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+r+'"] {'+Object.keys(u.styles).map(T=>T+": "+u.styles[T]+" !important;").join("")+"}"),f}getAutoAnimateOptions(n,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=l8(i,e),n.parentNode){let o=Rd(n.parentNode,"[data-auto-animate-target]");o&&(i=this.getAutoAnimateOptions(o,i))}return n.dataset.autoAnimateEasing&&(i.easing=n.dataset.autoAnimateEasing),n.dataset.autoAnimateDuration&&(i.duration=parseFloat(n.dataset.autoAnimateDuration)),n.dataset.autoAnimateDelay&&(i.delay=parseFloat(n.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(n,e,i){let o=this.Reveal.getConfig(),r={styles:[]};if(!1!==i.translate||!1!==i.scale){let l;if("function"==typeof i.measure)l=i.measure(e);else if(o.center)l=e.getBoundingClientRect();else{let u=this.Reveal.getScale();l={x:e.offsetLeft*u,y:e.offsetTop*u,width:e.offsetWidth*u,height:e.offsetHeight*u}}r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height}const a=getComputedStyle(e);return(i.styles||o.autoAnimateStyles).forEach(l=>{let u;"string"==typeof l&&(l={property:l}),void 0!==l.from&&"from"===n?u={value:l.from,explicitValue:!0}:void 0!==l.to&&"to"===n?u={value:l.to,explicitValue:!0}:("line-height"===l.property&&(u=parseFloat(a["line-height"])/parseFloat(a["font-size"])),isNaN(u)&&(u=a[l.property])),""!==u&&(r.styles[l.property]=u)}),r}getAutoAnimatableElements(n,e){let i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,n,e),o=[];return i.filter((r,a)=>{if(-1===o.indexOf(r.to))return o.push(r.to),!0})}getAutoAnimatePairs(n,e){let i=[];const o="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,n,e,"[data-id]",r=>r.nodeName+":::"+r.getAttribute("data-id")),this.findAutoAnimateMatches(i,n,e,o,r=>r.nodeName+":::"+r.innerText),this.findAutoAnimateMatches(i,n,e,"img, video, iframe",r=>r.nodeName+":::"+(r.getAttribute("src")||r.getAttribute("data-src"))),this.findAutoAnimateMatches(i,n,e,"pre",r=>r.nodeName+":::"+r.innerText),i.forEach(r=>{LP(r.from,o)?r.options={scale:!1}:LP(r.from,"pre")&&(r.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,r.from,r.to,".hljs .hljs-ln-code",a=>a.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,r.from,r.to,".hljs .hljs-ln-numbers[data-line-number]",a=>a.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(n){const e=this.Reveal.getScale();return{x:Math.round(n.offsetLeft*e*100)/100,y:Math.round(n.offsetTop*e*100)/100,width:Math.round(n.offsetWidth*e*100)/100,height:Math.round(n.offsetHeight*e*100)/100}}findAutoAnimateMatches(n,e,i,o,r,a){let l={},u={};[].slice.call(e.querySelectorAll(o)).forEach((f,w)=>{const T=r(f);"string"==typeof T&&T.length&&(l[T]=l[T]||[],l[T].push(f))}),[].slice.call(i.querySelectorAll(o)).forEach((f,w)=>{const T=r(f);let U;if(u[T]=u[T]||[],u[T].push(f),l[T]){const ie=u[T].length-1,se=l[T].length-1;l[T][ie]?(U=l[T][ie],l[T][ie]=null):l[T][se]&&(U=l[T][se],l[T][se]=null)}U&&n.push({from:U,to:f,options:a})})}getUnmatchedAutoAnimateElements(n){return[].slice.call(n.children).reduce((e,i)=>{const o=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||o||e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}}class V3t{constructor(n){this.Reveal=n}configure(n,e){!1===n.fragments?this.disable():!1===e.fragments&&this.enable()}disable(){Yr(this.Reveal.getSlidesElement(),".fragment").forEach(n=>{n.classList.add("visible"),n.classList.remove("current-fragment")})}enable(){Yr(this.Reveal.getSlidesElement(),".fragment").forEach(n=>{n.classList.remove("visible"),n.classList.remove("current-fragment")})}availableRoutes(){let n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments){let e=n.querySelectorAll(".fragment:not(.disabled)"),i=n.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(n,e=!1){n=Array.from(n);let i=[],o=[],r=[];n.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let u=parseInt(l.getAttribute("data-fragment-index"),10);i[u]||(i[u]=[]),i[u].push(l)}else o.push([l])}),i=i.concat(o);let a=0;return i.forEach(l=>{l.forEach(u=>{r.push(u),u.setAttribute("data-fragment-index",a)}),a++}),!0===e?i:r}sortAll(){this.Reveal.getHorizontalSlides().forEach(n=>{let e=Yr(n,"section");e.forEach((i,o)=>{this.sort(i.querySelectorAll(".fragment"))},this),0===e.length&&this.sort(n.querySelectorAll(".fragment"))})}update(n,e){let i={shown:[],hidden:[]},o=this.Reveal.getCurrentSlide();if(o&&this.Reveal.getConfig().fragments&&(e=e||this.sort(o.querySelectorAll(".fragment"))).length){let r=0;if("number"!=typeof n){let a=this.sort(o.querySelectorAll(".fragment.visible")).pop();a&&(n=parseInt(a.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((a,l)=>{if(a.hasAttribute("data-fragment-index")&&(l=parseInt(a.getAttribute("data-fragment-index"),10)),r=Math.max(r,l),l<=n){let u=a.classList.contains("visible");a.classList.add("visible"),a.classList.remove("current-fragment"),l===n&&(this.Reveal.announceStatus(this.Reveal.getStatusText(a)),a.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(a)),u||(i.shown.push(a),this.Reveal.dispatchEvent({target:a,type:"visible",bubbles:!1}))}else{let u=a.classList.contains("visible");a.classList.remove("visible"),a.classList.remove("current-fragment"),u&&(this.Reveal.slideContent.stopEmbeddedContent(a),i.hidden.push(a),this.Reveal.dispatchEvent({target:a,type:"hidden",bubbles:!1}))}}),n="number"==typeof n?n:-1,n=Math.max(Math.min(n,r),-1),o.setAttribute("data-fragment",n)}return i}sync(n=this.Reveal.getCurrentSlide()){return this.sort(n.querySelectorAll(".fragment"))}goto(n,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let o=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(o.length){if("number"!=typeof n){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();n=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}let r=this.update(n+=e,o);return r.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:r.hidden[0],fragments:r.hidden}}),r.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:r.shown[0],fragments:r.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!r.shown.length&&!r.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class B3t{constructor(n){this.Reveal=n,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),Yr(this.Reveal.getRevealElement(),Um).forEach(o=>{o.classList.contains("stack")||o.addEventListener("click",this.onSlideClicked,!0)});const n=70,e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+n,this.overviewSlideHeight=e.height+n,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((n,e)=>{n.setAttribute("data-index-h",e),L4(n,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),n.classList.contains("stack")&&Yr(n,"section").forEach((i,o)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",o),L4(i,"translate3d(0, "+o*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((n,e)=>{L4(n,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),Yr(n,".slide-background").forEach((i,o)=>{L4(i,"translate3d(0, "+o*this.overviewSlideHeight+"px, 0)")})})}update(){const n=Math.min(window.innerWidth,window.innerHeight),e=Math.max(n/5,150)/n,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),Yr(this.Reveal.getRevealElement(),Um).forEach(e=>{L4(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),Yr(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{L4(e,"")}),this.Reveal.transformSlides({overview:""});const n=this.Reveal.getIndices();this.Reveal.slide(n.h,n.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:n.h,indexv:n.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(n){"boolean"==typeof n?n?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(n){if(this.isActive()){n.preventDefault();let e=n.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),o=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,o)}}}}class G3t{constructor(n){this.Reveal=n,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(n,e){"linear"===n.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(n,e){"object"==typeof n&&n.keyCode?this.bindings[n.keyCode]={callback:e,key:n.key,description:n.description}:this.bindings[n]={callback:e,key:null,description:null}}removeKeyBinding(n){delete this.bindings[n]}triggerKey(n){this.onDocumentKeyDown({keyCode:n})}registerKeyboardShortcut(n,e){this.shortcuts[n]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(n){n.shiftKey&&63===n.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(n){let e=this.Reveal.getConfig();if("function"==typeof e.keyboardCondition&&!1===e.keyboardCondition(n)||"focused"===e.keyboardCondition&&!this.Reveal.isFocused())return!0;let i=n.keyCode,o=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(n);let r=document.activeElement&&!0===document.activeElement.isContentEditable,a=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),u=!(-1!==[32,37,38,39,40,78,80].indexOf(n.keyCode)&&n.shiftKey||n.altKey)&&(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey);if(r||a||l||u)return;let f,w=[66,86,190,191];if("object"==typeof e.keyboard)for(f in e.keyboard)"togglePause"===e.keyboard[f]&&w.push(parseInt(f,10));if(this.Reveal.isPaused()&&-1===w.indexOf(i))return!1;let T="linear"===e.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),U=!1;if("object"==typeof e.keyboard)for(f in e.keyboard)if(parseInt(f,10)===i){let ie=e.keyboard[f];"function"==typeof ie?ie.apply(null,[n]):"string"==typeof ie&&"function"==typeof this.Reveal[ie]&&this.Reveal[ie].call(),U=!0}if(!1===U)for(f in this.bindings)if(parseInt(f,10)===i){let ie=this.bindings[f].callback;"function"==typeof ie?ie.apply(null,[n]):"string"==typeof ie&&"function"==typeof this.Reveal[ie]&&this.Reveal[ie].call(),U=!0}!1===U&&(U=!0,80===i||33===i?this.Reveal.prev({skipFragments:n.altKey}):78===i||34===i?this.Reveal.next({skipFragments:n.altKey}):72===i||37===i?n.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&T?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.left({skipFragments:n.altKey}):76===i||39===i?n.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&T?this.Reveal.next({skipFragments:n.altKey}):this.Reveal.right({skipFragments:n.altKey}):75===i||38===i?n.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&T?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.up({skipFragments:n.altKey}):74===i||40===i?n.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&T?this.Reveal.next({skipFragments:n.altKey}):this.Reveal.down({skipFragments:n.altKey}):36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),n.shiftKey?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.next({skipFragments:n.altKey})):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(ie=>{let se=(ie=ie||document.documentElement).requestFullscreen||ie.webkitRequestFullscreen||ie.webkitRequestFullScreen||ie.mozRequestFullScreen||ie.msRequestFullscreen;se&&se.apply(ie)})(e.embedded?this.Reveal.getViewportElement():document.documentElement):65===i?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(o):71===i?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():U=!1),U?n.preventDefault&&n.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),n.preventDefault&&n.preventDefault()),this.Reveal.cueAutoSlide()}}class Y3t{constructor(n){var i;(i="MAX_REPLACE_STATE_FREQUENCY")in this?Object.defineProperty(this,i,{value:1e3,enumerable:!0,configurable:!0,writable:!0}):this[i]=1e3,this.Reveal=n,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(n=window.location.hash,e={}){let i=n.replace(/^#\/?/,""),o=i.split("/");if(/^[0-9]*$/.test(o[0])||!i.length){const r=this.Reveal.getConfig();let a,l=r.hashOneBasedIndex||e.oneBasedIndex?1:0,u=parseInt(o[0],10)-l||0,f=parseInt(o[1],10)-l||0;return r.fragmentInURL&&(a=parseInt(o[2],10),isNaN(a)&&(a=void 0)),{h:u,v:f,f:a}}{let r,a;/\/[-\d]+$/g.test(i)&&(a=parseInt(i.split("/").pop(),10),a=isNaN(a)?void 0:a,i=i.split("/").shift());try{r=document.getElementById(decodeURIComponent(i)).closest(".slides>section, .slides>section>section")}catch(l){}if(r)return pV(ap({},this.Reveal.getIndices(r)),{f:a})}return null}readURL(){const n=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?e.h===n.h&&e.v===n.v&&void 0===e.f||this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(n.h||0,n.v||0)}writeURL(n){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"number"==typeof n)this.writeURLTimeout=setTimeout(this.writeURL,n);else if(i){let o=this.getHash();e.history?window.location.hash=o:e.hash&&this.debouncedReplaceState("/"===o?window.location.pathname+window.location.search:"#"+o)}}replaceState(n){window.history.replaceState(null,null,n),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(n){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(n):this.replaceStateTimeout=setTimeout(()=>this.replaceState(n),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(n){let e="/",i=n||this.Reveal.getCurrentSlide(),o=i?i.getAttribute("id"):null;o&&(o=encodeURIComponent(o));let r=this.Reveal.getIndices(n);if(this.Reveal.getConfig().fragmentInURL||(r.f=void 0),"string"==typeof o&&o.length)e="/"+o,r.f>=0&&(e+="/"+r.f);else{let a=this.Reveal.getConfig().hashOneBasedIndex?1:0;(r.h>0||r.v>0||r.f>=0)&&(e+=r.h+a),(r.v>0||r.f>=0)&&(e+="/"+(r.v+a)),r.f>=0&&(e+="/"+r.f)}return e}onWindowHashChange(n){this.readURL()}}class U3t{constructor(n){this.Reveal=n,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const n=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`\n\t\t\t\n\t\t\t\n\t\t\t`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=Yr(e,".navigate-left"),this.controlsRight=Yr(e,".navigate-right"),this.controlsUp=Yr(e,".navigate-up"),this.controlsDown=Yr(e,".navigate-down"),this.controlsPrev=Yr(e,".navigate-prev"),this.controlsNext=Yr(e,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(n,e){this.element.style.display=n.controls?"block":"none",this.element.setAttribute("data-controls-layout",n.controlsLayout),this.element.setAttribute("data-controls-back-arrows",n.controlsBackArrows)}bind(){let n=["touchstart","click"];Tse&&(n=["touchstart"]),n.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1))})}unbind(){["touchstart","click"].forEach(n=>{this.controlsLeft.forEach(e=>e.removeEventListener(n,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(n,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(n,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(n,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(n,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(n,this.onNavigateNextClicked,!1))})}update(){let n=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),n.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(n.left||n.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(n.right||n.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(e)?(i.prev&&this.controlsUp.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&n.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&n.left&&0===i.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&n.right&&0===i.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(n){n.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(n){n.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class j3t{constructor(n){this.Reveal=n,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(n,e){this.element.style.display=n.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let n=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(n=0),this.bar.style.transform="scaleX("+n+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(n){this.Reveal.onUserInput(n),n.preventDefault();let e=this.Reveal.getSlides(),i=e.length,o=Math.floor(n.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(o=i-o);let r=this.Reveal.getIndices(e[o]);this.Reveal.slide(r.h,r.v)}destroy(){this.element.remove()}}class W3t{constructor(n){this.Reveal=n,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(n,e){n.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),n.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(n){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(n){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=n.detail||-n.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}}const Ise=(t,n)=>{const e=document.createElement("script");e.type="text/javascript",e.async=!1,e.defer=!1,e.src=t,"function"==typeof n&&(e.onload=e.onreadystatechange=o=>{("load"===o.type||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=e.onerror=null,n())},e.onerror=o=>{e.onload=e.onreadystatechange=e.onerror=null,n(new Error("Failed loading script: "+e.src+"\n"+o))});const i=document.querySelector("head");i.insertBefore(e,i.lastChild)};class q3t{constructor(n){this.Reveal=n,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(n,e){return this.state="loading",n.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let o=[],r=0;if(e.forEach(a=>{a.condition&&!a.condition()||(a.async?this.asyncDependencies.push(a):o.push(a))}),o.length){r=o.length;const a=l=>{l&&"function"==typeof l.callback&&l.callback(),0==--r&&this.initPlugins().then(i)};o.forEach(l=>{"string"==typeof l.id?(this.registerPlugin(l),a(l)):"string"==typeof l.src?Ise(l.src,()=>a(l)):(console.warn("Unrecognized plugin format",l),a())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(n=>{let e=Object.values(this.registeredPlugins),i=e.length;if(0===i)this.loadAsync().then(n);else{let o,r=()=>{0==--i?this.loadAsync().then(n):o()},a=0;o=()=>{let l=e[a++];if("function"==typeof l.init){let u=l.init(this.Reveal);u&&"function"==typeof u.then?u.then(r):r()}else r()},o()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(n=>{Ise(n.src,n.callback)}),Promise.resolve()}registerPlugin(n){2===arguments.length&&"string"==typeof arguments[0]?(n=arguments[1]).id=arguments[0]:"function"==typeof n&&(n=n());let e=n.id;"string"!=typeof e?console.warn("Unrecognized plugin format; can't find plugin.id",n):void 0===this.registeredPlugins[e]?(this.registeredPlugins[e]=n,"loaded"===this.state&&"function"==typeof n.init&&n.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered')}hasPlugin(n){return!!this.registeredPlugins[n]}getPlugin(n){return this.registeredPlugins[n]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(n=>{"function"==typeof n.destroy&&n.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}}class $3t{constructor(n){this.Reveal=n}setupPDF(){var n=this;return function E3t(t){return function(){var n=this,e=arguments;return new Promise(function(i,o){var r=t.apply(n,e);function a(u){Sse(r,i,o,a,l,"next",u)}function l(u){Sse(r,i,o,a,l,"throw",u)}a(void 0)})}}(function*(){const e=n.Reveal.getConfig(),i=Yr(n.Reveal.getRevealElement(),Um),o=e.slideNumber&&/all|print/i.test(e.showSlideNumber),r=n.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),a=Math.floor(r.width*(1+e.margin)),l=Math.floor(r.height*(1+e.margin)),u=r.width,f=r.height;yield new Promise(requestAnimationFrame),NF("@page{size:"+a+"px "+l+"px; margin: 0px;}"),NF(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+u+"px; max-height:"+f+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=a+"px",document.body.style.height=l+"px";const w=document.querySelector(".reveal-viewport");let T;if(w){const we=window.getComputedStyle(w);we&&we.background&&(T=we.background)}yield new Promise(requestAnimationFrame),n.Reveal.layoutSlideContents(u,f),yield new Promise(requestAnimationFrame);const U=i.map(we=>we.scrollHeight),ie=[],se=i[0].parentNode;let Me=1;i.forEach(function(we,He){if(!1===we.classList.contains("stack")){let Be=(a-u)/2,me=(l-f)/2;const ze=U[He];let qe=Math.max(Math.ceil(ze/l),1);qe=Math.min(qe,e.pdfMaxPagesPerSlide),(1===qe&&e.center||we.classList.contains("center"))&&(me=Math.max((l-ze)/2,0));const rt=document.createElement("div");if(ie.push(rt),rt.className="pdf-page",rt.style.height=(l+e.pdfPageHeightOffset)*qe+"px",T&&(rt.style.background=T),rt.appendChild(we),we.style.left=Be+"px",we.style.top=me+"px",we.style.width=u+"px",this.Reveal.slideContent.layout(we),we.slideBackgroundElement&&rt.insertBefore(we.slideBackgroundElement,we),e.showNotes){const xt=this.Reveal.getSlideNotes(we);if(xt){const jt="string"==typeof e.showNotes?e.showNotes:"inline",an=document.createElement("div");an.classList.add("speaker-notes"),an.classList.add("speaker-notes-pdf"),an.setAttribute("data-layout",jt),an.innerHTML=xt,"separate-page"===jt?ie.push(an):(an.style.left="8px",an.style.bottom="8px",an.style.width=a-16+"px",rt.appendChild(an))}}if(o){const xt=document.createElement("div");xt.classList.add("slide-number"),xt.classList.add("slide-number-pdf"),xt.innerHTML=Me++,rt.appendChild(xt)}if(e.pdfSeparateFragments){const xt=this.Reveal.fragments.sort(rt.querySelectorAll(".fragment"),!0);let Ut;xt.forEach(function(jt,an){Ut&&Ut.forEach(function(yn){yn.classList.remove("current-fragment")}),jt.forEach(function(yn){yn.classList.add("visible","current-fragment")},this);const pn=rt.cloneNode(!0);if(o){const yn=an+1;pn.querySelector(".slide-number-pdf").innerHTML+="."+yn}ie.push(pn),Ut=jt},this),xt.forEach(function(jt){jt.forEach(function(an){an.classList.remove("visible","current-fragment")})})}else Yr(rt,".fragment:not(.fade-out)").forEach(function(xt){xt.classList.add("visible")})}},n),yield new Promise(requestAnimationFrame),ie.forEach(we=>se.appendChild(we)),n.Reveal.slideContent.layout(n.Reveal.getSlidesElement()),n.Reveal.dispatchEvent({type:"pdf-ready"})})()}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class X3t{constructor(n){this.Reveal=n,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let n=this.Reveal.getRevealElement();"onpointerdown"in window?(n.addEventListener("pointerdown",this.onPointerDown,!1),n.addEventListener("pointermove",this.onPointerMove,!1),n.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(n.addEventListener("MSPointerDown",this.onPointerDown,!1),n.addEventListener("MSPointerMove",this.onPointerMove,!1),n.addEventListener("MSPointerUp",this.onPointerUp,!1)):(n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let n=this.Reveal.getRevealElement();n.removeEventListener("pointerdown",this.onPointerDown,!1),n.removeEventListener("pointermove",this.onPointerMove,!1),n.removeEventListener("pointerup",this.onPointerUp,!1),n.removeEventListener("MSPointerDown",this.onPointerDown,!1),n.removeEventListener("MSPointerMove",this.onPointerMove,!1),n.removeEventListener("MSPointerUp",this.onPointerUp,!1),n.removeEventListener("touchstart",this.onTouchStart,!1),n.removeEventListener("touchmove",this.onTouchMove,!1),n.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(n){if(LP(n,"video, audio"))return!0;for(;n&&"function"==typeof n.hasAttribute;){if(n.hasAttribute("data-prevent-swipe"))return!0;n=n.parentNode}return!1}onTouchStart(n){if(this.isSwipePrevented(n.target))return!0;this.touchStartX=n.touches[0].clientX,this.touchStartY=n.touches[0].clientY,this.touchStartCount=n.touches.length}onTouchMove(n){if(this.isSwipePrevented(n.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)Tse&&n.preventDefault();else{this.Reveal.onUserInput(n);let i=n.touches[0].clientX,o=n.touches[0].clientY;if(1===n.touches.length&&2!==this.touchStartCount){let r=this.Reveal.availableRoutes({includeFragments:!0}),a=i-this.touchStartX,l=o-this.touchStartY;a>40&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,"linear"===e.navigationMode?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,"linear"===e.navigationMode?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>40&&r.up?(this.touchCaptured=!0,"linear"===e.navigationMode?this.Reveal.prev():this.Reveal.up()):l<-40&&r.down&&(this.touchCaptured=!0,"linear"===e.navigationMode?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&n.preventDefault():n.preventDefault()}}}onTouchEnd(n){this.touchCaptured=!1}onPointerDown(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchStart(n))}onPointerMove(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchMove(n))}onPointerUp(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchEnd(n))}}const zF="focus";class Q3t{constructor(n){this.Reveal=n,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(n,e){n.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==zF&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=zF}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return this.state===zF}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(n){this.focus()}onDocumentPointerDown(n){let e=Rd(n.target,".reveal");e&&e===this.Reveal.getRevealElement()||this.blur()}}class Z3t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(n,e){n.showNotes&&this.element.setAttribute("data-layout","string"==typeof n.showNotes?n.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(n=this.Reveal.getCurrentSlide()){if(n.hasAttribute("data-notes"))return n.getAttribute("data-notes");let e=n.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join("\n"):null}destroy(){this.element.remove()}}class K3t{constructor(n,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=n,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(n){const e=this.playing;this.playing=n,!e&&this.playing?this.animate():this.render()}animate(){const n=this.progress;this.progress=this.progressCheck(),n>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let n=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,o=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);const a=-Math.PI/2+n*(2*Math.PI),l=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,o,e+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,o,e,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,o,e,l,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,o-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(n,e){this.canvas.addEventListener(n,e,!1)}off(n,e){this.canvas.removeEventListener(n,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var J3t={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,dependencies:[],plugins:[]};function zse(t,n){arguments.length<2&&(n=arguments[0],t=document.querySelector(".reveal"));const e={};let i,o,r,a,l,u={},f=!1,w={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},T=[],U=1,ie={layout:"",overview:""},se={},Me="idle",we=0,He=0,Be=-1,me=!1,ze=new I3t(e),qe=new N3t(e),rt=new R3t(e),xt=new H3t(e),Ut=new z3t(e),jt=new V3t(e),an=new B3t(e),pn=new G3t(e),yn=new Y3t(e),Kt=new U3t(e),kn=new j3t(e),ri=new W3t(e),Rn=new q3t(e),ni=new $3t(e),Jn=new Q3t(e),Oi=new X3t(e),qn=new Z3t(e);function Wi(Tn){if(!t)throw'Unable to find presentation root (
).';if(se.wrapper=t,se.slides=t.querySelector(".slides"),!se.slides)throw'Unable to find slides container (
).';return u=ap(ap(ap(ap(ap({},J3t),u),n),Tn),Pse()),Ai(),window.addEventListener("load",z4,!1),Rn.load(u.plugins,u.dependencies).then(Bi),new Promise(ai=>e.on("ready",ai))}function Ai(){!0===u.embedded?se.viewport=Rd(t,".reveal-viewport")||t:(se.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),se.viewport.classList.add("reveal-viewport")}function Bi(){f=!0,lo(),nr(),Ii(),jn(),yi(),dJt(),Vn(),yn.readURL(),Ut.update(!0),setTimeout(()=>{se.slides.classList.remove("no-transition"),se.wrapper.classList.add("ready"),Ec({type:"ready",data:{indexh:i,indexv:o,currentSlide:a}})},1),ni.isPrintingPDF()&&(Zo(),"complete"===document.readyState?ni.setupPDF():window.addEventListener("load",()=>{ni.setupPDF()}))}function lo(){u.showHiddenSlides||Yr(se.wrapper,'section[data-visibility="hidden"]').forEach(Tn=>{Tn.parentNode.removeChild(Tn)})}function nr(){se.slides.classList.add("no-transition"),u8?se.wrapper.classList.add("no-hover"):se.wrapper.classList.remove("no-hover"),Ut.render(),qe.render(),rt.render(),Kt.render(),kn.render(),qn.render(),se.pauseOverlay=A3t(se.wrapper,"div","pause-overlay",u.controls?'':null),se.statusElement=Nr(),se.wrapper.setAttribute("role","application")}function Nr(){let Tn=se.wrapper.querySelector(".aria-status");return Tn||(Tn=document.createElement("div"),Tn.style.position="absolute",Tn.style.height="1px",Tn.style.width="1px",Tn.style.overflow="hidden",Tn.style.clip="rect( 1px, 1px, 1px, 1px )",Tn.classList.add("aria-status"),Tn.setAttribute("aria-live","polite"),Tn.setAttribute("aria-atomic","true"),se.wrapper.appendChild(Tn)),Tn}function ro(Tn){se.statusElement.textContent=Tn}function ki(Tn){let ai="";if(3===Tn.nodeType)ai+=Tn.textContent;else if(1===Tn.nodeType){let uo=Tn.getAttribute("aria-hidden"),to="none"===window.getComputedStyle(Tn).display;"true"===uo||to||Array.from(Tn.childNodes).forEach(Wo=>{ai+=ki(Wo)})}return ai=ai.trim(),""===ai?"":ai+" "}function jn(){setInterval(()=>{0===se.wrapper.scrollTop&&0===se.wrapper.scrollLeft||(se.wrapper.scrollTop=0,se.wrapper.scrollLeft=0)},1e3)}function yi(){document.addEventListener("fullscreenchange",vT),document.addEventListener("webkitfullscreenchange",vT)}function Ii(){u.postMessage&&window.addEventListener("message",Vfe,!1)}function Vn(Tn){const ai=ap({},u);if("object"==typeof Tn&&l8(u,Tn),!1===e.isReady())return;const uo=se.wrapper.querySelectorAll(Um).length;se.wrapper.classList.remove(ai.transition),se.wrapper.classList.add(u.transition),se.wrapper.setAttribute("data-transition-speed",u.transitionSpeed),se.wrapper.setAttribute("data-background-transition",u.backgroundTransition),se.viewport.style.setProperty("--slide-width",u.width+"px"),se.viewport.style.setProperty("--slide-height",u.height+"px"),u.shuffle&&aV(),IF(se.wrapper,"embedded",u.embedded),IF(se.wrapper,"rtl",u.rtl),IF(se.wrapper,"center",u.center),!1===u.pause&&H4(),u.previewLinks?(dh(),Ac("[data-preview-link=false]")):(Ac(),dh("[data-preview-link]:not([data-preview-link=false])")),xt.reset(),l&&(l.destroy(),l=null),uo>1&&u.autoSlide&&u.autoSlideStoppable&&(l=new K3t(se.wrapper,()=>Math.min(Math.max((Date.now()-Be)/we,0),1)),l.on("click",_Jt),me=!1),"default"!==u.navigationMode?se.wrapper.setAttribute("data-navigation-mode",u.navigationMode):se.wrapper.removeAttribute("data-navigation-mode"),qn.configure(u,ai),Jn.configure(u,ai),ri.configure(u,ai),Kt.configure(u,ai),kn.configure(u,ai),pn.configure(u,ai),jt.configure(u,ai),qe.configure(u,ai),Pfe()}function Ei(){window.addEventListener("resize",Yfe,!1),u.touch&&Oi.bind(),u.keyboard&&pn.bind(),u.progress&&kn.bind(),u.respondToHashChanges&&yn.bind(),Kt.bind(),Jn.bind(),se.slides.addEventListener("click",Gfe,!1),se.slides.addEventListener("transitionend",Bfe,!1),se.pauseOverlay.addEventListener("click",H4,!1),u.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Ufe,!1)}function Zo(){Oi.unbind(),Jn.unbind(),pn.unbind(),Kt.unbind(),kn.unbind(),yn.unbind(),window.removeEventListener("resize",Yfe,!1),se.slides.removeEventListener("click",Gfe,!1),se.slides.removeEventListener("transitionend",Bfe,!1),se.pauseOverlay.removeEventListener("click",H4,!1)}function Sa(){Zo(),gT(),Ac(),qn.destroy(),Jn.destroy(),Rn.destroy(),ri.destroy(),Kt.destroy(),kn.destroy(),Ut.destroy(),qe.destroy(),rt.destroy(),document.removeEventListener("fullscreenchange",vT),document.removeEventListener("webkitfullscreenchange",vT),document.removeEventListener("visibilitychange",Ufe,!1),window.removeEventListener("message",Vfe,!1),window.removeEventListener("load",z4,!1),se.pauseOverlay&&se.pauseOverlay.remove(),se.statusElement&&se.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),se.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),se.wrapper.removeAttribute("data-transition-speed"),se.wrapper.removeAttribute("data-background-transition"),se.viewport.classList.remove("reveal-viewport"),se.viewport.style.removeProperty("--slide-width"),se.viewport.style.removeProperty("--slide-height"),se.slides.style.removeProperty("width"),se.slides.style.removeProperty("height"),se.slides.style.removeProperty("zoom"),se.slides.style.removeProperty("left"),se.slides.style.removeProperty("top"),se.slides.style.removeProperty("bottom"),se.slides.style.removeProperty("right"),se.slides.style.removeProperty("transform"),Array.from(se.wrapper.querySelectorAll(Um)).forEach(Tn=>{Tn.style.removeProperty("display"),Tn.style.removeProperty("top"),Tn.removeAttribute("hidden"),Tn.removeAttribute("aria-hidden")})}function $a(Tn,ai,uo){t.addEventListener(Tn,ai,uo)}function Cr(Tn,ai,uo){t.removeEventListener(Tn,ai,uo)}function gs(Tn){"string"==typeof Tn.layout&&(ie.layout=Tn.layout),"string"==typeof Tn.overview&&(ie.overview=Tn.overview),L4(se.slides,ie.layout?ie.layout+" "+ie.overview:ie.overview)}function Ec({target:Tn=se.wrapper,type:ai,data:uo,bubbles:to=!0}){let Wo=document.createEvent("HTMLEvents",1,2);return Wo.initEvent(ai,to,!0),l8(Wo,uo),Tn.dispatchEvent(Wo),Tn===se.wrapper&&Nl(ai),Wo}function Nl(Tn,ai){if(u.postMessageEvents&&window.parent!==window.self){let uo={namespace:"reveal",eventName:Tn,state:Ffe()};l8(uo,ai),window.parent.postMessage(JSON.stringify(uo),"*")}}function dh(Tn="a"){Array.from(se.wrapper.querySelectorAll(Tn)).forEach(ai=>{/^(http|www)/gi.test(ai.getAttribute("href"))&&ai.addEventListener("click",jfe,!1)})}function Ac(Tn="a"){Array.from(se.wrapper.querySelectorAll(Tn)).forEach(ai=>{/^(http|www)/gi.test(ai.getAttribute("href"))&&ai.removeEventListener("click",jfe,!1)})}function Js(Tn){o0(),se.overlay=document.createElement("div"),se.overlay.classList.add("overlay"),se.overlay.classList.add("overlay-preview"),se.wrapper.appendChild(se.overlay),se.overlay.innerHTML=`
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site's policy (x-frame-options).\n\t\t\t\t\n\t\t\t
`,se.overlay.querySelector("iframe").addEventListener("load",ai=>{se.overlay.classList.add("loaded")},!1),se.overlay.querySelector(".close").addEventListener("click",ai=>{o0(),ai.preventDefault()},!1),se.overlay.querySelector(".external").addEventListener("click",ai=>{o0()},!1)}function F3(Tn){"boolean"==typeof Tn?Tn?R4():o0():se.overlay?o0():R4()}function R4(){if(u.help){o0(),se.overlay=document.createElement("div"),se.overlay.classList.add("overlay"),se.overlay.classList.add("overlay-help"),se.wrapper.appendChild(se.overlay);let Tn='

Keyboard Shortcuts


',ai=pn.getShortcuts(),uo=pn.getBindings();Tn+="";for(let to in ai)Tn+=``;for(let to in uo)uo[to].key&&uo[to].description&&(Tn+=``);Tn+="
KEYACTION
${to}${ai[to]}
${uo[to].key}${uo[to].description}
",se.overlay.innerHTML=`\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${Tn}
\n\t\t\t\t
\n\t\t\t`,se.overlay.querySelector(".close").addEventListener("click",to=>{o0(),to.preventDefault()},!1)}}function o0(){return!!se.overlay&&(se.overlay.parentNode.removeChild(se.overlay),se.overlay=null,!0)}function z4(){if(se.wrapper&&!ni.isPrintingPDF()){if(!u.disableLayout){u8&&!u.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const Tn=hT(),ai=U;uT(u.width,u.height),se.slides.style.width=Tn.width+"px",se.slides.style.height=Tn.height+"px",U=Math.min(Tn.presentationWidth/Tn.width,Tn.presentationHeight/Tn.height),U=Math.max(U,u.minScale),U=Math.min(U,u.maxScale),1===U?(se.slides.style.zoom="",se.slides.style.left="",se.slides.style.top="",se.slides.style.bottom="",se.slides.style.right="",gs({layout:""})):(se.slides.style.zoom="",se.slides.style.left="50%",se.slides.style.top="50%",se.slides.style.bottom="auto",se.slides.style.right="auto",gs({layout:"translate(-50%, -50%) scale("+U+")"}));const uo=Array.from(se.wrapper.querySelectorAll(Um));for(let to=0,Wo=uo.length;to .stretch, section > .r-stretch").forEach(uo=>{let to=L3t(uo,ai);if(/(img|video)/gi.test(uo.nodeName)){const Wo=uo.naturalWidth||uo.videoWidth,Ds=uo.naturalHeight||uo.videoHeight,n1=Math.min(Tn/Wo,to/Ds);uo.style.width=Wo*n1+"px",uo.style.height=Ds*n1+"px"}else uo.style.width=Tn+"px",uo.style.height=to+"px"})}function hT(Tn,ai){let uo=u.width,to=u.height;u.disableLayout&&(uo=se.slides.offsetWidth,to=se.slides.offsetHeight);const Wo={width:uo,height:to,presentationWidth:Tn||se.wrapper.offsetWidth,presentationHeight:ai||se.wrapper.offsetHeight};return Wo.presentationWidth-=Wo.presentationWidth*u.margin,Wo.presentationHeight-=Wo.presentationHeight*u.margin,"string"==typeof Wo.width&&/%$/.test(Wo.width)&&(Wo.width=parseInt(Wo.width,10)/100*Wo.presentationWidth),"string"==typeof Wo.height&&/%$/.test(Wo.height)&&(Wo.height=parseInt(Wo.height,10)/100*Wo.presentationHeight),Wo}function pT(Tn,ai){"object"==typeof Tn&&"function"==typeof Tn.setAttribute&&Tn.setAttribute("data-previous-indexv",ai||0)}function fT(Tn){if("object"==typeof Tn&&"function"==typeof Tn.setAttribute&&Tn.classList.contains("stack")){const ai=Tn.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(Tn.getAttribute(ai)||0,10)}return 0}function F4(Tn=a){return Tn&&Tn.parentNode&&!!Tn.parentNode.nodeName.match(/section/i)}function hb(){return!(!a||!F4(a)||a.nextElementSibling)}function pb(){return 0===i&&0===o}function m8(){return!(!a||a.nextElementSibling||F4(a)&&a.parentNode.nextElementSibling)}function H3(){if(u.pause){const Tn=se.wrapper.classList.contains("paused");gT(),se.wrapper.classList.add("paused"),!1===Tn&&Ec({type:"paused"})}}function H4(){const Tn=se.wrapper.classList.contains("paused");se.wrapper.classList.remove("paused"),_8(),Tn&&Ec({type:"resumed"})}function fb(Tn){"boolean"==typeof Tn?Tn?H3():H4():V4()?H4():H3()}function V4(){return se.wrapper.classList.contains("paused")}function rV(Tn){"boolean"==typeof Tn?Tn?rt.show():rt.hide():rt.isVisible()?rt.hide():rt.show()}function ip(Tn){"boolean"==typeof Tn?Tn?_T():mT():me?_T():mT()}function cJt(){return!(!we||me)}function op(Tn,ai,uo,to){if(Ec({type:"beforeslidechange",data:{indexh:void 0===Tn?i:Tn,indexv:void 0===ai?o:ai,origin:to}}).defaultPrevented)return;r=a;const Wo=se.wrapper.querySelectorAll(jm);if(0===Wo.length)return;void 0!==ai||an.isActive()||(ai=fT(Wo[Tn])),r&&r.parentNode&&r.parentNode.classList.contains("stack")&&pT(r.parentNode,o);const Ds=T.concat();T.length=0;let n1=i||0,uh=o||0;i=Tfe(jm,void 0===Tn?i:Tn),o=Tfe(Lse,void 0===ai?o:ai);let B3=i!==n1||o!==uh;B3||(r=null);let Xm=Wo[i];a=Xm.querySelectorAll("section")[o]||Xm;let Rl=!1;B3&&r&&a&&!an.isActive()&&(r.hasAttribute("data-auto-animate")&&a.hasAttribute("data-auto-animate")&&r.getAttribute("data-auto-animate-id")===a.getAttribute("data-auto-animate-id")&&!(i>n1||o>uh?a:r).hasAttribute("data-auto-animate-restart")&&(Rl=!0,se.slides.classList.add("disable-slide-transitions")),Me="running"),sV(),z4(),an.isActive()&&an.update(),void 0!==uo&&jt.goto(uo),r&&r!==a&&(r.classList.remove("present"),r.setAttribute("aria-hidden","true"),pb()&&setTimeout(()=>{hJt().forEach(rp=>{pT(rp,0)})},0));e:for(let rp=0,CJt=T.length;rp{ro(ki(a))}),kn.update(),Kt.update(),qn.update(),Ut.update(),Ut.updateParallax(),qe.update(),jt.update(),yn.writeURL(),_8(),Rl&&(setTimeout(()=>{se.slides.classList.remove("disable-slide-transitions")},0),u.autoAnimate&&xt.run(r,a))}function Pfe(){Zo(),Ei(),z4(),we=u.autoSlide,_8(),Ut.create(),yn.writeURL(),!0===u.sortFragmentsOnSync&&jt.sortAll(),Kt.update(),kn.update(),sV(),qn.update(),qn.updateVisibility(),Ut.update(!0),qe.update(),ze.formatEmbeddedContent(),!1===u.autoPlayMedia?ze.stopEmbeddedContent(a,{unloadIframes:!1}):ze.startEmbeddedContent(a),an.isActive()&&an.layout()}function lJt(Tn=a){Ut.sync(Tn),jt.sync(Tn),ze.load(Tn),Ut.update(),qn.update()}function dJt(){B4().forEach(Tn=>{Yr(Tn,"section").forEach((ai,uo)=>{uo>0&&(ai.classList.remove("present"),ai.classList.remove("past"),ai.classList.add("future"),ai.setAttribute("aria-hidden","true"))})})}function aV(Tn=B4()){Tn.forEach((ai,uo)=>{let to=Tn[Math.floor(Math.random()*Tn.length)];to.parentNode===ai.parentNode&&ai.parentNode.insertBefore(ai,to);let Wo=ai.querySelectorAll("section");Wo.length&&aV(Wo)})}function Tfe(Tn,ai){let uo=Yr(se.wrapper,Tn),to=uo.length,Wo=ni.isPrintingPDF(),Ds=!1,n1=!1;if(to){u.loop&&(ai>=to&&(Ds=!0),(ai%=to)<0&&(ai=to+ai,n1=!0)),ai=Math.max(Math.min(ai,to-1),0);for(let Ou=0;Ouai?(Rl.classList.add(rp?"past":"future"),u.fragments&&Afe(Rl)):Ou===ai&&u.fragments&&(Ds?Afe(Rl):n1&&Efe(Rl))}let uh=uo[ai],B3=uh.classList.contains("present");uh.classList.add("present"),uh.removeAttribute("hidden"),uh.removeAttribute("aria-hidden"),B3||Ec({target:uh,type:"visible",bubbles:!1});let Xm=uh.getAttribute("data-state");Xm&&(T=T.concat(Xm.split(" ")))}else ai=0;return ai}function Efe(Tn){Yr(Tn,".fragment").forEach(ai=>{ai.classList.add("visible"),ai.classList.remove("current-fragment")})}function Afe(Tn){Yr(Tn,".fragment.visible").forEach(ai=>{ai.classList.remove("visible","current-fragment")})}function sV(){let Tn,ai,uo=B4(),to=uo.length;if(to&&void 0!==i){let Wo=an.isActive()?10:u.viewDistance;u8&&(Wo=an.isActive()?6:u.mobileViewDistance),ni.isPrintingPDF()&&(Wo=Number.MAX_VALUE);for(let Ds=0;Ds0,right:i0,down:o1&&(to.left=!0,to.right=!0),uo.length>1&&(to.up=!0,to.down=!0)),ai.length>1&&"linear"===u.navigationMode&&(to.right=to.right||to.down,to.left=to.left||to.up),!0===Tn){let Wo=jt.availableRoutes();to.left=to.left||Wo.prev,to.up=to.up||Wo.prev,to.down=to.down||Wo.next,to.right=to.right||Wo.next}if(u.rtl){let Wo=to.left;to.left=to.right,to.right=Wo}return to}function Lfe(Tn=a){let ai=B4(),uo=0;e:for(let to=0;to0){let to=.9;ai+=a.querySelectorAll(".fragment.visible").length/uo.length*to}}return Math.min(ai/(Tn-1),1)}function Dfe(Tn){let ai,uo=i,to=o;if(Tn){let Wo=F4(Tn),Ds=Wo?Tn.parentNode:Tn,n1=B4();uo=Math.max(n1.indexOf(Ds),0),to=void 0,Wo&&(to=Math.max(Yr(Tn.parentNode,"section").indexOf(Tn),0))}if(!Tn&&a&&a.querySelectorAll(".fragment").length>0){let Wo=a.querySelector(".current-fragment");ai=Wo&&Wo.hasAttribute("data-fragment-index")?parseInt(Wo.getAttribute("data-fragment-index"),10):a.querySelectorAll(".fragment.visible").length-1}return{h:uo,v:to,f:ai}}function cV(){return Yr(se.wrapper,Um+':not(.stack):not([data-visibility="uncounted"])')}function B4(){return Yr(se.wrapper,jm)}function kfe(){return Yr(se.wrapper,".slides>section>section")}function hJt(){return Yr(se.wrapper,jm+".stack")}function Ife(){return B4().length>1}function Nfe(){return kfe().length>1}function pJt(){return cV().map(Tn=>{let ai={};for(let uo=0;uo{Wo.hasAttribute("data-autoplay")&&we&&1e3*Wo.duration/Wo.playbackRate>we&&(we=1e3*Wo.duration/Wo.playbackRate+1e3)})),!we||me||V4()||an.isActive()||m8()&&!jt.availableRoutes().next&&!0!==u.loop||(He=setTimeout(()=>{"function"==typeof u.autoSlideMethod?u.autoSlideMethod():hV(),_8()},we),Be=Date.now()),l&&l.setPlaying(-1!==He)}}function gT(){clearTimeout(He),He=-1}function mT(){we&&!me&&(me=!0,Ec({type:"autoslidepaused"}),clearTimeout(He),l&&l.setPlaying(!1))}function _T(){we&&me&&(me=!1,Ec({type:"autoslideresumed"}),_8())}function CT({skipFragments:Tn=!1}={}){w.hasNavigatedHorizontally=!0,u.rtl?(an.isActive()||Tn||!1===jt.next())&&V3().left&&op(i+1,"grid"===u.navigationMode?o:void 0):(an.isActive()||Tn||!1===jt.prev())&&V3().left&&op(i-1,"grid"===u.navigationMode?o:void 0)}function lV({skipFragments:Tn=!1}={}){w.hasNavigatedHorizontally=!0,u.rtl?(an.isActive()||Tn||!1===jt.prev())&&V3().right&&op(i-1,"grid"===u.navigationMode?o:void 0):(an.isActive()||Tn||!1===jt.next())&&V3().right&&op(i+1,"grid"===u.navigationMode?o:void 0)}function dV({skipFragments:Tn=!1}={}){(an.isActive()||Tn||!1===jt.prev())&&V3().up&&op(i,o-1)}function uV({skipFragments:Tn=!1}={}){w.hasNavigatedVertically=!0,(an.isActive()||Tn||!1===jt.next())&&V3().down&&op(i,o+1)}function Hfe({skipFragments:Tn=!1}={}){if(Tn||!1===jt.prev())if(V3().up)dV({skipFragments:Tn});else{let ai;if(ai=u.rtl?Yr(se.wrapper,jm+".future").pop():Yr(se.wrapper,jm+".past").pop(),ai&&ai.classList.contains("stack")){let uo=ai.querySelectorAll("section").length-1||void 0;op(i-1,uo)}else CT({skipFragments:Tn})}}function hV({skipFragments:Tn=!1}={}){if(w.hasNavigatedHorizontally=!0,w.hasNavigatedVertically=!0,Tn||!1===jt.next()){let ai=V3();ai.down&&ai.right&&u.loop&&hb()&&(ai.down=!1),ai.down?uV({skipFragments:Tn}):u.rtl?CT({skipFragments:Tn}):lV({skipFragments:Tn})}}function mJt(Tn){u.autoSlideStoppable&&mT()}function Vfe(Tn){let ai=Tn.data;if("string"==typeof ai&&"{"===ai.charAt(0)&&"}"===ai.charAt(ai.length-1)&&(ai=JSON.parse(ai),ai.method&&"function"==typeof e[ai.method]))if(!1===F3t.test(ai.method)){const uo=e[ai.method].apply(e,ai.args);Nl("callback",{method:ai.method,result:uo})}else console.warn('reveal.js: "'+ai.method+'" is is blacklisted from the postMessage API')}function Bfe(Tn){"running"===Me&&/section/gi.test(Tn.target.nodeName)&&(Me="idle",Ec({type:"slidetransitionend",data:{indexh:i,indexv:o,previousSlide:r,currentSlide:a}}))}function Gfe(Tn){const ai=Rd(Tn.target,'a[href^="#"]');if(ai){const uo=ai.getAttribute("href"),to=yn.getIndicesFromHash(uo);to&&(e.slide(to.h,to.v,to.f),Tn.preventDefault())}}function Yfe(Tn){z4()}function Ufe(Tn){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function vT(Tn){(document.fullscreenElement||document.webkitFullscreenElement)===se.wrapper&&(Tn.stopImmediatePropagation(),setTimeout(()=>{e.layout(),e.focus.focus()},1))}function jfe(Tn){if(Tn.currentTarget&&Tn.currentTarget.hasAttribute("href")){let ai=Tn.currentTarget.getAttribute("href");ai&&(Js(ai),Tn.preventDefault())}}function _Jt(Tn){m8()&&!1===u.loop?(op(0,0),_T()):me?_T():mT()}const Wfe={VERSION:"4.6.0",initialize:Wi,configure:Vn,destroy:Sa,sync:Pfe,syncSlide:lJt,syncFragments:jt.sync.bind(jt),slide:op,left:CT,right:lV,up:dV,down:uV,prev:Hfe,next:hV,navigateLeft:CT,navigateRight:lV,navigateUp:dV,navigateDown:uV,navigatePrev:Hfe,navigateNext:hV,navigateFragment:jt.goto.bind(jt),prevFragment:jt.prev.bind(jt),nextFragment:jt.next.bind(jt),on:$a,off:Cr,addEventListener:$a,removeEventListener:Cr,layout:z4,shuffle:aV,availableRoutes:V3,availableFragments:jt.availableRoutes.bind(jt),toggleHelp:F3,toggleOverview:an.toggle.bind(an),togglePause:fb,toggleAutoSlide:ip,toggleJumpToSlide:rV,isFirstSlide:pb,isLastSlide:m8,isLastVerticalSlide:hb,isVerticalSlide:F4,isPaused:V4,isAutoSliding:cJt,isSpeakerNotes:qn.isSpeakerNotesWindow.bind(qn),isOverview:an.isActive.bind(an),isFocused:Jn.isFocused.bind(Jn),isPrintingPDF:ni.isPrintingPDF.bind(ni),isReady:()=>f,loadSlide:ze.load.bind(ze),unloadSlide:ze.unload.bind(ze),startEmbeddedContent:()=>ze.startEmbeddedContent(a),stopEmbeddedContent:()=>ze.stopEmbeddedContent(a,{unloadIframes:!1}),showPreview:Js,hidePreview:o0,addEventListeners:Ei,removeEventListeners:Zo,dispatchEvent:Ec,getState:Ffe,setState:gJt,getProgress:uJt,getIndices:Dfe,getSlidesAttributes:pJt,getSlidePastCount:Lfe,getTotalSlides:Rfe,getSlide:zfe,getPreviousSlide:()=>r,getCurrentSlide:()=>a,getSlideBackground:fJt,getSlideNotes:qn.getSlideNotes.bind(qn),getSlides:cV,getHorizontalSlides:B4,getVerticalSlides:kfe,hasHorizontalSlides:Ife,hasVerticalSlides:Nfe,hasNavigatedHorizontally:()=>w.hasNavigatedHorizontally,hasNavigatedVertically:()=>w.hasNavigatedVertically,addKeyBinding:pn.addKeyBinding.bind(pn),removeKeyBinding:pn.removeKeyBinding.bind(pn),triggerKey:pn.triggerKey.bind(pn),registerKeyboardShortcut:pn.registerKeyboardShortcut.bind(pn),getComputedSlideSize:hT,getScale:()=>U,getConfig:()=>u,getQueryHash:Pse,getSlidePath:yn.getHash.bind(yn),getRevealElement:()=>t,getSlidesElement:()=>se.slides,getViewportElement:()=>se.viewport,getBackgroundsElement:()=>Ut.element,registerPlugin:Rn.registerPlugin.bind(Rn),hasPlugin:Rn.hasPlugin.bind(Rn),getPlugin:Rn.getPlugin.bind(Rn),getPlugins:Rn.getRegisteredPlugins.bind(Rn)};return l8(e,pV(ap({},Wfe),{announceStatus:ro,getStatusText:ki,print:ni,focus:Jn,progress:kn,controls:Kt,location:yn,overview:an,fragments:jt,slideContent:ze,slideNumber:qe,onUserInput:mJt,closeOverlay:o0,updateSlidesVisibility:sV,layoutSlideContents:uT,transformSlides:gs,cueAutoSlide:_8,cancelAutoSlide:gT})),Wfe}let D4=zse,Fse=[];D4.initialize=t=>(Object.assign(D4,new zse(document.querySelector(".reveal"),t)),Fse.map(n=>n(D4)),D4.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{D4[t]=(...n)=>{Fse.push(e=>e[t].call(null,...n))}}),D4.isReady=()=>!1,D4.VERSION="4.6.0";const eft=D4;let h8={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const nft=/[&<>"']/,ift=/[&<>"']/g,oft=/[<>"']|&(?!#?\w+;)/,rft=/[<>"']|&(?!#?\w+;)/g,aft={"&":"&","<":"<",">":">",'"':""","'":"'"},Hse=t=>aft[t];function V1(t,n){if(n){if(nft.test(t))return t.replace(ift,Hse)}else if(oft.test(t))return t.replace(rft,Hse);return t}const sft=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Vse(t){return t.replace(sft,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const cft=/(^|[^\[])\^/g;function lc(t,n){t=t.source||t,n=n||"";const e={replace:(i,o)=>(o=(o=o.source||o).replace(cft,"$1"),t=t.replace(i,o),e),getRegex:()=>new RegExp(t,n)};return e}const lft=/[^\w:]/g,dft=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Bse(t,n,e){if(t){let i;try{i=decodeURIComponent(Vse(e)).replace(lft,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}n&&!dft.test(e)&&(e=function(i,o){kP[" "+i]||(kP[" "+i]=uft.test(i)?i+"/":NP(i,"/",!0));const r=-1===(i=kP[" "+i]).indexOf(":");return"//"===o.substring(0,2)?r?o:i.replace(hft,"$1")+o:"/"===o.charAt(0)?r?o:i.replace(pft,"$1")+o:i+o}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(i){return null}return e}const kP={},uft=/^[^:]+:\/*[^/]*$/,hft=/^([^:]+:)[\s\S]*$/,pft=/^([^:]+:\/*[^/]*)[\s\S]*$/,IP={exec:function(){}};function t0(t){let n,e,i=1;for(;i{let l=!1,u=r;for(;--u>=0&&"\\"===a[u];)l=!l;return l?"|":" |"}).split(/ \|/);let i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>n)e.splice(n);else for(;e.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function jse(t,n,e,i){const o=n.href,r=n.title?V1(n.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const l={type:"link",raw:e,href:o,title:r,text:a,tokens:i.inlineTokens(a,[])};return i.state.inLink=!1,l}return{type:"image",raw:e,href:o,title:r,text:V1(a)}}class FF{constructor(n){this.options=n||h8}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:NP(i,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const i=e[0],o=function(r,a){const l=r.match(/^(\s+)(?:```)/);if(null===l)return a;const u=l[1];return a.split("\n").map(f=>{const w=f.match(/^\s+/);if(null===w)return f;const[T]=w;return T.length>=u.length?f.slice(u.length):f}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let i=e[2].trim();if(/#$/.test(i)){const r=NP(i,"#");this.options.pedantic?i=r.trim():r&&!/ $/.test(r)||(i=r.trim())}const o={type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const i=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(n){let e=this.rules.block.list.exec(n);if(e){let i,o,r,a,l,u,f,w,T,U,ie,se,Me=e[1].trim();const we=Me.length>1,He={type:"list",raw:"",ordered:we,start:we?+Me.slice(0,-1):"",loose:!1,items:[]};Me=we?`\\d{1,9}\\${Me.slice(-1)}`:`\\${Me}`,this.options.pedantic&&(Me=we?Me:"[*+-]");const Be=new RegExp(`^( {0,3}${Me})((?: [^\\n]*)?(?:\\n|$))`);for(;n&&(se=!1,e=Be.exec(n))&&!this.rules.block.hr.test(n);){if(i=e[0],n=n.substring(i.length),w=e[2].split("\n",1)[0],T=n.split("\n",1)[0],this.options.pedantic?(a=2,ie=w.trimLeft()):(a=e[2].search(/[^ ]/),a=a>4?1:a,ie=w.slice(a),a+=e[1].length),u=!1,!w&&/^ *$/.test(T)&&(i+=T+"\n",n=n.substring(T.length+1),se=!0),!se){const ze=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;n&&(U=n.split("\n",1)[0],w=U,this.options.pedantic&&(w=w.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!ze.test(w));){if(w.search(/[^ ]/)>=a||!w.trim())ie+="\n"+w.slice(a);else{if(u)break;ie+="\n"+w}u||w.trim()||(u=!0),i+=U+"\n",n=n.substring(U.length+1)}}He.loose||(f?He.loose=!0:/\n *\n *$/.test(i)&&(f=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(ie),o&&(r="[ ] "!==o[0],ie=ie.replace(/^\[[ xX]\] +/,""))),He.items.push({type:"list_item",raw:i,task:!!o,checked:r,loose:!1,text:ie}),He.raw+=i}He.items[He.items.length-1].raw=i.trimRight(),He.items[He.items.length-1].text=ie.trimRight(),He.raw=He.raw.trimRight();const me=He.items.length;for(l=0;l"space"===rt.type),qe=ze.every(rt=>{const xt=rt.raw.split("");let Ut=0;for(const jt of xt)if("\n"===jt&&(Ut+=1),Ut>1)return!0;return!1});!He.loose&&ze.length&&qe&&(He.loose=!0,He.items[l].loose=!0)}return He}}html(n){const e=this.rules.block.html.exec(n);if(e){const i={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(e[0]):V1(e[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(n){const e=this.rules.block.def.exec(n);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}table(n){const e=this.rules.block.table.exec(n);if(e){const i={type:"table",header:Gse(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let o,r,a,l,u=i.align.length;for(o=0;o({text:f}));for(u=i.header.length,r=0;r/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:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):V1(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const a=NP(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{const a=function(l,u){if(-1===l.indexOf(u[1]))return-1;const f=l.length;let w=0,T=0;for(;T-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],r="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a&&(o=a[1],r=a[3])}else r=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(i)?o.slice(1):o.slice(1,-1)),jse(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){let o=(i[2]||i[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o||!o.href){const r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return jse(i,o,i[0],this.lexer)}}emStrong(n,e,i=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&i.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===i||this.rules.inline.punctuation.exec(i))){const a=o[0].length-1;let l,u,f=a,w=0;const T="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(T.lastIndex=0,e=e.slice(-1*n.length+a);null!=(o=T.exec(e));){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(u=l.length,o[3]||o[4]){f+=u;continue}if((o[5]||o[6])&&a%3&&!((a+u)%3)){w+=u;continue}if(f-=u,f>0)continue;if(u=Math.min(u,u+f+w),Math.min(a,u)%2){const ie=n.slice(1,a+o.index+u);return{type:"em",raw:n.slice(0,a+o.index+u+1),text:ie,tokens:this.lexer.inlineTokens(ie,[])}}const U=n.slice(2,a+o.index+u-1);return{type:"strong",raw:n.slice(0,a+o.index+u+1),text:U,tokens:this.lexer.inlineTokens(U,[])}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let i=e[2].replace(/\n/g," ");const o=/[^ ]/.test(i),r=/^ /.test(i)&&/ $/.test(i);return o&&r&&(i=i.substring(1,i.length-1)),i=V1(i,!0),{type:"codespan",raw:e[0],text:i}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(n,e){const i=this.rules.inline.autolink.exec(n);if(i){let o,r;return"@"===i[2]?(o=V1(this.options.mangle?e(i[1]):i[1]),r="mailto:"+o):(o=V1(i[1]),r=o),{type:"link",raw:i[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let i;if(i=this.rules.inline.url.exec(n)){let o,r;if("@"===i[2])o=V1(this.options.mangle?e(i[0]):i[0]),r="mailto:"+o;else{let a;do{a=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(a!==i[0]);o=V1(i[0]),r="www."===i[1]?"http://"+o:o}return{type:"link",raw:i[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const i=this.rules.inline.text.exec(n);if(i){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):V1(i[0]):i[0]:V1(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:o}}}}const jr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:IP,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};jr.def=lc(jr.def).replace("label",jr._label).replace("title",jr._title).getRegex(),jr.bullet=/(?:[*+-]|\d{1,9}[.)])/,jr.listItemStart=lc(/^( *)(bull) */).replace("bull",jr.bullet).getRegex(),jr.list=lc(jr.list).replace(/bull/g,jr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+jr.def.source+")").getRegex(),jr._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",jr._comment=/|$)/,jr.html=lc(jr.html,"i").replace("comment",jr._comment).replace("tag",jr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jr.paragraph=lc(jr._paragraph).replace("hr",jr.hr).replace("heading"," {0,3}#{1,6} ").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",jr._tag).getRegex(),jr.blockquote=lc(jr.blockquote).replace("paragraph",jr.paragraph).getRegex(),jr.normal=t0({},jr),jr.gfm=t0({},jr.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),jr.gfm.table=lc(jr.gfm.table).replace("hr",jr.hr).replace("heading"," {0,3}#{1,6} ").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",jr._tag).getRegex(),jr.gfm.paragraph=lc(jr._paragraph).replace("hr",jr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",jr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",jr._tag).getRegex(),jr.pedantic=t0({},jr.normal,{html:lc("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",jr._comment).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:IP,paragraph:lc(jr.normal._paragraph).replace("hr",jr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",jr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Qo={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:IP,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:IP,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(e="x"+e.toString(16)),i+="&#"+e+";";return i}Qo._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Qo.punctuation=lc(Qo.punctuation).replace(/punctuation/g,Qo._punctuation).getRegex(),Qo.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Qo.escapedEmSt=/\\\*|\\_/g,Qo._comment=lc(jr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Qo.emStrong.lDelim=lc(Qo.emStrong.lDelim).replace(/punct/g,Qo._punctuation).getRegex(),Qo.emStrong.rDelimAst=lc(Qo.emStrong.rDelimAst,"g").replace(/punct/g,Qo._punctuation).getRegex(),Qo.emStrong.rDelimUnd=lc(Qo.emStrong.rDelimUnd,"g").replace(/punct/g,Qo._punctuation).getRegex(),Qo._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Qo._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Qo._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])?)+(?![-_])/,Qo.autolink=lc(Qo.autolink).replace("scheme",Qo._scheme).replace("email",Qo._email).getRegex(),Qo._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Qo.tag=lc(Qo.tag).replace("comment",Qo._comment).replace("attribute",Qo._attribute).getRegex(),Qo._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qo._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Qo._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qo.link=lc(Qo.link).replace("label",Qo._label).replace("href",Qo._href).replace("title",Qo._title).getRegex(),Qo.reflink=lc(Qo.reflink).replace("label",Qo._label).replace("ref",jr._label).getRegex(),Qo.nolink=lc(Qo.nolink).replace("ref",jr._label).getRegex(),Qo.reflinkSearch=lc(Qo.reflinkSearch,"g").replace("reflink",Qo.reflink).replace("nolink",Qo.nolink).getRegex(),Qo.normal=t0({},Qo),Qo.pedantic=t0({},Qo.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:lc(/^!?\[(label)\]\((.*?)\)/).replace("label",Qo._label).getRegex(),reflink:lc(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qo._label).getRegex()}),Qo.gfm=t0({},Qo.normal,{escape:lc(Qo.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\!!(i=l.call({lexer:this},n,e))&&(n=n.substring(i.raw.length),e.push(i),!0))))if(i=this.tokenizer.space(n))n=n.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);else if(i=this.tokenizer.code(n))n=n.substring(i.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(i):(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(i=this.tokenizer.fences(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.heading(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.hr(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.blockquote(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.list(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.html(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.def(n))n=n.substring(i.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(o.raw+="\n"+i.raw,o.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(i=this.tokenizer.table(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.lheading(n))n=n.substring(i.raw.length),e.push(i);else{if(r=n,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const u=n.slice(1);let f;this.options.extensions.startBlock.forEach(function(w){f=w.call({lexer:this},u),"number"==typeof f&&f>=0&&(l=Math.min(l,f))}),l<1/0&&l>=0&&(r=n.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(r)))o=e[e.length-1],a&&"paragraph"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(i),a=r.length!==n.length,n=n.substring(i.raw.length);else if(i=this.tokenizer.text(n))n=n.substring(i.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(i);else if(n){const l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}return this.state.top=!0,e}inline(n,e){this.inlineQueue.push({src:n,tokens:e})}inlineTokens(n,e=[]){let i,o,r,a,l,u,f=n;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(f));)w.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(f=f.slice(0,a.index)+"["+Use("a",a[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(f));)f=f.slice(0,a.index)+"["+Use("a",a[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(f));)f=f.slice(0,a.index)+"++"+f.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;n;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(i=w.call({lexer:this},n,e))&&(n=n.substring(i.raw.length),e.push(i),!0))))if(i=this.tokenizer.escape(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.tag(n))n=n.substring(i.raw.length),o=e[e.length-1],o&&"text"===i.type&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):e.push(i);else if(i=this.tokenizer.link(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.reflink(n,this.tokens.links))n=n.substring(i.raw.length),o=e[e.length-1],o&&"text"===i.type&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):e.push(i);else if(i=this.tokenizer.emStrong(n,f,u))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.codespan(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.br(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.del(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.autolink(n,Wse))n=n.substring(i.raw.length),e.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(n,Wse))){if(r=n,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const T=n.slice(1);let U;this.options.extensions.startInline.forEach(function(ie){U=ie.call({lexer:this},T),"number"==typeof U&&U>=0&&(w=Math.min(w,U))}),w<1/0&&w>=0&&(r=n.substring(0,w+1))}if(i=this.tokenizer.inlineText(r,fft))n=n.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(u=i.raw.slice(-1)),l=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):e.push(i);else if(n){const w="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}else n=n.substring(i.raw.length),e.push(i);return e}}class HF{constructor(n){this.options=n||h8}code(n,e,i){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const r=this.options.highlight(n,o);null!=r&&r!==n&&(i=!0,n=r)}return n=n.replace(/\n$/,"")+"\n",o?'
'+(i?n:V1(n,!0))+"
\n":"
"+(i?n:V1(n,!0))+"
\n"}blockquote(n){return"
\n"+n+"
\n"}html(n){return n}heading(n,e,i,o){return this.options.headerIds?"'+n+"\n":""+n+"\n"}hr(){return this.options.xhtml?"
\n":"
\n"}list(n,e,i){const o=e?"ol":"ul";return"<"+o+(e&&1!==i?' start="'+i+'"':"")+">\n"+n+"\n"}listitem(n){return"
  • "+n+"
  • \n"}checkbox(n){return" "}paragraph(n){return"

    "+n+"

    \n"}table(n,e){return e&&(e=""+e+""),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return"\n"+n+"\n"}tablecell(n,e){const i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+n+"\n"}strong(n){return""+n+""}em(n){return""+n+""}codespan(n){return""+n+""}br(){return this.options.xhtml?"
    ":"
    "}del(n){return""+n+""}link(n,e,i){if(null===(n=Bse(this.options.sanitize,this.options.baseUrl,n)))return i;let o='",o}image(n,e,i){if(null===(n=Bse(this.options.sanitize,this.options.baseUrl,n)))return i;let o=''+i+'":">",o}text(n){return n}}class qse{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,i){return""+i}image(n,e,i){return""+i}br(){return""}}class $se{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let i=n,o=0;if(this.seen.hasOwnProperty(i)){o=this.seen[n];do{o++,i=n+"-"+o}while(this.seen.hasOwnProperty(i))}return e||(this.seen[n]=o,this.seen[i]=0),i}slug(n,e={}){const i=this.serialize(n);return this.getNextSafeSlug(i,e.dryrun)}}class I4{constructor(n){this.options=n||h8,this.options.renderer=this.options.renderer||new HF,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new qse,this.slugger=new $se}static parse(n,e){return new I4(e).parse(n)}static parseInline(n,e){return new I4(e).parseInline(n)}parse(n,e=!0){let i,o,r,a,l,u,f,w,T,U,ie,se,Me,we,He,Be,me,ze,qe,rt="";const xt=n.length;for(i=0;i0&&"paragraph"===He.tokens[0].type?(He.tokens[0].text=ze+" "+He.tokens[0].text,He.tokens[0].tokens&&He.tokens[0].tokens.length>0&&"text"===He.tokens[0].tokens[0].type&&(He.tokens[0].tokens[0].text=ze+" "+He.tokens[0].tokens[0].text)):He.tokens.unshift({type:"text",text:ze}):we+=ze),we+=this.parse(He.tokens,Me),T+=this.renderer.listitem(we,me,Be);rt+=this.renderer.list(T,ie,se);continue;case"html":rt+=this.renderer.html(U.text);continue;case"paragraph":rt+=this.renderer.paragraph(this.parseInline(U.tokens));continue;case"text":for(T=U.tokens?this.parseInline(U.tokens):U.text;i+1{i(l.text,l.lang,function(u,f){if(u)return r(u);null!=f&&f!==l.text&&(l.text=f,l.escaped=!0),a--,0===a&&r()})},0))}),void(0===a&&r())}try{const i=k4.lex(t,n);return n.walkTokens&&la.walkTokens(i,n.walkTokens),I4.parse(i,n)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n.silent)return"

    An error occurred:

    "+V1(i.message+"",!0)+"
    ";throw i}}la.options=la.setOptions=function(t){return t0(la.defaults,t),h8=la.defaults,la},la.getDefaults=function tft(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},la.defaults=h8,la.use=function(...t){const n=t0({},...t),e=la.defaults.extensions||{renderers:{},childTokens:{}};let i;t.forEach(o=>{if(o.extensions&&(i=!0,o.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){const a=e.renderers?e.renderers[r.name]:null;e.renderers[r.name]=a?function(...l){let u=r.renderer.apply(this,l);return!1===u&&(u=a.apply(this,l)),u}:r.renderer}if(r.tokenizer){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");e[r.level]?e[r.level].unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&("block"===r.level?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:"inline"===r.level&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}r.childTokens&&(e.childTokens[r.name]=r.childTokens)})),o.renderer){const r=la.defaults.renderer||new HF;for(const a in o.renderer){const l=r[a];r[a]=(...u)=>{let f=o.renderer[a].apply(r,u);return!1===f&&(f=l.apply(r,u)),f}}n.renderer=r}if(o.tokenizer){const r=la.defaults.tokenizer||new FF;for(const a in o.tokenizer){const l=r[a];r[a]=(...u)=>{let f=o.tokenizer[a].apply(r,u);return!1===f&&(f=l.apply(r,u)),f}}n.tokenizer=r}if(o.walkTokens){const r=la.defaults.walkTokens;n.walkTokens=function(a){o.walkTokens.call(this,a),r&&r.call(this,a)}}i&&(n.extensions=e),la.setOptions(n)})},la.walkTokens=function(t,n){for(const e of t)switch(n.call(la,e),e.type){case"table":for(const i of e.header)la.walkTokens(i.tokens,n);for(const i of e.rows)for(const o of i)la.walkTokens(o.tokens,n);break;case"list":la.walkTokens(e.items,n);break;default:la.defaults.extensions&&la.defaults.extensions.childTokens&&la.defaults.extensions.childTokens[e.type]?la.defaults.extensions.childTokens[e.type].forEach(function(i){la.walkTokens(e[i],n)}):e.tokens&&la.walkTokens(e.tokens,n)}},la.parseInline=function(t,n){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");Yse(n=t0({},la.defaults,n||{}));try{const e=k4.lexInline(t,n);return n.walkTokens&&la.walkTokens(e,n.walkTokens),I4.parseInline(e,n)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",n.silent)return"

    An error occurred:

    "+V1(e.message+"",!0)+"
    ";throw e}},la.Parser=I4,la.parser=I4.parse,la.Renderer=HF,la.TextRenderer=qse,la.Lexer=k4,la.lexer=k4.lex,la.Tokenizer=FF,la.Slugger=$se,la.parse=la;const Xse="__SCRIPT_END__",RP=/\[\s*((\d*):)?\s*([\s\d,|-]*)\]/,gft={"&":"&","<":"<",">":">",'"':""","'":"'"},mft=()=>{let t;function n(w){let T=(w.querySelector("[data-template]")||w.querySelector("script")||w).textContent;T=T.replace(new RegExp(Xse,"g"),"<\/script>");const U=T.match(/^\n?(\s*)/)[1].length,ie=T.match(/^\n?(\t*)/)[1].length;return ie>0?T=T.replace(new RegExp("\\n?\\t{"+ie+"}(.*)","g"),function(se,Me){return"\n"+Me}):U>1&&(T=T.replace(new RegExp("\\n? {"+U+"}(.*)","g"),function(se,Me){return"\n"+Me})),T}function e(w){const T=w.attributes,U=[];for(let ie=0,se=T.length;ie'+la(U[1].trim())+""),' + \ No newline at end of file diff --git a/workbenches/noctua-standard-annotations/public/main.b6beb68e913c1597.js b/workbenches/noctua-standard-annotations/public/main.90e4a99ea0d23aff.js similarity index 54% rename from workbenches/noctua-standard-annotations/public/main.b6beb68e913c1597.js rename to workbenches/noctua-standard-annotations/public/main.90e4a99ea0d23aff.js index dddf60c..d5b6689 100644 --- a/workbenches/noctua-standard-annotations/public/main.b6beb68e913c1597.js +++ b/workbenches/noctua-standard-annotations/public/main.90e4a99ea0d23aff.js @@ -1 +1 @@ -var _Jt=Object.defineProperty,CJt=Object.defineProperties,vJt=Object.getOwnPropertyDescriptors,bT=Object.getOwnPropertySymbols,Wfe=Object.prototype.hasOwnProperty,qfe=Object.prototype.propertyIsEnumerable,jfe=(z,F,C)=>F in z?_Jt(z,F,{enumerable:!0,configurable:!0,writable:!0,value:C}):z[F]=C,ap=(z,F)=>{for(var C in F||(F={}))Wfe.call(F,C)&&jfe(z,C,F[C]);if(bT)for(var C of bT(F))qfe.call(F,C)&&jfe(z,C,F[C]);return z},hV=(z,F)=>CJt(z,vJt(F)),$fe=(z,F)=>{var C={};for(var y in z)Wfe.call(z,y)&&F.indexOf(y)<0&&(C[y]=z[y]);if(null!=z&&bT)for(var y of bT(z))F.indexOf(y)<0&&qfe.call(z,y)&&(C[y]=z[y]);return C};(self.webpackChunknoctua=self.webpackChunknoctua||[]).push([[179],{66713:(z,F,C)=>{var y=C(68680);function m(){this.mapDirect=new Map,this.mapInverse=new Map}function E(_){for(var x of(this.trie=new y,this.curieMap=_,_.values()))this.trie.insert(x)}m.prototype.set=function(_,x){this.mapDirect.set(_,x),this.mapInverse.set(x,_)},m.prototype.get=function(_){return this.mapDirect.get(_)},m.prototype.getInverse=function(_){return this.mapInverse.get(_)},m.prototype.has=function(_){return this.mapDirect.has(_)},m.prototype.keys=function(){return this.mapDirect.keys()},m.prototype.values=function(){return this.mapDirect.values()},E.prototype.getPrefixes=function(){return this.curieMap.keys()},E.prototype.getExpansion=function(_){return this.curieMap.get(_)},E.prototype.getCurie=function(_){var x=this.trie.getMatchingPrefix(_);return x&&""!=x?this.curieMap.getInverse(x)+":"+_.substring(x.length,_.length):null},E.prototype.getIri=function(_){if(!_)return null;var x=_.split(":");if(0==x.length)return null;var S=x[0];return this.curieMap.has(S)?this.curieMap.get(S)+_.substring(_.indexOf(":")+1):null},E.prototype.getCurieMap=function(){return this.curieMap},z.exports.q=function h(_){try{var x=_["@context"],S=new m;return Object.keys(x).forEach(v=>{S.set(v,x[v])}),S}catch(v){return null}},z.exports.T=E},38437:z=>{function F(C){this.value=C,this.children=new Map,this.leaf=!1}F.prototype.getChildren=function(){return this.children},F.prototype.getValue=function(){return this.value},F.prototype.setIsLeaf=function(C){this.leaf=C},F.prototype.isLeaf=function(){return this.leaf},z.exports=F},68680:(z,F,C)=>{var y=C(38437);function m(){this.root=new y(String.fromCharCode(0))}m.prototype.insert=function(E){for(var h=E.length,_=this.root,x=0;x{"use strict";var y={};C.r(y),C.d(y,{forceCenter:()=>bNe,forceCollide:()=>yK,forceLink:()=>PK,forceManyBody:()=>RK,forceRadial:()=>tRe,forceSimulation:()=>NK,forceX:()=>nRe,forceY:()=>iRe});var m={};C.r(m),C.d(m,{dispatch:()=>RZ});var E={};C.r(E),C.d(E,{interval:()=>rRe,now:()=>Y6,timeout:()=>SI,timer:()=>MI,timerFlush:()=>HZ});var h={};C.r(h),C.d(h,{ellipseWithEllipse:()=>Ire,ellipseWithLine:()=>Vz,exists:()=>kre,lineWithLine:()=>Fm,pathWithEllipse:()=>Yre,pathWithLine:()=>Gre,pathWithPath:()=>jre,pathWithPolygon:()=>lP,pathWithPolyline:()=>Uz,pathWithRect:()=>Ure,polygonWithEllipse:()=>cP,polygonWithLine:()=>Yz,polygonWithPolygon:()=>Bre,polygonWithPolyline:()=>Vre,polygonWithRect:()=>Hre,polylineWithEllipse:()=>Gz,polylineWithLine:()=>sP,polylineWithPolyline:()=>Fre,polylineWithRect:()=>zre,rectWithEllipse:()=>Rre,rectWithLine:()=>Nre,rectWithRect:()=>Bz});var _={};C.r(_),C.d(_,{Curve:()=>Ls,Ellipse:()=>d2,Line:()=>Ho,Path:()=>_r,Point:()=>wn,Polygon:()=>V2,Polyline:()=>cc,Rect:()=>Po,bezier:()=>vct,ellipse:()=>hct,intersection:()=>xct,line:()=>Nm,normalizeAngle:()=>K0,point:()=>Bv,random:()=>Az,rect:()=>mct,scale:()=>sct,snapToGrid:()=>Im,toDeg:()=>tP,toRad:()=>H2,types:()=>Aa});var x={};C.r(x),C.d(x,{absolute:()=>Gct,bottom:()=>$ct,ellipse:()=>Qct,ellipseSpread:()=>Xct,fn:()=>Yct,left:()=>jct,line:()=>Uct,right:()=>Wct,top:()=>qct});var S={};C.r(S),C.d(S,{bottom:()=>tlt,inside:()=>rlt,insideOriented:()=>olt,left:()=>Kct,manual:()=>Zct,outside:()=>ilt,outsideOriented:()=>nlt,radial:()=>alt,radialOriented:()=>slt,right:()=>Jct,top:()=>elt});var v={};C.r(v),C.d(v,{Circle:()=>iF,Ellipse:()=>plt,Generic:()=>ws,Image:()=>mlt,Path:()=>Oae,Polygon:()=>flt,Polyline:()=>glt,Rect:()=>dlt,Rhombus:()=>_lt,Text:()=>hlt,TextBlock:()=>Clt,TextBlockView:()=>vlt,TextView:()=>ult});var O={};C.r(O),C.d(O,{BorderedImage:()=>Plt,Circle:()=>xlt,Cylinder:()=>Llt,DoubleLink:()=>zlt,Ellipse:()=>ylt,EmbeddedImage:()=>Tlt,HeaderedRectangle:()=>Alt,Image:()=>Slt,InscribedImage:()=>Elt,Link:()=>Rlt,Path:()=>wlt,Polygon:()=>Mlt,Polyline:()=>Olt,Rectangle:()=>blt,ShadowLink:()=>Flt,TextBlock:()=>Nlt});var A={};C.r(A),C.d(A,{Atomic:()=>Hlt,Coupled:()=>Vlt,Link:()=>Sae,Model:()=>rF});var D={};C.r(D),C.d(D,{And:()=>Wlt,Gate:()=>_P,Gate11:()=>sF,Gate21:()=>Vm,IO:()=>aF,Input:()=>Blt,Nand:()=>$lt,Nor:()=>qlt,Not:()=>Ult,Or:()=>jlt,Output:()=>Glt,Repeater:()=>Ylt,Wire:()=>Zlt,Xnor:()=>Qlt,Xor:()=>Xlt});var L={};C.r(L),C.d(L,{BishopBlack:()=>r1t,BishopWhite:()=>o1t,KingBlack:()=>Jlt,KingWhite:()=>Klt,KnightBlack:()=>s1t,KnightWhite:()=>a1t,PawnBlack:()=>l1t,PawnWhite:()=>c1t,QueenBlack:()=>t1t,QueenWhite:()=>e1t,RookBlack:()=>i1t,RookWhite:()=>n1t});var q={};C.r(q),C.d(q,{Attribute:()=>Xv,Derived:()=>p1t,Entity:()=>Pae,ISA:()=>m1t,IdentifyingRelationship:()=>u1t,Key:()=>f1t,Line:()=>_1t,Multivalued:()=>h1t,Normal:()=>g1t,Relationship:()=>Tae,WeakEntity:()=>d1t});var Q={};C.r(Q),C.d(Q,{Arrow:()=>x1t,EndState:()=>b1t,StartState:()=>v1t,State:()=>C1t});var k={};C.r(k),C.d(k,{Arrow:()=>w1t,Member:()=>y1t});var c={};C.r(c),C.d(c,{Link:()=>P1t,Place:()=>M1t,PlaceView:()=>O1t,Transition:()=>S1t});var X={};C.r(X),C.d(X,{Abstract:()=>T1t,AbstractView:()=>E1t,Aggregation:()=>I1t,Association:()=>R1t,Class:()=>cF,ClassView:()=>lF,Composition:()=>N1t,EndState:()=>H1t,Generalization:()=>D1t,Implementation:()=>k1t,Interface:()=>A1t,InterfaceView:()=>L1t,StartState:()=>F1t,State:()=>z1t,Transition:()=>V1t});var te={};C.r(te),C.d(te,{basic:()=>v,chess:()=>L,devs:()=>A,erd:()=>q,fsa:()=>Q,logic:()=>D,org:()=>k,pn:()=>c,standard:()=>O,uml:()=>X});var ge={};C.r(ge),C.d(ge,{manhattan:()=>xF,metro:()=>ydt,normal:()=>odt,oneSide:()=>rdt,orthogonal:()=>_F});var Ce={};C.r(Ce),C.d(Ce,{curve:()=>wF,jumpover:()=>Ldt,normal:()=>Ddt,rounded:()=>kdt,smooth:()=>Idt});var De={};C.r(De),C.d(De,{addClass:()=>Xdt,mask:()=>qdt,opacity:()=>$dt,stroke:()=>jdt});var Pe={};C.r(Pe),C.d(Pe,{connectionClosest:()=>sse,connectionLength:()=>Zdt,connectionPerpendicular:()=>e2t,connectionRatio:()=>Qdt,resolveRef:()=>eb});var ee={};C.r(ee),C.d(ee,{anchor:()=>a2t,bbox:()=>s2t,boundary:()=>l2t,rectangle:()=>c2t});var K={};function _e(t){return"function"==typeof t}function Ne(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}C.r(K),C.d(K,{bottom:()=>g2t,bottomLeft:()=>b2t,bottomRight:()=>x2t,center:()=>p2t,left:()=>m2t,midSide:()=>w2t,modelCenter:()=>M2t,perpendicular:()=>y2t,right:()=>_2t,top:()=>f2t,topLeft:()=>C2t,topRight:()=>v2t});const Ve=Ne(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Oe(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Se{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(_e(i))try{i()}catch(r){n=r instanceof Ve?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Ke(r)}catch(a){n=null!=n?n:[],a instanceof Ve?n=[...n,...a.errors]:n.push(a)}}if(n)throw new Ve(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Ke(n);else{if(n instanceof Se){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Oe(e,n)}remove(n){const{_finalizers:e}=this;e&&Oe(e,n),n instanceof Se&&n._removeParent(this)}}Se.EMPTY=(()=>{const t=new Se;return t.closed=!0,t})();const Ge=Se.EMPTY;function st(t){return t instanceof Se||t&&"closed"in t&&_e(t.remove)&&_e(t.add)&&_e(t.unsubscribe)}function Ke(t){_e(t)?t():t.unsubscribe()}const Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Et(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Je;if(!n)throw t;n(t)})}function wt(){}const At=Tt("C",void 0,void 0);function Tt(t,n,e){return{kind:t,value:n,error:e}}let Mt=null;function Xt(t){if(Je.useDeprecatedSynchronousErrorHandling){const n=!Mt;if(n&&(Mt={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Mt;if(Mt=null,e)throw i}}else t()}class s extends Se{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,st(n)&&n.add(this)):this.destination=ae}static create(n,e,i){return new P(n,e,i)}next(n){this.isStopped?fe(function bt(t){return Tt("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?fe(function Vt(t){return Tt("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?fe(At,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const d=Function.prototype.bind;function p(t,n){return d.call(t,n)}class g{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){b(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){b(i)}else b(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){b(e)}}}class P extends s{constructor(n,e,i){let o;if(super(),_e(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&Je.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&p(n.next,r),error:n.error&&p(n.error,r),complete:n.complete&&p(n.complete,r)}):o=n}this.destination=new g(o)}}function b(t){Je.useDeprecatedSynchronousErrorHandling?function Gt(t){Je.useDeprecatedSynchronousErrorHandling&&Mt&&(Mt.errorThrown=!0,Mt.error=t)}(t):Et(t)}function fe(t,n){const{onStoppedNotification:e}=Je;e&&pt.setTimeout(()=>e(t,n))}const ae={closed:!0,next:wt,error:function B(t){throw t},complete:wt},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ie(t){return t}let Wt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function w(t){return t&&t instanceof s||function di(t){return t&&_e(t.next)&&_e(t.error)&&_e(t.complete)}(t)&&st(t)}(e)?e:new P(e,i,o);return Xt(()=>{const{operator:a,source:l}=this;r.add(a?a.call(r,l):l?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Fn(i))((o,r)=>{const a=new P({next:l=>{try{e(l)}catch(u){r(u),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[pe](){return this}pipe(...e){return function Yt(t){return 0===t.length?Ie:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=Fn(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function Fn(t){var n;return null!==(n=null!=t?t:Je.Promise)&&void 0!==n?n:Promise}const I=Ne(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let N=(()=>{class t extends Wt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new re(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new I}next(e){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?Ge:(this.currentObservers=null,r.push(e),new Se(()=>{this.currentObservers=null,Oe(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new Wt;return e.source=this,e}}return t.create=(n,e)=>new re(n,e),t})();class re extends N{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Ge}}function he(t){return _e(null==t?void 0:t.lift)}function ve(t){return n=>{if(he(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(t,n,e,i,o){return new at(t,n,e,i,o)}class at extends s{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(l){try{e(l)}catch(u){n.error(u)}}:super._next,this._error=o?function(l){try{o(l)}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function it(t,n){return ve((e,i)=>{let o=0;e.subscribe($e(i,r=>{i.next(t.call(n,r,o++))}))})}function An(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r}function Lr(t){return this instanceof Lr?(this.v=t,this):new Lr(t)}function ba(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(U){i[U]&&(o[U]=function(ie){return new Promise(function(se,Me){r.push([U,ie,se,Me])>1||l(U,ie)})})}function l(U,ie){try{!function u(U){U.value instanceof Lr?Promise.resolve(U.value.v).then(f,M):T(r[0][2],U)}(i[U](ie))}catch(se){T(r[0][3],se)}}function f(U){l("next",U)}function M(U){l("throw",U)}function T(U,ie){U(ie),r.shift(),r.length&&l(r[0][0],r[0][1])}}function La(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Qi(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(l,u){!function o(r,a,l,u){Promise.resolve(u).then(function(f){r({value:f,done:l})},a)}(l,u,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const xc=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Gs(t){return _e(null==t?void 0:t.then)}function Jr(t){return _e(t[pe])}function Ns(t){return Symbol.asyncIterator&&_e(null==t?void 0:t[Symbol.asyncIterator])}function Ga(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Lc=function zl(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function yc(t){return _e(null==t?void 0:t[Lc])}function ec(t){return ba(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Lr(e.read());if(o)return yield Lr(void 0);yield yield Lr(i)}}finally{e.releaseLock()}})}function ea(t){return _e(null==t?void 0:t.getReader)}function Ur(t){if(t instanceof Wt)return t;if(null!=t){if(Jr(t))return function Ys(t){return new Wt(n=>{const e=t[pe]();if(_e(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(xc(t))return function Fl(t){return new Wt(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Et)})}(t);if(Ns(t))return G1(t);if(yc(t))return function B1(t){return new Wt(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ea(t))return function ks(t){return G1(ec(t))}(t)}throw Ga(t)}function G1(t){return new Wt(n=>{(function Dc(t,n){var e,i,o,r;return function vi(t,n,e,i){return new(e||(e=Promise))(function(r,a){function l(M){try{f(i.next(M))}catch(T){a(T)}}function u(M){try{f(i.throw(M))}catch(T){a(T)}}function f(M){M.done?r(M.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(M.value).then(l,u)}f((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=La(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Rs(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function da(t,n,e=1/0){return _e(n)?da((i,o)=>it((r,a)=>n(i,r,o,a))(Ur(t(i,o))),e):("number"==typeof n&&(e=n),ve((i,o)=>function Hl(t,n,e,i,o,r,a,l){const u=[];let f=0,M=0,T=!1;const U=()=>{T&&!u.length&&!f&&n.complete()},ie=Me=>f{r&&n.next(Me),f++;let we=!1;Ur(e(Me,M++)).subscribe($e(n,He=>{null==o||o(He),r?ie(He):n.next(He)},()=>{we=!0},void 0,()=>{if(we)try{for(f--;u.length&&fse(He)):se(He)}U()}catch(He){n.error(He)}}))};return t.subscribe($e(n,ie,()=>{T=!0,U()})),()=>{null==l||l()}}(i,o,t,e)))}function wc(t=1/0){return da(Ie,t)}const Na=new Wt(t=>t.complete());function C1(t){return t&&_e(t.schedule)}function Vl(t){return t[t.length-1]}function Da(t){return _e(Vl(t))?t.pop():void 0}function Us(t){return C1(Vl(t))?t.pop():void 0}function gl(t,n=0){return ve((e,i)=>{e.subscribe($e(i,o=>Rs(i,t,()=>i.next(o),n),()=>Rs(i,t,()=>i.complete(),n),o=>Rs(i,t,()=>i.error(o),n)))})}function js(t,n=0){return ve((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function uc(t,n){if(!t)throw new Error("Iterable cannot be null");return new Wt(e=>{Rs(e,n,()=>{const i=t[Symbol.asyncIterator]();Rs(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Ra(t,n){return n?function a1(t,n){if(null!=t){if(Jr(t))return function Bs(t,n){return Ur(t).pipe(js(n),gl(n))}(t,n);if(xc(t))return function ml(t,n){return new Wt(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Gs(t))return function Ic(t,n){return Ur(t).pipe(js(n),gl(n))}(t,n);if(Ns(t))return uc(t,n);if(yc(t))return function v1(t,n){return new Wt(e=>{let i;return Rs(e,n,()=>{i=t[Lc](),Rs(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>_e(null==i?void 0:i.return)&&i.return()})}(t,n);if(ea(t))return function b1(t,n){return uc(ec(t),n)}(t,n)}throw Ga(t)}(t,n):Ur(t)}function kr(...t){const n=Us(t),e=function dc(t,n){return"number"==typeof Vl(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Ur(i[0]):wc(e)(Ra(i,n)):Na}function _l(t={}){const{connector:n=(()=>new N),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,l,u,f=0,M=!1,T=!1;const U=()=>{null==l||l.unsubscribe(),l=void 0},ie=()=>{U(),a=u=void 0,M=T=!1},se=()=>{const Me=a;ie(),null==Me||Me.unsubscribe()};return ve((Me,we)=>{f++,!T&&!M&&U();const He=u=null!=u?u:n();we.add(()=>{f--,0===f&&!T&&!M&&(l=Y1(se,o))}),He.subscribe(we),!a&&f>0&&(a=new P({next:Be=>He.next(Be),error:Be=>{T=!0,U(),l=Y1(ie,e,Be),He.error(Be)},complete:()=>{M=!0,U(),l=Y1(ie,i),He.complete()}}),Ur(Me).subscribe(a))})(r)}}function Y1(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new P({next:()=>{i.unsubscribe(),t()}});return Ur(n(...e)).subscribe(i)}function Pa(t){for(let n in t)if(t[n]===Pa)return n;throw Error("Could not find renamed property on target object.")}function le(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Le(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Le).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Fe(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const We=Pa({__forward_ref__:Pa});function nt(t){return t.__forward_ref__=nt,t.toString=function(){return Le(this())},t}function lt(t){return It(t)?t():t}function It(t){return"function"==typeof t&&t.hasOwnProperty(We)&&t.__forward_ref__===nt}class sn extends Error{constructor(n,e){super(function Hn(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function On(t){return"string"==typeof t?t:null==t?"":String(t)}function xi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():On(t)}function Bo(t,n){const e=n?` in ${n}`:"";throw new sn(-201,`No provider for ${xi(t)} found${e}`)}function Ye(t,n){null==t&&function je(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function gt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cn(t){return Kn(t,Sr)||Kn(t,ra)}function Kn(t,n){return t.hasOwnProperty(n)?t[n]:null}function Gi(t){return t&&(t.hasOwnProperty(Go)||t.hasOwnProperty(tc))?t[Go]:null}const Sr=Pa({\u0275prov:Pa}),Go=Pa({\u0275inj:Pa}),ra=Pa({ngInjectableDef:Pa}),tc=Pa({ngInjectorDef:Pa});var qi=(()=>((qi=qi||{})[qi.Default=0]="Default",qi[qi.Host=1]="Host",qi[qi.Self=2]="Self",qi[qi.SkipSelf=4]="SkipSelf",qi[qi.Optional=8]="Optional",qi))();let Ya;function Fr(t){const n=Ya;return Ya=t,n}function Ha(t,n,e){const i=Cn(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&qi.Optional?null:void 0!==n?n:void Bo(Le(t),"Injector")}function qr(t){return{toString:t}.toString()}var Ua=(()=>((Ua=Ua||{})[Ua.OnPush=0]="OnPush",Ua[Ua.Default=1]="Default",Ua))(),pa=(()=>{return(t=pa||(pa={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",pa;var t})();const Ko="undefined"!=typeof globalThis&&globalThis,al="undefined"!=typeof window&&window,Hr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,tt=Ko||"undefined"!=typeof global&&global||al||Hr,en={},gn=[],bn=Pa({\u0275cmp:Pa}),si=Pa({\u0275dir:Pa}),ji=Pa({\u0275pipe:Pa}),ur=Pa({\u0275mod:Pa}),Ao=Pa({\u0275fac:Pa}),wa=Pa({__NG_ELEMENT_ID__:Pa});let os=0;function vn(t){return qr(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ua.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||gn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||pa.Emulated,id:"c",styles:t.styles||gn,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,r=t.features,a=t.pipes;return i.id+=os++,i.inputs=Pn(t.inputs,e),i.outputs=Pn(t.outputs),r&&r.forEach(l=>l(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(rs):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map($s):null,i})}function rs(t){return ci(t)||function mi(t){return t[si]||null}(t)}function $s(t){return function $i(t){return t[ji]||null}(t)}const U1={};function ht(t){return qr(()=>{const n={type:t.type,bootstrap:t.bootstrap||gn,declarations:t.declarations||gn,imports:t.imports||gn,exports:t.exports||gn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(U1[t.id]=t.type),n})}function Pn(t,n){if(null==t)return en;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}const St=vn;function zn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ci(t){return t[bn]||null}function zt(t,n){const e=t[ur]||null;if(!e&&!0===n)throw new Error(`Type ${Le(t)} does not have '\u0275mod' property.`);return e}function Ms(t){return Array.isArray(t)&&"object"==typeof t[1]}function ms(t){return Array.isArray(t)&&!0===t[1]}function as(t){return 0!=(8&t.flags)}function zd(t){return 2==(2&t.flags)}function x1(t){return 1==(1&t.flags)}function ss(t){return null!==t.template}function Y3(t){return 0!=(512&t[2])}function g2(t,n){return t.hasOwnProperty(Ao)?t[Ao]:null}class s0{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yo(){return Zm}function Zm(t){return t.type.prototype.ngOnChanges&&(t.setInput=M8),w8}function w8(){const t=lp(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===en)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function M8(t,n,e,i){const o=lp(t)||function dp(t,n){return t[Km]=n}(t,{previous:en,current:null}),r=o.current||(o.current={}),a=o.previous,l=this.declaredInputs[e],u=a[l];r[l]=new s0(u&&u.currentValue,n,a===en),t[i]=n}Yo.ngInherit=!0;const Km="__ngSimpleChanges__";function lp(t){return t[Km]||null}let up;function j4(){return void 0!==up?up:"undefined"!=typeof document?document:void 0}function fc(t){return!!t.listen}const Jm={createRenderer:(t,n)=>j4()};function Os(t){for(;Array.isArray(t);)t=t[0];return t}function X3(t,n){return Os(n[t])}function j1(t,n){return Os(n[t.index])}function Fd(t,n){return t.data[n]}function l0(t,n){return t[n]}function Rc(t,n){const e=n[t];return Ms(e)?e:e[0]}function W4(t){return 4==(4&t[2])}function q4(t){return 128==(128&t[2])}function w1(t,n){return null==n?null:t[n]}function Xi(t){t[18]=0}function $4(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const xr={lFrame:ef(null),bindingsEnabled:!0};function Z4(){return xr.bindingsEnabled}function Fi(){return xr.lFrame.lView}function ka(){return xr.lFrame.tView}function Dt(t){return xr.lFrame.contextLView=t,t[8]}function gc(){let t=K4();for(;null!==t&&64===t.type;)t=t.parent;return t}function K4(){return xr.lFrame.currentTNode}function _2(t,n){const e=xr.lFrame;e.currentTNode=t,e.isParent=n}function fd(){return xr.lFrame.isParent}function hp(){xr.lFrame.isParent=!1}function Qs(){const t=xr.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function ph(){return xr.lFrame.bindingIndex++}function U2(t){const n=xr.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function r5(t,n){const e=xr.lFrame;e.bindingIndex=e.bindingRootIndex=t,fp(n)}function fp(t){xr.lFrame.currentDirectiveIndex=t}function K3(t){const n=xr.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Hd(){return xr.lFrame.currentQueryIndex}function Vd(t){xr.lFrame.currentQueryIndex=t}function J3(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Su(t,n,e){if(e&qi.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&qi.Host||(o=J3(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,t=r}const i=xr.lFrame=Gl();return i.currentTNode=n,i.lView=t,!0}function gp(t){const n=Gl(),e=t[1];xr.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Gl(){const t=xr.lFrame,n=null===t?null:t.child;return null===n?ef(t):n}function ef(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function a5(){const t=xr.lFrame;return xr.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const s5=a5;function tf(){const t=a5();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Qc(){return xr.lFrame.selectedIndex}function j2(t){xr.lFrame.selectedIndex=t}function mc(){const t=xr.lFrame;return Fd(t.tView,t.selectedIndex)}function bi(){xr.lFrame.currentNamespace="svg"}function gd(){!function h0(){xr.lFrame.currentNamespace=null}()}function ce(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[u]<0&&(t[18]+=65536),(l>11>16&&(3&t[2])===n){t[2]+=2048;try{r.call(l)}finally{}}}else try{r.call(l)}finally{}}class or{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function c5(t,n,e){const i=fc(t);let o=0;for(;on){a=r-1;break}}}for(;r>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let _p=!0;function J4(t){const n=_p;return _p=t,n}let wT=0;function Cp(t,n){const e=f5(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,p5(i.data,t),p5(n,null),p5(i.blueprint,null));const o=O1(t,n),r=t.injectorIndex;if(u5(o)){const a=aa(o),l=rf(o,n),u=l[1].data;for(let f=0;f<8;f++)n[r+f]=l[a+f]|u[a+f]}return n[r+8]=o,r}function p5(t,n){t.push(0,0,0,0,0,0,0,0,n)}function f5(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function O1(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){const r=o[1],a=r.type;if(i=2===a?r.declTNode:1===a?o[6]:null,null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function q2(t,n,e){!function h5(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(wa)&&(i=e[wa]),null==i&&(i=e[wa]=wT++);const o=255&i;n.data[t+(o>>5)]|=1<=0?255&n:Mb:n}(e);if("function"==typeof r){if(!Su(n,t,i))return i&qi.Host?D8(o,e,i):eg(n,e,i,o);try{const a=r(i);if(null!=a||i&qi.Optional)return a;Bo(e)}finally{s5()}}else if("number"==typeof r){let a=null,l=f5(t,n),u=-1,f=i&qi.Host?n[16][6]:null;for((-1===l||i&qi.SkipSelf)&&(u=-1===l?O1(t,n):n[l+8],-1!==u&&N8(i,!1)?(a=n[1],l=aa(u),n=rf(u,n)):l=-1);-1!==l;){const M=n[1];if(fh(r,l,M.data)){const T=I8(l,n,e,a,i,f);if(T!==g5)return T}u=n[l+8],-1!==u&&N8(i,n[1].data[l+8]===f)&&fh(r,l,n)?(a=M,l=aa(u),n=rf(u,n)):l=-1}}}return eg(n,e,i,o)}const g5={};function Mb(){return new vp(gc(),Fi())}function I8(t,n,e,i,o,r){const a=n[1],l=a.data[t+8],M=af(l,a,e,null==i?zd(l)&&_p:i!=a&&0!=(3&l.type),o&qi.Host&&r===l);return null!==M?C2(n,a,M,l):g5}function af(t,n,e,i,o){const r=t.providerIndexes,a=n.data,l=1048575&r,u=t.directiveStart,M=r>>20,U=o?l+M:t.directiveEnd;for(let ie=i?l:l+M;ie=u&&se.type===e)return ie}if(o){const ie=a[u];if(ie&&ss(ie)&&ie.type===e)return u}return null}function C2(t,n,e,i){let o=t[e];const r=n.data;if(function ua(t){return t instanceof or}(o)){const a=o;a.resolving&&function Ni(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new sn(-200,`Circular dependency in DI detected for ${t}${e}`)}(xi(r[e]));const l=J4(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?Fr(a.injectImpl):null;Su(t,i,qi.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function za(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Zm(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,a)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==u&&Fr(u),J4(l),a.resolving=!1,s5()}}return o}function fh(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[Ao]||R8(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Ao]||R8(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function R8(t){return It(t)?()=>{const n=R8(lt(t));return n&&n()}:g2(t)}function Yl(t){return function L8(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{const i=function m5(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return l.annotation=a,l;function l(u,f,M){const T=u.hasOwnProperty(bp)?u[bp]:Object.defineProperty(u,bp,{value:[]})[bp];for(;T.length<=M;)T.push(null);return(T[M]=T[M]||[]).push(a),u}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class ui{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=gt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const OT=new ui("AnalyzeForEntryComponents");function q1(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?v2(e,n):n(e))}function ng(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function v5(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function lf(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function H8(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function b5(t,n){const e=df(t,n);if(e>=0)return t[1|e]}function df(t,n){return function Tb(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<({token:t})),-1),s1=xl(yp("Optional"),8),jd=xl(yp("SkipSelf"),4);let Lu,P5;function Sp(t){var n;return(null===(n=function $8(){if(void 0===Lu&&(Lu=null,tt.trustedTypes))try{Lu=tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Lu}())||void 0===n?void 0:n.createHTML(t))||t}function Gb(t){var n;return(null===(n=function X8(){if(void 0===P5&&(P5=null,tt.trustedTypes))try{P5=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return P5}())||void 0===n?void 0:n.createHTML(t))||t}class Pp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zT extends Pp{getTypeName(){return"HTML"}}class FT extends Pp{getTypeName(){return"Style"}}class jb extends Pp{getTypeName(){return"Script"}}class Wb extends Pp{getTypeName(){return"URL"}}class qb extends Pp{getTypeName(){return"ResourceURL"}}function Wd(t){return t instanceof Pp?t.changingThisBreaksApplicationSecurity:t}function Du(t,n){const e=$b(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function $b(t){return t instanceof Pp&&t.getTypeName()||null}class YT{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Sp(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class b2{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Sp(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Sp(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let o=e.length-1;0rg(n.trim())).join(", ")}function ku(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function ag(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const T5=ku("area,br,col,hr,img,wbr"),Jb=ku("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ex=ku("rp,rt"),Q8=ag(T5,ag(Jb,ku("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ag(ex,ku("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ag(ex,Jb)),Z8=ku("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),K8=ku("srcset"),tx=ag(Z8,K8,ku("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ku("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),WT=ku("script,style,template");class qT{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Q8.hasOwnProperty(e))return this.sanitizedSomething=!0,!WT.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Q8.hasOwnProperty(e)&&!T5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(nx(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const $T=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,XT=/([^\#-~ |!])/g;function nx(t){return t.replace(/&/g,"&").replace($T,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(XT,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let E5;function ix(t,n){let e=null;try{E5=E5||function Qb(t){const n=new b2(t);return function UT(){try{return!!(new window.DOMParser).parseFromString(Sp(""),"text/html")}catch(t){return!1}}()?new YT(n):n}(t);let i=n?String(n):"";e=E5.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=E5.getInertBodyElement(i)}while(i!==r);return Sp((new qT).sanitizeChildren(J8(e)||e))}finally{if(e){const i=J8(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function J8(t){return"content"in t&&function QT(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Za=(()=>((Za=Za||{})[Za.NONE=0]="NONE",Za[Za.HTML=1]="HTML",Za[Za.STYLE=2]="STYLE",Za[Za.SCRIPT=3]="SCRIPT",Za[Za.URL=4]="URL",Za[Za.RESOURCE_URL=5]="RESOURCE_URL",Za))();function A5(t){const n=g0();return n?Gb(n.sanitize(Za.HTML,t)||""):Du(t,"HTML")?Gb(Wd(t)):ix(j4(),On(t))}function ao(t){const n=g0();return n?n.sanitize(Za.URL,t)||"":Du(t,"URL")?Wd(t):rg(On(t))}function g0(){const t=Fi();return t&&t[12]}const ax="__ngContext__";function P1(t,n){t[ax]=n}function t7(t){const n=function sg(t){return t[ax]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function n7(t){return t.ngOriginalError}function hE(t,...n){t.error(...n)}class X2{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function uE(t){return t&&t.ngErrorLogger||hE}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&n7(n);for(;e&&n7(e);)e=n7(e);return e||null}}const yE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(tt))();function Tp(t){return t.ownerDocument.defaultView}function Ep(t){return t.ownerDocument}function D5(t){return t.ownerDocument.body}function x2(t){return t instanceof Function?t():t}var qd=(()=>((qd=qd||{})[qd.Important=1]="Important",qd[qd.DashCase=2]="DashCase",qd))();function a7(t,n){return undefined(t,n)}function lg(t){const n=t[3];return ms(n)?n[3]:n}function N5(t){return fx(t[13])}function s7(t){return fx(t[4])}function fx(t){for(;null!==t&&!ms(t);)t=t[4];return t}function ff(t,n,e,i,o){if(null!=i){let r,a=!1;ms(i)?r=i:Ms(i)&&(a=!0,i=i[0]);const l=Os(i);0===t&&null!==e?null==o?Cx(n,e,l):Lp(n,e,l,o||null,!0):1===t&&null!==e?Lp(n,e,l,o||null,!0):2===t?function yx(t,n,e){const i=R5(t,n);i&&function DE(t,n,e,i){fc(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,l,a):3===t&&n.destroyNode(l),null!=r&&function hg(t,n,e,i,o){const r=e[7];r!==Os(e)&&ff(n,t,i,r,o);for(let l=10;l0&&(t[e-1][4]=i[4]);const r=v5(t,10+n);!function PE(t,n){ug(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const a=r[19];null!==a&&a.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function sa(t,n){if(!(256&n[2])){const e=n[11];fc(e)&&e.destroyNode&&ug(t,n,e,3,null,null),function AE(t){let n=t[13];if(!n)return d7(t[1],t);for(;n;){let e=null;if(Ms(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Ms(n)&&d7(n[1],n),n=n[3];null===n&&(n=t),Ms(n)&&d7(n[1],n),e=n&&n[4]}n=e}}(n)}}function d7(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function Zc(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[o=f]():i[o=-f].unsubscribe(),r+=2}else{const a=i[o=e[r+1]];e[r].call(a)}if(null!==i){for(let r=o+1;rr?"":o[T+1].toLowerCase();const ie=8&i?U:null;if(ie&&-1!==pg(ie,f,0)||2&i&&f!==U){if(Z2(i))return!1;a=!0}}}}else{if(!a&&!Z2(i)&&!Z2(u))return!1;if(a&&Z2(u))continue;a=!1,i=u|1&i}}return Z2(i)||a}function Z2(t){return 0==(1&t)}function Ox(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+l+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Z2(a)&&(n+=Tx(r,o),o=""),i=a,r=r||!Z2(i);e++}return""!==o&&(n+=Tx(r,o)),n}const $r={};function W(t){Ax(ka(),Fi(),Qc()+t,!1)}function Ax(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Te(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Ze(n,r,0,e)}j2(e)}function F5(t,n){return t<<17|n<<2}function K2(t){return t>>17&32767}function _7(t){return 2|t}function vh(t){return(131068&t)>>2}function C7(t,n){return-131069&t|n<<2}function v7(t){return 1|t}function Gx(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i20&&Ax(t,n,20,!1),e(i,o)}finally{j2(r)}}function Ux(t,n,e){if(as(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(l)!=u&&l.push(u),l.push(i,o,a)}}function L7(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Jx(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function D7(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&I7(e)}}function I7(t){for(let i=N5(t);null!==i;i=s7(i))for(let o=10;o0&&I7(r)}const e=t[1].components;if(null!==e)for(let i=0;i0&&I7(o)}}function pA(t,n){const e=Rc(n,t),i=e[1];(function fA(t,n){for(let e=n.length;ePromise.resolve(null))();function mt(t){return t[7]||(t[7]=[])}function $t(t){return t.cleanup||(t.cleanup=[])}function hn(t,n,e){return(null===t||ss(t))&&(e=function e5(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function Sn(t,n){const e=t[9],i=e?e.get(X2,null):null;i&&i.handleError(n)}function Bn(t,n,e,i,o){for(let r=0;rthis.processProvider(l,n,e)),v2([n],l=>this.processInjectorType(l,[],r)),this.records.set(Pr,j5(void 0,this));const a=this.records.get(Tr);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof n?null:Le(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=wp,i=qi.Default){this.assertNotDestroyed();const o=Lb(this),r=Fr(void 0);try{if(!(i&qi.SkipSelf)){let l=this.records.get(n);if(void 0===l){const u=function t4e(t){return"function"==typeof t||"object"==typeof t&&t instanceof ui}(n)&&Cn(n);l=u&&this.injectableDefInScope(u)?j5(eu(n),Ca):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&qi.Self?T1():this.parent).get(n,e=i&qi.Optional&&e===wp?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[x5]=a[x5]||[]).unshift(Le(n)),o)throw a;return function kT(t,n,e,i){const o=t[x5];throw n[Ab]&&o.unshift(n[Ab]),t.message=function W8(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=Le(n);if(Array.isArray(n))o=n.map(Le).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let l=n[a];r.push(a+":"+("string"==typeof l?JSON.stringify(l):Le(l)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(Eb,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[x5]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{Fr(r),Lb(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,o)=>n.push(Le(o))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new sn(205,!1)}processInjectorType(n,e,i){if(!(n=lt(n)))return!1;let o=Gi(n);const r=null==o&&n.ngModule||void 0,a=void 0===r?n:r,l=-1!==i.indexOf(a);if(void 0!==r&&(o=Gi(r)),null==o)return!1;if(null!=o.imports&&!l){let M;i.push(a);try{v2(o.imports,T=>{this.processInjectorType(T,e,i)&&(void 0===M&&(M=[]),M.push(T))})}finally{}if(void 0!==M)for(let T=0;Tthis.processProvider(se,U,ie||gn))}}this.injectorDefTypes.add(a);const u=g2(a)||(()=>new a);this.records.set(a,j5(u,Ca));const f=o.providers;if(null!=f&&!l){const M=n;v2(f,T=>this.processProvider(T,M,f))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let o=W5(n=lt(n))?n:lt(n&&n.provide);const r=function Xfe(t,n,e){return YV(t)?j5(void 0,t.useValue):j5(GV(t),Ca)}(n);if(W5(n)||!0!==n.multi)this.records.get(o);else{let a=this.records.get(o);a||(a=j5(void 0,Ca,!0),a.factory=()=>$2(a.multi),this.records.set(o,a)),o=n,a.multi.push(n)}this.records.set(o,r)}hydrate(n,e){return e.value===Ca&&(e.value=ja,e.value=e.factory()),"object"==typeof e.value&&e.value&&function e4e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=lt(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function eu(t){const n=Cn(t),e=null!==n?n.factory:g2(t);if(null!==e)return e;if(t instanceof ui)throw new sn(204,!1);if(t instanceof Function)return function iy(t){const n=t.length;if(n>0)throw lf(n,"?"),new sn(204,!1);const e=function bo(t){const n=t&&(t[Sr]||t[ra]);if(n){const e=function xo(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new sn(204,!1)}function GV(t,n,e){let i;if(W5(t)){const o=lt(t);return g2(o)||eu(o)}if(YV(t))i=()=>lt(t.useValue);else if(function Zfe(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...$2(t.deps||[]));else if(function Qfe(t){return!(!t||!t.useExisting)}(t))i=()=>qt(lt(t.useExisting));else{const o=lt(t&&(t.useClass||t.provide));if(!function Jfe(t){return!!t.deps}(t))return g2(o)||eu(o);i=()=>new o(...$2(t.deps))}return i}function j5(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function YV(t){return null!==t&&"object"==typeof t&&DT in t}function W5(t){return"function"==typeof t}let zs=(()=>{class t{static create(e,i){var o;if(Array.isArray(e))return Cd({name:""},i,e,"");{const r=null!==(o=e.name)&&void 0!==o?o:"";return Cd({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=wp,t.NULL=new _a,t.\u0275prov=gt({token:t,providedIn:"any",factory:()=>qt(Pr)}),t.__NG_ELEMENT_ID__=-1,t})();function l4e(t,n){ce(t7(t)[1],gc())}function ei(t){let n=function tB(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if(ss(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new sn(903,"");o=n.\u0275dir}if(o){if(e){i.push(o);const a=t;a.inputs=CA(t.inputs),a.declaredInputs=CA(t.declaredInputs),a.outputs=CA(t.outputs);const l=o.hostBindings;l&&p4e(t,l);const u=o.viewQuery,f=o.contentQueries;if(u&&u4e(t,u),f&&h4e(t,f),le(t.inputs,o.inputs),le(t.declaredInputs,o.declaredInputs),le(t.outputs,o.outputs),ss(o)&&o.data.animation){const M=t.data;M.animation=(M.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let a=0;a=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=nf(o.hostAttrs,e=nf(e,o.hostAttrs))}}(i)}function CA(t){return t===en?{}:t===gn?[]:t}function u4e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function h4e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function p4e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}let oy=null;function q5(){if(!oy){const t=tt.Symbol;if(t&&t.iterator)oy=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;el(Os(ze[i.index])):i.index;if(fc(e)){let ze=null;if(!l&&u&&(ze=function Y4e(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;ru?l[u]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==ze)(ze.__ngLastListenerFn__||ze).__ngNextListenerFn__=r,ze.__ngLastListenerFn__=r,ie=!1;else{r=SA(i,n,T,r,!1);const qe=e.listen(He,o,r);U.push(r,qe),M&&M.push(o,me,Be,Be+1)}}else r=SA(i,n,T,r,!0),He.addEventListener(o,r,a),U.push(r),M&&M.push(o,me,Be,a)}else r=SA(i,n,T,r,!1);const se=i.outputs;let Me;if(ie&&null!==se&&(Me=se[o])){const we=Me.length;if(we)for(let He=0;He0;)n=n[15],t--;return n}(t,xr.lFrame.contextLView))[8]}(t)}function U4e(t,n){let e=null;const i=function ma(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let o=0;o=0}const c1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function DB(t){return t.substring(c1.key,c1.keyEnd)}function kB(t,n){const e=c1.textEnd;return e===n?-1:(n=c1.keyEnd=function Z4e(t,n,e){for(;n32;)n++;return n}(t,c1.key=n,e),r6(t,n,e))}function r6(t,n,e){for(;n=0;e=kB(n,e))md(t,DB(n),!0)}function xh(t,n,e,i){const o=Fi(),r=ka(),a=U2(2);r.firstUpdatePass&&HB(r,t,a,i),n!==$r&&vd(o,a,n)&&BB(r,r.data[Qc()],o,o[11],t,o[a+1]=function sge(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Le(Wd(t)))),t}(n,e),i,a)}function yh(t,n,e,i){const o=ka(),r=U2(2);o.firstUpdatePass&&HB(o,null,r,i);const a=Fi();if(e!==$r&&vd(a,r,e)){const l=o.data[Qc()];if(YB(l,i)&&!FB(o,r)){let u=i?l.classesWithoutHost:l.stylesWithoutHost;null!==u&&(e=Fe(u,e||"")),MA(o,l,a,e,i)}else!function age(t,n,e,i,o,r,a,l){o===$r&&(o=gn);let u=0,f=0,M=0=t.expandoStartIndex}function HB(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Qc()],a=FB(t,e);YB(r,i)&&null===n&&!a&&(n=!1),n=function tge(t,n,e,i){const o=K3(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=B7(e=TA(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=TA(o,t,n,e,i),null===r){let u=function nge(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==vh(i))return t[K2(i)]}(t,n,i);void 0!==u&&Array.isArray(u)&&(u=TA(null,t,n,u[1],i),u=B7(u,n.attrs,i),function ige(t,n,e,i){t[K2(e?n.classBindings:n.styleBindings)]=i}(t,n,i,u))}else r=function oge(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(f=!0)}else M=e;if(o)if(0!==u){const U=K2(t[l+1]);t[i+1]=F5(U,l),0!==U&&(t[U+1]=C7(t[U+1],i)),t[l+1]=function FE(t,n){return 131071&t|n<<17}(t[l+1],i)}else t[i+1]=F5(l,0),0!==l&&(t[l+1]=C7(t[l+1],i)),l=i;else t[i+1]=F5(u,0),0===l?l=i:t[u+1]=C7(t[u+1],i),u=i;f&&(t[i+1]=_7(t[i+1])),LB(t,M,i,!0),LB(t,M,i,!1),function W4e(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&df(r,n)>=0&&(e[i+1]=v7(e[i+1]))}(n,M,t,i,r),a=F5(l,u),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function TA(t,n,e,i,o){let r=null;const a=e.directiveEnd;let l=e.directiveStylingLast;for(-1===l?l=e.directiveStart:l++;l0;){const u=t[o],f=Array.isArray(u),M=f?u[1]:u,T=null===M;let U=e[o+1];U===$r&&(U=T?gn:void 0);let ie=T?b5(U,i):M===i?U:void 0;if(f&&!sy(ie)&&(ie=b5(u,i)),sy(ie)&&(l=ie,a))return l;const se=t[o+1];o=a?K2(se):vh(se)}if(null!==n){let u=r?n.residualClasses:n.residualStyles;null!=u&&(l=b5(u,i))}return l}function sy(t){return void 0!==t}function YB(t,n){return 0!=(t.flags&(n?16:32))}function de(t,n=""){const e=Fi(),i=ka(),o=t+20,r=i.firstCreatePass?_f(i,o,1,n,null):i.data[o],a=e[o]=function c7(t,n){return fc(t)?t.createText(n):t.createTextNode(n)}(e[11],n);ic(i,e,a,r),_2(r,!1)}function qo(t){return Nt("",t,""),qo}function Nt(t,n,e){const i=Fi(),o=X5(i,t,n,e);return o!==$r&&Si(i,Qc(),o),Nt}function cy(t,n,e,i,o){const r=Fi(),a=Q5(r,t,n,e,i,o);return a!==$r&&Si(r,Qc(),a),cy}function yf(t,n,e){yh(md,b0,X5(Fi(),t,n,e),!0)}function Fu(t,n,e){const i=Fi();return vd(i,ph(),n)&&Zs(ka(),mc(),i,t,n,i[11],e,!0),Fu}function a6(t,n,e){const i=Fi();if(vd(i,ph(),n)){const r=ka(),a=mc();Zs(r,a,i,t,n,hn(K3(r.data),a,i),e,!0)}return a6}const vg=void 0;var Sge=["en",[["a","p"],["AM","PM"],vg],[["AM","PM"],vg,vg],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vg,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vg,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vg,"{1} 'at' {0}",vg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Oge(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let s6={};function Xd(t){const n=function Pge(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=sG(n);if(e)return e;const i=n.split("-")[0];if(e=sG(i),e)return e;if("en"===i)return Sge;throw new Error(`Missing locale data for the locale "${t}".`)}function sG(t){return t in s6||(s6[t]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[t]),s6[t]}var zo=(()=>((zo=zo||{})[zo.LocaleId=0]="LocaleId",zo[zo.DayPeriodsFormat=1]="DayPeriodsFormat",zo[zo.DayPeriodsStandalone=2]="DayPeriodsStandalone",zo[zo.DaysFormat=3]="DaysFormat",zo[zo.DaysStandalone=4]="DaysStandalone",zo[zo.MonthsFormat=5]="MonthsFormat",zo[zo.MonthsStandalone=6]="MonthsStandalone",zo[zo.Eras=7]="Eras",zo[zo.FirstDayOfWeek=8]="FirstDayOfWeek",zo[zo.WeekendRange=9]="WeekendRange",zo[zo.DateFormat=10]="DateFormat",zo[zo.TimeFormat=11]="TimeFormat",zo[zo.DateTimeFormat=12]="DateTimeFormat",zo[zo.NumberSymbols=13]="NumberSymbols",zo[zo.NumberFormats=14]="NumberFormats",zo[zo.CurrencyCode=15]="CurrencyCode",zo[zo.CurrencySymbol=16]="CurrencySymbol",zo[zo.CurrencyName=17]="CurrencyName",zo[zo.Currencies=18]="Currencies",zo[zo.Directionality=19]="Directionality",zo[zo.PluralCase=20]="PluralCase",zo[zo.ExtraData=21]="ExtraData",zo))();const ly="en-US";let cG=ly;function LA(t,n,e,i,o){if(t=lt(t),Array.isArray(t))for(let r=0;r>20;if(W5(t)||!t.multi){const ie=new or(u,o,ue),se=kA(l,n,o?M:M+U,T);-1===se?(q2(Cp(f,a),r,l),DA(r,t,n.length),n.push(l),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),e.push(ie),a.push(ie)):(e[se]=ie,a[se]=ie)}else{const ie=kA(l,n,M+U,T),se=kA(l,n,M,M+U),Me=ie>=0&&e[ie],we=se>=0&&e[se];if(o&&!we||!o&&!Me){q2(Cp(f,a),r,l);const He=function Ome(t,n,e,i,o){const r=new or(t,e,ue);return r.multi=[],r.index=n,r.componentProviders=0,DG(r,o,i&&!e),r}(o?Mme:wme,e.length,o,i,u);!o&&we&&(e[se].providerFactory=He),DA(r,t,n.length,0),n.push(l),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),e.push(He),a.push(He)}else DA(r,t,ie>-1?ie:se,DG(e[o?se:ie],u,!o&&i));!o&&i&&we&&e[se].componentProviders++}}}function DA(t,n,e,i){const o=W5(n),r=function Kfe(t){return!!t.useClass}(n);if(o||r){const u=(r?lt(n.useClass):n).prototype.ngOnDestroy;if(u){const f=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const M=f.indexOf(e);-1===M?f.push(e,[i,u]):f[M+1].push(i,u)}else f.push(e,u)}}}function DG(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function kA(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function yme(t,n,e){const i=ka();if(i.firstCreatePass){const o=ss(t);LA(e,i.data,i.blueprint,o,!0),LA(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class kG{}class Tme{resolveComponentFactory(n){throw function Pme(t){const n=Error(`No component factory found for ${Le(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let wf=(()=>{class t{}return t.NULL=new Tme,t})();function Eme(){return l6(gc(),Fi())}function l6(t,n){return new Ti(j1(t,n))}let Ti=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=Eme,t})();function Ame(t){return t instanceof Ti?t.nativeElement:t}class W7{}let yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Dme(){const t=Fi(),e=Rc(gc().index,t);return function Lme(t){return t[11]}(Ms(e)?e:t)}(),t})(),kme=(()=>{class t{}return t.\u0275prov=gt({token:t,providedIn:"root",factory:()=>null}),t})();class Mf{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Ime=new Mf("13.3.11"),NA={};function fy(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Os(r)),ms(r))for(let l=10;l-1&&(_h(n,i),v5(e,i))}this._attachedToViewContainer=!1}sa(this._lView[1],this._lView)}onDestroy(n){$x(this._lView[1],this._lView,null,n)}markForCheck(){N7(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function z7(t,n,e){const i=n[10];i.begin&&i.begin();try{vf(t,n,t.template,e)}catch(o){throw Sn(n,o),o}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new sn(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function EE(t,n){ug(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new sn(902,"");this._appRef=n}}class Nme extends q7{constructor(n){super(n),this._view=n}detectChanges(){ny(this._view)}checkNoChanges(){}get context(){return null}}class NG extends wf{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ci(n);return new RA(e,this.ngModule)}}function RG(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class RA extends kG{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function zE(t){return t.map(Ss).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return RG(this.componentDef.inputs)}get outputs(){return RG(this.componentDef.outputs)}create(n,e,i,o){const r=(o=o||this.ngModule)?function zme(t,n){return{get:(e,i,o)=>{const r=t.get(e,NA,o);return r!==NA||i===NA?r:n.get(e,i,o)}}}(n,o.injector):n,a=r.get(W7,Jm),l=r.get(kme,null),u=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",M=i?function qx(t,n,e){if(fc(t))return t.selectRootElement(n,e===pa.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(u,i,this.componentDef.encapsulation):l7(a.createRenderer(null,this.componentDef),f,function Rme(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),T=this.componentDef.onPush?576:528,U=function eB(t,n){return{components:[],scheduler:t||yE,clean:Xe,playerHandler:n||null,flags:0}}(),ie=bf(0,null,null,1,0,null,null,null,null,null),se=gg(null,ie,U,T,null,null,a,u,l,r);let Me,we;gp(se);try{const He=function KV(t,n,e,i,o,r){const a=e[1];e[20]=t;const u=_f(a,20,2,"#host",null),f=u.mergedAttrs=n.hostAttrs;null!==f&&(Li(u,f,!0),null!==t&&(c5(o,t,f),null!==u.classes&&z5(o,t,u.classes),null!==u.styles&&wx(o,t,u.styles)));const M=i.createRenderer(t,n),T=gg(e,jx(n),null,n.onPush?64:16,e[20],u,i,M,r||null,null);return a.firstCreatePass&&(q2(Cp(u,e),a,n.type),Jx(a,u),Y5(u,e.length,1)),U5(e,T),e[20]=T}(M,this.componentDef,se,a,u);if(M)if(i)c5(u,M,["ng-version",Ime.full]);else{const{attrs:Be,classes:me}=function Ex(t){const n=[],e=[];let i=1,o=2;for(;i0&&z5(u,M,me.join(" "))}if(we=Fd(ie,20),void 0!==e){const Be=we.projection=[];for(let me=0;meu(a,n)),n.contentQueries){const u=gc();n.contentQueries(1,a,u.directiveStart)}const l=gc();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(j2(l.index),Kx(e[1],l,0,l.directiveStart,l.directiveEnd,n),L7(n,a)),a}(He,this.componentDef,se,U,[l4e]),mg(ie,se,null)}finally{tf()}return new Hme(this.componentType,Me,l6(we,se),se,we)}}class Hme extends class Sme{}{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Nme(o),this.componentType=n}get injector(){return new vp(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Np{}class zG{}const d6=new Map;class VG extends Np{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new NG(this);const i=zt(n);this._bootstrapComponents=x2(i.bootstrap),this._r3Injector=zc(n,e,[{provide:Np,useValue:this},{provide:wf,useValue:this.componentFactoryResolver}],Le(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=zs.THROW_IF_NOT_FOUND,i=qi.Default){return n===zs||n===Np||n===Pr?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class zA extends zG{constructor(n){super(),this.moduleType=n,null!==zt(n)&&function Bme(t){const n=new Set;!function e(i){const o=zt(i,!0),r=o.id;null!==r&&(function FG(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Le(n)} vs ${Le(n.name)}`)}(r,d6.get(r),i),d6.set(r,i));const a=x2(o.imports);for(const l of a)n.has(l)||(n.add(l),e(l))}(t)}(n)}create(n){return new VG(this.moduleType,n)}}function _i(t,n,e){const i=Qs()+t,o=Fi();return o[i]===$r?C0(o,i,e?n.call(e):n()):function H7(t,n){return t[n]}(o,i)}function wo(t,n,e,i){return BG(Fi(),Qs(),t,n,e,i)}function x0(t,n,e,i,o){return GG(Fi(),Qs(),t,n,e,i,o)}function M2(t,n,e,i,o,r){return function YG(t,n,e,i,o,r,a,l){const u=n+e;return function ry(t,n,e,i,o){const r=Cg(t,n,e,i);return vd(t,n+2,o)||r}(t,u,o,r,a)?C0(t,u+3,l?i.call(l,o,r,a):i(o,r,a)):$7(t,u+3)}(Fi(),Qs(),t,n,e,i,o,r)}function gy(t,n,e,i,o,r,a){return function UG(t,n,e,i,o,r,a,l,u){const f=n+e;return function zu(t,n,e,i,o,r){const a=Cg(t,n,e,i);return Cg(t,n+2,o,r)||a}(t,f,o,r,a,l)?C0(t,f+4,u?i.call(u,o,r,a,l):i(o,r,a,l)):$7(t,f+4)}(Fi(),Qs(),t,n,e,i,o,r,a)}function $7(t,n){const e=t[n];return e===$r?void 0:e}function BG(t,n,e,i,o,r){const a=n+e;return vd(t,a,o)?C0(t,a+1,r?i.call(r,o):i(o)):$7(t,a+1)}function GG(t,n,e,i,o,r,a){const l=n+e;return Cg(t,l,o,r)?C0(t,l+2,a?i.call(a,o,r):i(o,r)):$7(t,l+2)}function y0(t,n){const e=ka();let i;const o=t+20;e.firstCreatePass?(i=function qme(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=g2(i.type)),a=Fr(ue);try{const l=J4(!1),u=r();return J4(l),function x4e(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Fi(),o,u),u}finally{Fr(a)}}function bg(t,n,e){const i=t+20,o=Fi(),r=l0(o,i);return X7(o,i)?BG(o,Qs(),n,r.transform,e,r):r.transform(e)}function my(t,n,e,i){const o=t+20,r=Fi(),a=l0(r,o);return X7(r,o)?GG(r,Qs(),n,a.transform,e,i,a):a.transform(e,i)}function X7(t,n){return t[1].data[n].pure}function FA(t){return n=>{setTimeout(t,void 0,n)}}const In=class Zme extends N{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var o,r,a;let l=n,u=e||(()=>null),f=i;if(n&&"object"==typeof n){const T=n;l=null===(o=T.next)||void 0===o?void 0:o.bind(T),u=null===(r=T.error)||void 0===r?void 0:r.bind(T),f=null===(a=T.complete)||void 0===a?void 0:a.bind(T)}this.__isAsync&&(u=FA(u),l&&(l=FA(l)),f&&(f=FA(f)));const M=super.subscribe({next:l,error:u,complete:f});return n instanceof Se&&n.add(M),M}};function Kme(){return this._results[q5()]()}class xg{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=q5(),i=xg.prototype;i[e]||(i[e]=Kme)}get changes(){return this._changes||(this._changes=new In)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const o=q1(n);(this._changesDetected=!function Sb(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=t5e,t})();const Jme=Oc,e5e=class extends Jme{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=gg(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),mg(e,i,n),new q7(i)}};function t5e(){return _y(gc(),Fi())}function _y(t,n){return 4&t.type?new e5e(n,t,l6(t,n)):null}let oc=(()=>{class t{}return t.__NG_ELEMENT_ID__=n5e,t})();function n5e(){return $G(gc(),Fi())}const i5e=oc,WG=class extends i5e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return l6(this._hostTNode,this._hostLView)}get injector(){return new vp(this._hostTNode,this._hostLView)}get parentInjector(){const n=O1(this._hostTNode,this._hostLView);if(u5(n)){const e=rf(n,this._hostLView),i=aa(n);return new vp(e[1].data[i+8],e)}return new vp(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=qG(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const o=n.createEmbeddedView(e||{});return this.insert(o,i),o}createComponent(n,e,i,o,r){const a=n&&!function cf(t){return"function"==typeof t}(n);let l;if(a)l=e;else{const T=e||{};l=T.index,i=T.injector,o=T.projectableNodes,r=T.ngModuleRef}const u=a?n:new RA(ci(n)),f=i||this.parentInjector;if(!r&&null==u.ngModule){const U=(a?f:this.parentInjector).get(Np,null);U&&(r=U)}const M=u.create(f,o,void 0,r);return this.insert(M.hostView,l),M}insert(n,e){const i=n._lView,o=i[1];if(function E8(t){return ms(t[3])}(i)){const M=this.indexOf(n);if(-1!==M)this.detach(M);else{const T=i[3],U=new WG(T,T[6],T[3]);U.detach(U.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;!function Q2(t,n,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=n),i0)i.push(a[l/2]);else{const f=r[l+1],M=n[-u];for(let T=10;T{class t{constructor(e){this.appInits=e,this.resolve=by,this.reject=by,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:l,error:u})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(xy,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Z7=new ui("AppId",{providedIn:"root",factory:function mY(){return`${ZA()}${ZA()}${ZA()}`}});function ZA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _Y=new ui("Platform Initializer"),Hc=new ui("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),KA=new ui("appBootstrapListener");let T5e=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Rp=new ui("LocaleId",{providedIn:"root",factory:()=>Mp(Rp,qi.Optional|qi.SkipSelf)||function E5e(){return"undefined"!=typeof $localize&&$localize.locale||ly}()});class L5e{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let CY=(()=>{class t{compileModuleSync(e){return new zA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=x2(zt(e).declarations).reduce((a,l)=>{const u=ci(l);return u&&a.push(new RA(u)),a},[]);return new L5e(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const k5e=(()=>Promise.resolve(0))();function JA(t){"undefined"==typeof Zone?k5e.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class oo{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new In(!1),this.onMicrotaskEmpty=new In(!1),this.onStable=new In(!1),this.onError=new In(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function I5e(){let t=tt.requestAnimationFrame,n=tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function z5e(t){const n=()=>{!function R5e(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,tL(t),t.isCheckStableRunning=!0,eL(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),tL(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,l)=>{try{return vY(t),e.invokeTask(o,r,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),bY(t)}},onInvoke:(e,i,o,r,a,l,u)=>{try{return vY(t),e.invoke(o,r,a,l,u)}finally{t.shouldCoalesceRunChangeDetection&&n(),bY(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,tL(t),eL(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,N5e,by,by);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const N5e={};function eL(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function tL(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function vY(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bY(t){t._nesting--,eL(t)}class F5e{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new In,this.onMicrotaskEmpty=new In,this.onStable=new In,this.onError=new In}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}let nL=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oo.assertNotInAngularZone(),JA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())JA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),H5e=(()=>{class t{constructor(){this._applications=new Map,iL.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return iL.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class V5e{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let iL=new V5e,yg=null;const xY=new ui("AllowMultipleToken"),yY=new ui("PlatformOnDestroy");class wY{constructor(n,e){this.name=n,this.token=e}}function MY(t,n,e=[]){const i=`Platform: ${n}`,o=new ui(i);return(r=[])=>{let a=oL();if(!a||a.injector.get(xY,!1)){const l=[...e,...r,{provide:o,useValue:!0}];t?t(l):function U5e(t){if(yg&&!yg.get(xY,!1))throw new sn(400,"");yg=t;const n=t.get(OY),e=t.get(_Y,null);e&&e.forEach(i=>i())}(function W5e(t=[],n){return zs.create({name:n,providers:[{provide:Tr,useValue:"platform"},{provide:yY,useValue:()=>yg=null},...t]})}(l,i))}return function j5e(t){const n=oL();if(!n)throw new sn(401,"");return n}()}}function oL(){var t;return null!==(t=null==yg?void 0:yg.get(OY))&&void 0!==t?t:null}let OY=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const l=function q5e(t,n){let e;return e="noop"===t?new F5e:("zone.js"===t?void 0:t)||new oo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),u=[{provide:oo,useValue:l}];return l.run(()=>{const f=zs.create({providers:u,parent:this.injector,name:e.moduleType.name}),M=e.create(f),T=M.injector.get(X2,null);if(!T)throw new sn(402,"");return l.runOutsideAngular(()=>{const U=l.onError.subscribe({next:ie=>{T.handleError(ie)}});M.onDestroy(()=>{rL(this._modules,M),U.unsubscribe()})}),function $5e(t,n,e){try{const i=e();return V7(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(T,l,()=>{const U=M.injector.get(QA);return U.runInitializers(),U.donePromise.then(()=>(function Lge(t){Ye(t,"Expected localeId to be defined"),"string"==typeof t&&(cG=t.toLowerCase().replace(/_/g,"-"))}(M.injector.get(Rp,ly)||ly),this._moduleDoBootstrap(M),M))})})}bootstrapModule(e,i=[]){const o=SY({},i);return function G5e(t,n,e){const i=new zA(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(K7);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new sn(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new sn(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(yY,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function SY(t,n){return Array.isArray(n)?n.reduce(SY,t):Object.assign(Object.assign({},t),n)}let K7=(()=>{class t{constructor(e,i,o,r){this._zone=e,this._injector=i,this._exceptionHandler=o,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Wt(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new Wt(u=>{let f;this._zone.runOutsideAngular(()=>{f=this._zone.onStable.subscribe(()=>{oo.assertNotInAngularZone(),JA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const M=this._zone.onUnstable.subscribe(()=>{oo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{f.unsubscribe(),M.unsubscribe()}});this.isStable=kr(a,l.pipe(_l()))}bootstrap(e,i){if(!this._initStatus.done)throw new sn(405,"");let o;o=e instanceof kG?e:this._injector.get(wf).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const r=function Y5e(t){return t.isBoundToModule}(o)?void 0:this._injector.get(Np),l=o.create(zs.NULL,[],i||o.selector,r),u=l.location.nativeElement,f=l.injector.get(nL,null),M=f&&l.injector.get(H5e);return f&&M&&M.registerApplication(u,f),l.onDestroy(()=>{this.detachView(l.hostView),rL(this.components,l),M&&M.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new sn(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;rL(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(KA,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(zs),qt(X2),qt(QA))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rL(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let TY=!0,Xr=(()=>{class t{}return t.__NG_ELEMENT_ID__=Z5e,t})();function Z5e(t){return function K5e(t,n,e){if(zd(t)&&!e){const i=Rc(t.index,n);return new q7(i,i)}return 47&t.type?new q7(n[16],n):null}(gc(),Fi(),16==(16&t))}class kY{constructor(){}supports(n){return F7(n)}create(n){return new o6e(n)}}const i6e=(t,n)=>n;class o6e{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||i6e}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,l),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,l,a,o)),Object.is(e.item,l)||this._addIdentityChange(e,l)):(e=this._mismatch(e,l,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new r6e(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new IY),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new IY),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class r6e{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class a6e{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class IY{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new a6e,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function NY(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new c6e(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class c6e{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function zY(){return new nu([new kY])}let nu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||zY()),deps:[[t,new jd,new s1]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new sn(901,"")}}return t.\u0275prov=gt({token:t,providedIn:"root",factory:zY}),t})();function FY(){return new Of([new RY])}let Of=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||FY()),deps:[[t,new jd,new s1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new sn(901,"")}}return t.\u0275prov=gt({token:t,providedIn:"root",factory:FY}),t})();const u6e=MY(null,"core",[]);let h6e=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(qt(K7))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),My=null;function w0(){return My}const vr=new ui("DocumentToken");let Mg=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:function(){return function m6e(){return qt(HY)}()},providedIn:"platform"}),t})();const _6e=new ui("Location Initialized");let HY=(()=>{class t extends Mg{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w0().getBaseHref(this._doc)}onPopState(e){const i=w0().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=w0().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,o){VY()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){VY()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:function(){return function C6e(){return new HY(qt(vr))}()},providedIn:"platform"}),t})();function VY(){return!!window.history.pushState}function dL(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function BY(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function zp(t){return t&&"?"!==t[0]?"?"+t:t}let h6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:function(){return function v6e(t){const n=qt(vr).location;return new GY(qt(Mg),n&&n.origin||"")}()},providedIn:"root"}),t})();const uL=new ui("appBaseHref");let GY=(()=>{class t extends h6{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return dL(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+zp(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+zp(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+zp(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(qt(Mg),qt(uL,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),b6e=(()=>{class t extends h6{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=dL(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+zp(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+zp(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(qt(Mg),qt(uL,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),J7=(()=>{class t{constructor(e,i){this._subject=new In,this._urlChangeListeners=[],this._platformStrategy=e;const o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=BY(YY(o)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+zp(i))}normalize(e){return t.stripTrailingSlash(function y6e(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,YY(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._platformStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zp(i)),o)}replaceState(e,i="",o=null){this._platformStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zp(i)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return t.normalizeQueryParams=zp,t.joinWithSlash=dL,t.stripTrailingSlash=BY,t.\u0275fac=function(e){return new(e||t)(qt(h6),qt(Mg))},t.\u0275prov=gt({token:t,factory:function(){return function x6e(){return new J7(qt(h6),qt(Mg))}()},providedIn:"root"}),t})();function YY(t){return t.replace(/\/index.html$/,"")}var wl=(()=>((wl=wl||{})[wl.Format=0]="Format",wl[wl.Standalone=1]="Standalone",wl))(),Wa=(()=>((Wa=Wa||{})[Wa.Narrow=0]="Narrow",Wa[Wa.Abbreviated=1]="Abbreviated",Wa[Wa.Wide=2]="Wide",Wa[Wa.Short=3]="Short",Wa))(),Kc=(()=>((Kc=Kc||{})[Kc.Short=0]="Short",Kc[Kc.Medium=1]="Medium",Kc[Kc.Long=2]="Long",Kc[Kc.Full=3]="Full",Kc))(),Gr=(()=>((Gr=Gr||{})[Gr.Decimal=0]="Decimal",Gr[Gr.Group=1]="Group",Gr[Gr.List=2]="List",Gr[Gr.PercentSign=3]="PercentSign",Gr[Gr.PlusSign=4]="PlusSign",Gr[Gr.MinusSign=5]="MinusSign",Gr[Gr.Exponential=6]="Exponential",Gr[Gr.SuperscriptingExponent=7]="SuperscriptingExponent",Gr[Gr.PerMille=8]="PerMille",Gr[Gr.Infinity=9]="Infinity",Gr[Gr.NaN=10]="NaN",Gr[Gr.TimeSeparator=11]="TimeSeparator",Gr[Gr.CurrencyDecimal=12]="CurrencyDecimal",Gr[Gr.CurrencyGroup=13]="CurrencyGroup",Gr))();function Oy(t,n){return Vu(Xd(t)[zo.DateFormat],n)}function Sy(t,n){return Vu(Xd(t)[zo.TimeFormat],n)}function Py(t,n){return Vu(Xd(t)[zo.DateTimeFormat],n)}function Hu(t,n){const e=Xd(t),i=e[zo.NumberSymbols][n];if(void 0===i){if(n===Gr.CurrencyDecimal)return e[zo.NumberSymbols][Gr.Decimal];if(n===Gr.CurrencyGroup)return e[zo.NumberSymbols][Gr.Group]}return i}function jY(t){if(!t[zo.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[zo.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Vu(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function pL(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const N6e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,e9={},R6e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var l1=(()=>((l1=l1||{})[l1.Short=0]="Short",l1[l1.ShortGMT=1]="ShortGMT",l1[l1.Long=2]="Long",l1[l1.Extended=3]="Extended",l1))(),Qr=(()=>((Qr=Qr||{})[Qr.FullYear=0]="FullYear",Qr[Qr.Month=1]="Month",Qr[Qr.Date=2]="Date",Qr[Qr.Hours=3]="Hours",Qr[Qr.Minutes=4]="Minutes",Qr[Qr.Seconds=5]="Seconds",Qr[Qr.FractionalSeconds=6]="FractionalSeconds",Qr[Qr.Day=7]="Day",Qr))(),Ta=(()=>((Ta=Ta||{})[Ta.DayPeriods=0]="DayPeriods",Ta[Ta.Days=1]="Days",Ta[Ta.Months=2]="Months",Ta[Ta.Eras=3]="Eras",Ta))();function z6e(t,n,e,i){let o=function W6e(t){if($Y(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,r=1,a=1]=t.split("-").map(l=>+l);return Ty(o,r-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(N6e))return function q6e(t){const n=new Date(0);let e=0,i=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,l=Number(t[5]||0)-i,u=Number(t[6]||0),f=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,a,l,u,f),n}(i)}const n=new Date(t);if(!$Y(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Fp(e,n)||n;let l,a=[];for(;n;){if(l=R6e.exec(n),!l){a.push(n);break}{a=a.concat(l.slice(1));const M=a.pop();if(!M)break;n=M}}let u=o.getTimezoneOffset();i&&(u=qY(i,u),o=function j6e(t,n,e){const i=e?-1:1,o=t.getTimezoneOffset();return function U6e(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(qY(n,o)-o))}(o,i,!0));let f="";return a.forEach(M=>{const T=function Y6e(t){if(gL[t])return gL[t];let n;switch(t){case"G":case"GG":case"GGG":n=vc(Ta.Eras,Wa.Abbreviated);break;case"GGGG":n=vc(Ta.Eras,Wa.Wide);break;case"GGGGG":n=vc(Ta.Eras,Wa.Narrow);break;case"y":n=jl(Qr.FullYear,1,0,!1,!0);break;case"yy":n=jl(Qr.FullYear,2,0,!0,!0);break;case"yyy":n=jl(Qr.FullYear,3,0,!1,!0);break;case"yyyy":n=jl(Qr.FullYear,4,0,!1,!0);break;case"Y":n=Dy(1);break;case"YY":n=Dy(2,!0);break;case"YYY":n=Dy(3);break;case"YYYY":n=Dy(4);break;case"M":case"L":n=jl(Qr.Month,1,1);break;case"MM":case"LL":n=jl(Qr.Month,2,1);break;case"MMM":n=vc(Ta.Months,Wa.Abbreviated);break;case"MMMM":n=vc(Ta.Months,Wa.Wide);break;case"MMMMM":n=vc(Ta.Months,Wa.Narrow);break;case"LLL":n=vc(Ta.Months,Wa.Abbreviated,wl.Standalone);break;case"LLLL":n=vc(Ta.Months,Wa.Wide,wl.Standalone);break;case"LLLLL":n=vc(Ta.Months,Wa.Narrow,wl.Standalone);break;case"w":n=fL(1);break;case"ww":n=fL(2);break;case"W":n=fL(1,!0);break;case"d":n=jl(Qr.Date,1);break;case"dd":n=jl(Qr.Date,2);break;case"c":case"cc":n=jl(Qr.Day,1);break;case"ccc":n=vc(Ta.Days,Wa.Abbreviated,wl.Standalone);break;case"cccc":n=vc(Ta.Days,Wa.Wide,wl.Standalone);break;case"ccccc":n=vc(Ta.Days,Wa.Narrow,wl.Standalone);break;case"cccccc":n=vc(Ta.Days,Wa.Short,wl.Standalone);break;case"E":case"EE":case"EEE":n=vc(Ta.Days,Wa.Abbreviated);break;case"EEEE":n=vc(Ta.Days,Wa.Wide);break;case"EEEEE":n=vc(Ta.Days,Wa.Narrow);break;case"EEEEEE":n=vc(Ta.Days,Wa.Short);break;case"a":case"aa":case"aaa":n=vc(Ta.DayPeriods,Wa.Abbreviated);break;case"aaaa":n=vc(Ta.DayPeriods,Wa.Wide);break;case"aaaaa":n=vc(Ta.DayPeriods,Wa.Narrow);break;case"b":case"bb":case"bbb":n=vc(Ta.DayPeriods,Wa.Abbreviated,wl.Standalone,!0);break;case"bbbb":n=vc(Ta.DayPeriods,Wa.Wide,wl.Standalone,!0);break;case"bbbbb":n=vc(Ta.DayPeriods,Wa.Narrow,wl.Standalone,!0);break;case"B":case"BB":case"BBB":n=vc(Ta.DayPeriods,Wa.Abbreviated,wl.Format,!0);break;case"BBBB":n=vc(Ta.DayPeriods,Wa.Wide,wl.Format,!0);break;case"BBBBB":n=vc(Ta.DayPeriods,Wa.Narrow,wl.Format,!0);break;case"h":n=jl(Qr.Hours,1,-12);break;case"hh":n=jl(Qr.Hours,2,-12);break;case"H":n=jl(Qr.Hours,1);break;case"HH":n=jl(Qr.Hours,2);break;case"m":n=jl(Qr.Minutes,1);break;case"mm":n=jl(Qr.Minutes,2);break;case"s":n=jl(Qr.Seconds,1);break;case"ss":n=jl(Qr.Seconds,2);break;case"S":n=jl(Qr.FractionalSeconds,1);break;case"SS":n=jl(Qr.FractionalSeconds,2);break;case"SSS":n=jl(Qr.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Ay(l1.Short);break;case"ZZZZZ":n=Ay(l1.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ay(l1.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ay(l1.Long);break;default:return null}return gL[t]=n,n}(M);f+=T?T(o,e,u):"''"===M?"'":M.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function Ty(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Fp(t,n){const e=function w6e(t){return Xd(t)[zo.LocaleId]}(t);if(e9[e]=e9[e]||{},e9[e][n])return e9[e][n];let i="";switch(n){case"shortDate":i=Oy(t,Kc.Short);break;case"mediumDate":i=Oy(t,Kc.Medium);break;case"longDate":i=Oy(t,Kc.Long);break;case"fullDate":i=Oy(t,Kc.Full);break;case"shortTime":i=Sy(t,Kc.Short);break;case"mediumTime":i=Sy(t,Kc.Medium);break;case"longTime":i=Sy(t,Kc.Long);break;case"fullTime":i=Sy(t,Kc.Full);break;case"short":const o=Fp(t,"shortTime"),r=Fp(t,"shortDate");i=Ey(Py(t,Kc.Short),[o,r]);break;case"medium":const a=Fp(t,"mediumTime"),l=Fp(t,"mediumDate");i=Ey(Py(t,Kc.Medium),[a,l]);break;case"long":const u=Fp(t,"longTime"),f=Fp(t,"longDate");i=Ey(Py(t,Kc.Long),[u,f]);break;case"full":const M=Fp(t,"fullTime"),T=Fp(t,"fullDate");i=Ey(Py(t,Kc.Full),[M,T])}return i&&(e9[e][n]=i),i}function Ey(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function wh(t,n,e="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=e));let a=String(t);for(;a.length0||l>-e)&&(l+=e),t===Qr.Hours)0===l&&-12===e&&(l=12);else if(t===Qr.FractionalSeconds)return function F6e(t,n){return wh(t,3).substr(0,n)}(l,n);const u=Hu(a,Gr.MinusSign);return wh(l,n,u,i,o)}}function vc(t,n,e=wl.Format,i=!1){return function(o,r){return function V6e(t,n,e,i,o,r){switch(e){case Ta.Months:return function S6e(t,n,e){const i=Xd(t),r=Vu([i[zo.MonthsFormat],i[zo.MonthsStandalone]],n);return Vu(r,e)}(n,o,i)[t.getMonth()];case Ta.Days:return function O6e(t,n,e){const i=Xd(t),r=Vu([i[zo.DaysFormat],i[zo.DaysStandalone]],n);return Vu(r,e)}(n,o,i)[t.getDay()];case Ta.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(r){const f=function A6e(t){const n=Xd(t);return jY(n),(n[zo.ExtraData][2]||[]).map(i=>"string"==typeof i?pL(i):[pL(i[0]),pL(i[1])])}(n),M=function L6e(t,n,e){const i=Xd(t);jY(i);const r=Vu([i[zo.ExtraData][0],i[zo.ExtraData][1]],n)||[];return Vu(r,e)||[]}(n,o,i),T=f.findIndex(U=>{if(Array.isArray(U)){const[ie,se]=U,Me=a>=ie.hours&&l>=ie.minutes,we=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case l1.Short:return(o>=0?"+":"")+wh(a,2,r)+wh(Math.abs(o%60),2,r);case l1.ShortGMT:return"GMT"+(o>=0?"+":"")+wh(a,1,r);case l1.Long:return"GMT"+(o>=0?"+":"")+wh(a,2,r)+":"+wh(Math.abs(o%60),2,r);case l1.Extended:return 0===i?"Z":(o>=0?"+":"")+wh(a,2,r)+":"+wh(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function WY(t){return Ty(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function fL(t,n=!1){return function(e,i){let o;if(n){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+r)/7)}else{const r=WY(e),a=function G6e(t){const n=Ty(t,0,1).getDay();return Ty(t,0,1+(n<=4?4:11)-n)}(r.getFullYear()),l=r.getTime()-a.getTime();o=1+Math.round(l/6048e5)}return wh(o,t,Hu(i,Gr.MinusSign))}}function Dy(t,n=!1){return function(e,i){return wh(WY(e).getFullYear(),t,Hu(i,Gr.MinusSign),n)}}const gL={};function qY(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function $Y(t){return t instanceof Date&&!isNaN(t.valueOf())}function KY(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}let ds=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(F7(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Le(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(ue(nu),ue(Of),ue(Ti),ue(yl))},t.\u0275dir=St({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class a_e{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $o=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new a_e(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const l=i.get(r);i.move(l,a),JY(l,o)}});for(let o=0,r=i.length;o{JY(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Oc),ue(nu))},t.\u0275dir=St({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function JY(t,n){t.context.$implicit=n.item}let Yi=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new s_e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){eU("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){eU("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Oc))},t.\u0275dir=St({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class s_e{constructor(){this.$implicit=null,this.ngIf=null}}function eU(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Le(n)}'.`)}class xL{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let bd=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new xL(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Oc),ue(bd,9))},t.\u0275dir=St({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),tU=(()=>{class t{constructor(e,i,o){o._addDefault(new xL(e,i))}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Oc),ue(bd,9))},t.\u0275dir=St({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Og=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,o,i):this._renderer.removeStyle(this._ngEl.nativeElement,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Of),ue(yl))},t.\u0275dir=St({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Sg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(ue(oc))},t.\u0275dir=St({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Yo]}),t})();function Mh(t,n){return new sn(2100,"")}class l_e{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class d_e{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const u_e=new d_e,h_e=new l_e;let Iy=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(V7(e))return u_e;if(xB(e))return h_e;throw Mh()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr,16))},t.\u0275pipe=zn({name:"async",type:t,pure:!1}),t})();const __e=new ui("DATE_PIPE_DEFAULT_TIMEZONE");let iU=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,r){var a;if(null==e||""===e||e!=e)return null;try{return z6e(e,i,r||this.locale,null!==(a=null!=o?o:this.defaultTimezone)&&void 0!==a?a:void 0)}catch(l){throw Mh()}}}return t.\u0275fac=function(e){return new(e||t)(ue(Rp,16),ue(__e,24))},t.\u0275pipe=zn({name:"date",type:t,pure:!0}),t})(),va=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const rU="browser";function ll(t){return t===rU}function ou(t){return"server"===t}let L_e=(()=>{class t{}return t.\u0275prov=gt({token:t,providedIn:"root",factory:()=>new D_e(qt(vr),window)}),t})();class D_e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function k_e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=aU(this.window.history)||aU(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function aU(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class sU{}class ML extends class I_e extends class g6e{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function f6e(t){My||(My=t)}(new ML)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function N_e(){return n9=n9||document.querySelector("base"),n9?n9.getAttribute("href"):null}();return null==e?null:function R_e(t){Ny=Ny||document.createElement("a"),Ny.setAttribute("href",t);const n=Ny.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){n9=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return KY(document.cookie,n)}}let Ny,n9=null;const cU=new ui("TRANSITION_ID"),F_e=[{provide:xy,useFactory:function z_e(t,n,e){return()=>{e.get(QA).donePromise.then(()=>{const i=w0(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},tt.getAllAngularTestabilities=()=>n.getAllTestabilities(),tt.getAllAngularRootElements=()=>n.getAllRootElements(),tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(i=>{const o=tt.getAllAngularTestabilities();let r=o.length,a=!1;const l=function(u){a=a||u,r--,0==r&&i(a)};o.forEach(function(u){u.whenStable(l)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:i?w0().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let H_e=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const Ry=new ui("EventManagerPlugins");let zy=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),o9=(()=>{class t extends dU{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const a=this._doc.createElement("style");a.textContent=r,o.push(i.appendChild(a))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(uU),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(uU))}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function uU(t){w0().remove(t)}const SL={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},PL=/%COMP%/g;function Fy(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Hy=(()=>{class t{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new TL(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case pa.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new j_e(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case pa.ShadowDom:return new W_e(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=Fy(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(qt(zy),qt(o9),qt(Z7))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class TL{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(SL[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=SL[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=SL[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(qd.DashCase|qd.Important)?n.style.setProperty(e,i,o&qd.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&qd.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,fU(i)):this.eventManager.addEventListener(n,e,fU(i))}}class j_e extends TL{constructor(n,e,i,o){super(n),this.component=i;const r=Fy(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function G_e(t){return"_ngcontent-%COMP%".replace(PL,t)}(o+"-"+i.id),this.hostAttr=function Y_e(t){return"_nghost-%COMP%".replace(PL,t)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class W_e extends TL{constructor(n,e,i,o){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Fy(o.id,o.styles,[]);for(let a=0;a{class t extends lU{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const mU=["alt","control","meta","shift"],X_e={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_U={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Q_e={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Z_e=(()=>{class t extends lU{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>w0().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="";if(mU.forEach(u=>{const f=i.indexOf(u);f>-1&&(i.splice(f,1),a+=u+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static getEventFullKey(e){let i="",o=function K_e(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&_U.hasOwnProperty(n)&&(n=_U[n]))}return X_e[n]||n}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),mU.forEach(r=>{r!=o&&Q_e[r](e)&&(i+=r+".")}),i+=o,i}static eventCallback(e,i,o){return r=>{t.getEventFullKey(r)===e&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const n8e=MY(u6e,"browser",[{provide:Hc,useValue:rU},{provide:_Y,useValue:function J_e(){ML.makeCurrent(),OL.init()},multi:!0},{provide:vr,useFactory:function t8e(){return function m2(t){up=t}(document),document},deps:[]}]),i8e=[{provide:Tr,useValue:"root"},{provide:X2,useFactory:function e8e(){return new X2},deps:[]},{provide:Ry,useClass:q_e,multi:!0,deps:[vr,oo,Hc]},{provide:Ry,useClass:Z_e,multi:!0,deps:[vr]},{provide:Hy,useClass:Hy,deps:[zy,o9,Z7]},{provide:W7,useExisting:Hy},{provide:dU,useExisting:o9},{provide:o9,useClass:o9,deps:[vr]},{provide:nL,useClass:nL,deps:[oo]},{provide:zy,useClass:zy,deps:[Ry,oo]},{provide:sU,useClass:H_e,deps:[]}];let EL=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Z7,useValue:e.appId},{provide:cU,useExisting:Z7},F_e]}}}return t.\u0275fac=function(e){return new(e||t)(qt(t,12))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:i8e,imports:[va,h6e]}),t})();"undefined"!=typeof window&&window;let r9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:function(e){let i=null;return i=e?new(e||t):qt(bU),i},providedIn:"root"}),t})(),bU=(()=>{class t extends r9{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Za.NONE:return i;case Za.HTML:return Du(i,"HTML")?Wd(i):ix(this._doc,String(i)).toString();case Za.STYLE:return Du(i,"Style")?Wd(i):i;case Za.SCRIPT:if(Du(i,"Script"))return Wd(i);throw new Error("unsafe value used in a script context");case Za.URL:return $b(i),Du(i,"URL")?Wd(i):rg(String(i));case Za.RESOURCE_URL:if(Du(i,"ResourceURL"))return Wd(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function Xb(t){return new zT(t)}(e)}bypassSecurityTrustStyle(e){return function HT(t){return new FT(t)}(e)}bypassSecurityTrustScript(e){return function VT(t){return new jb(t)}(e)}bypassSecurityTrustUrl(e){return function BT(t){return new Wb(t)}(e)}bypassSecurityTrustResourceUrl(e){return function GT(t){return new qb(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:function(e){let i=null;return i=e?new e:function p8e(t){return new bU(t.get(vr))}(qt(zs)),i},providedIn:"root"}),t})();function rr(...t){return Ra(t,Us(t))}function Pf(t,n){return _e(n)?da(t,n,1):da(t,1)}function ca(t,n){return ve((e,i)=>{let o=0;e.subscribe($e(i,r=>t.call(n,r,o++)&&i.next(r)))})}class xU{}class yU{}class M0{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof M0?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new M0;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof M0?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(l=>-1===r.indexOf(l)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class f8e{encodeKey(n){return wU(n)}encodeValue(n){return wU(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const m8e=/%(\d[a-f0-9])/gi,_8e={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function wU(t){return encodeURIComponent(t).replace(m8e,(n,e)=>{var i;return null!==(i=_8e[e])&&void 0!==i?i:n})}function MU(t){return`${t}`}class Zd{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new f8e,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g8e(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,l]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],u=e.get(a)||[];u.push(l),e.set(a,u)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Zd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(MU(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(MU(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class C8e{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function OU(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function SU(t){return"undefined"!=typeof Blob&&t instanceof Blob}function PU(t){return"undefined"!=typeof FormData&&t instanceof FormData}class a9{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function v8e(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new M0),this.context||(this.context=new C8e),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":lU.set(ie,n.setHeaders[ie]),f)),n.setParams&&(M=Object.keys(n.setParams).reduce((U,ie)=>U.set(ie,n.setParams[ie]),M)),new a9(i,o,a,{params:M,headers:f,context:T,reportProgress:u,responseType:r,withCredentials:l})}}var Ml=(()=>((Ml=Ml||{})[Ml.Sent=0]="Sent",Ml[Ml.UploadProgress=1]="UploadProgress",Ml[Ml.ResponseHeader=2]="ResponseHeader",Ml[Ml.DownloadProgress=3]="DownloadProgress",Ml[Ml.Response=4]="Response",Ml[Ml.User=5]="User",Ml))();class LL{constructor(n,e=200,i="OK"){this.headers=n.headers||new M0,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class DL extends LL{constructor(n={}){super(n),this.type=Ml.ResponseHeader}clone(n={}){return new DL({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class s9 extends LL{constructor(n={}){super(n),this.type=Ml.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new s9({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Vy extends LL{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function kL(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let ru=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof a9)r=e;else{let u,f;u=o.headers instanceof M0?o.headers:new M0(o.headers),o.params&&(f=o.params instanceof Zd?o.params:new Zd({fromObject:o.params})),r=new a9(e,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=rr(r).pipe(Pf(u=>this.handler.handle(u)));if(e instanceof a9||"events"===o.observe)return a;const l=a.pipe(ca(u=>u instanceof s9));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(it(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return l.pipe(it(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return l.pipe(it(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return l.pipe(it(u=>u.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Zd).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,kL(o,i))}post(e,i,o={}){return this.request("POST",e,kL(o,i))}put(e,i,o={}){return this.request("PUT",e,kL(o,i))}}return t.\u0275fac=function(e){return new(e||t)(qt(xU))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class TU{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const IL=new ui("HTTP_INTERCEPTORS");let NL,x8e=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),y8e=0;class EU{}let AU=(()=>{class t{constructor(e,i){this.callbackMap=e,this.document=i,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+y8e++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new Wt(i=>{const o=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${o}$1`),a=this.document.createElement("script");a.src=r;let l=null,u=!1;this.callbackMap[o]=U=>{delete this.callbackMap[o],l=U,u=!0};const f=()=>{a.parentNode&&a.parentNode.removeChild(a),delete this.callbackMap[o]};return a.addEventListener("load",U=>{this.resolvedPromise.then(()=>{f(),u?(i.next(new s9({body:l,status:200,statusText:"OK",url:r})),i.complete()):i.error(new Vy({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),a.addEventListener("error",U=>{f(),i.error(new Vy({error:U,status:0,statusText:"JSONP Error",url:r}))}),this.document.body.appendChild(a),i.next({type:Ml.Sent}),()=>{u||this.removeListeners(a),f()}})}removeListeners(e){NL||(NL=this.document.implementation.createHTMLDocument()),NL.adoptNode(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(EU),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),S8e=(()=>{class t{constructor(e){this.jsonp=e}intercept(e,i){return"JSONP"===e.method?this.jsonp.handle(e):i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(AU))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const P8e=/^\)\]\}',?\n/;let LU=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Wt(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ie,se)=>o.setRequestHeader(ie,se.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const ie=e.detectContentTypeHeader();null!==ie&&o.setRequestHeader("Content-Type",ie)}if(e.responseType){const ie=e.responseType.toLowerCase();o.responseType="json"!==ie?ie:"text"}const r=e.serializeBody();let a=null;const l=()=>{if(null!==a)return a;const ie=o.statusText||"OK",se=new M0(o.getAllResponseHeaders()),Me=function T8e(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return a=new DL({headers:se,status:o.status,statusText:ie,url:Me}),a},u=()=>{let{headers:ie,status:se,statusText:Me,url:we}=l(),He=null;204!==se&&(He=void 0===o.response?o.responseText:o.response),0===se&&(se=He?200:0);let Be=se>=200&&se<300;if("json"===e.responseType&&"string"==typeof He){const me=He;He=He.replace(P8e,"");try{He=""!==He?JSON.parse(He):null}catch(ze){He=me,Be&&(Be=!1,He={error:ze,text:He})}}Be?(i.next(new s9({body:He,headers:ie,status:se,statusText:Me,url:we||void 0})),i.complete()):i.error(new Vy({error:He,headers:ie,status:se,statusText:Me,url:we||void 0}))},f=ie=>{const{url:se}=l(),Me=new Vy({error:ie,status:o.status||0,statusText:o.statusText||"Unknown Error",url:se||void 0});i.error(Me)};let M=!1;const T=ie=>{M||(i.next(l()),M=!0);let se={type:Ml.DownloadProgress,loaded:ie.loaded};ie.lengthComputable&&(se.total=ie.total),"text"===e.responseType&&!!o.responseText&&(se.partialText=o.responseText),i.next(se)},U=ie=>{let se={type:Ml.UploadProgress,loaded:ie.loaded};ie.lengthComputable&&(se.total=ie.total),i.next(se)};return o.addEventListener("load",u),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",T),null!==r&&o.upload&&o.upload.addEventListener("progress",U)),o.send(r),i.next({type:Ml.Sent}),()=>{o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",u),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",T),null!==r&&o.upload&&o.upload.removeEventListener("progress",U)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(qt(sU))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const RL=new ui("XSRF_COOKIE_NAME"),zL=new ui("XSRF_HEADER_NAME");class DU{}let E8e=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=KY(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(Hc),qt(RL))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),FL=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(DU),qt(zL))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),A8e=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(IL,[]);this.chain=i.reduceRight((o,r)=>new TU(o,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(yU),qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function L8e(){return"object"==typeof window?window:{}}let D8e=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:FL,useClass:x8e}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:RL,useValue:e.cookieName}:[],e.headerName?{provide:zL,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[FL,{provide:IL,useExisting:FL,multi:!0},{provide:DU,useClass:E8e},{provide:RL,useValue:"XSRF-TOKEN"},{provide:zL,useValue:"X-XSRF-TOKEN"}]}),t})(),k8e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[ru,{provide:xU,useClass:A8e},LU,{provide:yU,useExisting:LU}],imports:[[D8e.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),I8e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[AU,{provide:EU,useFactory:L8e},{provide:IL,useClass:S8e,multi:!0}]}),t})();class HL{}const Hp="*";function na(t,n){return{type:7,name:t,definitions:n,options:{}}}function Mo(t,n=null){return{type:4,styles:n,timings:t}}function Pg(t,n=null){return{type:3,steps:t,options:n}}function c9(t,n=null){return{type:2,steps:t,options:n}}function ti(t){return{type:6,styles:t,offset:null}}function cr(t,n,e){return{type:0,name:t,styles:n,options:e}}function Tg(t){return{type:5,steps:t}}function Do(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Q1(t=null){return{type:9,options:t}}function qa(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function VL(t,n){return{type:12,timings:t,animation:n}}function kU(t){Promise.resolve(null).then(t)}class l9{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kU(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class IU{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?kU(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,l)=>Math.max(a,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ka=!1;function NU(t){return new sn(3e3,Ka)}function _7e(){return"undefined"!=typeof window&&void 0!==window.document}function GL(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Tf(t){switch(t.length){case 0:return new l9;case 1:return t[0];default:return new IU(t)}}function RU(t,n,e,i,o={},r={}){const a=[],l=[];let u=-1,f=null;if(i.forEach(M=>{const T=M.offset,U=T==u,ie=U&&f||{};Object.keys(M).forEach(se=>{let Me=se,we=M[se];if("offset"!==se)switch(Me=n.normalizePropertyName(Me,a),we){case"!":we=o[se];break;case Hp:we=r[se];break;default:we=n.normalizeStyleValue(se,Me,we,a)}ie[Me]=we}),U||l.push(ie),f=ie,u=T}),a.length)throw function a7e(t){return new sn(3502,Ka)}();return l}function YL(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&UL(e,"start",t)));break;case"done":t.onDone(()=>i(e&&UL(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&UL(e,"destroy",t)))}}function UL(t,n,e){const i=e.totalTime,r=jL(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function jL(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function au(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function zU(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let WL=(t,n)=>!1,FU=(t,n,e)=>[],HU=null;function qL(t){const n=t.parentNode||t.host;return n===HU?null:n}(GL()||"undefined"!=typeof Element)&&(_7e()?(HU=(()=>document.documentElement)(),WL=(t,n)=>{for(;n;){if(n===t)return!0;n=qL(n)}return!1}):WL=(t,n)=>t.contains(n),FU=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Eg=null,VU=!1;function BU(t){Eg||(Eg=function v7e(){return"undefined"!=typeof document?document.body:null}()||{},VU=!!Eg.style&&"WebkitAppearance"in Eg.style);let n=!0;return Eg.style&&!function C7e(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Eg.style,!n&&VU&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Eg.style)),n}const GU=WL,YU=FU;let UU=(()=>{class t{validateStyleProperty(e){return BU(e)}matchesElement(e,i){return!1}containsElement(e,i){return GU(e,i)}getParentElement(e){return qL(e)}query(e,i,o){return YU(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,l=[],u){return new l9(o,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),$L=(()=>{class t{}return t.NOOP=new UU,t})();const XL="ng-enter",Gy="ng-leave",Yy="ng-trigger",Uy=".ng-trigger",WU="ng-animating",QL=".ng-animating";function Ag(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:ZL(parseFloat(n[1]),n[2])}function ZL(t,n){return"s"===n?1e3*t:t}function jy(t,n,e){return t.hasOwnProperty("duration")?t:function y7e(t,n,e){let o,r=0,a="";if("string"==typeof t){const l=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return n.push(NU()),{duration:0,delay:0,easing:""};o=ZL(parseFloat(l[1]),l[2]);const u=l[3];null!=u&&(r=ZL(parseFloat(u),l[4]));const f=l[5];f&&(a=f)}else o=t;if(!e){let l=!1,u=n.length;o<0&&(n.push(function F8e(){return new sn(3100,Ka)}()),l=!0),r<0&&(n.push(function H8e(){return new sn(3101,Ka)}()),l=!0),l&&n.splice(u,0,NU())}return{duration:o,delay:r,easing:a}}(t,n,e)}function p6(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ef(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else p6(t,e);return e}function $U(t,n,e){return e?n+":"+e+";":""}function XU(t){let n="";for(let e=0;e{const o=JL(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[o]),t.style[o]=n[i]}),GL()&&XU(t))}function Lg(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=JL(e);t.style[i]=""}),GL()&&XU(t))}function d9(t){return Array.isArray(t)?1==t.length?t[0]:c9(t):t}const KL=new RegExp("{{\\s*(.+?)\\s*}}","g");function QU(t){let n=[];if("string"==typeof t){let e;for(;e=KL.exec(t);)n.push(e[1]);KL.lastIndex=0}return n}function Wy(t,n,e){const i=t.toString(),o=i.replace(KL,(r,a)=>{let l=n[a];return n.hasOwnProperty(a)||(e.push(function B8e(t){return new sn(3003,Ka)}()),l=""),l.toString()});return o==i?t:o}function qy(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const M7e=/-+([a-z0-9])/g;function JL(t){return t.replace(M7e,(...n)=>n[1].toUpperCase())}function O7e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cu(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function G8e(t){return new sn(3004,Ka)}()}}function ZU(t,n){return window.getComputedStyle(t)[n]}function L7e(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function D7e(t,n,e){if(":"==t[0]){const u=function k7e(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof u)return void n.push(u);t=u}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function t7e(t){return new sn(3015,Ka)}()),n;const o=i[1],r=i[2],a=i[3];n.push(KU(o,a));"<"==r[0]&&!("*"==o&&"*"==a)&&n.push(KU(a,o))}(i,e,n)):e.push(t),e}const Zy=new Set(["true","1"]),Ky=new Set(["false","0"]);function KU(t,n){const e=Zy.has(t)||Ky.has(t),i=Zy.has(n)||Ky.has(n);return(o,r)=>{let a="*"==t||t==o,l="*"==n||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?Zy.has(t):Ky.has(t)),!l&&i&&"boolean"==typeof r&&(l=r?Zy.has(n):Ky.has(n)),a&&l}}const I7e=new RegExp("s*:selfs*,?","g");function eD(t,n,e,i){return new N7e(t).build(n,e,i)}class N7e{constructor(n){this._driver=n}build(n,e,i){const o=new F7e(e);this._resetContextStyleTimingState(o);const r=cu(this,d9(n),o);return o.unsupportedCSSPropertiesFound.size&&o.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function U8e(){return new sn(3006,Ka)}()),n.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const u=l,f=u.name;f.toString().split(/\s*,\s*/).forEach(M=>{u.name=M,r.push(this.visitState(u,e))}),u.name=f}else if(1==l.type){const u=this.visitTransition(l,e);i+=u.queryCount,o+=u.depCount,a.push(u)}else e.errors.push(function j8e(){return new sn(3007,Ka)}())}),{type:7,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(l=>{if(Jy(l)){const u=l;Object.keys(u).forEach(f=>{QU(u[f]).forEach(M=>{a.hasOwnProperty(M)||r.add(M)})})}}),r.size&&(qy(r.values()),e.errors.push(function W8e(t,n){return new sn(3008,Ka)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=cu(this,d9(n.animation),e);return{type:1,matchers:L7e(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Dg(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>cu(this,i,e)),options:Dg(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const l=cu(this,a,e);return o=Math.max(o,e.currentTime),l});return e.currentTime=o,{type:3,steps:r,options:Dg(n.options)}}visitAnimate(n,e){const i=function V7e(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return tD(jy(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=tD(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=jy(e,n);return tD(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:ti({});if(5==r.type)o=this.visitKeyframes(r,e);else{let a=n.styles,l=!1;if(!a){l=!0;const f={};i.easing&&(f.easing=i.easing),a=ti(f)}e.currentTime+=i.duration+i.delay;const u=this.visitStyle(a,e);u.isEmptyStep=l,o=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(a=>{"string"==typeof a?a==Hp?i.push(a):e.errors.push(function q8e(t){return new sn(3002,Ka)}()):i.push(a)}):i.push(n.styles);let o=!1,r=null;return i.forEach(a=>{if(Jy(a)){const l=a,u=l.easing;if(u&&(r=u,delete l.easing),!o)for(let f in l)if(l[f].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&Object.keys(a).forEach(l=>{if(!this._driver.validateStyleProperty(l))return delete a[l],void e.unsupportedCSSPropertiesFound.add(l);const u=e.collectedStyles[e.currentQuerySelector],f=u[l];let M=!0;f&&(r!=o&&r>=f.startTime&&o<=f.endTime&&(e.errors.push(function $8e(t,n,e,i,o){return new sn(3010,Ka)}()),M=!1),r=f.startTime),M&&(u[l]={startTime:r,endTime:o}),e.options&&function w7e(t,n,e){const i=n.params||{},o=QU(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function V8e(t){return new sn(3001,Ka)}())})}(a[l],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function X8e(){return new sn(3011,Ka)}()),i;let r=0;const a=[];let l=!1,u=!1,f=0;const M=n.steps.map(He=>{const Be=this._makeStyleAst(He,e);let me=null!=Be.offset?Be.offset:function H7e(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Jy(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Jy(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(Be.styles),ze=0;return null!=me&&(r++,ze=Be.offset=me),u=u||ze<0||ze>1,l=l||ze0&&r{const me=U>0?Be==ie?1:U*Be:a[Be],ze=me*we;e.currentTime=se+Me.delay+ze,Me.duration=ze,this._validateStyleAst(He,e),He.offset=me,i.styles.push(He)}),i}visitReference(n,e){return{type:8,animation:cu(this,d9(n.animation),e),options:Dg(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Dg(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Dg(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function R7e(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(I7e,"")),t=t.replace(/@\*/g,Uy).replace(/@\w+/g,e=>Uy+"-"+e.substr(1)).replace(/:animating/g,QL),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,au(e.collectedStyles,e.currentQuerySelector,{});const l=cu(this,d9(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:l,originalSelector:n.selector,options:Dg(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function J8e(){return new sn(3013,Ka)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:jy(n.timings,e.errors,!0);return{type:12,animation:cu(this,d9(n.animation),e),timings:i,options:null}}}class F7e{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Jy(t){return!Array.isArray(t)&&"object"==typeof t}function Dg(t){return t?(t=p6(t)).params&&(t.params=function z7e(t){return t?p6(t):null}(t.params)):t={},t}function tD(t,n,e){return{duration:t,delay:n,easing:e}}function nD(t,n,e,i,o,r,a=null,l=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:l}}class ew{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const Y7e=new RegExp(":enter","g"),j7e=new RegExp(":leave","g");function iD(t,n,e,i,o,r={},a={},l,u,f=[]){return(new W7e).buildKeyframes(t,n,e,i,o,r,a,l,u,f)}class W7e{buildKeyframes(n,e,i,o,r,a,l,u,f,M=[]){f=f||new ew;const T=new oD(n,e,f,o,r,M,[]);T.options=u,T.currentTimeline.setStyles([a],null,T.errors,u),cu(this,i,T);const U=T.timelines.filter(ie=>ie.containsAnimation());if(Object.keys(l).length){let ie;for(let se=U.length-1;se>=0;se--){const Me=U[se];if(Me.element===e){ie=Me;break}}ie&&!ie.allowOnlyTimelineStyles()&&ie.setStyles([l],null,T.errors,u)}return U.length?U.map(ie=>ie.buildKeyframes()):[nD(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ag(i.duration):null,l=null!=i.delay?Ag(i.delay):null;return 0!==a&&n.forEach(u=>{const f=e.appendInstructionToTimeline(u,a,l);r=Math.max(r,f.duration+f.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),cu(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=tw);const a=Ag(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>cu(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ag(n.options.delay):0;n.steps.forEach(a=>{const l=e.createSubContext(n.options);r&&l.delayNextStep(r),cu(this,a,l),o=Math.max(o,l.currentTimeline.currentTime),i.push(l.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return jy(e.params?Wy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,l=e.createSubContext().currentTimeline;l.easing=i.easing,n.styles.forEach(u=>{l.forwardTime((u.offset||0)*r),l.setStyles(u.styles,u.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ag(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tw);let a=i;const l=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=l.length;let u=null;l.forEach((f,M)=>{e.currentQueryIndex=M;const T=e.createSubContext(n.options,f);r&&T.delayNextStep(r),f===e.element&&(u=T.currentTimeline),cu(this,n.animation,T),T.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,T.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),l=a*(e.currentQueryTotal-1);let u=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":u=l-u;break;case"full":u=i.currentStaggerTime}const M=e.currentTimeline;u&&M.delayNextStep(u);const T=M.currentTime;cu(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-T+(o.startTime-i.currentTimeline.startTime)}}const tw={};class oD{constructor(n,e,i,o,r,a,l,u){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new nw(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ag(i.duration)),null!=i.delay&&(o.delay=Ag(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(l=>{(!e||!a.hasOwnProperty(l))&&(a[l]=Wy(r[l],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new oD(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=tw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new q7e(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let l=[];if(o&&l.push(this.element),n.length>0){n=(n=n.replace(Y7e,"."+this._enterClassName)).replace(j7e,"."+this._leaveClassName);let f=this._driver.query(this.element,n,1!=i);0!==i&&(f=i<0?f.slice(f.length+i,f.length):f.slice(0,i)),l.push(...f)}return!r&&0==l.length&&a.push(function e7e(t){return new sn(3014,Ka)}()),l}}class nw{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new nw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Hp,this._currentKeyframe[e]=Hp}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&(this._previousKeyframe.easing=e);const r=o&&o.params||{},a=function $7e(t,n){const e={};let i;return t.forEach(o=>{"*"===o?(i=i||Object.keys(n),i.forEach(r=>{e[r]=Hp})):Ef(o,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(a).forEach(l=>{const u=Wy(a[l],r,i);this._pendingStyles[l]=u,this._localTimelineStyles.hasOwnProperty(l)||(this._backFill[l]=this._globalTimelineStyles.hasOwnProperty(l)?this._globalTimelineStyles[l]:Hp),this._updateStyle(l,u)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],o=n._styleSummary[e];(!i||o.time>i.time)&&this._updateStyle(e,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((l,u)=>{const f=Ef(l,!0);Object.keys(f).forEach(M=>{const T=f[M];"!"==T?n.add(M):T==Hp&&e.add(M)}),i||(f.offset=u/this.duration),o.push(f)});const r=n.size?qy(n.values()):[],a=e.size?qy(e.values()):[];if(i){const l=o[0],u=p6(l);l.offset=0,u.offset=1,o=[l,u]}return nD(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class q7e extends nw{constructor(n,e,i,o,r,a,l=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=l,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,l=e/a,u=Ef(n[0],!1);u.offset=0,r.push(u);const f=Ef(n[0],!1);f.offset=tj(l),r.push(f);const M=n.length-1;for(let T=1;T<=M;T++){let U=Ef(n[T],!1);U.offset=tj((e+U.offset*i)/a),r.push(U)}i=a,e=0,o="",n=r}return nD(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function tj(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class rD{}class X7e extends rD{normalizePropertyName(n,e){return JL(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(Q7e[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const l=i.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&o.push(function Y8e(t,n){return new sn(3005,Ka)}())}return a+r}}const Q7e=(()=>function Z7e(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function nj(t,n,e,i,o,r,a,l,u,f,M,T,U){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:l,queriedElements:u,preStyleProps:f,postStyleProps:M,totalTime:T,errors:U}}const aD={};class ij{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function K7e(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){const o=this._stateStyles["*"],r=this._stateStyles[n],a=o?o.buildStyles(e,i):{};return r?r.buildStyles(e,i):a}build(n,e,i,o,r,a,l,u,f,M){const T=[],U=this.ast.options&&this.ast.options.params||aD,se=this.buildStyles(i,l&&l.params||aD,T),Me=u&&u.params||aD,we=this.buildStyles(o,Me,T),He=new Set,Be=new Map,me=new Map,ze="void"===o,qe={params:Object.assign(Object.assign({},U),Me)},rt=M?[]:iD(n,e,this.ast.animation,r,a,se,we,qe,f,T);let xt=0;if(rt.forEach(jt=>{xt=Math.max(jt.duration+jt.delay,xt)}),T.length)return nj(e,this._triggerName,i,o,ze,se,we,[],[],Be,me,xt,T);rt.forEach(jt=>{const an=jt.element,pn=au(Be,an,{});jt.preStyleProps.forEach(Kt=>pn[Kt]=!0);const yn=au(me,an,{});jt.postStyleProps.forEach(Kt=>yn[Kt]=!0),an!==e&&He.add(an)});const Ut=qy(He.values());return nj(e,this._triggerName,i,o,ze,se,we,rt,Ut,Be,me,xt)}}class J7e{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},o=p6(this.defaultParams);return Object.keys(n).forEach(r=>{const a=n[r];null!=a&&(o[r]=a)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const a=r;Object.keys(a).forEach(l=>{let u=a[l];u.length>1&&(u=Wy(u,o,e));const f=this.normalizer.normalizePropertyName(l,e);u=this.normalizer.normalizeStyleValue(l,f,u,e),i[f]=u})}}),i}}class t9e{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(o=>{this.states[o.name]=new J7e(o.style,o.options&&o.options.params||{},i)}),oj(this.states,"true","1"),oj(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new ij(n,o,this.states))}),this.fallbackTransition=function n9e(t,n,e){return new ij(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,l)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function oj(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const i9e=new ew;class o9e{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=eD(this._driver,e,i,[]);if(i.length)throw function s7e(t){return new sn(3503,Ka)}();this._animations[n]=r}_buildPlayer(n,e,i){const o=n.element,r=RU(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations[n];let a;const l=new Map;if(r?(a=iD(this._driver,e,r,XL,Gy,{},{},i,i9e,o),a.forEach(M=>{const T=au(l,M.element,{});M.postStyleProps.forEach(U=>T[U]=null)})):(o.push(function c7e(){return new sn(3300,Ka)}()),a=[]),o.length)throw function l7e(t){return new sn(3504,Ka)}();l.forEach((M,T)=>{Object.keys(M).forEach(U=>{M[U]=this._driver.computeStyle(T,U,Hp)})});const f=Tf(a.map(M=>{const T=l.get(M.element);return this._buildPlayer(M,{},T)}));return this._playersById[n]=f,f.onDestroy(()=>this.destroy(n)),this.players.push(f),f}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function d7e(t){return new sn(3301,Ka)}();return e}listen(n,e,i,o){const r=jL(e,"","","");return YL(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const rj="ng-animate-queued",sD="ng-animate-disabled",l9e=[],aj={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},d9e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bu="__ng_removed";class cD{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function f9e(t){return null!=t?t:null}(i?n.value:n),i){const r=p6(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const u9="void",lD=new cD(u9);class u9e{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Gu(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.hasOwnProperty(e))throw function u7e(t,n){return new sn(3302,Ka)}();if(null==i||0==i.length)throw function h7e(t){return new sn(3303,Ka)}();if(!function g9e(t){return"start"==t||"done"==t}(i))throw function p7e(t,n){return new sn(3400,Ka)}();const r=au(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const l=au(this._engine.statesByElement,n,{});return l.hasOwnProperty(e)||(Gu(n,Yy),Gu(n,Yy+"-"+e),l[e]=lD),()=>{this._engine.afterFlush(()=>{const u=r.indexOf(a);u>=0&&r.splice(u,1),this._triggers[e]||delete l[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function f7e(t){return new sn(3401,Ka)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new dD(this.id,e,n);let l=this._engine.statesByElement.get(n);l||(Gu(n,Yy),Gu(n,Yy+"-"+e),this._engine.statesByElement.set(n,l={}));let u=l[e];const f=new cD(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&f.absorbOptions(u.options),l[e]=f,u||(u=lD),f.value!==u9&&u.value===f.value){if(!function C9e(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Lg(n,we),O0(n,He)})}return}const U=au(this._engine.playersByElement,n,[]);U.forEach(Me=>{Me.namespaceId==this.id&&Me.triggerName==e&&Me.queued&&Me.destroy()});let ie=r.matchTransition(u.value,f.value,n,f.params),se=!1;if(!ie){if(!o)return;ie=r.fallbackTransition,se=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:ie,fromState:u,toState:f,player:a,isFallbackTransition:se}),se||(Gu(n,rj),a.onStart(()=>{f6(n,rj)})),a.onDone(()=>{let Me=this.players.indexOf(a);Me>=0&&this.players.splice(Me,1);const we=this._engine.playersByElement.get(n);if(we){let He=we.indexOf(a);He>=0&&we.splice(He,1)}}),this.players.push(a),U.push(a),a}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Uy,!0);i.forEach(o=>{if(o[Bu])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const l=[];if(Object.keys(r).forEach(u=>{if(a.set(u,r[u].value),this._triggers[u]){const f=this.trigger(n,u,u9,o);f&&l.push(f)}}),l.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Tf(l).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const u=this._triggers[a].fallbackTransition,f=i[a]||lD,M=new cD(u9),T=new dD(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:u,fromState:f,toState:M,player:T,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Bu];(!r||r===aj)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Gu(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(l=>{if(l.name==i.triggerName){const u=jL(r,i.triggerName,i.fromState.value,i.toState.value);u._data=n,YL(i.player,l.phase,u,l.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class h9e{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new u9e(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement,r=i.length-1;if(r>=0){let a=!1;if(void 0!==this.driver.getParentElement){let l=this.driver.getParentElement(e);for(;l;){const u=o.get(l);if(u){const f=i.indexOf(u);i.splice(f+1,0,n),a=!0;break}l=this.driver.getParentElement(l)}}else for(let l=r;l>=0;l--)if(this.driver.containsElement(i[l].hostElement,e)){i.splice(l+1,0,n),a=!0;break}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const o=Object.keys(i);for(let r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Gu(n,sD)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),f6(n,sD))}removeNode(n,e,i,o){if(iw(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==n&&a.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Bu]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return iw(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Uy,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,QL,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Tf(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Bu];if(i&&i.setForRemoval){if(n[Bu]=aj,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(sD))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Tf(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function g7e(t){return new sn(3402,Ka)}()}_flushAnimations(n,e){const i=new ew,o=[],r=new Map,a=[],l=new Map,u=new Map,f=new Map,M=new Set;this.disabledNodes.forEach(Rn=>{M.add(Rn);const ni=this.driver.query(Rn,".ng-animate-queued",!0);for(let Jn=0;Jn{const Jn=XL+Me++;se.set(ni,Jn),Rn.forEach(Oi=>Gu(Oi,Jn))});const we=[],He=new Set,Be=new Set;for(let Rn=0;RnHe.add(Oi)):Be.add(ni))}const me=new Map,ze=lj(U,Array.from(He));ze.forEach((Rn,ni)=>{const Jn=Gy+Me++;me.set(ni,Jn),Rn.forEach(Oi=>Gu(Oi,Jn))}),n.push(()=>{ie.forEach((Rn,ni)=>{const Jn=se.get(ni);Rn.forEach(Oi=>f6(Oi,Jn))}),ze.forEach((Rn,ni)=>{const Jn=me.get(ni);Rn.forEach(Oi=>f6(Oi,Jn))}),we.forEach(Rn=>{this.processLeaveNode(Rn)})});const qe=[],rt=[];for(let Rn=this._namespaceList.length-1;Rn>=0;Rn--)this._namespaceList[Rn].drainQueuedTransitions(e).forEach(Jn=>{const Oi=Jn.player,qn=Jn.element;if(qe.push(Oi),this.collectedEnterElements.length){const ro=qn[Bu];if(ro&&ro.setForMove){if(ro.previousTriggersValues&&ro.previousTriggersValues.has(Jn.triggerName)){const ki=ro.previousTriggersValues.get(Jn.triggerName),jn=this.statesByElement.get(Jn.element);jn&&jn[Jn.triggerName]&&(jn[Jn.triggerName].value=ki)}return void Oi.destroy()}}const Wi=!T||!this.driver.containsElement(T,qn),Ai=me.get(qn),Bi=se.get(qn),lo=this._buildInstruction(Jn,i,Bi,Ai,Wi);if(lo.errors&&lo.errors.length)return void rt.push(lo);if(Wi)return Oi.onStart(()=>Lg(qn,lo.fromStyles)),Oi.onDestroy(()=>O0(qn,lo.toStyles)),void o.push(Oi);if(Jn.isFallbackTransition)return Oi.onStart(()=>Lg(qn,lo.fromStyles)),Oi.onDestroy(()=>O0(qn,lo.toStyles)),void o.push(Oi);const nr=[];lo.timelines.forEach(ro=>{ro.stretchStartingKeyframe=!0,this.disabledNodes.has(ro.element)||nr.push(ro)}),lo.timelines=nr,i.append(qn,lo.timelines),a.push({instruction:lo,player:Oi,element:qn}),lo.queriedElements.forEach(ro=>au(l,ro,[]).push(Oi)),lo.preStyleProps.forEach((ro,ki)=>{const jn=Object.keys(ro);if(jn.length){let yi=u.get(ki);yi||u.set(ki,yi=new Set),jn.forEach(Ii=>yi.add(Ii))}}),lo.postStyleProps.forEach((ro,ki)=>{const jn=Object.keys(ro);let yi=f.get(ki);yi||f.set(ki,yi=new Set),jn.forEach(Ii=>yi.add(Ii))})});if(rt.length){const Rn=[];rt.forEach(ni=>{Rn.push(function m7e(t,n){return new sn(3505,Ka)}())}),qe.forEach(ni=>ni.destroy()),this.reportError(Rn)}const xt=new Map,Ut=new Map;a.forEach(Rn=>{const ni=Rn.element;i.has(ni)&&(Ut.set(ni,ni),this._beforeAnimationBuild(Rn.player.namespaceId,Rn.instruction,xt))}),o.forEach(Rn=>{const ni=Rn.element;this._getPreviousPlayers(ni,!1,Rn.namespaceId,Rn.triggerName,null).forEach(Oi=>{au(xt,ni,[]).push(Oi),Oi.destroy()})});const jt=we.filter(Rn=>uj(Rn,u,f)),an=new Map;cj(an,this.driver,Be,f,Hp).forEach(Rn=>{uj(Rn,u,f)&&jt.push(Rn)});const yn=new Map;ie.forEach((Rn,ni)=>{cj(yn,this.driver,new Set(Rn),u,"!")}),jt.forEach(Rn=>{const ni=an.get(Rn),Jn=yn.get(Rn);an.set(Rn,Object.assign(Object.assign({},ni),Jn))});const Kt=[],kn=[],ri={};a.forEach(Rn=>{const{element:ni,player:Jn,instruction:Oi}=Rn;if(i.has(ni)){if(M.has(ni))return Jn.onDestroy(()=>O0(ni,Oi.toStyles)),Jn.disabled=!0,Jn.overrideTotalTime(Oi.totalTime),void o.push(Jn);let qn=ri;if(Ut.size>1){let Ai=ni;const Bi=[];for(;Ai=Ai.parentNode;){const lo=Ut.get(Ai);if(lo){qn=lo;break}Bi.push(Ai)}Bi.forEach(lo=>Ut.set(lo,qn))}const Wi=this._buildAnimation(Jn.namespaceId,Oi,xt,r,yn,an);if(Jn.setRealPlayer(Wi),qn===ri)Kt.push(Jn);else{const Ai=this.playersByElement.get(qn);Ai&&Ai.length&&(Jn.parentPlayer=Tf(Ai)),o.push(Jn)}}else Lg(ni,Oi.fromStyles),Jn.onDestroy(()=>O0(ni,Oi.toStyles)),kn.push(Jn),M.has(ni)&&o.push(Jn)}),kn.forEach(Rn=>{const ni=r.get(Rn.element);if(ni&&ni.length){const Jn=Tf(ni);Rn.setRealPlayer(Jn)}}),o.forEach(Rn=>{Rn.parentPlayer?Rn.syncPlayerEvents(Rn.parentPlayer):Rn.destroy()});for(let Rn=0;Rn!Wi.destroyed);qn.length?m9e(this,ni,qn):this.processLeaveNode(ni)}return we.length=0,Kt.forEach(Rn=>{this.players.push(Rn),Rn.onDone(()=>{Rn.destroy();const ni=this.players.indexOf(Rn);this.players.splice(ni,1)}),Rn.play()}),Kt}elementContainsData(n,e){let i=!1;const o=e[Bu];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const l=this.playersByQueriedElement.get(n);l&&(a=l)}else{const l=this.playersByElement.get(n);if(l){const u=!r||r==u9;l.forEach(f=>{f.queued||!u&&f.triggerName!=o||a.push(f)})}}return(i||o)&&(a=a.filter(l=>!(i&&i!=l.namespaceId||o&&o!=l.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,l=e.isRemovalTransition?void 0:e.triggerName;for(const u of e.timelines){const f=u.element,M=f!==r,T=au(i,f,[]);this._getPreviousPlayers(f,M,a,l,e.toState).forEach(ie=>{const se=ie.getRealPlayer();se.beforeDestroy&&se.beforeDestroy(),ie.destroy(),T.push(ie)})}Lg(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const l=e.triggerName,u=e.element,f=[],M=new Set,T=new Set,U=e.timelines.map(se=>{const Me=se.element;M.add(Me);const we=Me[Bu];if(we&&we.removedBeforeQueried)return new l9(se.duration,se.delay);const He=Me!==u,Be=function _9e(t){const n=[];return dj(t,n),n}((i.get(Me)||l9e).map(xt=>xt.getRealPlayer())).filter(xt=>!!xt.element&&xt.element===Me),me=r.get(Me),ze=a.get(Me),qe=RU(0,this._normalizer,0,se.keyframes,me,ze),rt=this._buildPlayer(se,qe,Be);if(se.subTimeline&&o&&T.add(Me),He){const xt=new dD(n,l,Me);xt.setRealPlayer(rt),f.push(xt)}return rt});f.forEach(se=>{au(this.playersByQueriedElement,se.element,[]).push(se),se.onDone(()=>function p9e(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,se.element,se))}),M.forEach(se=>Gu(se,WU));const ie=Tf(U);return ie.onDestroy(()=>{M.forEach(se=>f6(se,WU)),O0(u,e.toStyles)}),T.forEach(se=>{au(o,se,[]).push(ie)}),ie}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new l9(n.duration,n.delay)}}class dD{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new l9,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>YL(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){au(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function iw(t){return t&&1===t.nodeType}function sj(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function cj(t,n,e,i,o){const r=[];e.forEach(u=>r.push(sj(u)));const a=[];i.forEach((u,f)=>{const M={};u.forEach(T=>{const U=M[T]=n.computeStyle(f,T,o);(!U||0==U.length)&&(f[Bu]=d9e,a.push(f))}),t.set(f,M)});let l=0;return e.forEach(u=>sj(u,r[l++])),a}function lj(t,n){const e=new Map;if(t.forEach(l=>e.set(l,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(l){if(!l)return 1;let u=r.get(l);if(u)return u;const f=l.parentNode;return u=e.has(f)?f:o.has(f)?1:a(f),r.set(l,u),u}return n.forEach(l=>{const u=a(l);1!==u&&e.get(u).push(l)}),e}function Gu(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function f6(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function m9e(t,n,e){Tf(e).onDone(()=>t.processLeaveNode(n))}function dj(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class ow{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new h9e(n,e,i),this._timelineEngine=new o9e(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let l=this._triggerCache[a];if(!l){const u=[],M=eD(this._driver,r,u,[]);if(u.length)throw function r7e(t,n){return new sn(3404,Ka)}();l=function e9e(t,n,e){return new t9e(t,n,e)}(o,M,this._normalizer),this._triggerCache[a]=l}this._transitionEngine.registerTrigger(e,o,l)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i,o){this._transitionEngine.removeNode(n,e,o||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=zU(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,l]=zU(i);return this._timelineEngine.listen(a,e,l,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let b9e=(()=>{class t{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&O0(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(O0(this._element,this._initialStyles),this._endStyles&&(O0(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Lg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lg(this._element,this._endStyles),this._endStyles=null),O0(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function uD(t){let n=null;const e=Object.keys(t);for(let i=0;in()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:ZU(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class y9e{validateStyleProperty(n){return BU(n)}matchesElement(n,e){return!1}containsElement(n,e){return GU(n,e)}getParentElement(n){return qL(n)}query(n,e,i){return YU(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,a=[]){const u={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(u.easing=r);const f={},M=a.filter(U=>U instanceof hj);(function S7e(t,n){return 0===t||0===n})(i,o)&&M.forEach(U=>{let ie=U.currentSnapshot;Object.keys(ie).forEach(se=>f[se]=ie[se])}),e=function P7e(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],a=[];if(i.forEach(l=>{r.hasOwnProperty(l)||a.push(l),r[l]=e[l]}),a.length)for(var o=1;oEf(U,!1)),f);const T=function v9e(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=uD(n[0]),n.length>1&&(i=uD(n[n.length-1]))):n&&(e=uD(n)),e||i?new b9e(t,e,i):null}(n,e);return new hj(n,e,u,T)}}let w9e=(()=>{class t extends HL{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:pa.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?c9(e):e;return pj(this._renderer,null,i,"register",[o]),new M9e(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(qt(W7),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class M9e extends class N8e{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new O9e(this._id,n,e||{},this._renderer)}}class O9e{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return pj(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function pj(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const fj="@.disabled";let S9e=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,a)=>{const l=null==a?void 0:a.parentNode(r);l&&a.removeChild(l,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let M=this._rendererCache.get(r);return M||(M=new gj("",r,this.engine),this._rendererCache.set(r,M)),M}const a=i.id,l=i.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const u=M=>{Array.isArray(M)?M.forEach(u):this.engine.registerTrigger(a,l,e,M.name,M)};return i.data.animation.forEach(u),new P9e(this,l,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&ei(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[a,l]=r;a(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(qt(W7),qt(ow),qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();class gj{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==fj?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class P9e extends gj{constructor(n,e,i,o){super(e,i,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==fj?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function T9e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),a="";return"@"!=r.charAt(0)&&([r,a]=function E9e(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,l=>{this.factory.scheduleListenerCallback(l._data||-1,i,l)})}return this.delegate.listen(n,e,i)}}let A9e=(()=>{class t extends ow{constructor(e,i,o){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt($L),qt(rD))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const E1=new ui("AnimationModuleType"),mj=[{provide:HL,useClass:w9e},{provide:rD,useFactory:function L9e(){return new X7e}},{provide:ow,useClass:A9e},{provide:W7,useFactory:function D9e(t,n,e){return new S9e(t,n,e)},deps:[Hy,ow,oo]}],_j=[{provide:$L,useFactory:()=>new y9e},{provide:E1,useValue:"BrowserAnimations"},...mj],k9e=[{provide:$L,useClass:UU},{provide:E1,useValue:"NoopAnimations"},...mj];let I9e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?k9e:_j}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:_j,imports:[EL]}),t})();class Io extends N{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const{isArray:N9e}=Array,{getPrototypeOf:R9e,prototype:z9e,keys:F9e}=Object;function Cj(t){if(1===t.length){const n=t[0];if(N9e(n))return{args:n,keys:null};if(function H9e(t){return t&&"object"==typeof t&&R9e(t)===z9e}(n)){const e=F9e(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:V9e}=Array;function hD(t){return it(n=>function B9e(t,n){return V9e(n)?t(...n):t(n)}(t,n))}function vj(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function h9(...t){const n=Us(t),e=Da(t),{args:i,keys:o}=Cj(t);if(0===i.length)return Ra([],n);const r=new Wt(function G9e(t,n,e=Ie){return i=>{bj(n,()=>{const{length:o}=t,r=new Array(o);let a=o,l=o;for(let u=0;u{const f=Ra(t[u],n);let M=!1;f.subscribe($e(i,T=>{r[u]=T,M||(M=!0,l--),l||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>vj(o,a):Ie));return e?r.pipe(hD(e)):r}function bj(t,n,e){t?Rs(e,t,n):n()}function p9(t,n){const e=_e(t)?t:()=>t,i=o=>o.error(e());return new Wt(n?o=>n.schedule(i,0,o):i)}const aw=Ne(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function f9(...t){return function Y9e(){return wc(1)}()(Ra(t,Us(t)))}function g9(t){return new Wt(n=>{Ur(t()).subscribe(n)})}function xj(){return ve((t,n)=>{let e=null;t._refCount++;const i=$e(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class U9e extends Wt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,he(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Se;const e=this.getSubject();n.add(this.source.subscribe($e(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Se.EMPTY)}return n}refCount(){return xj()(this)}}function Z1(t,n){return ve((e,i)=>{let o=null,r=0,a=!1;const l=()=>a&&!o&&i.complete();e.subscribe($e(i,u=>{null==o||o.unsubscribe();let f=0;const M=r++;Ur(t(u,M)).subscribe(o=$e(i,T=>i.next(n?n(u,T,M,f++):T),()=>{o=null,l()}))},()=>{a=!0,l()}))})}function Ja(t){return t<=0?()=>Na:ve((n,e)=>{let i=0;n.subscribe($e(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function Sc(...t){const n=Us(t);return ve((e,i)=>{(n?f9(t,e,n):f9(t,e)).subscribe(i)})}function j9e(t,n,e,i,o){return(r,a)=>{let l=e,u=n,f=0;r.subscribe($e(a,M=>{const T=f++;u=l?t(u,M,T):(l=!0,M),i&&a.next(u)},o&&(()=>{l&&a.next(u),a.complete()})))}}function yj(t,n){return ve(j9e(t,n,arguments.length>=2,!0))}function Vp(t){return ve((n,e)=>{let r,i=null,o=!1;i=n.subscribe($e(e,void 0,void 0,a=>{r=Ur(t(a,Vp(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function pD(t){return t<=0?()=>Na:ve((n,e)=>{let i=[];n.subscribe($e(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function wj(t=W9e){return ve((n,e)=>{let i=!1;n.subscribe($e(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function W9e(){return new aw}function Mj(t){return ve((n,e)=>{let i=!1;n.subscribe($e(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function kg(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ca((o,r)=>t(o,r,i)):Ie,Ja(1),e?Mj(n):wj(()=>new aw))}function Ps(t,n,e){const i=_e(t)||n||e?{next:t,error:n,complete:e}:t;return i?ve((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let l=!0;o.subscribe($e(r,u=>{var f;null===(f=i.next)||void 0===f||f.call(i,u),r.next(u)},()=>{var u;l=!1,null===(u=i.complete)||void 0===u||u.call(i),r.complete()},u=>{var f;l=!1,null===(f=i.error)||void 0===f||f.call(i,u),r.error(u)},()=>{var u,f;l&&(null===(u=i.unsubscribe)||void 0===u||u.call(i)),null===(f=i.finalize)||void 0===f||f.call(i)}))}):Ie}function Yu(t){return ve((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}class Bp{constructor(n,e){this.id=n,this.url=e}}class g6 extends Bp{constructor(n,e,i="imperative",o=null){super(n,e),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gp extends Bp{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Oj extends Bp{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $9e extends Bp{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class X9e extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q9e extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z9e extends Bp{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class K9e extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class J9e extends Bp{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sj{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Pj{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class eCe{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tCe{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nCe{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iCe{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tj{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Va="primary";class oCe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function m6(t){return new oCe(t)}const Ej="ngNavigationCancelingError";function fD(t){const n=Error("NavigationCancelingError: "+t);return n[Ej]=!0,n}function aCe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function Lj(t){return Array.prototype.concat.apply([],t)}function Dj(t){return t.length>0?t[t.length-1]:null}function K1(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function P0(t){return OA(t)?t:V7(t)?Ra(Promise.resolve(t)):rr(t)}const lCe={exact:function Nj(t,n,e){if(!Ng(t.segments,n.segments)||!sw(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Nj(t.children[i],n.children[i],e))return!1;return!0},subset:Rj},kj={exact:function dCe(t,n){return S0(t,n)},subset:function uCe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Aj(t[e],n[e]))},ignored:()=>!0};function Ij(t,n,e){return lCe[e.paths](t.root,n.root,e.matrixParams)&&kj[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Rj(t,n,e){return zj(t,n,n.segments,e)}function zj(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Ng(o,e)||n.hasChildren()||!sw(o,e,i))}if(t.segments.length===e.length){if(!Ng(t.segments,e)||!sw(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!Rj(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ng(t.segments,o)&&sw(t.segments,o,i)&&t.children[Va])&&zj(t.children[Va],n,r,i)}}function sw(t,n,e){return n.every((i,o)=>kj[e](t[o].parameters,i.parameters))}class Ig{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=m6(this.queryParams)),this._queryParamMap}toString(){return fCe.serialize(this)}}class es{constructor(n,e){this.segments=n,this.children=e,this.parent=null,K1(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cw(this)}}class m9{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=m6(this.parameters)),this._parameterMap}toString(){return Gj(this)}}function Ng(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class Fj{}class Hj{parse(n){const e=new wCe(n);return new Ig(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${_9(n.root,!0)}`,i=function _Ce(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${lw(e)}=${lw(o)}`).join("&"):`${lw(e)}=${lw(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function gCe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const fCe=new Hj;function cw(t){return t.segments.map(n=>Gj(n)).join("/")}function _9(t,n){if(!t.hasChildren())return cw(t);if(n){const e=t.children[Va]?_9(t.children[Va],!1):"",i=[];return K1(t.children,(o,r)=>{r!==Va&&i.push(`${r}:${_9(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function pCe(t,n){let e=[];return K1(t.children,(i,o)=>{o===Va&&(e=e.concat(n(i,o)))}),K1(t.children,(i,o)=>{o!==Va&&(e=e.concat(n(i,o)))}),e}(t,(i,o)=>o===Va?[_9(t.children[Va],!1)]:[`${o}:${_9(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Va]?`${cw(t)}/${e[0]}`:`${cw(t)}/(${e.join("//")})`}}function Vj(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lw(t){return Vj(t).replace(/%3B/gi,";")}function gD(t){return Vj(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dw(t){return decodeURIComponent(t)}function Bj(t){return dw(t.replace(/\+/g,"%20"))}function Gj(t){return`${gD(t.path)}${function mCe(t){return Object.keys(t).map(n=>`;${gD(n)}=${gD(t[n])}`).join("")}(t.parameters)}`}const CCe=/^[^\/()?;=#]+/;function uw(t){const n=t.match(CCe);return n?n[0]:""}const vCe=/^[^=?&#]+/,xCe=/^[^&#]+/;class wCe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new es([],{}):new es([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Va]=new es(n,e)),i}parseSegment(){const n=uw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new m9(dw(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=uw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=uw(this.remaining);o&&(i=o,this.capture(i))}n[dw(e)]=dw(i)}parseQueryParam(n){const e=function bCe(t){const n=t.match(vCe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function yCe(t){const n=t.match(xCe);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=Bj(e),r=Bj(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=uw(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Va);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Va]:new es([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class Yj{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=mD(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=mD(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=_D(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return _D(n,this._root).map(e=>e.value)}}function mD(t,n){if(t===n.value)return n;for(const e of n.children){const i=mD(t,e);if(i)return i}return null}function _D(t,n){if(t===n.value)return[n];for(const e of n.children){const i=_D(t,e);if(i.length)return i.unshift(n),i}return[]}class Yp{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function _6(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Uj extends Yj{constructor(n,e){super(n),this.snapshot=e,CD(this,n)}toString(){return this.snapshot.toString()}}function jj(t,n){const e=function MCe(t,n){const a=new hw([],{},{},"",{},Va,n,null,t.root,-1,{});return new qj("",new Yp(a,[]))}(t,n),i=new Io([new m9("",{})]),o=new Io({}),r=new Io({}),a=new Io({}),l=new Io(""),u=new lu(i,o,a,l,r,Va,n,e.root);return u.snapshot=e.root,new Uj(new Yp(u,[]),e)}class lu{constructor(n,e,i,o,r,a,l,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=l,this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(it(n=>m6(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(it(n=>m6(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Wj(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function OCe(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class hw{constructor(n,e,i,o,r,a,l,u,f,M,T){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=l,this.routeConfig=u,this._urlSegment=f,this._lastPathIndex=M,this._resolve=T}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=m6(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=m6(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class qj extends Yj{constructor(n,e){super(e),this.url=n,CD(this,e)}toString(){return $j(this._root)}}function CD(t,n){n.value._routerState=t,n.children.forEach(e=>CD(t,e))}function $j(t){const n=t.children.length>0?` { ${t.children.map($j).join(", ")} } `:"";return`${t.value}${n}`}function vD(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,S0(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),S0(n.params,e.params)||t.params.next(e.params),function sCe(t,n){if(t.length!==n.length)return!1;for(let e=0;eS0(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||bD(t.parent,n.parent))}function C9(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function PCe(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return C9(t,i,o);return C9(t,i)})}(t,n,e);return new Yp(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(l=>C9(t,l)),a}}const i=function TCe(t){return new lu(new Io(t.url),new Io(t.params),new Io(t.queryParams),new Io(t.fragment),new Io(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>C9(t,r));return new Yp(i,o)}}function pw(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function v9(t){return"object"==typeof t&&null!=t&&t.outlets}function xD(t,n,e,i,o){let r={};if(i&&K1(i,(l,u)=>{r[u]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),t===n)return new Ig(e,r,o);const a=Xj(t,n,e);return new Ig(a,r,o)}function Xj(t,n,e){const i={};return K1(t.children,(o,r)=>{i[r]=o===n?e:Xj(o,n,e)}),new es(t.segments,i)}class Qj{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&pw(i[0]))throw new Error("Root segment cannot have matrix parameters");const o=i.find(v9);if(o&&o!==Dj(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yD{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Zj(t,n,e){if(t||(t=new es([],{})),0===t.segments.length&&t.hasChildren())return fw(t,n,e);const i=function ICe(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],l=e[i];if(v9(l))break;const u=`${l}`,f=i0&&void 0===u)break;if(u&&f&&"object"==typeof f&&void 0===f.outlets){if(!Jj(u,f,a))return r;i+=2}else{if(!Jj(u,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[a]=Zj(t.children[a],n,r))}),K1(t.children,(r,a)=>{void 0===i[a]&&(o[a]=r)}),new es(t.segments,o)}}function wD(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=wD(new es([],{}),0,e))}),n}function Kj(t){const n={};return K1(t,(e,i)=>n[i]=`${e}`),n}function Jj(t,n,e){return t==e.path&&S0(n,e.parameters)}class zCe{constructor(n,e,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),vD(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=_6(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),K1(o,(r,a)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=_6(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);if(i&&i.outlet){const a=i.outlet.detach(),l=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:l})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=_6(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const o=_6(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new iCe(r.value.snapshot))}),n.children.length&&this.forwardEvent(new tCe(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(vD(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const l=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),vD(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=function FCe(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(o.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=o,a.resolver=u,a.outlet&&a.outlet.activateWith(o,u),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class MD{constructor(n,e){this.routes=n,this.module=e}}function Af(t){return"function"==typeof t}function Rg(t){return t instanceof Ig}const b9=Symbol("INITIAL_VALUE");function x9(){return Z1(t=>h9(t.map(n=>n.pipe(Ja(1),Sc(b9)))).pipe(yj((n,e)=>{let i=!1;return e.reduce((o,r,a)=>o!==b9?o:(r===b9&&(i=!0),i||!1!==r&&a!==e.length-1&&!Rg(r)?o:r),n)},b9),ca(n=>n!==b9),it(n=>Rg(n)?n:!0===n),Ja(1)))}class UCe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new y9,this.attachRef=null}}class y9{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new UCe,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let OD=(()=>{class t{constructor(e,i,o,r,a){this.parentContexts=e,this.location=i,this.resolver=o,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new In,this.deactivateEvents=new In,this.attachEvents=new In,this.detachEvents=new In,this.name=r||Va,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const a=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),l=this.parentContexts.getOrCreateContext(this.name).children,u=new jCe(e,l,this.location.injector);this.activated=this.location.createComponent(a,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(ue(y9),ue(oc),ue(wf),Yl("name"),ue(Xr))},t.\u0275dir=St({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class jCe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===lu?this.route:n===y9?this.childContexts:this.parent.get(n,e)}}let eW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&Qe(0,"router-outlet")},directives:[OD],encapsulation:2}),t})();function tW(t,n=""){for(let e=0;eUu(i)===n);return e.push(...t.filter(i=>Uu(i)!==n)),e}const iW={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gw(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},iW):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aCe)(e,t,n);if(!r)return Object.assign({},iW);const a={};K1(r.posParams,(u,f)=>{a[f]=u.path});const l=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:l,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function mw(t,n,e,i,o="corrected"){if(e.length>0&&function QCe(t,n,e){return e.some(i=>_w(t,n,i)&&Uu(i)!==Va)}(t,e,i)){const a=new es(n,function XCe(t,n,e,i){const o={};o[Va]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&Uu(r)!==Va){const a=new es([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Uu(r)]=a}return o}(t,n,i,new es(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&function ZCe(t,n,e){return e.some(i=>_w(t,n,i))}(t,e,i)){const a=new es(t.segments,function $Ce(t,n,e,i,o,r){const a={};for(const l of i)if(_w(t,e,l)&&!o[Uu(l)]){const u=new es([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===r?t.segments.length:n.length,a[Uu(l)]=u}return Object.assign(Object.assign({},o),a)}(t,n,e,i,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:e}}const r=new es(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function _w(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function oW(t,n,e,i){return!!(Uu(t)===i||i!==Va&&_w(n,e,t))&&("**"===t.path||gw(n,t,e).matched)}function rW(t,n,e){return 0===n.length&&!t.children[e]}class Cw{constructor(n){this.segmentGroup=n||null}}class aW{constructor(n){this.urlTree=n}}function w9(t){return p9(new Cw(t))}function sW(t){return p9(new aW(t))}class tve{constructor(n,e,i,o,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(Np)}apply(){const n=mw(this.urlTree.root,[],[],this.config).segmentGroup,e=new es(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Va).pipe(it(r=>this.createUrlTree(PD(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Vp(r=>{if(r instanceof aW)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof Cw?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,Va).pipe(it(o=>this.createUrlTree(PD(o),n.queryParams,n.fragment))).pipe(Vp(o=>{throw o instanceof Cw?this.noMatchError(o):o}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const o=n.segments.length>0?new es([],{[Va]:n}):n;return new Ig(o,e,i)}expandSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(it(r=>new es([],r))):this.expandSegment(n,i,e,i.segments,o,!0)}expandChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Ra(o).pipe(Pf(r=>{const a=i.children[r],l=nW(e,r);return this.expandSegmentGroup(n,l,a,r).pipe(it(u=>({segment:u,outlet:r})))}),yj((r,a)=>(r[a.outlet]=a.segment,r),{}),function q9e(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ca((o,r)=>t(o,r,i)):Ie,pD(1),e?Mj(n):wj(()=>new aw))}())}expandSegment(n,e,i,o,r,a){return Ra(i).pipe(Pf(l=>this.expandSegmentAgainstRoute(n,e,i,l,o,r,a).pipe(Vp(f=>{if(f instanceof Cw)return rr(null);throw f}))),kg(l=>!!l),Vp((l,u)=>{if(l instanceof aw||"EmptyError"===l.name)return rW(e,o,r)?rr(new es([],{})):w9(e);throw l}))}expandSegmentAgainstRoute(n,e,i,o,r,a,l){return oW(o,e,r,a)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,r,a):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a):w9(e):w9(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,a):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?sW(r):this.lineralizeSegments(i,r).pipe(da(a=>{const l=new es(a,{});return this.expandSegment(n,l,e,a,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:l,consumedSegments:u,remainingSegments:f,positionalParamSegments:M}=gw(e,o,r);if(!l)return w9(e);const T=this.applyRedirectCommands(u,o.redirectTo,M);return o.redirectTo.startsWith("/")?sW(T):this.lineralizeSegments(o,T).pipe(da(U=>this.expandSegment(n,e,i,U.concat(f),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?rr(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(it(T=>(i._loadedConfig=T,new es(o,{})))):rr(new es(o,{}));const{matched:a,consumedSegments:l,remainingSegments:u}=gw(e,i,o);return a?this.getChildConfig(n,i,o).pipe(da(M=>{const T=M.module,U=M.routes,{segmentGroup:ie,slicedSegments:se}=mw(e,l,u,U),Me=new es(ie.segments,ie.children);if(0===se.length&&Me.hasChildren())return this.expandChildren(T,U,Me).pipe(it(me=>new es(l,me)));if(0===U.length&&0===se.length)return rr(new es(l,{}));const we=Uu(i)===r;return this.expandSegment(T,Me,U,se,we?Va:r,!0).pipe(it(Be=>new es(l.concat(Be.segments),Be.children)))})):w9(e)}getChildConfig(n,e,i){return e.children?rr(new MD(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?rr(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(da(o=>o?this.configLoader.load(n.injector,e).pipe(it(r=>(e._loadedConfig=r,r))):function JCe(t){return p9(fD(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):rr(new MD([],n))}runCanLoadGuards(n,e,i){const o=e.canLoad;return o&&0!==o.length?rr(o.map(a=>{const l=n.get(a);let u;if(function VCe(t){return t&&Af(t.canLoad)}(l))u=l.canLoad(e,i);else{if(!Af(l))throw new Error("Invalid CanLoad guard");u=l(e,i)}return P0(u)})).pipe(x9(),Ps(a=>{if(!Rg(a))return;const l=fD(`Redirecting to "${this.urlSerializer.serialize(a)}"`);throw l.url=a,l}),it(a=>!0===a)):rr(!0)}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return rr(i);if(o.numberOfChildren>1||!o.children[Va])return p9(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));o=o.children[Va]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new Ig(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return K1(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const l=o.substring(1);i[r]=e[l]}else i[r]=o}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return K1(e.children,(l,u)=>{a[u]=this.createSegmentGroup(n,l,i,o)}),new es(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}function PD(t){const n={};for(const i of Object.keys(t.children)){const r=PD(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function nve(t){if(1===t.numberOfChildren&&t.children[Va]){const n=t.children[Va];return new es(t.segments.concat(n.segments),n.children)}return t}(new es(t.segments,n))}class cW{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class vw{constructor(n,e){this.component=n,this.route=e}}function ove(t,n,e){const i=t._root;return M9(i,n?n._root:null,e,[i.value])}function bw(t,n,e){const i=function ave(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function M9(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=_6(n);return t.children.forEach(a=>{(function sve(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,l=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const u=function cve(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Ng(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ng(t.url,n.url)||!S0(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bD(t,n)||!S0(t.queryParams,n.queryParams);default:return!bD(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new cW(i)):(r.data=a.data,r._resolvedData=a._resolvedData),M9(t,n,r.component?l?l.children:null:e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new vw(l.outlet.component,a))}else a&&O9(n,l,o),o.canActivateChecks.push(new cW(i)),M9(t,null,r.component?l?l.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),K1(r,(a,l)=>O9(a,e.getContext(l),o)),o}function O9(t,n,e){const i=_6(t),o=t.value;K1(i,(r,a)=>{O9(r,o.component?n?n.children.getContext(a):null:n,e)}),e.canDeactivateChecks.push(new vw(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}class _ve{}function lW(t){return new Wt(n=>n.error(t))}class vve{constructor(n,e,i,o,r,a){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=a}recognize(){const n=mw(this.urlTree.root,[],[],this.config.filter(a=>void 0===a.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,Va);if(null===e)return null;const i=new hw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Va,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Yp(i,e),r=new qj(this.url,o);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=Wj(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const a=e.children[r],l=nW(n,r),u=this.processSegmentGroup(l,a,r);if(null===u)return null;i.push(...u)}const o=dW(i);return function bve(t){t.sort((n,e)=>n.value.outlet===Va?-1:e.value.outlet===Va?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}processSegment(n,e,i,o){for(const r of n){const a=this.processSegmentAgainstRoute(r,e,i,o);if(null!==a)return a}return rW(e,i,o)?[]:null}processSegmentAgainstRoute(n,e,i,o){if(n.redirectTo||!oW(n,e,i,o))return null;let r,a=[],l=[];if("**"===n.path){const ie=i.length>0?Dj(i).parameters:{};r=new hw(i,ie,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pW(n),Uu(n),n.component,n,uW(e),hW(e)+i.length,fW(n))}else{const ie=gw(e,n,i);if(!ie.matched)return null;a=ie.consumedSegments,l=ie.remainingSegments,r=new hw(a,ie.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pW(n),Uu(n),n.component,n,uW(e),hW(e)+a.length,fW(n))}const u=function xve(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:f,slicedSegments:M}=mw(e,a,l,u.filter(ie=>void 0===ie.redirectTo),this.relativeLinkResolution);if(0===M.length&&f.hasChildren()){const ie=this.processChildren(u,f);return null===ie?null:[new Yp(r,ie)]}if(0===u.length&&0===M.length)return[new Yp(r,[])];const T=Uu(n)===o,U=this.processSegment(u,f,M,T?Va:o);return null===U?null:[new Yp(r,U)]}}function yve(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function dW(t){const n=[],e=new Set;for(const i of t){if(!yve(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=dW(i.children);n.push(new Yp(i.value,o))}return n.filter(i=>!e.has(i))}function uW(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function hW(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function pW(t){return t.data||{}}function fW(t){return t.resolve||{}}function gW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function TD(t){return Z1(n=>{const e=t(n);return e?Ra(e).pipe(it(()=>n)):rr(n)})}class Ave extends class Eve{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const ED=new ui("ROUTES");class mW{constructor(n,e,i,o){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const o=this.loadModuleFactory(e.loadChildren).pipe(it(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const a=r.create(n);return new MD(Lj(a.injector.get(ED,void 0,qi.Self|qi.Optional)).map(SD),a)}),Vp(r=>{throw e._loader$=void 0,r}));return e._loader$=new U9e(o,()=>new N).pipe(xj()),e._loader$}loadModuleFactory(n){return P0(n()).pipe(da(e=>e instanceof zG?rr(e):Ra(this.compiler.compileModuleAsync(e))))}}class Dve{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function kve(t){throw t}function Ive(t,n,e){return n.parse("/")}function _W(t,n){return rr(null)}const Nve={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rve={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let A1=(()=>{class t{constructor(e,i,o,r,a,l,u){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new N,this.errorHandler=kve,this.malformedUriErrorHandler=Ive,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_W,afterPreactivation:_W},this.urlHandlingStrategy=new Dve,this.routeReuseStrategy=new Ave,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(Np),this.console=a.get(T5e);const T=a.get(oo);this.isNgZoneEnabled=T instanceof oo&&oo.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function cCe(){return new Ig(new es([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mW(a,l,U=>this.triggerEvent(new Sj(U)),U=>this.triggerEvent(new Pj(U))),this.routerState=jj(this.currentUrlTree,this.rootComponentType),this.transitions=new Io({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ca(o=>0!==o.id),it(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Z1(o=>{let r=!1,a=!1;return rr(o).pipe(Ps(l=>{this.currentNavigation={id:l.id,initialUrl:l.currentRawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Z1(l=>{const u=this.browserUrlTree.toString(),f=!this.navigated||l.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||f)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return CW(l.source)&&(this.browserUrlTree=l.extractedUrl),rr(l).pipe(Z1(T=>{const U=this.transitions.getValue();return i.next(new g6(T.id,this.serializeUrl(T.extractedUrl),T.source,T.restoredState)),U!==this.transitions.getValue()?Na:Promise.resolve(T)}),function ive(t,n,e,i){return Z1(o=>function eve(t,n,e,i,o){return new tve(t,n,e,i,o).apply()}(t,n,e,o.extractedUrl,i).pipe(it(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ps(T=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:T.urlAfterRedirects})}),function wve(t,n,e,i,o){return da(r=>function Cve(t,n,e,i,o="emptyOnly",r="legacy"){try{const a=new vve(t,n,e,i,o,r).recognize();return null===a?lW(new _ve):rr(a)}catch(a){return lW(a)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,o).pipe(it(a=>Object.assign(Object.assign({},r),{targetSnapshot:a}))))}(this.rootComponentType,this.config,T=>this.serializeUrl(T),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ps(T=>{if("eager"===this.urlUpdateStrategy){if(!T.extras.skipLocationChange){const ie=this.urlHandlingStrategy.merge(T.urlAfterRedirects,T.rawUrl);this.setBrowserUrl(ie,T)}this.browserUrlTree=T.urlAfterRedirects}const U=new X9e(T.id,this.serializeUrl(T.extractedUrl),this.serializeUrl(T.urlAfterRedirects),T.targetSnapshot);i.next(U)}));if(f&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:U,extractedUrl:ie,source:se,restoredState:Me,extras:we}=l,He=new g6(U,this.serializeUrl(ie),se,Me);i.next(He);const Be=jj(ie,this.rootComponentType).snapshot;return rr(Object.assign(Object.assign({},l),{targetSnapshot:Be,urlAfterRedirects:ie,extras:Object.assign(Object.assign({},we),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=l.rawUrl,l.resolve(null),Na}),TD(l=>{const{targetSnapshot:u,id:f,extractedUrl:M,rawUrl:T,extras:{skipLocationChange:U,replaceUrl:ie}}=l;return this.hooks.beforePreactivation(u,{navigationId:f,appliedUrlTree:M,rawUrlTree:T,skipLocationChange:!!U,replaceUrl:!!ie})}),Ps(l=>{const u=new Q9e(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),it(l=>Object.assign(Object.assign({},l),{guards:ove(l.targetSnapshot,l.currentSnapshot,this.rootContexts)})),function lve(t,n){return da(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?rr(Object.assign(Object.assign({},e),{guardsResult:!0})):function dve(t,n,e,i){return Ra(t).pipe(da(o=>function mve(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?rr(r.map(l=>{const u=bw(l,n,o);let f;if(function YCe(t){return t&&Af(t.canDeactivate)}(u))f=P0(u.canDeactivate(t,n,e,i));else{if(!Af(u))throw new Error("Invalid CanDeactivate guard");f=P0(u(t,n,e,i))}return f.pipe(kg())})).pipe(x9()):rr(!0)}(o.component,o.route,e,n,i)),kg(o=>!0!==o,!0))}(a,i,o,t).pipe(da(l=>l&&function HCe(t){return"boolean"==typeof t}(l)?function uve(t,n,e,i){return Ra(n).pipe(Pf(o=>f9(function pve(t,n){return null!==t&&n&&n(new eCe(t)),rr(!0)}(o.route.parent,i),function hve(t,n){return null!==t&&n&&n(new nCe(t)),rr(!0)}(o.route,i),function gve(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function rve(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>g9(()=>rr(a.guards.map(u=>{const f=bw(u,a.node,e);let M;if(function GCe(t){return t&&Af(t.canActivateChild)}(f))M=P0(f.canActivateChild(i,t));else{if(!Af(f))throw new Error("Invalid CanActivateChild guard");M=P0(f(i,t))}return M.pipe(kg())})).pipe(x9())));return rr(r).pipe(x9())}(t,o.path,e),function fve(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return rr(!0);const o=i.map(r=>g9(()=>{const a=bw(r,n,e);let l;if(function BCe(t){return t&&Af(t.canActivate)}(a))l=P0(a.canActivate(n,t));else{if(!Af(a))throw new Error("Invalid CanActivate guard");l=P0(a(n,t))}return l.pipe(kg())}));return rr(o).pipe(x9())}(t,o.route,e))),kg(o=>!0!==o,!0))}(i,r,t,n):rr(l)),it(l=>Object.assign(Object.assign({},e),{guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),Ps(l=>{if(Rg(l.guardsResult)){const f=fD(`Redirecting to "${this.serializeUrl(l.guardsResult)}"`);throw f.url=l.guardsResult,f}const u=new Z9e(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(u)}),ca(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,""),!1)),TD(l=>{if(l.guards.canActivateChecks.length)return rr(l).pipe(Ps(u=>{const f=new K9e(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(f)}),Z1(u=>{let f=!1;return rr(u).pipe(function Mve(t,n){return da(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return rr(e);let r=0;return Ra(o).pipe(Pf(a=>function Ove(t,n,e,i){return function Sve(t,n,e,i){const o=gW(t);if(0===o.length)return rr({});const r={};return Ra(o).pipe(da(a=>function Pve(t,n,e,i){const o=bw(t,n,i);return P0(o.resolve?o.resolve(n,e):o(n,e))}(t[a],n,e,i).pipe(Ps(l=>{r[a]=l}))),pD(1),da(()=>gW(r).length===o.length?rr(r):Na))}(t._resolve,t,n,i).pipe(it(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),Wj(t,e).resolve),null)))}(a.route,i,t,n)),Ps(()=>r++),pD(1),da(a=>r===o.length?rr(e):Na))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ps({next:()=>f=!0,complete:()=>{f||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),Ps(u=>{const f=new J9e(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(f)}))}),TD(l=>{const{targetSnapshot:u,id:f,extractedUrl:M,rawUrl:T,extras:{skipLocationChange:U,replaceUrl:ie}}=l;return this.hooks.afterPreactivation(u,{navigationId:f,appliedUrlTree:M,rawUrlTree:T,skipLocationChange:!!U,replaceUrl:!!ie})}),it(l=>{const u=function SCe(t,n,e){const i=C9(t,n._root,e?e._root:void 0);return new Uj(i,n)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return Object.assign(Object.assign({},l),{targetRouterState:u})}),Ps(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((t,n,e)=>it(i=>(new zCe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),Ps({next(){r=!0},complete(){r=!0}}),Yu(()=>{var l;r||a||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(l=this.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(this.currentNavigation=null)}),Vp(l=>{if(a=!0,function rCe(t){return t&&t[Ej]}(l)){const u=Rg(l.url);u||(this.navigated=!0,this.restoreHistory(o,!0));const f=new Oj(o.id,this.serializeUrl(o.extractedUrl),l.message);i.next(f),u?setTimeout(()=>{const M=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),T={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||CW(o.source)};this.scheduleNavigation(M,"imperative",null,T,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new $9e(o.id,this.serializeUrl(o.extractedUrl),l);i.next(u);try{o.resolve(this.errorHandler(l))}catch(f){o.reject(f)}}return Na}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},a=(null===(o=e.state)||void 0===o?void 0:o.navigationId)?e.state:null;if(a){const u=Object.assign({},a);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(r.state=u)}const l=this.parseUrl(e.url);this.scheduleNavigation(l,i,a,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){tW(e),this.config=e.map(SD),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:l,preserveFragment:u}=i,f=o||this.routerState.root,M=u?this.currentUrlTree.fragment:a;let T=null;switch(l){case"merge":T=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":T=this.currentUrlTree.queryParams;break;default:T=r||null}return null!==T&&(T=this.removeEmptyProps(T)),function ECe(t,n,e,i,o){if(0===e.length)return xD(n.root,n.root,n.root,i,o);const r=function ACe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Qj(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const l={};return K1(r.outlets,(u,f)=>{l[f]="string"==typeof u?u.split("/"):u}),[...o,{outlets:l}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((l,u)=>{0==u&&"."===l||(0==u&&""===l?e=!0:".."===l?n++:""!=l&&o.push(l))}),o):[...o,r]},[]);return new Qj(e,n,i)}(e);if(r.toRoot())return xD(n.root,n.root,new es([],{}),i,o);const a=function LCe(t,n,e){if(t.isAbsolute)return new yD(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new yD(r,r===n.root,0)}const i=pw(t.commands[0])?0:1;return function DCe(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new yD(i,!1,o-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),l=a.processChildren?fw(a.segmentGroup,a.index,r.commands):Zj(a.segmentGroup,a.index,r.commands);return xD(n.root,a.segmentGroup,l,i,o)}(f,this.currentUrlTree,e,T,null!=M?M:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Rg(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function zve(t){for(let n=0;n{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Gp(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,a){var l,u;if(this.disposed)return Promise.resolve(!1);let f,M,T;a?(f=a.resolve,M=a.reject,T=a.promise):T=new Promise((se,Me)=>{f=se,M=Me});const U=++this.navigationId;let ie;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),ie=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):ie=0,this.setTransition({id:U,targetPageId:ie,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:f,reject:M,promise:T,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),T.catch(se=>Promise.reject(se))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===a?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const o=new Oj(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){kp()},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function CW(t){return"imperative"!==t}class vW{}class bW{preload(n,e){return rr(null)}}let xW=(()=>{class t{constructor(e,i,o,r){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=new mW(o,i,u=>e.triggerEvent(new Sj(u)),u=>e.triggerEvent(new Pj(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(ca(e=>e instanceof Gp),Pf(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Np);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const a=r._loadedConfig;o.push(this.processRoutes(a.module,a.routes))}else r.loadChildren&&!r.canLoad?o.push(this.preloadConfig(e,r)):r.children&&o.push(this.processRoutes(e,r.children));return Ra(o).pipe(wc(),it(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?rr(i._loadedConfig):this.loader.load(e.injector,i)).pipe(da(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(qt(A1),qt(CY),qt(zs),qt(vW))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),DD=(()=>{class t{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof g6?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gp&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Tj&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new Tj(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){kp()},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const zg=new ui("ROUTER_CONFIGURATION"),yW=new ui("ROUTER_FORROOT_GUARD"),Bve=[J7,{provide:Fj,useClass:Hj},{provide:A1,useFactory:function Wve(t,n,e,i,o,r,a={},l,u){const f=new A1(null,t,n,e,i,o,Lj(r));return l&&(f.urlHandlingStrategy=l),u&&(f.routeReuseStrategy=u),function qve(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(a,f),a.enableTracing&&f.events.subscribe(M=>{var T,U;null===(T=console.group)||void 0===T||T.call(console,`Router Event: ${M.constructor.name}`),console.log(M.toString()),console.log(M),null===(U=console.groupEnd)||void 0===U||U.call(console)}),f},deps:[Fj,y9,J7,zs,CY,ED,zg,[class Lve{},new s1],[class Tve{},new s1]]},y9,{provide:lu,useFactory:function $ve(t){return t.routerState.root},deps:[A1]},xW,bW,class Vve{preload(n,e){return e().pipe(Vp(()=>rr(null)))}},{provide:zg,useValue:{enableTracing:!1}}];function Gve(){return new wY("Router",A1)}let xd=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[Bve,wW(e),{provide:yW,useFactory:jve,deps:[[A1,new s1,new jd]]},{provide:zg,useValue:i||{}},{provide:h6,useFactory:Uve,deps:[Mg,[new y5(uL),new s1],zg]},{provide:DD,useFactory:Yve,deps:[A1,L_e,zg]},{provide:vW,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:bW},{provide:wY,multi:!0,useFactory:Gve},[kD,{provide:xy,multi:!0,useFactory:Xve,deps:[kD]},{provide:MW,useFactory:Qve,deps:[kD]},{provide:KA,multi:!0,useExisting:MW}]]}}static forChild(e){return{ngModule:t,providers:[wW(e)]}}}return t.\u0275fac=function(e){return new(e||t)(qt(yW,8),qt(A1,8))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();function Yve(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new DD(t,n,e)}function Uve(t,n,e={}){return e.useHash?new b6e(t,n):new GY(t,n)}function jve(t){return"guarded"}function wW(t){return[{provide:OT,multi:!0,useValue:t},{provide:ED,multi:!0,useValue:t}]}let kD=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new N}appInitializer(){return this.injector.get(_6e,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const o=new Promise(l=>i=l),r=this.injector.get(A1),a=this.injector.get(zg);return"disabled"===a.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===a.initialNavigation||"enabledBlocking"===a.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?rr(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),o})}bootstrapListener(e){const i=this.injector.get(zg),o=this.injector.get(xW),r=this.injector.get(DD),a=this.injector.get(A1),l=this.injector.get(K7);e===l.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&a.initialNavigation(),o.setUpPreloading(),r.init(),a.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function Xve(t){return t.appInitializer.bind(t)}function Qve(t){return t.bootstrapListener.bind(t)}const MW=new ui("Router Initializer");function no(t){return null!=t&&"false"!=`${t}`}function Vc(t,n=0){return OW(t)?Number(t):n}function OW(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function xw(t){return Array.isArray(t)?t:[t]}function Wl(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ol(t){return t instanceof Ti?t.nativeElement:t}function SW(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const o of i){const r=`${o}`.trim();r&&e.push(r)}}return e}const Kve=["addListener","removeListener"],Jve=["addEventListener","removeEventListener"],ebe=["on","off"];function Jc(t,n,e,i){if(_e(e)&&(i=e,e=void 0),i)return Jc(t,n,e).pipe(hD(i));const[o,r]=function ibe(t){return _e(t.addEventListener)&&_e(t.removeEventListener)}(t)?Jve.map(a=>l=>t[a](n,l,e)):function tbe(t){return _e(t.addListener)&&_e(t.removeListener)}(t)?Kve.map(PW(t,n)):function nbe(t){return _e(t.on)&&_e(t.off)}(t)?ebe.map(PW(t,n)):[];if(!o&&xc(t))return da(a=>Jc(a,n,e))(Ur(t));if(!o)throw new TypeError("Invalid event target");return new Wt(a=>{const l=(...u)=>a.next(1r(l)})}function PW(t,n){return e=>i=>t[e](n,i)}class obe extends Se{constructor(n,e){super()}schedule(n,e=0){return this}}const yw={setInterval(t,n,...e){const{delegate:i}=yw;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=yw;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class ID extends obe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return yw.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&yw.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Oe(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const S9={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=S9;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new Se(()=>null==e?void 0:e(o))},requestAnimationFrame(...t){const{delegate:n}=S9;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=S9;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},TW={now:()=>(TW.delegate||Date).now(),delegate:void 0};class P9{constructor(n,e=P9.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}P9.now=TW.now;class ND extends P9{constructor(n,e=P9.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const EW=new class abe extends ND{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class rbe extends ID{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=S9.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(S9.cancelAnimationFrame(e),n._scheduled=void 0)}});let RD,sbe=1;const ww={};function AW(t){return t in ww&&(delete ww[t],!0)}const cbe={setImmediate(t){const n=sbe++;return ww[n]=!0,RD||(RD=Promise.resolve()),RD.then(()=>AW(n)&&t()),n},clearImmediate(t){AW(t)}},{setImmediate:lbe,clearImmediate:dbe}=cbe,Mw={setImmediate(...t){const{delegate:n}=Mw;return((null==n?void 0:n.setImmediate)||lbe)(...t)},clearImmediate(t){const{delegate:n}=Mw;return((null==n?void 0:n.clearImmediate)||dbe)(t)},delegate:void 0},Ow=new class hbe extends ND{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class ube extends ID{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Mw.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Mw.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}}),T9=new ND(ID),pbe=T9;function zD(t=0,n,e=pbe){let i=-1;return null!=n&&(C1(n)?e=n:i=n),new Wt(o=>{let r=function gbe(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function FD(t,n=T9){return function fbe(t){return ve((n,e)=>{let i=!1,o=null,r=null,a=!1;const l=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const f=o;o=null,e.next(f)}a&&e.complete()},u=()=>{r=null,a&&e.complete()};n.subscribe($e(e,f=>{i=!0,o=f,r||Ur(t(f)).subscribe(r=$e(e,l,u))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>zD(t,n))}function Yn(t){return ve((n,e)=>{Ur(t).subscribe($e(e,()=>e.complete(),wt)),!e.closed&&n.subscribe(e)})}let HD;try{HD="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){HD=!1}let v6,rc=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ll(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!HD)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(qt(Hc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const LW=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function DW(){if(v6)return v6;if("object"!=typeof document||!document)return v6=new Set(LW),v6;let t=document.createElement("input");return v6=new Set(LW.filter(n=>(t.setAttribute("type",n),t.type===n))),v6}let E9,Sw,Fg,VD;function Oh(t){return function _be(){if(null==E9&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>E9=!0}))}finally{E9=E9||!1}return E9}()?t:!!t.capture}function kW(){if(null==Fg){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fg=!1,Fg;if("scrollBehavior"in document.documentElement.style)Fg=!0;else{const t=Element.prototype.scrollTo;Fg=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Fg}function A9(){if("object"!=typeof document||!document)return 0;if(null==Sw){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Sw=0,0===t.scrollLeft&&(t.scrollLeft=1,Sw=0===t.scrollLeft?1:2),t.remove()}return Sw}function Pw(t){if(function Cbe(){if(null==VD){const t="undefined"!=typeof document?document.head:null;VD=!(!t||!t.createShadowRoot&&!t.attachShadow)}return VD}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function L9(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ju(t){return t.composedPath?t.composedPath()[0]:t.target}function BD(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const vbe=new ui("cdk-dir-doc",{providedIn:"root",factory:function bbe(){return Mp(vr)}}),xbe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Sl=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new In,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function ybe(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?xbe.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(qt(vbe,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),D9=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new N,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Wt(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(FD(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):rr()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ca(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Ol(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(rc),qt(vr,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k9=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new N,this._elementScrolled=new Wt(a=>this.ngZone.runOutsideAngular(()=>Jc(this.elementRef.nativeElement,"scroll").pipe(Yn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=A9()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==A9()?e.left=e.right:1==A9()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;kW()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==A9()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==A9()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(D9),ue(oo),ue(Sl,8))},t.\u0275dir=St({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Df=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new N,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(FD(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(oo),qt(vr,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),I9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Lf,T0],Lf,T0]}),t})();function ql(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ks(t,n=T9){return ve((e,i)=>{let o=null,r=null,a=null;const l=()=>{if(o){o.unsubscribe(),o=null;const f=r;r=null,i.next(f)}};function u(){const f=a+t,M=n.now();if(M{r=f,a=n.now(),o||(o=n.schedule(u,t),i.add(o))},()=>{l(),i.complete()},void 0,()=>{r=o=null}))})}function NW(t){return ca((n,e)=>t<=e)}function Cs(t,n=Ie){return t=null!=t?t:Nbe,ve((e,i)=>{let o,r=!0;e.subscribe($e(i,a=>{const l=n(a);(r||!t(o,l))&&(r=!1,o=l,i.next(a))}))})}function Nbe(t,n){return t===n}let RW=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rbe=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ol(e);return new Wt(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new N,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(qt(RW))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jD=(()=>{class t{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new In,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=no(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Vc(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ks(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ue(Rbe),ue(Ti),ue(oo))},t.\u0275dir=St({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),z9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[RW]}),t})();function Aw(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const FW="cdk-describedby-message",Lw="cdk-describedby-host";let HW=0,Hbe=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+HW++,this._document=e}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=WD(i,o);"string"!=typeof i?(VW(i),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){var r;if(!i||!this._isElementNode(e))return;const a=WD(i,o);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),"string"==typeof i){const l=this._messageRegistry.get(a);l&&0===l.referenceCount&&this._deleteMessageElement(a)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${Lw}="${this._id}"]`);for(let o=0;o0!=o.indexOf(FW));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function zbe(t,n,e){const i=Aw(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(Lw,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function Fbe(t,n,e){const o=Aw(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Lw)}_isElementDescribedByMessage(e,i){const o=Aw(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function WD(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function VW(t){t.id||(t.id=`${FW}-${HW++}`)}class BW{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new N,this._typeaheadSubscription=Se.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new N,this.change=new N,n instanceof xg&&n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ps(e=>this._pressedLetters.push(e)),Ks(n),ca(()=>this._pressedLetters.length>0),it(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||ql(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof xg?this._items.toArray():this._items}}class GW extends BW{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class qD extends BW{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let $D=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Bbe(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Vbe(t){try{return t.frameElement}catch(n){return null}}(function Xbe(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===UW(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=UW(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function qbe(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function $be(t){return!function Ybe(t){return function jbe(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Gbe(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function Ube(t){return function Wbe(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||YW(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function YW(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function UW(t){if(!YW(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class Qbe{constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Ja(1)).subscribe(n)}}let XD=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new Qbe(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(qt($D),qt(oo),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zbe=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=no(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=no(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=L9(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(XD),ue(vr))},t.\u0275dir=St({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Yo]}),t})();function Dw(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function kw(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const Kbe=new ui("cdk-input-modality-detector-options"),Jbe={ignoreKeys:[18,17,224,91,16]},b6=Oh({passive:!0,capture:!0});let exe=(()=>{class t{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new Io(null),this._lastTouchMs=0,this._onKeydown=a=>{var l,u;(null===(u=null===(l=this._options)||void 0===l?void 0:l.ignoreKeys)||void 0===u?void 0:u.some(f=>f===a.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ju(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Dw(a)?"keyboard":"mouse"),this._mostRecentTarget=ju(a))},this._onTouchstart=a=>{kw(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ju(a))},this._options=Object.assign(Object.assign({},Jbe),r),this.modalityDetected=this._modality.pipe(NW(1)),this.modalityChanged=this.modalityDetected.pipe(Cs()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,b6),o.addEventListener("mousedown",this._onMousedown,b6),o.addEventListener("touchstart",this._onTouchstart,b6)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,b6),document.removeEventListener("mousedown",this._onMousedown,b6),document.removeEventListener("touchstart",this._onTouchstart,b6))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(oo),qt(vr),qt(Kbe,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const txe=new ui("liveAnnouncerElement",{providedIn:"root",factory:function nxe(){return null}}),ixe=new ui("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let QD=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new N,this._rootNodeFocusAndBlurListener=l=>{const u=ju(l),f="focus"===l.type?this._onFocus:this._onBlur;for(let M=u;M;M=M.parentElement)f.call(this,l,M)},this._document=r,this._detectionMode=(null==a?void 0:a.detectionMode)||0}monitor(e,i=!1){const o=Ol(e);if(!this._platform.isBrowser||1!==o.nodeType)return rr(null);const r=Pw(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const l={checkChildren:i,subject:new N,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const i=Ol(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ol(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([l,u])=>this._originChanged(l,i,u)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=ju(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Iw),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Iw)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Yn(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Iw),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Iw),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(rc),qt(exe),qt(vr,8),qt(oxe,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rxe=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new In}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(P2))},t.\u0275dir=St({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const WW="cdk-high-contrast-black-on-white",qW="cdk-high-contrast-white-on-black",ZD="cdk-high-contrast-active";let $W=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ZD),e.remove(WW),e.remove(qW),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(ZD),e.add(WW)):2===i&&(e.add(ZD),e.add(qW))}}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nw=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(qt($W))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[z9]]}),t})();function axe(t,n){if(1&t&&Qe(0,"mat-pseudo-checkbox",4),2&t){const e=Ae();J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function sxe(t,n){if(1&t&&(H(0,"span",5),de(1),G()),2&t){const e=Ae();W(1),Nt("(",e.group.label,")")}}const cxe=["*"],hxe=new ui("mat-sanity-checks",{providedIn:"root",factory:function uxe(){return!0}});let Xo=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!BD()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(qt($W),qt(hxe,8),qt(vr))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Lf],Lf]}),t})();function E0(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=no(n)}}}function Ph(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function $u(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=no(n)}}}function Hg(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Vc(e):this.defaultTabIndex}}}function KD(t){return class extends t{constructor(...n){super(...n),this.stateChanges=new N,this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}function QW(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Wt(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}const JD=new ui("MAT_DATE_LOCALE",{providedIn:"root",factory:function pxe(){return Mp(Rp)}});class d1{constructor(){this._localeChanges=new N,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return null==n||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),o=this.isValid(e);return i&&o?!this.compareDate(n,e):i==o}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}}const Nf=new ui("mat-date-formats"),fxe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ek(t,n){const e=Array(t);for(let i=0;i{class t extends d1{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return ek(12,o=>this._format(i,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ek(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return ek(7,o=>this._format(i,new Date(2017,0,o+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,o){let r=this._createDateWithOverflow(e,i,o);return r.getMonth(),r}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},i),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+i)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(fxe.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,o){const r=new Date;return r.setFullYear(e,i,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const o=new Date;return o.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),o.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(o)}}return t.\u0275fac=function(e){return new(e||t)(qt(JD,8),qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const mxe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let _xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[{provide:d1,useClass:gxe}]}),t})(),ZW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[{provide:Nf,useValue:mxe}],imports:[[_xe]]}),t})(),x6=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();class bxe{constructor(n,e,i){this._renderer=n,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const KW={enterDuration:225,exitDuration:150},tk=Oh({passive:!0}),JW=["mousedown","touchstart"],eq=["mouseup","mouseleave","touchend","touchcancel"];class tq{constructor(n,e,i,o){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ol(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},KW),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function wxe(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),l=n-o.left,u=e-o.top,f=r.enterDuration,M=document.createElement("div");M.classList.add("mat-ripple-element"),M.style.left=l-a+"px",M.style.top=u-a+"px",M.style.height=2*a+"px",M.style.width=2*a+"px",null!=i.color&&(M.style.backgroundColor=i.color),M.style.transitionDuration=`${f}ms`,this._containerElement.appendChild(M),function yxe(t){window.getComputedStyle(t).getPropertyValue("opacity")}(M),M.style.transform="scale(1)";const T=new bxe(this,M,i);return T.state=0,this._activeRipples.add(T),i.persistent||(this._mostRecentTransientRipple=T),this._runTimeoutOutsideZone(()=>{const U=T===this._mostRecentTransientRipple;T.state=1,!i.persistent&&(!U||!this._isPointerDown)&&T.fadeOut()},f),T}fadeOutRipple(n){const e=this._activeRipples.delete(n);if(n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=n.element,o=Object.assign(Object.assign({},KW),n.config.animation);i.style.transitionDuration=`${o.exitDuration}ms`,i.style.opacity="0",n.state=2,this._runTimeoutOutsideZone(()=>{n.state=3,i.remove()},o.exitDuration)}fadeOutAll(){this._activeRipples.forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ol(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(JW))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eq),this._pointerUpEventsRegistered=!0)}_onMousedown(n){const e=Dw(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_runTimeoutOutsideZone(n,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(n,e))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,tk)})})}_removeTriggerEvents(){this._triggerElement&&(JW.forEach(n=>{this._triggerElement.removeEventListener(n,this,tk)}),this._pointerUpEventsRegistered&&eq.forEach(n=>{this._triggerElement.removeEventListener(n,this,tk)}))}}const nq=new ui("mat-ripple-global-options");let Th=(()=>{class t{constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new tq(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(rc),ue(nq,8),ue(E1,8))},t.\u0275dir=St({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Kd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})(),iq=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(ue(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&po("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo]]}),t})();const ik=new ui("MAT_OPTION_PARENT_COMPONENT"),ok=new ui("MatOptgroup");let Mxe=0;class oq{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Oxe=(()=>{class t{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Mxe++,this.onSelectionChange=new In,this._stateChanges=new N}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=no(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ql(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new oq(this,e))}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),J1=(()=>{class t extends Oxe{constructor(e,i,o,r){super(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Xr),ue(ik,8),ue(ok,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&et("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(Fu("id",i.id),Un("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),po("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[ei],ngContentSelectors:cxe,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(ls(),ke(0,axe,1,2,"mat-pseudo-checkbox",0),H(1,"span",1),Vr(2),G(),ke(3,sxe,2,1,"span",2),Qe(4,"div",3)),2&e&&(J("ngIf",i.multiple),W(3),J("ngIf",i.group&&i.group._inert),W(1),J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[iq,Yi,Th],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function rk(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let zw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,va,Xo,nk]]}),t})();function jp(t){return it(()=>t)}const Fw=["*"],Sxe=["content"];function Pxe(t,n){if(1&t){const e=Ln();H(0,"div",2),et("click",function(){return Dt(e),Ae()._onBackdropClicked()}),G()}2&t&&po("mat-drawer-shown",Ae()._isShowingBackdrop())}function Txe(t,n){1&t&&(H(0,"mat-drawer-content"),Vr(1,2),G())}const Exe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Axe=["mat-drawer","mat-drawer-content","*"];function Lxe(t,n){if(1&t){const e=Ln();H(0,"div",2),et("click",function(){return Dt(e),Ae()._onBackdropClicked()}),G()}2&t&&po("mat-drawer-shown",Ae()._isShowingBackdrop())}function Dxe(t,n){1&t&&(H(0,"mat-sidenav-content"),Vr(1,2),G())}const kxe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ixe=["mat-sidenav","mat-sidenav-content","*"],aq={transformDrawer:na("transform",[cr("open, open-instant",ti({transform:"none",visibility:"visible"})),cr("void",ti({"box-shadow":"none",visibility:"hidden"})),Do("void => open-instant",Mo("0ms")),Do("void <=> open, open-instant => void",Mo("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Rxe=new ui("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function zxe(){return!1}}),ak=new ui("MAT_DRAWER_CONTAINER");let A0=(()=>{class t extends k9{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr),ue(nt(()=>zf)),ue(Ti),ue(D9),ue(oo))},t.\u0275cmp=vn({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Br("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[mo([{provide:k9,useExisting:t}]),ei],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},encapsulation:2,changeDetection:0}),t})(),Rf=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=l,this._doc=u,this._container=f,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N,this._animationEnd=new N,this._animationState="void",this.openedChange=new In(!0),this._openedStream=this.openedChange.pipe(ca(M=>M),it(()=>{})),this.openedStart=this._animationStarted.pipe(ca(M=>M.fromState!==M.toState&&0===M.toState.indexOf("open")),jp(void 0)),this._closedStream=this.openedChange.pipe(ca(M=>!M),it(()=>{})),this.closedStart=this._animationStarted.pipe(ca(M=>M.fromState!==M.toState&&"void"===M.toState),jp(void 0)),this._destroyed=new N,this.onPositionChanged=new In,this._modeChanged=new N,this.openedChange.subscribe(M=>{M?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Jc(this._elementRef.nativeElement,"keydown").pipe(ca(M=>27===M.keyCode&&!this.disableClose&&!ql(M)),Yn(this._destroyed)).subscribe(M=>this._ngZone.run(()=>{this.close(),M.stopPropagation(),M.preventDefault()}))}),this._animationEnd.pipe(Cs((M,T)=>M.fromState===T.fromState&&M.toState===T.toState)).subscribe(M=>{const{fromState:T,toState:U}=M;(0===U.indexOf("open")&&"void"===T||"void"===U&&0===T.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=no(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=no(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(no(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Ja(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(XD),ue(P2),ue(rc),ue(oo),ue($D),ue(vr,8),ue(ak,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&_o(Sxe,5),2&e){let o;fi(o=gi())&&(i._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&o6("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&e&&(Un("align",null),a6("@transform",i._animationState),po("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Fw,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(ls(),H(0,"div",0,1),Vr(2),G())},directives:[k9],encapsulation:2,data:{animation:[aq.transformDrawer]},changeDetection:0}),t})(),zf=(()=>{class t{constructor(e,i,o,r,a,l=!1,u){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new xg,this.backdropClick=new In,this._destroyed=new N,this._doCheckSubject=new N,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N,e&&e.change.pipe(Yn(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Yn(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=no(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:no(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Sc(this._allDrawers),Yn(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Sc(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Ks(10),Yn(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(ca(i=>i.fromState!==i.toState),Yn(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Yn(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Yn(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Ja(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Yn(kr(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(ue(Sl,8),ue(Ti),ue(oo),ue(Xr),ue(Df),ue(Rxe),ue(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,A0,5),mr(o,Rf,5)),2&e){let r;fi(r=gi())&&(i._content=r.first),fi(r=gi())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&_o(A0,5),2&e){let o;fi(o=gi())&&(i._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[mo([{provide:ak,useExisting:t}])],ngContentSelectors:Axe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(ls(Exe),ke(0,Pxe,1,2,"div",0),Vr(1),Vr(2,1),ke(3,Txe,2,0,"mat-drawer-content",1)),2&e&&(J("ngIf",i.hasBackdrop),W(3),J("ngIf",!i._content))},directives:[A0,Yi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),sq=(()=>{class t extends A0{constructor(e,i,o,r,a){super(e,i,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr),ue(nt(()=>lq)),ue(Ti),ue(D9),ue(oo))},t.\u0275cmp=vn({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Br("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[mo([{provide:k9,useExisting:t}]),ei],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},encapsulation:2,changeDetection:0}),t})(),cq=(()=>{class t extends Rf{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=no(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Vc(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Vc(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Un("align",null),Br("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),po("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ei],ngContentSelectors:Fw,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(ls(),H(0,"div",0,1),Vr(2),G())},directives:[k9],encapsulation:2,data:{animation:[aq.transformDrawer]},changeDetection:0}),t})(),lq=(()=>{class t extends zf{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,sq,5),mr(o,cq,5)),2&e){let r;fi(r=gi())&&(i._content=r.first),fi(r=gi())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[mo([{provide:ak,useExisting:t}]),ei],ngContentSelectors:Ixe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(ls(kxe),ke(0,Lxe,1,2,"div",0),Vr(1),Vr(2,1),ke(3,Dxe,2,0,"mat-sidenav-content",1)),2&e&&(J("ngIf",i.hasBackdrop),W(3),J("ngIf",!i._content))},directives:[sq,Yi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),Ff=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,T0],T0,Xo]}),t})();var Zt=C(17489);const dq=new ui("noctuaCustomConfig");let Hw=(()=>{class t{constructor(e,i,o){this._platform=e,this._router=i,this._config=o,this._defaultConfig=o,this._init()}set config(e){let i=this._configSubject.getValue();i=(0,Zt.merge)({},i,e),this._configSubject.next(i)}get config(){return this._configSubject.asObservable()}get defaultConfig(){return this._defaultConfig}_init(){(this._platform.ANDROID||this._platform.IOS)&&(this._defaultConfig.customScrollbars=!1),this._configSubject=new Io((0,Zt.cloneDeep)(this._defaultConfig)),this._router.events.pipe(ca(e=>e instanceof g6)).subscribe(()=>{if(!(0,Zt.isEqual)(this._configSubject.getValue(),this._defaultConfig)){const e=(0,Zt.cloneDeep)(this._defaultConfig);this._configSubject.next(e)}})}setConfig(e,i={emitEvent:!0}){let o=this._configSubject.getValue();o=(0,Zt.merge)({},o,e),!0===i.emitEvent&&this._configSubject.next(o)}getConfig(){return this._configSubject.asObservable()}resetToDefaults(){this._configSubject.next((0,Zt.cloneDeep)(this._defaultConfig))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(A1),qt(dq))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function uq(t){for(let n in t){let e=t[n]||"";switch(n){case"display":t.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":e=e||"row",t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e}}return t}const sk="inline",Vw=["row","column","row-reverse","column-reverse"];function hq(t){let[n,e,i]=pq(t);return function Hxe(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}function pq(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,o]=t.split(" ");return Vw.find(r=>r===e)||(e=Vw[0]),i===sk&&(i=o!==sk?o:"",o=sk),[e,Fxe(i),!!o]}function H9(t){let[n]=pq(t);return n.indexOf("row")>-1}function Fxe(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function Wp(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}const Bxe={provide:KA,useFactory:function Vxe(t,n){return()=>{if(ll(n)){const e=Array.from(t.querySelectorAll(`[class*=${fq}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${fq}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(i,"")})}}},deps:[vr,Hc],multi:!0},fq="flex-layout-";let ck=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[Bxe]}),t})();class Hf{constructor(n=!1,e="all",i="",o="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=o,this.priority=r,this.property=""}clone(){return new Hf(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Gxe=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,o){const r=this.stylesheet.get(e);r?r.set(i,o):this.stylesheet.set(e,new Map([[i,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const o=this.stylesheet.get(e);let r="";if(o){const a=o.get(i);("number"==typeof a||"string"==typeof a)&&(r=a+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lk={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Eh=new ui("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>lk}),y6=new ui("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),dk=new ui("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function uk(t,n){return t=t?t.clone():new Hf,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}class dl{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}}let Pc=(()=>{class t{constructor(e,i,o,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=o,this.layoutConfig=r}applyStyleToElement(e,i,o=null){let r={};"string"==typeof i&&(r[i]=o,i=r),r=this.layoutConfig.disableVendorPrefixes?i:uq(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const o=this.layoutConfig.disableVendorPrefixes?e:uq(e);i.forEach(r=>{this._applyMultiValueStyleToElement(o,r)})}getFlowDirection(e){const i="flex-direction";let o=this.lookupStyle(e,i);return[o||"row",this.lookupInlineStyle(e,i)||ou(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var o;return null!==(o=e.getAttribute(i))&&void 0!==o?o:""}lookupInlineStyle(e,i){return ll(this._platformId)?e.style.getPropertyValue(i):function Yxe(t,n){var e;return null!==(e=gq(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,o=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||(ll(this._platformId)?o||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(o=>{const r=e[o],a=Array.isArray(r)?r:[r];a.sort();for(let l of a)l=l?l+"":"",ll(this._platformId)||!this._serverModuleLoaded?ll(this._platformId)?i.style.setProperty(o,l):Uxe(i,o,l):this._serverStylesheet.addStyleToElement(i,o,l)})}}return t.\u0275fac=function(e){return new(e||t)(qt(Gxe),qt(y6),qt(Hc),qt(Eh))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Uxe(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=gq(t);i[n]=null!=e?e:"",function jxe(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function gq(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let o=0;o0){const a=r.indexOf(":");if(-1===a)throw new Error(`Invalid CSS style: ${r}`);n[r.substr(0,a).trim()]=r.substr(a+1).trim()}}}return n}function w6(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function Wxe(t,n){return(t.priority||0)-(n.priority||0)}let Bw=(()=>{class t{constructor(e,i,o){this._zone=e,this._platformId=i,this._document=o,this.source=new Io(new Hf(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,o)=>{i.matches&&e.push(o)}),e}isActive(e){var i;const o=this.registry.get(e);return null!==(i=null==o?void 0:o.matches)&&void 0!==i?i:this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){const o=this._observable$.pipe(ca(a=>!i||e.indexOf(a.mediaQuery)>-1));return kr(new Wt(a=>{const l=this.registerQuery(e);if(l.length){const u=l.pop();l.forEach(f=>{a.next(f)}),this.source.next(u)}a.complete()}),o)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],o=[];return function qxe(t,n){const e=t.filter(i=>!mq[i]);if(e.length>0){const i=e.join(", ");try{const o=n.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(o),e.forEach(r=>mq[r]=o)}catch(o){console.error(o)}}}(i,this._document),i.forEach(r=>{const a=u=>{this._zone.run(()=>this.source.next(new Hf(u.matches,r)))};let l=this.registry.get(r);l||(l=this.buildMQL(r),l.addListener(a),this.pendingRemoveListenerFns.push(()=>l.removeListener(a)),this.registry.set(r,l)),l.matches&&o.push(new Hf(!0,r))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function $xe(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,ll(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(Hc),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mq={},Xxe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],_q="(orientation: portrait) and (max-width: 599.98px)",Cq="(orientation: landscape) and (max-width: 959.98px)",vq="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",bq="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",xq="(orientation: portrait) and (min-width: 840px)",yq="(orientation: landscape) and (min-width: 1280px)",qp={HANDSET:`${_q}, ${Cq}`,TABLET:`${vq} , ${bq}`,WEB:`${xq}, ${yq} `,HANDSET_PORTRAIT:`${_q}`,TABLET_PORTRAIT:`${vq} `,WEB_PORTRAIT:`${xq}`,HANDSET_LANDSCAPE:`${Cq}`,TABLET_LANDSCAPE:`${bq}`,WEB_LANDSCAPE:`${yq}`},Qxe=[{alias:"handset",priority:2e3,mediaQuery:qp.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:qp.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:qp.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:qp.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:qp.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:qp.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:qp.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:qp.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:qp.WEB_PORTRAIT,overlapping:!0}],Zxe=/(\.|-|_)/g;function Kxe(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const nye=new ui("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Mp(dk),n=Mp(Eh),e=[].concat.apply([],(t||[]).map(o=>Array.isArray(o)?o:[o]));return function tye(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Wp(e[i.alias],i):e[i.alias]=i}),function eye(t){return t.forEach(n=>{n.suffix||(n.suffix=function Jxe(t){return t.replace(Zxe,"|").split("|").map(Kxe).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:Xxe).concat(n.addOrientationBps?Qxe:[]),e)}});let Gw=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Wxe)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var o;let r=this.findByMap.get(e);return r||(r=null!==(o=this.items.find(i))&&void 0!==o?o:null,this.findByMap.set(e,r)),null!=r?r:null}}return t.\u0275fac=function(e){return new(e||t)(qt(nye))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const M6="print",iye={alias:M6,mediaQuery:M6,priority:1e3};let wq=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.layoutConfig=i,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new oye,this.deactivations=[]}withPrintQuery(e){return[...e,M6]}isPrintEvent(e){return e.mediaQuery.startsWith(M6)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(w6)}updateEvent(e){var i;let o=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(o=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:""),uk(e,o)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Hf(!0,M6))),e.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(o)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const o=this.breakpoints.findByQuery(i.mediaQuery);if(o){const r=this.formerActivations&&this.formerActivations.includes(o),a=!this.formerActivations&&e.activatedBreakpoints.includes(o);(r||a)&&(this.deactivations.push(o),this.deactivations.sort(w6))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(qt(Gw),qt(Eh),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class oye{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(iye),n.sort(w6),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function rye(t){var n;return null!==(n=null==t?void 0:t.mediaQuery.startsWith(M6))&&void 0!==n&&n}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}let Bc=(()=>{class t{constructor(e,i,o){this.matchMedia=e,this.breakpoints=i,this.hook=o,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new N,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=uk(e,i);const o=this.activatedBreakpoints.indexOf(i);e.matches&&-1===o?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(w6),this.updateStyles()):!e.matches&&-1!==o&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(w6),this.updateStyles())}}init(e,i,o,r,a=[]){Mq(this.updateMap,e,i,o),Mq(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,a)}getValue(e,i,o){const r=this.elementMap.get(e);if(r){const a=void 0!==o?r.get(o):this.getActivatedValues(r,i);if(a)return a.get(i)}}hasValue(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,o,r){var a;let l=this.elementMap.get(e);if(l){const f=(null!==(a=l.get(r))&&void 0!==a?a:new Map).set(i,o);l.set(r,f),this.elementMap.set(e,l)}else l=(new Map).set(r,(new Map).set(i,o)),this.elementMap.set(e,l);const u=this.getValue(e,i);void 0!==u&&this.updateElement(e,i,u)}trackValue(e,i){return this.subject.asObservable().pipe(ca(o=>o.element===e&&o.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const o=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((a,l)=>{this.updateElement(i,l,a),o.delete(l)}),o.forEach(a=>{if(r=this.getActivatedValues(e,a),r){const l=r.get(a);this.updateElement(i,a,l)}else this.clearElement(i,a)})})}clearElement(e,i){const o=this.clearMap.get(e);if(o){const r=o.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,o){const r=this.updateMap.get(e);if(r){const a=r.get(i);a&&(a(o),this.subject.next({element:e,key:i,value:o}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const o=this.elementMap.get(e);o&&(o.forEach((r,a)=>o.delete(a)),this.elementMap.delete(e))}triggerUpdate(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((a,l)=>this.updateElement(e,l,a)))}}buildElementKeyMap(e,i){let o=this.elementKeyMap.get(e);o||(o=new Set,this.elementKeyMap.set(e,o)),o.add(i)}watchExtraTriggers(e,i,o){if(o&&o.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const l=kr(...o).subscribe(()=>{const u=this.getValue(e,i);this.updateElement(e,i,u)});r.set(i,l)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;ri.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Ps(this.hook.interceptEvents(this)),ca(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(qt(Bw),qt(Gw),qt(wq))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Mq(t,n,e,i){var o;if(void 0!==i){const r=null!==(o=t.get(n))&&void 0!==o?o:new Map;r.set(e,i),t.set(n,r)}}let el=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.styleBuilder=i,this.styler=o,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new N,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const o=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const o=this.styleBuilder,r=o.shouldCache;let a=this.styleCache.get(e);(!a||!r)&&(a=o.buildStyles(e,i),r&&this.styleCache.set(e,a)),this.mru=Object.assign({},a),this.applyStyleToElement(a),o.sideEffect(e,a,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[o,r]=this.styler.getFlowDirection(e);if(!r&&i){const a=hq(o);this.styler.applyStyleToElements(a,[e])}return o.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,o=this.nativeElement){this.styler.applyStyleToElement(o,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(dl),ue(Pc),ue(Bc))},t.\u0275dir=St({type:t,features:[Yo]}),t})(),lye=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.matchMedia=i,this.hook=o,this.filterOverlaps=!1,this.destroyed$=new N,this._media$=this.watchActivations(),this.media$=this._media$.pipe(ca(r=>r.length>0),it(r=>r[0]))}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function uye(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}(function cye(t){return Array.isArray(t)?t:[t]}(e)).some(o=>{const r=function dye(t,n){var e,i;const o=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:null}(o,this.breakpoints);return null!==r&&this.matchMedia.isActive(r)})}watchActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);return this.buildObservable(e)}buildObservable(e){return this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(ca(a=>a.matches),Ks(0,Ow),Z1(a=>rr(this.findAllActivations())),it(a=>this.filterOverlaps?a.filter(l=>{var u;const f=this.breakpoints.findByQuery(l.mediaQuery);return null===(u=null==f?void 0:f.overlapping)||void 0===u||u}):a),ca(a=>a.filter(u=>u.mediaQuery.length>0).length>0),Cs((a,l)=>{if(a.length!==l.length)return!1;const u=a.map(T=>T.mediaQuery),f=new Set(l.map(T=>T.mediaQuery));return 0===new Set(u.filter(T=>!f.has(T))).size}),Yn(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(o=>new Hf(!0,o)).map(o=>this.hook.isPrintEvent(o)?this.hook.updateEvent(o):o).map(o=>uk(o,this.breakpoints.findByQuery(o.mediaQuery))).sort(w6)}}return t.\u0275fac=function(e){return new(e||t)(qt(Gw),qt(Bw),qt(wq))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Oq(t,n="1",e="1"){let i=[n,e,t],o=t.indexOf("calc");if(o>0){i[2]=Sq(t.substring(o).trim());let r=t.substr(0,o).trim().split(" ");2==r.length&&(i[0]=r[0],i[1]=r[1])}else if(0==o)i[2]=Sq(t.trim());else{let r=t.split(" ");i=3===r.length?r:[n,e,t]}return i}function Sq(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let hye=(()=>{class t{constructor(e){this._mediaObserver=e,this.onMediaChange=new Io(""),this.activeMediaQuery="",this._init()}_init(){this._mediaObserver.media$.pipe(Ks(500),Cs()).subscribe(e=>{this.activeMediaQuery!==e.mqAlias&&(this.activeMediaQuery=e.mqAlias,this.onMediaChange.next(e.mqAlias))})}}return t.\u0275fac=function(e){return new(e||t)(qt(lye))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tq=(()=>{class t{constructor(e,i,o){if(this.animationBuilder=e,this.document=i,this.router=o,this.splashScreenEl=this.document.body.querySelector("#noctua-splash-screen"),this.splashScreenEl){const r=this.router.events.subscribe(a=>{a instanceof Gp&&setTimeout(()=>{this.hide(),r.unsubscribe()},0)})}}show(){this.player=this.animationBuilder.build([ti({opacity:"0",zIndex:"99999"}),Mo("400ms ease",ti({opacity:"1"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}hide(){this.player=this.animationBuilder.build([ti({opacity:"1"}),Mo("400ms ease",ti({opacity:"0",zIndex:"-10"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}}return t.\u0275fac=function(e){return new(e||t)(qt(HL),qt(vr),qt(A1))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),pye=(()=>{class t{constructor(e){if(e)throw new Error("NoctuaModule is already loaded. Import it in the AppModule only!")}static forRoot(e){return{ngModule:t,providers:[{provide:dq,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(qt(t,12))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[Hw,hye,Tq]}),t})();const Eq=["mat-button",""],Aq=["*"],mye=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_ye=Ph(E0($u(class{constructor(t){this._elementRef=t}})));let Fo=(()=>{class t extends _ye{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of mye)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(P2),ue(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&_o(Th,5),2&e){let o;fi(o=gi())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Un("disabled",i.disabled||null),po("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ei],attrs:Eq,ngContentSelectors:Aq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(ls(),H(0,"span",0),Vr(1),G(),Qe(2,"span",1)(3,"span",2)),2&e&&(W(2),po("mat-button-ripple-round",i.isRoundButton||i.isIconButton),J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Th],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),V9=(()=>{class t extends Fo{constructor(e,i,o,r){super(i,e,o),this._ngZone=r,this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){return new(e||t)(ue(P2),ue(Ti),ue(E1,8),ue(oo,8))},t.\u0275cmp=vn({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){2&e&&(Un("tabindex",i.disabled?-1:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),po("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ei],attrs:Eq,ngContentSelectors:Aq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(ls(),H(0,"span",0),Vr(1),G(),Qe(2,"span",1)(3,"span",2)),2&e&&(W(2),po("mat-button-ripple-round",i.isRoundButton||i.isIconButton),J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Th],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),du=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,Xo],Xo]}),t})();function Ah(...t){const n=Da(t),{args:e,keys:i}=Cj(t),o=new Wt(r=>{const{length:a}=e;if(!a)return void r.complete();const l=new Array(a);let u=a,f=a;for(let M=0;M{T||(T=!0,f--),l[M]=U},()=>u--,void 0,()=>{(!u||!T)&&(f||r.next(i?vj(i,l):l),r.complete())}))}});return n?o.pipe(hD(n)):o}const Cye=["*"];let Uw;function B9(t){var n;return(null===(n=function vye(){if(void 0===Uw&&(Uw=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(Uw=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Uw}())||void 0===n?void 0:n.createHTML(t))||t}function Lq(t){return Error(`Unable to find icon with the name "${t}"`)}function Dq(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function kq(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Vg{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let jw=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new Vg(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const a=this._sanitizer.sanitize(Za.HTML,o);if(!a)throw kq(o);const l=B9(a);return this._addSvgIconConfig(e,i,new Vg("",l,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new Vg(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Za.HTML,i);if(!r)throw kq(i);const a=B9(r);return this._addSvgIconSetConfig(e,new Vg("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Za.RESOURCE_URL,e);if(!i)throw Dq(e);const o=this._cachedIconsByUrl.get(i);return o?rr(Ww(o)):this._loadSvgIconFromConfig(new Vg(e,null)).pipe(Ps(r=>this._cachedIconsByUrl.set(i,r)),it(r=>Ww(r)))}getNamedSvgIcon(e,i=""){const o=Iq(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):p9(Lq(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?rr(Ww(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(it(i=>Ww(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?rr(o):Ah(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Vp(l=>{const f=`Loading icon set URL: ${this._sanitizer.sanitize(Za.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(f)),rr(null)})))).pipe(it(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw Lq(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(r),l=this._extractSvgIconFromSet(a,e,r.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ps(i=>e.svgText=i),it(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?rr(null):this._fetchIcon(e).pipe(Ps(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const a=r.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const l=this._svgElementFromString(B9(""));return l.appendChild(a),this._setSvgAttributes(l,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(B9("")),o=e.attributes;for(let r=0;rB9(M)),Yu(()=>this._inProgressUrlFetches.delete(l)),_l());return this._inProgressUrlFetches.set(l,f),f}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(Iq(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;on?n.pathname+n.search:""}}}),Nq=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Sye=Nq.map(t=>`[${t}]`).join(", "),Pye=/^url\(['"]?#(.*?)['"]?\)$/;let Ir=(()=>{class t extends wye{constructor(e,i,o,r,a){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=a,this._inline=!1,this._currentIconFetch=Se.EMPTY,o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=no(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Sye),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const l=i[r],u=l.getAttribute(a),f=u?u.match(Pye):null;if(f){let M=o.get(l);M||(M=[],o.set(l,M)),M.push({name:a,value:f[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Ja(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(jw),Yl("aria-hidden"),ue(Mye),ue(X2))},t.\u0275cmp=vn({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Un("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),po("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ei],ngContentSelectors:Cye,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),L0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();const Tye=["primaryValueBar"],Eye=Ph(class{constructor(t){this._elementRef=t}},"primary"),Aye=new ui("mat-progress-bar-location",{providedIn:"root",factory:function Lye(){const t=Mp(vr),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),Dye=new ui("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let kye=0,G9=(()=>{class t extends Eye{constructor(e,i,o,r,a,l){super(e),this._ngZone=i,this._animationMode=o,this._changeDetectorRef=l,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new In,this._animationEndSubscription=Se.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+kye++;const u=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${u}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===o,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=Rq(Vc(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=Rq(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Jc(e,"transitionend").pipe(ca(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(E1,8),ue(Aye,8),ue(Dye,8),ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&_o(Tye,5),2&e){let o;fi(o=gi())&&(i._primaryValueBar=o.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(Un("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),po("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ei],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(H(0,"div",0),bi(),H(1,"svg",1)(2,"defs")(3,"pattern",2),Qe(4,"circle",3),G()(),Qe(5,"rect",4),G(),gd(),Qe(6,"div",5)(7,"div",6,7)(9,"div",8),G()),2&e&&(W(3),J("id",i.progressbarId),W(2),Un("fill",i._rectangleFillValue),W(1),J("ngStyle",i._bufferTransform()),W(1),J("ngStyle",i._primaryTransform()))},directives:[Og],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function Rq(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo],Xo]}),t})(),Iye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,xd,du,L0,qw]]}),t})();class hk{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class uu extends hk{constructor(n,e,i,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class O6 extends hk{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class Nye extends hk{constructor(n){super(),this.element=n instanceof Ti?n.nativeElement:n}}class $w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof uu?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof O6?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof Nye?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class zq extends $w{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const l=a.element,u=this._document.createComment("dom-portal");l.parentNode.insertBefore(u,l),this.outletElement.appendChild(l),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(l,u)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||zs.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let S6=(()=>{class t extends $w{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new In,this.attachDomPortal=r=>{const a=r.element,l=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(ue(wf),ue(oc),ue(vr))},t.\u0275dir=St({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ei]}),t})(),Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();class Xw{constructor(n,e){this._parentInjector=n,this._customTokens=e}get(n,e){const i=this._customTokens.get(n);return void 0!==i?i:this._parentInjector.get(n,e)}}const Fq=kW();class zye{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Wl(-this._previousScrollPosition.left),n.style.top=Wl(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),Fq&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Fq&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Fye{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Hq{enable(){}disable(){}attach(){}}function pk(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function Vq(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class Hye{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();pk(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Vye=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new Hq,this.close=a=>new Fye(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new zye(this._viewportRuler,this._document),this.reposition=a=>new Hye(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(qt(D9),qt(Df),qt(oo),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Lh{constructor(n){if(this.scrollStrategy=new Hq,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class Bye{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class Gye{constructor(n,e,i,o,r,a,l,u,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=u,this._outsideClickDispatcher=f,this._backdropElement=null,this._backdropClick=new N,this._attachments=new N,this._detachments=new N,this._locationChanges=Se.EMPTY,this._backdropClickHandler=M=>this._backdropClick.next(M),this._backdropTransitionendHandler=M=>{this._disposeBackdrop(M.target)},this._keydownEvents=new N,this._outsidePointerEvents=new N,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Wl(this._config.width),n.height=Wl(this._config.height),n.minWidth=Wl(this._config.minWidth),n.minHeight=Wl(this._config.minHeight),n.maxWidth=Wl(this._config.maxWidth),n.maxHeight=Wl(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;!n||(n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500)))}_toggleClasses(n,e,i){const o=xw(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Yn(kr(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let fk=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||BD()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let l of this._preferredPositions){let u=this._getOriginPoint(n,o,l),f=this._getOverlayPoint(u,e,l),M=this._getOverlayFit(f,e,i,l);if(M.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,u);this._canFitWithFlexibleDimensions(M,f,i)?r.push({position:l,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,l)}):(!a||a.overlayFit.visibleAreau&&(u=M,l=f)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bg(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Bq),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,l=this._isRtl()?n.left:n.right;o="start"==i.originX?a:l}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=Uq(e);let{x:a,y:l}=n,u=this._getOffset(o,"x"),f=this._getOffset(o,"y");u&&(a+=u),f&&(l+=f);let U=0-l,ie=l+r.height-i.height,se=this._subtractOverflows(r.width,0-a,a+r.width-i.width),Me=this._subtractOverflows(r.height,U,ie),we=se*Me;return{visibleArea:we,isCompletelyWithinViewport:r.width*r.height===we,fitsInViewportVertically:Me===r.height,fitsInViewportHorizontally:se==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=Yq(this._overlayRef.getConfig().minHeight),l=Yq(this._overlayRef.getConfig().minWidth),f=n.fitsInViewportHorizontally||null!=l&&l<=r;return(n.fitsInViewportVertically||null!=a&&a<=o)&&f}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=Uq(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),l=Math.max(n.y+o.height-r.height,0),u=Math.max(r.top-i.top-n.y,0),f=Math.max(r.left-i.left-n.x,0);let M=0,T=0;return M=o.width<=r.width?f||-a:n.xse&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-se/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)U=i.width-n.x+this._viewportMargin,M=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)T=n.x,M=i.right-n.x;else{const ie=Math.min(i.right-n.x+i.left,n.x),se=this._lastBoundingBoxSize.width;M=2*ie,T=n.x-ie,M>se&&!this._isInitialRender&&!this._growAfterOpen&&(T=n.x-se/2)}return{top:a,left:T,bottom:l,right:U,width:M,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=Wl(i.height),o.top=Wl(i.top),o.bottom=Wl(i.bottom),o.width=Wl(i.width),o.left=Wl(i.left),o.right=Wl(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=Wl(r)),a&&(o.maxWidth=Wl(a))}this._lastBoundingBoxSize=i,Bg(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Bg(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bg(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const M=this._viewportRuler.getViewportScrollPosition();Bg(i,this._getExactOverlayY(e,n,M)),Bg(i,this._getExactOverlayX(e,n,M))}else i.position="static";let l="",u=this._getOffset(e,"x"),f=this._getOffset(e,"y");u&&(l+=`translateX(${u}px) `),f&&(l+=`translateY(${f}px)`),i.transform=l.trim(),a.maxHeight&&(o?i.maxHeight=Wl(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=Wl(a.maxWidth):r&&(i.maxWidth="")),Bg(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Wl(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Wl(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Vq(n,i),isOriginOutsideView:pk(n,i),isOverlayClipped:Vq(e,i),isOverlayOutsideView:pk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&xw(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ti)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Bg(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function Yq(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(Yye);return e&&"px"!==e?null:parseFloat(n)}return t||null}function Uq(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const jq="cdk-global-overlay-wrapper";class Uye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(jq),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:l}=i,u=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),f=!("100%"!==r&&"100vh"!==r||l&&"100%"!==l&&"100vh"!==l);n.position=this._cssPosition,n.marginLeft=u?"0":this._leftOffset,n.marginTop=f?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,u?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=f?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(jq),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let jye=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new Uye}flexibleConnectedTo(e){return new Gq(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(qt(Df),qt(vr),qt(rc),qt(fk))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wq=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wye=(()=>{class t extends Wq{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const l=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(oo,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qye=(()=>{class t extends Wq{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ju(r)},this._clickListener=r=>{const a=ju(r),l="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){const M=u[f];if(M._outsidePointerEvents.observers.length<1||!M.hasAttached())continue;if(M.overlayElement.contains(a)||M.overlayElement.contains(l))break;const T=M._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>T.next(r)):T.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(rc),qt(oo,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$ye=0,$l=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T,U){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=l,this._ngZone=u,this._document=f,this._directionality=M,this._location=T,this._outsideClickDispatcher=U}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new Lh(e);return a.direction=a.direction||this._directionality.value,new Gye(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+$ye++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(K7)),new zq(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(qt(Vye),qt(fk),qt(wf),qt(jye),qt(Wye),qt(zs),qt(oo),qt(vr),qt(Sl),qt(J7),qt(qye))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const Xye=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],qq=new ui("cdk-connected-overlay-scroll-strategy");let $q=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275dir=St({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Xq=(()=>{class t{constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Se.EMPTY,this._attachSubscription=Se.EMPTY,this._detachSubscription=Se.EMPTY,this._positionSubscription=Se.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new In,this.positionChange=new In,this.attach=new In,this.detach=new In,this.overlayKeydown=new In,this.overlayOutsideClick=new In,this._templatePortal=new O6(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=no(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=no(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=no(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=no(e)}get push(){return this._push}set push(e){this._push=no(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Xye);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!ql(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Lh({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof $q?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Rye(t,n=!1){return ve((e,i)=>{let o=0;e.subscribe($e(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ue($l),ue(Oc),ue(oc),ue(qq),ue(Sl,8))},t.\u0275dir=St({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Yo]}),t})();const Zye={provide:qq,deps:[$l],useFactory:function Qye(t){return()=>t.scrollStrategies.reposition()}};let Gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[$l,Zye],imports:[[Lf,Vf,I9],I9]}),t})(),Qq=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(ue(yl),ue(Ti))},t.\u0275dir=St({type:t}),t})(),Yg=(()=>{class t extends Qq{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,features:[ei]}),t})();const L1=new ui("NgValueAccessor"),Jye={provide:L1,useExisting:nt(()=>ed),multi:!0},twe=new ui("CompositionEventMode");let ed=(()=>{class t extends Qq{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ewe(){const t=w0()?w0().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(yl),ue(Ti),ue(twe,8))},t.\u0275dir=St({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&et("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[mo([Jye]),ei]}),t})();function Bf(t){return null==t||0===t.length}function Kq(t){return null!=t&&"number"==typeof t.length}const u1=new ui("NgValidators"),Gf=new ui("NgAsyncValidators"),nwe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[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])?)*$/;class P6{static min(n){return function Jq(t){return n=>{if(Bf(n.value)||Bf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Bf(n.value)||Bf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return t$(n)}static requiredTrue(n){return function n$(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function i$(t){return Bf(t.value)||nwe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function o$(t){return n=>Bf(n.value)||!Kq(n.value)?null:n.value.lengthKq(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function a$(t){if(!t)return Qw;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Bf(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return h$(n)}static composeAsync(n){return p$(n)}}function t$(t){return Bf(t.value)?{required:!0}:null}function Qw(t){return null}function s$(t){return null!=t}function c$(t){const n=V7(t)?Ra(t):t;return OA(n),n}function l$(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function d$(t,n){return n.map(e=>e(t))}function u$(t){return t.map(n=>function iwe(t){return!t.validate}(n)?n:e=>n.validate(e))}function h$(t){if(!t)return null;const n=t.filter(s$);return 0==n.length?null:function(e){return l$(d$(e,n))}}function gk(t){return null!=t?h$(u$(t)):null}function p$(t){if(!t)return null;const n=t.filter(s$);return 0==n.length?null:function(e){return Ah(d$(e,n).map(c$)).pipe(it(l$))}}function mk(t){return null!=t?p$(u$(t)):null}function f$(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function g$(t){return t._rawValidators}function m$(t){return t._rawAsyncValidators}function _k(t){return t?Array.isArray(t)?t:[t]:[]}function Zw(t,n){return Array.isArray(t)?t.includes(n):t===n}function _$(t,n){const e=_k(n);return _k(t).forEach(o=>{Zw(e,o)||e.push(o)}),e}function C$(t,n){return _k(n).filter(e=>!Zw(t,e))}class v${constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=gk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=mk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Dh extends v${constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jd extends v${get formDirective(){return null}get path(){return null}}class b${constructor(n){this._cd=n}is(n){var e,i,o;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[n])}}let Pl=(()=>{class t extends b${constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Dh,2))},t.\u0275dir=St({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&po("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[ei]}),t})(),tl=(()=>{class t extends b${constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Jd,10))},t.\u0275dir=St({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&po("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[ei]}),t})();function Jw(t,n){return[...n.path,t]}function Y9(t,n){bk(t,n),n.valueAccessor.writeValue(t.value),function uwe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&y$(t,n)})}(t,n),function pwe(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function hwe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&y$(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function dwe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function eM(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),nM(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function tM(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function bk(t,n){const e=g$(t);null!==n.validator?t.setValidators(f$(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=m$(t);null!==n.asyncValidator?t.setAsyncValidators(f$(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();tM(n._rawValidators,o),tM(n._rawAsyncValidators,o)}function nM(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=g$(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=m$(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return tM(n._rawValidators,i),tM(n._rawAsyncValidators,i),e}function y$(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function w$(t,n){bk(t,n)}function xk(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function O$(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function yk(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===ed?e=r:function mwe(t){return Object.getPrototypeOf(t.constructor)===Yg}(r)?i=r:o=r}),o||i||e||null}function wk(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const U9="VALID",iM="INVALID",T6="PENDING",j9="DISABLED";function Ok(t){return(oM(t)?t.validators:t)||null}function S$(t){return Array.isArray(t)?gk(t):t||null}function Sk(t,n){return(oM(n)?n.asyncValidators:t)||null}function P$(t){return Array.isArray(t)?mk(t):t||null}function oM(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const Pk=t=>t instanceof Lo,rM=t=>t instanceof td,T$=t=>t instanceof Xu;function E$(t){return Pk(t)?t.value:t.getRawValue()}function A$(t,n){const e=rM(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new sn(1e3,"");if(!i[n])throw new sn(1001,"")}function L$(t,n){rM(t),t._forEachChild((i,o)=>{if(void 0===n[o])throw new sn(1002,"")})}class Tk{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=S$(this._rawValidators),this._composedAsyncValidatorFn=P$(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===U9}get invalid(){return this.status===iM}get pending(){return this.status==T6}get disabled(){return this.status===j9}get enabled(){return this.status!==j9}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=S$(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=P$(n)}addValidators(n){this.setValidators(_$(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(_$(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(C$(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(C$(n,this._rawAsyncValidators))}hasValidator(n){return Zw(this._rawValidators,n)}hasAsyncValidator(n){return Zw(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=T6,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=j9,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=U9,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===U9||this.status===T6)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?j9:U9}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=T6,this._hasOwnPendingAsyncValidator=!0;const e=c$(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function _we(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(o=>{i=rM(i)?i.controls.hasOwnProperty(o)?i.controls[o]:null:T$(i)&&i.at(o)||null}),i}(this,n,".")}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new In,this.statusChanges=new In}_calculateStatus(){return this._allControlsDisabled()?j9:this.errors?iM:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T6)?T6:this._anyControlsHaveStatus(iM)?iM:U9}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){oM(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Lo extends Tk{constructor(n=null,e,i){super(Ok(e),Sk(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),oM(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){wk(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){wk(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class td extends Tk{constructor(n,e,i){super(Ok(e),Sk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){L$(this,n),Object.keys(n).forEach(i=>{A$(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=E$(e),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Xu extends Tk{constructor(n,e,i){super(Ok(e),Sk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){L$(this,n),n.forEach((i,o)=>{A$(this,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>E$(n))}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const Cwe={provide:Jd,useExisting:nt(()=>D0)},W9=(()=>Promise.resolve(null))();let D0=(()=>{class t extends Jd{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new In,this.form=new td({},gk(e),mk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){W9.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Y9(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){W9.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){W9.then(()=>{const i=this._findContainer(e.path),o=new td({});w$(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){W9.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){W9.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,O$(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(ue(u1,10),ue(Gf,10))},t.\u0275dir=St({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&et("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Cwe]),ei]}),t})(),D$=(()=>{class t extends Jd{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Jw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,features:[ei]}),t})();const bwe={provide:Dh,useExisting:nt(()=>aM)},I$=(()=>Promise.resolve(null))();let aM=(()=>{class t extends Dh{constructor(e,i,o,r,a){super(),this._changeDetectorRef=a,this.control=new Lo,this._registered=!1,this.update=new In,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=yk(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),xk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Y9(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){I$.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=""===i||i&&"false"!==i;I$.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?Jw(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(ue(Jd,9),ue(u1,10),ue(Gf,10),ue(L1,10),ue(Xr,8))},t.\u0275dir=St({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[mo([bwe]),ei,Yo]}),t})(),nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),R$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const Ek=new ui("NgModelWithFormControlWarning"),Swe={provide:Jd,useExisting:nt(()=>Gc)};let Gc=(()=>{class t extends Jd{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new In,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nM(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Y9(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){eM(e.control||null,e,!1),wk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,O$(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(eM(i||null,e),Pk(o)&&(Y9(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);w$(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function fwe(t,n){return nM(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){bk(this.form,this),this._oldForm&&nM(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(ue(u1,10),ue(Gf,10))},t.\u0275dir=St({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&et("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Swe]),ei,Yo]}),t})();const Pwe={provide:Jd,useExisting:nt(()=>Yf)};let Yf=(()=>{class t extends D${constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){V$(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(ue(Jd,13),ue(u1,10),ue(Gf,10))},t.\u0275dir=St({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[mo([Pwe]),ei]}),t})();const Twe={provide:Jd,useExisting:nt(()=>k0)};let k0=(()=>{class t extends Jd{constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Jw(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){V$(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(ue(Jd,13),ue(u1,10),ue(Gf,10))},t.\u0275dir=St({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[mo([Twe]),ei]}),t})();function V$(t){return!(t instanceof Yf||t instanceof Gc||t instanceof k0)}const Ewe={provide:Dh,useExisting:nt(()=>Xl)};let Xl=(()=>{class t extends Dh{constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new In,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=yk(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),xk(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Jw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(ue(Jd,13),ue(u1,10),ue(Gf,10),ue(L1,10),ue(Ek,8))},t.\u0275dir=St({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[mo([Ewe]),ei,Yo]}),t})(),Ug=(()=>{class t{constructor(){this._validator=Qw}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Qw,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,features:[Yo]}),t})();const Hwe={provide:u1,useExisting:nt(()=>sM),multi:!0};let sM=(()=>{class t extends Ug{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function Rwe(t){return null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>t$}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Un("required",i._enabled?"":null)},inputs:{required:"required"},features:[mo([Hwe]),ei]}),t})(),Z$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[R$]]}),t})(),Uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[Z$]}),t})(),$p=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ek,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[Z$]}),t})(),e2=(()=>{class t{group(e,i=null){const o=this._reduceControls(e);let l,r=null,a=null;return null!=i&&(function jwe(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(r=null!=i.validators?i.validators:null,a=null!=i.asyncValidators?i.asyncValidators:null,l=null!=i.updateOn?i.updateOn:void 0):(r=null!=i.validator?i.validator:null,a=null!=i.asyncValidator?i.asyncValidator:null)),new td(o,{asyncValidators:a,updateOn:l,validators:r})}control(e,i,o){return new Lo(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new Xu(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return Pk(e)||rM(e)||T$(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:$p}),t})();const Wwe=["connectionContainer"],qwe=["inputContainer"],$we=["label"];function Xwe(t,n){1&t&&(er(0),H(1,"div",14),Qe(2,"div",15)(3,"div",16)(4,"div",17),G(),H(5,"div",18),Qe(6,"div",15)(7,"div",16)(8,"div",17),G(),tr())}function Qwe(t,n){if(1&t){const e=Ln();H(0,"div",19),et("cdkObserveContent",function(){return Dt(e),Ae().updateOutlineGap()}),Vr(1,1),G()}2&t&&J("cdkObserveContentDisabled","outline"!=Ae().appearance)}function Zwe(t,n){if(1&t&&(er(0),Vr(1,2),H(2,"span"),de(3),G(),tr()),2&t){const e=Ae(2);W(3),qo(e._control.placeholder)}}function Kwe(t,n){1&t&&Vr(0,3,["*ngSwitchCase","true"])}function Jwe(t,n){1&t&&(H(0,"span",23),de(1," *"),G())}function eMe(t,n){if(1&t){const e=Ln();H(0,"label",20,21),et("cdkObserveContent",function(){return Dt(e),Ae().updateOutlineGap()}),ke(2,Zwe,4,1,"ng-container",12),ke(3,Kwe,1,0,"ng-content",12),ke(4,Jwe,2,0,"span",22),G()}if(2&t){const e=Ae();po("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Un("for",e._control.id)("aria-owns",e._control.id),W(2),J("ngSwitchCase",!1),W(1),J("ngSwitchCase",!0),W(1),J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function tMe(t,n){1&t&&(H(0,"div",24),Vr(1,4),G())}function nMe(t,n){if(1&t&&(H(0,"div",25),Qe(1,"span",26),G()),2&t){const e=Ae();W(1),po("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function iMe(t,n){1&t&&(H(0,"div"),Vr(1,5),G()),2&t&&J("@transitionMessages",Ae()._subscriptAnimationState)}function oMe(t,n){if(1&t&&(H(0,"div",30),de(1),G()),2&t){const e=Ae(2);J("id",e._hintLabelId),W(1),qo(e.hintLabel)}}function rMe(t,n){if(1&t&&(H(0,"div",27),ke(1,oMe,2,2,"div",28),Vr(2,6),Qe(3,"div",29),Vr(4,7),G()),2&t){const e=Ae();J("@transitionMessages",e._subscriptAnimationState),W(1),J("ngIf",e.hintLabel)}}const aMe=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],sMe=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],cMe=new ui("MatError"),lMe={transitionMessages:na("transitionMessages",[cr("enter",ti({opacity:1,transform:"translateY(0%)"})),Do("void => enter",[ti({opacity:0,transform:"translateY(-5px)"}),Mo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let q9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t}),t})();const dMe=new ui("MatHint");let yd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["mat-label"]]}),t})(),uMe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["mat-placeholder"]]}),t})();const hMe=new ui("MatPrefix"),K$=new ui("MatSuffix");let E6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","matSuffix",""]],features:[mo([{provide:K$,useExisting:t}])]}),t})(),J$=0;const fMe=Ph(class{constructor(t){this._elementRef=t}},"primary"),gMe=new ui("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$9=new ui("MatFormField");let id=(()=>{class t extends fMe{constructor(e,i,o,r,a,l,u){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=r,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new N,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+J$++,this._labelId="mat-form-field-label-"+J$++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==u,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=no(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Sc(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Yn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Yn(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),kr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Sc(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Sc(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Yn(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Jc(this._label.nativeElement,"transitionend").pipe(Ja(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const M=i.querySelectorAll(`${o}, ${r}`);for(let T=0;T0?.75*se+10:0}for(let M=0;M{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,z9],Xo]}),t})();function tX(t,n){return n?e=>f9(n.pipe(Ja(1),function mMe(){return ve((t,n)=>{t.subscribe($e(n,wt))})}()),e.pipe(tX(t))):da((e,i)=>Ur(t(e,i)).pipe(Ja(1),jp(e)))}function Dk(t,n=T9){const e=zD(t,n);return tX(()=>e)}const _Me=["panel"];function CMe(t,n){if(1&t&&(H(0,"div",0,1),Vr(2),G()),2&t){const e=n.id,i=Ae();J("id",i.id)("ngClass",i._classList),Un("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const vMe=["*"];let bMe=0;class xMe{constructor(n,e){this.source=n,this.option=e}}const yMe=$u(class{}),nX=new ui("mat-autocomplete-default-options",{providedIn:"root",factory:function wMe(){return{autoActiveFirstOption:!1}}});let MMe=(()=>{class t extends yMe{constructor(e,i,o,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=Se.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new In,this.opened=new In,this.closed=new In,this.optionActivated=new In,this._classList={},this.id="mat-autocomplete-"+bMe++,this.inertGroups=(null==r?void 0:r.SAFARI)||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=no(e)}set classList(e){this._classList=e&&e.length?SW(e).reduce((i,o)=>(i[o]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new GW(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new xMe(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr),ue(Ti),ue(nX),ue(rc))},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&(_o(Oc,7),_o(_Me,5)),2&e){let o;fi(o=gi())&&(i.template=o.first),fi(o=gi())&&(i.panel=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ei]}),t})(),I0=(()=>{class t extends MMe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,ok,5),mr(o,J1,5)),2&e){let r;fi(r=gi())&&(i.optionGroups=r),fi(r=gi())&&(i.options=r)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[mo([{provide:ik,useExisting:t}]),ei],ngContentSelectors:vMe,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(ls(),ke(0,CMe,3,4,"ng-template"))},directives:[ds],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const iX=new ui("mat-autocomplete-scroll-strategy"),SMe={provide:iX,deps:[$l],useFactory:function OMe(t){return()=>t.scrollStrategies.reposition()}},PMe={provide:L1,useExisting:nt(()=>kh),multi:!0};let TMe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T,U){this._element=e,this._overlay=i,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=a,this._dir=u,this._formField=f,this._document=M,this._viewportRuler=T,this._defaults=U,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Se.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new N,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=g9(()=>{const ie=this.autocomplete?this.autocomplete.options:null;return ie?ie.changes.pipe(Sc(ie),Z1(()=>kr(...ie.map(se=>se.onSelectionChange)))):this._zone.onStable.pipe(Ja(1),Z1(()=>this.optionSelections))}),this._scrollStrategy=l}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=no(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return kr(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ca(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ca(()=>this._overlayAttached)):rr()).pipe(it(e=>e instanceof oq?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return kr(Jc(this._document,"click"),Jc(this._document,"auxclick"),Jc(this._document,"touchend")).pipe(ca(e=>{const i=ju(e),o=this._formField?this._formField._elementRef.nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!r||!r.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,o=ql(e);if(27===i&&!o&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._onChange(o),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return kr(this._zone.onStable.pipe(Ja(1)),this.autocomplete.options.changes.pipe(Ps(()=>this._positionStrategy.reapplyLastPosition()),Dk(0))).pipe(Z1(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),o!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),Ja(1)).subscribe(o=>this._setValueAndClose(o))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,o=null!=i?i:"";this._formField?this._formField._control.value=o:this._element.nativeElement.value=o,this._previousValue=o}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new O6(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(r=>{(27===r.keyCode&&!ql(r)||38===r.keyCode&&ql(r,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),r.stopPropagation(),r.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const o=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&o!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Lh({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?r:"below"===this.position?i:[...i,...r],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,o=rk(e,i.options,i.optionGroups);if(0===e&&1===o)i._setScrollTop(0);else if(i.panel){const r=i.options.toArray()[e];if(r){const a=r._getHostElement(),l=rq(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue($l),ue(oc),ue(oo),ue(Xr),ue(iX),ue(Sl,8),ue($9,9),ue(vr,8),ue(Df),ue(nX,8))},t.\u0275dir=St({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Yo]}),t})(),kh=(()=>{class t extends TMe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&et("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(r){return i._handleInput(r)})("keydown",function(r){return i._handleKeydown(r)})("click",function(){return i._handleClick()}),2&e&&Un("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[mo([PMe]),ei]}),t})(),X9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[SMe],imports:[[Gg,zw,Xo,va],T0,zw,Xo]}),t})();class oX{}function lM(t){return t&&"function"==typeof t.connect}class rX{applyChanges(n,e,i,o,r){n.forEachOperation((a,l,u)=>{let f,M;if(null==a.previousIndex){const T=i(a,l,u);f=e.createEmbeddedView(T.templateRef,T.context,T.index),M=1}else null==u?(e.remove(l),M=3):(f=e.get(l),e.move(f,u),M=2);r&&r({context:null==f?void 0:f.context,operation:M,record:a})})}detach(){}}class Qu{constructor(n=!1,e,i=!0){this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new N,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...n){this._verifyValueAssignment(n),n.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(n){this.isSelected(n)?this.deselect(n):this.select(n)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(n){return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}}let EMe=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Q9=new ui("_ViewRepeater");let Z9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo,Kd],Xo]}),t})(),uX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();const RMe=["input"],zMe=function(t){return{enterDuration:t}},FMe=["*"],HMe=new ui("mat-checkbox-default-options",{providedIn:"root",factory:hX});function hX(){return{color:"accent",clickAction:"check-indeterminate"}}let VMe=0;const pX=hX(),BMe={provide:L1,useExisting:nt(()=>Xp),multi:!0};class GMe{}const YMe=Hg(Ph($u(E0(class{constructor(t){this._elementRef=t}}))));let Xp=(()=>{class t extends YMe{constructor(e,i,o,r,a,l,u){super(e),this._changeDetectorRef=i,this._focusMonitor=o,this._ngZone=r,this._animationMode=l,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++VMe,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new In,this.indeterminateChange=new In,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||pX,this.color=this.defaultColor=this._options.color||pX.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=no(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){const i=no(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=no(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=no(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,o=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){const e=new GMe;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(e){var i;const o=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===o?!this.disabled&&"noop"===o&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==o&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let o="";switch(e){case 0:if(1===i)o="unchecked-checked";else{if(3!=i)return"";o="unchecked-indeterminate"}break;case 2:o=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:o=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:o=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${o}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Xr),ue(P2),ue(oo),Yl("tabindex"),ue(E1,8),ue(HMe,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(_o(RMe,5),_o(Th,5)),2&e){let o;fi(o=gi())&&(i._inputElement=o.first),fi(o=gi())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(Fu("id",i.id),Un("tabindex",null)("aria-label",null)("aria-labelledby",null),po("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[mo([BMe]),ei],ngContentSelectors:FMe,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(ls(),H(0,"label",0,1)(2,"span",2)(3,"input",3,4),et("change",function(r){return i._onInteractionEvent(r)})("click",function(r){return i._onInputClick(r)}),G(),H(5,"span",5),Qe(6,"span",6),G(),Qe(7,"span",7),H(8,"span",8),bi(),H(9,"svg",9),Qe(10,"path",10),G(),gd(),Qe(11,"span",11),G()(),H(12,"span",12,13),et("cdkObserveContent",function(){return i._onLabelTextChange()}),H(14,"span",14),de(15,"\xa0"),G(),Vr(16),G()()),2&e){const o=Di(1),r=Di(13);Un("for",i.inputId),W(2),po("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),W(1),J("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Un("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),W(2),J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",wo(19,zMe,"NoopAnimations"===i._animationMode?0:150))}},directives:[Th,jD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),fX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),gX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,Xo,z9,fX],Xo,fX]}),t})();const WMe=["*"],mX=new ui("MatChipRemove"),_X=new ui("MatChipAvatar"),CX=new ui("MatChipTrailingIcon");class qMe{constructor(n){this._elementRef=n}}const $Me=Hg(Ph($u(qMe),"primary"),-1);let T2=(()=>{class t extends $Me{constructor(e,i,o,r,a,l,u,f){super(e),this._ngZone=i,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new N,this._onBlur=new N,this.selectionChange=new In,this.destroyed=new In,this.removed=new In,this._addHostClassName(),this._chipRippleTarget=l.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new tq(this,i,this._chipRippleTarget,o),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=r||{},this._animationsDisabled="NoopAnimations"===u,this.tabIndex=null!=f&&parseInt(f)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=no(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=no(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=no(e)}get removable(){return this._removable}set removable(e){this._removable=no(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(rc),ue(nq,8),ue(Xr),ue(vr),ue(E1,8),Yl("tabindex"))},t.\u0275dir=St({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,o){if(1&e&&(mr(o,_X,5),mr(o,CX,5),mr(o,mX,5)),2&e){let r;fi(r=gi())&&(i.avatar=r.first),fi(r=gi())&&(i.trailingIcon=r.first),fi(r=gi())&&(i.removeIcon=r.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,i){1&e&&et("click",function(r){return i._handleClick(r)})("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Un("tabindex",i.disabled?null:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),po("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[ei]}),t})(),kk=(()=>{class t{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(ue(T2),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&et("click",function(r){return i._handleClick(r)})},features:[mo([{provide:mX,useExisting:t}])]}),t})();const vX=new ui("mat-chips-default-options");let ZMe=0,bX=(()=>{class t{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new In,this.placeholder="",this.id="mat-chip-list-input-"+ZMe++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=no(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=no(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!ql(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!ql(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(vX))},t.\u0275dir=St({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&et("keydown",function(r){return i._keydown(r)})("keyup",function(r){return i._keyup(r)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Fu("id",i.id),Un("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Yo]}),t})();const KMe=KD(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let JMe=0;class eOe{constructor(n,e){this.source=n,this.value=e}}let A6=(()=>{class t extends KMe{constructor(e,i,o,r,a,l,u){super(l,r,a,u),this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new N,this._uid="mat-chip-list-"+JMe++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(f,M)=>f===M,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new In,this.valueChange=new In,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=no(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(P6.required))&&void 0!==r&&r}set required(e){this._required=no(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=no(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=no(e),this.chips&&this.chips.forEach(i=>i.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return kr(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return kr(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return kr(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return kr(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new qD(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Yn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Yn(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Sc(null),Yn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Qu(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&eo.deselect()),Array.isArray(e))e.forEach(o=>this._selectValue(o,i)),this._sortValues();else{const o=this._selectValue(e,i);o&&i&&this._keyManager.setActiveItem(o)}}_selectValue(e,i=!0){const o=this.chips.find(r=>null!=r.value&&this._compareWith(r.value,e));return o&&(i?o.selectViaInteraction():o.select(),this._selectionModel.select(o)),o}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new eOe(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,o=this.chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&i._hasFocus&&(this._lastDestroyedChipIndex=o)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Xr),ue(Sl,8),ue(D0,8),ue(Gc,8),ue(x6),ue(Dh,10))},t.\u0275cmp=vn({type:t,selectors:[["mat-chip-list"]],contentQueries:function(e,i,o){if(1&e&&mr(o,T2,5),2&e){let r;fi(r=gi())&&(i.chips=r)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,i){1&e&&et("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(r){return i._keydown(r)}),2&e&&(Fu("id",i._uid),Un("tabindex",i.disabled?null:i._tabIndex)("aria-describedby",i._ariaDescribedby||null)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),po("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[mo([{provide:q9,useExisting:t}]),ei],ngContentSelectors:WMe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(ls(),H(0,"div",0),Vr(1),G())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),K9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[x6,{provide:vX,useValue:{separatorKeyCodes:[13]}}],imports:[[Xo]]}),t})();const xX=Oh({passive:!0});let tOe=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Na;const i=Ol(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new N,a="cdk-text-field-autofilled",l=u=>{"cdk-text-field-autofill-start"!==u.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===u.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",l,xX),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",l,xX)}}),r}stopMonitoring(e){const i=Ol(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(qt(rc),qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const wX=new ui("MAT_INPUT_VALUE_ACCESSOR"),nOe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let iOe=0;const oOe=KD(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let E2=(()=>{class t extends oOe{constructor(e,i,o,r,a,l,u,f,M,T){super(l,r,a,o),this._elementRef=e,this._platform=i,this._autofillMonitor=f,this._formField=T,this._uid="mat-input-"+iOe++,this.focused=!1,this.stateChanges=new N,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(se=>DW().has(se)),this._iOSKeyupListener=se=>{const Me=se.target;!Me.value&&0===Me.selectionStart&&0===Me.selectionEnd&&(Me.setSelectionRange(1,1),Me.setSelectionRange(0,0))};const U=this._elementRef.nativeElement,ie=U.nodeName.toLowerCase();this._inputValueAccessor=u||U,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&M.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!T,this._isNativeSelect&&(this.controlType=U.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=no(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(P6.required))&&void 0!==r&&r}set required(e){this._required=no(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&DW().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=no(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const o=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(o!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=o,o?r.setAttribute("placeholder",o):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){nOe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(rc),ue(Dh,10),ue(D0,8),ue(Gc,8),ue(x6),ue(wX,10),ue(tOe),ue(oo),ue($9,8))},t.\u0275dir=St({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&et("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Fu("disabled",i.disabled)("required",i.required),Un("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),po("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[mo([{provide:q9,useExisting:t}]),ei,Yo]}),t})(),J9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[x6],imports:[[yX,jg,Xo],yX,jg]}),t})();const rOe=["mat-calendar-body",""];function aOe(t,n){if(1&t&&(H(0,"tr",2)(1,"td",3),de(2),G()()),2&t){const e=Ae();W(1),Br("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Un("colspan",e.numCols),W(1),Nt(" ",e.label," ")}}function sOe(t,n){if(1&t&&(H(0,"td",3),de(1),G()),2&t){const e=Ae(2);Br("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Un("colspan",e._firstRowOffset),W(1),Nt(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function cOe(t,n){if(1&t){const e=Ln();H(0,"td",7)(1,"button",8),et("click",function(o){const a=Dt(e).$implicit;return Ae(2)._cellClicked(a,o)}),H(2,"div",9),de(3),G(),Qe(4,"div",10),G()()}if(2&t){const e=n.$implicit,i=n.index,o=Ae().index,r=Ae();Br("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),Un("data-mat-row",o)("data-mat-col",i),W(1),po("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,i))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,i))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,i))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),J("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,i)?0:-1),Un("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null),W(1),po("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),W(1),Nt(" ",e.displayValue," ")}}function lOe(t,n){if(1&t&&(H(0,"tr",4),ke(1,sOe,2,6,"td",5),ke(2,cOe,5,47,"td",6),G()),2&t){const e=n.$implicit,i=n.index,o=Ae();W(1),J("ngIf",0===i&&o._firstRowOffset),W(1),J("ngForOf",e)}}function dOe(t,n){if(1&t&&(H(0,"th",5)(1,"span",6),de(2),G(),H(3,"span",7),de(4),G()()),2&t){const e=n.$implicit;W(2),qo(e.long),W(2),qo(e.narrow)}}const uOe=["*"];function hOe(t,n){}function pOe(t,n){if(1&t){const e=Ln();H(0,"mat-month-view",5),et("activeDateChange",function(o){return Dt(e),Ae().activeDate=o})("_userSelection",function(o){return Dt(e),Ae()._dateSelected(o)}),G()}if(2&t){const e=Ae();J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function fOe(t,n){if(1&t){const e=Ln();H(0,"mat-year-view",6),et("activeDateChange",function(o){return Dt(e),Ae().activeDate=o})("monthSelected",function(o){return Dt(e),Ae()._monthSelectedInYearView(o)})("selectedChange",function(o){return Dt(e),Ae()._goToDateInView(o,"month")}),G()}if(2&t){const e=Ae();J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function gOe(t,n){if(1&t){const e=Ln();H(0,"mat-multi-year-view",7),et("activeDateChange",function(o){return Dt(e),Ae().activeDate=o})("yearSelected",function(o){return Dt(e),Ae()._yearSelectedInMultiYearView(o)})("selectedChange",function(o){return Dt(e),Ae()._goToDateInView(o,"year")}),G()}if(2&t){const e=Ae();J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function mOe(t,n){}const _Oe=["button"];function COe(t,n){1&t&&(bi(),H(0,"svg",3),Qe(1,"path",4),G())}const vOe=[[["","matDatepickerToggleIcon",""]]],bOe=["[matDatepickerToggleIcon]"];class Ik{constructor(n,e,i,o,r={},a=n,l){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=l}}let L6=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new In,this.previewChange=new In,this._enterHandler=o=>{if(this._skipNextFocus&&"focus"===o.type)this._skipNextFocus=!1;else if(o.target&&this.isRange){const r=this._getCellFromElement(o.target);r&&this._ngZone.run(()=>this.previewChange.emit({value:r.enabled?r:null,event:o}))}},this._leaveHandler=o=>{null!==this.previewEnd&&this.isRange&&o.target&&this._getCellFromElement(o.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o}))},i.runOutsideAngular(()=>{const o=e.nativeElement;o.addEventListener("mouseenter",this._enterHandler,!0),o.addEventListener("focus",this._enterHandler,!0),o.addEventListener("mouseleave",this._leaveHandler,!0),o.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:o,numCols:r}=this;(e.rows||i)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/r+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/r+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let o=e*this.numCols+i;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_isRangeStart(e){return Nk(e,this.startValue,this.endValue)}_isRangeEnd(e){return Rk(e,this.startValue,this.endValue)}_isInRange(e){return zk(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Nk(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[i][o-1];if(!r){const a=this.rows[i-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,i,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[i][o+1];if(!r){const a=this.rows[i+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return Rk(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return zk(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Nk(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Rk(e,this.previewStart,this.previewEnd)}_isInPreview(e){return zk(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(MX(e)?i=e:MX(e.parentNode)&&(i=e.parentNode),i){const o=i.getAttribute("data-mat-row"),r=i.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)][parseInt(r)]}return null}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo))},t.\u0275cmp=vn({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Yo],attrs:rOe,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(ke(0,aOe,3,6,"tr",0),ke(1,lOe,3,2,"tr",1)),2&e&&(J("ngIf",i._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),t})();function MX(t){return"TD"===t.nodeName}function Nk(t,n,e){return null!==e&&n!==e&&t=n&&t===e}function zk(t,n,e,i){return i&&null!==n&&null!==e&&n!==e&&t>=n&&t<=e}class A2{constructor(n,e){this.start=n,this.end=e}}let jf=(()=>{class t{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new N,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return t.\u0275fac=function(e){kp()},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),xOe=(()=>{class t extends jf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(qt(d1))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const OX={provide:jf,deps:[[new s1,new jd,jf],d1],useFactory:function wOe(t,n){return t||new xOe(n)}},dM=new ui("MAT_DATE_RANGE_SELECTION_STRATEGY");let SX=(()=>{class t{constructor(e,i,o,r,a){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=o,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=Se.EMPTY,this.selectedChange=new In,this._userSelection=new In,this.activeDateChange=new In,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Sc(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,o=this._dateAdapter.getYear(this.activeDate),r=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(o,r,i);let l,u;this._selected instanceof A2?(l=this._getDateInCurrentMonth(this._selected.start),u=this._getDateInCurrentMonth(this._selected.end)):l=u=this._getDateInCurrentMonth(this._selected),(l!==i||u!==i)&&this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ql(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const r=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let r=this._dateAdapter.getDayOfWeekNames("long").map((a,l)=>({long:a,narrow:i[l]}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,r=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(i,o,r).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof A2?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr),ue(Nf,8),ue(d1,8),ue(Sl,8),ue(dM,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&_o(L6,5),2&e){let o;fi(o=gi())&&(i._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Yo],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(H(0,"table",0)(1,"thead",1)(2,"tr"),ke(3,dOe,5,2,"th",2),G(),H(4,"tr"),Qe(5,"th",3),G()(),H(6,"tbody",4),et("selectedValueChange",function(r){return i._dateSelected(r)})("previewChange",function(r){return i._previewChanged(r)})("keyup",function(r){return i._handleCalendarBodyKeyup(r)})("keydown",function(r){return i._handleCalendarBodyKeydown(r)}),G()()),2&e&&(W(3),J("ngForOf",i._weekdays),W(3),J("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[L6,$o],encapsulation:2,changeDetection:0}),t})(),PX=(()=>{class t{constructor(e,i,o){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=o,this._rerenderSubscription=Se.EMPTY,this.selectedChange=new In,this.yearSelected=new In,this.activeDateChange=new In,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),TX(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Sc(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,r=[];o<24;o++)r.push(i+o),4==r.length&&(this._years.push(r.map(a=>this._createCellForYear(a))),r=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let o=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,o,1));this.selectedChange.emit(this._dateAdapter.createDate(i,o,Math.min(this._dateAdapter.getDate(this.activeDate),r)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return eC(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(i),r=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Ik(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{constructor(e,i,o,r){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=o,this._dir=r,this._rerenderSubscription=Se.EMPTY,this.selectedChange=new In,this.monthSelected=new In,this.activeDateChange=new In,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Sc(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(o);const r=this._dateAdapter.getNumDaysInMonth(o);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),r)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(o=>this._createCellForMonth(o,e[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new Ik(e,i.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let r=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&i>r}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{constructor(){this.changes=new N,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),TOe=0,EOe=(()=>{class t{constructor(e,i,o,r,a){this._intl=e,this.calendar=i,this._dateAdapter=o,this._dateFormats=r,this._buttonDescriptionId="mat-calendar-button-"+TOe++,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-eC(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=i+24-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return this._intl.formatYearRange(r,a)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):TX(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(ue(tC),ue(nt(()=>Vk)),ue(d1,8),ue(Nf,8),ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:uOe,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(ls(),H(0,"div",0)(1,"div",1)(2,"button",2),et("click",function(){return i.currentPeriodClicked()}),H(3,"span"),de(4),G(),bi(),H(5,"svg",3),Qe(6,"polygon",4),G()(),gd(),Qe(7,"div",5),Vr(8),H(9,"button",6),et("click",function(){return i.previousClicked()}),G(),H(10,"button",7),et("click",function(){return i.nextClicked()}),G()()()),2&e&&(W(2),Un("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),W(1),Un("id",i._buttonDescriptionId),W(1),qo(i.periodButtonText),W(1),po("mat-calendar-invert","month"!==i.calendar.currentView),W(4),J("disabled",!i.previousEnabled()),Un("aria-label",i.prevButtonLabel),W(1),J("disabled",!i.nextEnabled()),Un("aria-label",i.nextButtonLabel))},directives:[Fo],encapsulation:2,changeDetection:0}),t})(),Vk=(()=>{class t{constructor(e,i,o,r){this._dateAdapter=i,this._dateFormats=o,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new In,this.yearSelected=new In,this.monthSelected=new In,this.viewChanged=new In(!0),this._userSelection=new In,this.stateChanges=new N,this._intlChanges=e.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof A2?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new uu(this.headerComponent||EOe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=i||o||e.dateFilter;if(r&&!r.firstChange){const a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof A2||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(ue(tC),ue(d1,8),ue(Nf,8),ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(_o(SX,5),_o(AX,5),_o(PX,5)),2&e){let o;fi(o=gi())&&(i.monthView=o.first),fi(o=gi())&&(i.yearView=o.first),fi(o=gi())&&(i.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[mo([OX]),Yo],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(ke(0,hOe,0,0,"ng-template",0),H(1,"div",1),ke(2,pOe,1,8,"mat-month-view",2),ke(3,fOe,1,6,"mat-year-view",3),ke(4,gOe,1,6,"mat-multi-year-view",4),G()),2&e&&(J("cdkPortalOutlet",i._calendarHeaderPortal),W(1),J("ngSwitch",i.currentView),W(1),J("ngSwitchCase","month"),W(1),J("ngSwitchCase","year"),W(1),J("ngSwitchCase","multi-year"))},directives:[SX,AX,PX,S6,rxe,bd,iu],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const LX={transformPanel:na("transformPanel",[Do("void => enter-dropdown",Mo("120ms cubic-bezier(0, 0, 0.2, 1)",Tg([ti({opacity:0,transform:"scale(1, 0.8)"}),ti({opacity:1,transform:"scale(1, 1)"})]))),Do("void => enter-dialog",Mo("150ms cubic-bezier(0, 0, 0.2, 1)",Tg([ti({opacity:0,transform:"scale(0.7)"}),ti({transform:"none",opacity:1})]))),Do("* => void",Mo("100ms linear",ti({opacity:0})))]),fadeInCalendar:na("fadeInCalendar",[cr("void",ti({opacity:0})),cr("enter",ti({opacity:1})),Do("void => *",Mo("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let AOe=0;const DX=new ui("mat-datepicker-scroll-strategy"),DOe={provide:DX,deps:[$l],useFactory:function LOe(t){return()=>t.scrollStrategies.reposition()}},kOe=Ph(class{constructor(t){this._elementRef=t}});let IOe=(()=>{class t extends kOe{constructor(e,i,o,r,a,l){super(e),this._changeDetectorRef=i,this._globalModel=o,this._dateAdapter=r,this._rangeSelectionStrategy=a,this._subscriptions=new Se,this._animationDone=new N,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,o=e.value,r=i instanceof A2;if(r&&this._rangeSelectionStrategy){const a=this._rangeSelectionStrategy.selectionFinished(o,i,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,i))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Xr),ue(jf),ue(d1),ue(dM,8),ue(tC))},t.\u0275cmp=vn({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&_o(Vk,5),2&e){let o;fi(o=gi())&&(i._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&o6("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(a6("@transformPanel",i._animationState),po("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[ei],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"mat-calendar",1),et("yearSelected",function(r){return i.datepicker._selectYear(r)})("monthSelected",function(r){return i.datepicker._selectMonth(r)})("viewChanged",function(r){return i.datepicker._viewChanged(r)})("_userSelection",function(r){return i._handleUserSelection(r)}),G(),ke(2,mOe,0,0,"ng-template",2),H(3,"button",3),et("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),de(4),G()()),2&e){let o;po("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),Un("aria-modal",!0)("aria-labelledby",null!==(o=i._dialogLabelId)&&void 0!==o?o:void 0),W(1),J("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),W(1),J("cdkPortalOutlet",i._actionsPortal),W(1),po("cdk-visually-hidden",!i._closeButtonFocused),J("color",i.color||"primary"),W(1),qo(i._closeButtonText)}},directives:[Vk,Fo,Zbe,ds,S6],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[LX.transformPanel,LX.fadeInCalendar]},changeDetection:0}),t})(),kX=(()=>{class t{constructor(e,i,o,r,a,l,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=o,this._dateAdapter=a,this._dir=l,this._model=u,this._inputStateChanges=Se.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new In,this.monthSelected=new In,this.viewChanged=new In(!0),this.openedStream=new In,this.closedStream=new In,this._opened=!1,this.id="mat-datepicker-"+AOe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new N,this._scrollStrategy=r}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=no(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=no(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=no(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=SW(e)}get opened(){return this._opened}set opened(e){no(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;o instanceof Gq&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=L9(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(Ja(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new uu(IOe,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Lh({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),this._componentRef=o.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>o.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",o="start"===i?"end":"start",r="above"===this.yPosition?"bottom":"top",a="top"===r?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){return kr(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ca(i=>27===i.keyCode&&!ql(i)||this.datepickerInput&&ql(i,"altKey")&&38===i.keyCode)))}}return t.\u0275fac=function(e){return new(e||t)(ue($l),ue(oo),ue(oc),ue(DX),ue(d1,8),ue(Sl,8),ue(jf))},t.\u0275dir=St({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Yo]}),t})(),NOe=(()=>{class t extends kX{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[mo([OX,{provide:kX,useExisting:t}]),ei],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),t})();class uM{constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}}let ROe=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._dateAdapter=i,this._dateFormats=o,this.dateChange=new In,this.dateInput=new In,this.stateChanges=new N,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Se.EMPTY,this._localeSubscription=Se.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=r=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=r=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),l=this._getMinDate();return!l||!a||this._dateAdapter.compareDate(l,a)<=0?null:{matDatepickerMin:{min:l,actual:a}}},this._maxValidator=r=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),l=this._getMaxDate();return!l||!a||this._dateAdapter.compareDate(l,a)>=0?null:{matDatepickerMax:{max:l,actual:a}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=no(e),o=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const o=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new uM(this,this._elementRef.nativeElement)),this.dateChange.emit(new uM(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function zOe(t,n){const e=Object.keys(t);for(let i of e){const{previousValue:o,currentValue:r}=t[i];if(!n.isDateInstance(o)||!n.isDateInstance(r))return!0;if(!n.sameDate(o,r))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);const r=!this._dateAdapter.sameDate(o,this.value);!o||r?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),i!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(o),this.dateInput.emit(new uM(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new uM(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(d1,8),ue(Nf,8))},t.\u0275dir=St({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Yo]}),t})();const FOe={provide:L1,useExisting:nt(()=>Bk),multi:!0},HOe={provide:u1,useExisting:nt(()=>Bk),multi:!0};let Bk=(()=>{class t extends ROe{constructor(e,i,o,r){super(e,i,o),this._formField=r,this._closedSubscription=Se.EMPTY,this._validator=P6.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(d1,8),ue(Nf,8),ue($9,8))},t.\u0275dir=St({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&et("input",function(r){return i._onInput(r.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(r){return i._onKeydown(r)}),2&e&&(Fu("disabled",i.disabled),Un("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[mo([FOe,HOe,{provide:wX,useExisting:t}]),ei]}),t})(),VOe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),BOe=(()=>{class t{constructor(e,i,o){this._intl=e,this._changeDetectorRef=i,this._stateChanges=Se.EMPTY;const r=Number(o);this.tabIndex=r||0===r?r:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=no(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:rr(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:rr(),o=this.datepicker?kr(this.datepicker.openedStream,this.datepicker.closedStream):rr();this._stateChanges.unsubscribe(),this._stateChanges=kr(this._intl.changes,e,i,o).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(ue(tC),ue(Xr),Yl("tabindex"))},t.\u0275cmp=vn({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,o){if(1&e&&mr(o,VOe,5),2&e){let r;fi(r=gi())&&(i._customIcon=r.first)}},viewQuery:function(e,i){if(1&e&&_o(_Oe,5),2&e){let o;fi(o=gi())&&(i._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&et("click",function(r){return i._open(r)}),2&e&&(Un("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),po("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Yo],ngContentSelectors:bOe,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(ls(vOe),H(0,"button",0,1),ke(2,COe,2,0,"svg",2),Vr(3),G()),2&e&&(J("disabled",i.disabled)("disableRipple",i.disableRipple),Un("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),W(2),J("ngIf",!i._customIcon))},directives:[Fo,Yi],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),nC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[tC,DOe],imports:[[va,du,Gg,Nw,Vf,Xo],T0]}),t})();function GOe(t,n){}class Gk{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const YOe={dialogContainer:na("dialogContainer",[cr("void, exit",ti({opacity:0,transform:"scale(0.7)"})),cr("enter",ti({transform:"none"})),Do("* => enter",Pg([Mo("150ms cubic-bezier(0, 0, 0.2, 1)",ti({transform:"none",opacity:1})),qa("@*",Q1(),{optional:!0})])),Do("* => void, * => exit",Pg([Mo("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ti({opacity:0})),qa("@*",Q1(),{optional:!0})]))])};let UOe=(()=>{class t extends $w{constructor(e,i,o,r,a,l,u,f){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=o,this._config=a,this._interactivityChecker=l,this._ngZone=u,this._focusMonitor=f,this._animationStateChanged=new In,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=M=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(M)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=r}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=L9())}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=L9(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=L9();return e===i||e.contains(i)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(XD),ue(Xr),ue(vr,8),ue(Gk),ue($D),ue(oo),ue(P2))},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&_o(S6,7),2&e){let o;fi(o=gi())&&(i._portalOutlet=o.first)}},features:[ei]}),t})(),jOe=(()=>{class t extends UOe{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&o6("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(Fu("id",i._id),Un("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),a6("@dialogContainer",i._state))},features:[ei],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ke(0,GOe,0,0,"ng-template",0)},directives:[S6],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[YOe.dialogContainer]}}),t})(),WOe=0;class od{constructor(n,e,i="mat-dialog-"+WOe++){this._overlayRef=n,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new N,this._afterClosed=new N,this._beforeClosed=new N,this._state=0,e._id=i,e._animationStateChanged.pipe(ca(o=>"opened"===o.state),Ja(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(ca(o=>"closed"===o.state),Ja(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),n.keydownEvents().pipe(ca(o=>27===o.keyCode&&!this.disableClose&&!ql(o))).subscribe(o=>{o.preventDefault(),IX(this,"keyboard")}),n.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():IX(this,"mouse")})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ca(e=>"closing"===e.state),Ja(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(n){let e=this._getPositionStrategy();return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(n="",e=""){return this._overlayRef.updateSize({width:n,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(n){return this._overlayRef.addPanelClass(n),this}removePanelClass(n){return this._overlayRef.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function IX(t,n,e){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=n),t.close(e)}const t2=new ui("MatDialogData"),qOe=new ui("mat-dialog-default-options"),NX=new ui("mat-dialog-scroll-strategy"),XOe={provide:NX,deps:[$l],useFactory:function $Oe(t){return()=>t.scrollStrategies.block()}};let QOe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=u,this._dialogContainerType=f,this._dialogDataToken=M,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N,this._afterOpenedAtThisLevel=new N,this._ariaHiddenElements=new Map,this.afterAllClosed=g9(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sc(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function ZOe(t,n){return Object.assign(Object.assign({},n),t)}(i,this._defaultOptions||new Gk),i.id&&this.getDialogById(i.id);const o=this._createOverlay(i),r=this._attachDialogContainer(o,i),a=this._attachDialogContent(e,r,o,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(()=>this._removeOpenDialog(a)),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Lh({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const r=zs.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Gk,useValue:i}]}),a=new uu(this._dialogContainerType,i.viewContainerRef,r,i.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,i,o,r){const a=new this._dialogRefConstructor(o,i,r.id);if(e instanceof Oc)i.attachTemplatePortal(new O6(e,null,{$implicit:r.data,dialogRef:a}));else{const l=this._createInjector(r,a,i),u=i.attachComponentPortal(new uu(e,r.viewContainerRef,l,r.componentFactoryResolver));a.componentInstance=u.instance}return a.updateSize(r.width,r.height).updatePosition(r.position),a}_createInjector(e,i,o){const r=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!r||!r.get(Sl,null,qi.Optional))&&a.push({provide:Sl,useValue:{value:e.direction,change:rr()}}),zs.create({parent:r||this._injector,providers:a})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,r)=>{o?r.setAttribute("aria-hidden",o):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){let r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t}),t})(),iC=(()=>{class t extends QOe{constructor(e,i,o,r,a,l,u,f){super(e,i,r,l,u,a,od,jOe,t2,f)}}return t.\u0275fac=function(e){return new(e||t)(qt($l),qt(zs),qt(J7,8),qt(qOe,8),qt(NX),qt(t,12),qt(fk),qt(E1,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),oC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),rC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),D6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[iC,XOe],imports:[[Gg,Vf,Xo],Xo]}),t})(),KOe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),zX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,KOe,Vf]]}),t})(),HX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Rw,Xo],Rw,Xo]}),t})(),VX=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=no(e)}get inset(){return this._inset}set inset(e){this._inset=no(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Un("aria-orientation",i.vertical?"vertical":"horizontal"),po("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),Yk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})();const BX=["*"],rSe=E0($u(class{})),aSe=new ui("MatList");let sSe=(()=>{class t extends rSe{constructor(e){super(),this._elementRef=e,this._stateChanges=new N,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[mo([{provide:aSe,useExisting:t}]),ei,Yo],ngContentSelectors:BX,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),dSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),hM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Rw,Kd,Xo,nk,va],Rw,Xo,nk,Yk]}),t})();const mSe=["mat-menu-item",""];function _Se(t,n){1&t&&(bi(),H(0,"svg",2),Qe(1,"polygon",3),G())}const UX=["*"];function CSe(t,n){if(1&t){const e=Ln();H(0,"div",0),et("keydown",function(o){return Dt(e),Ae()._handleKeydown(o)})("click",function(){return Dt(e),Ae().closed.emit("click")})("@transformMenu.start",function(o){return Dt(e),Ae()._onAnimationStart(o)})("@transformMenu.done",function(o){return Dt(e),Ae()._onAnimationDone(o)}),H(1,"div",1),Vr(2),G()()}if(2&t){const e=Ae();J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Un("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const pM={transformMenu:na("transformMenu",[cr("void",ti({opacity:0,transform:"scale(0.8)"})),Do("void => enter",Mo("120ms cubic-bezier(0, 0, 0.2, 1)",ti({opacity:1,transform:"scale(1)"}))),Do("* => void",Mo("100ms 25ms linear",ti({opacity:0})))]),fadeInItems:na("fadeInItems",[cr("showing",ti({opacity:1})),Do("void => *",[ti({opacity:0}),Mo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},vSe=new ui("MatMenuContent"),Uk=new ui("MAT_MENU_PANEL"),bSe=$u(E0(class{}));let nl=(()=>{class t extends bSe{constructor(e,i,o,r,a){var l;super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new N,this._focused=new N,this._highlighted=!1,this._triggersSubmenu=!1,null===(l=null==r?void 0:r.addItem)||void 0===l||l.call(r,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=o,this._changeDetectorRef=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xg,this._tabSubscription=Se.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new N,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new In,this.close=this.closed,this.panelId="mat-menu-panel-"+ySe++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=no(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=no(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qD(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Sc(this._directDescendantItems),Z1(e=>kr(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const o=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=o.activeItem)||void 0===i?void 0:i._hasFocus())){const r=e.toArray(),a=Math.max(0,Math.min(r.length-1,o.activeItemIndex||0));r[a]&&!r[a].disabled?o.setActiveItem(a):o.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Sc(this._directDescendantItems),Z1(i=>kr(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:ql(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){var o;const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Sc(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(jX),ue(Xr))},t.\u0275dir=St({type:t,contentQueries:function(e,i,o){if(1&e&&(mr(o,vSe,5),mr(o,nl,5),mr(o,nl,4)),2&e){let r;fi(r=gi())&&(i.lazyContent=r.first),fi(r=gi())&&(i._allItems=r),fi(r=gi())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&_o(Oc,5),2&e){let o;fi(o=gi())&&(i.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),Ql=(()=>{class t extends aC{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(jX),ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Un("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[mo([{provide:Uk,useExisting:t}]),ei],ngContentSelectors:UX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(ls(),ke(0,CSe,3,6,"ng-template"))},directives:[ds],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[pM.transformMenu,pM.fadeInItems]},changeDetection:0}),t})();const WX=new ui("mat-menu-scroll-strategy"),MSe={provide:WX,deps:[$l],useFactory:function wSe(t){return()=>t.scrollStrategies.reposition()}},$X=Oh({passive:!0});let OSe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=l,this._dir=u,this._focusMonitor=f,this._ngZone=M,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Se.EMPTY,this._hoverSubscription=Se.EMPTY,this._menuCloseSubscription=Se.EMPTY,this._handleTouchStart=T=>{kw(T)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new In,this.onMenuOpen=this.menuOpened,this.menuClosed=new In,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof aC?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,$X),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$X),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig(),o=i.positionStrategy;this._setPosition(o),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof aC&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Yn(this.menu.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof aC?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(ca(o=>"void"===o.toState),Ja(1),Yn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Lh({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{const o="start"===i.connectionPair.overlayX?"after":"before",r="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(o,r)):this.menu.setPositionClasses(o,r)})}_setPosition(e){let[i,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[r,a]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[l,u]=[r,a],[f,M]=[i,o],T=0;this.triggersSubmenu()?(M=i="before"===this.menu.xPosition?"start":"end",o=f="end"===i?"start":"end",T="bottom"===r?8:-8):this.menu.overlapTrigger||(l="top"===r?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:i,originY:l,overlayX:f,overlayY:r,offsetY:T},{originX:o,originY:l,overlayX:M,overlayY:r,offsetY:T},{originX:i,originY:u,overlayX:f,overlayY:a,offsetY:-T},{originX:o,originY:u,overlayX:M,overlayY:a,offsetY:-T}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return kr(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:rr(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ca(a=>a!==this._menuItemInstance),ca(()=>this._menuOpen)):rr(),i)}_handleMousedown(e){Dw(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ca(e=>e===this._menuItemInstance&&!e.disabled),Dk(0,Ow)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof aC&&this.menu._isAnimating?this.menu._animationDone.pipe(Ja(1),Dk(0,Ow),Yn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new O6(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(ue($l),ue(Ti),ue(oc),ue(WX),ue(Uk,8),ue(nl,10),ue(Sl,8),ue(P2),ue(oo))},t.\u0275dir=St({type:t,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,i){1&e&&et("click",function(r){return i._handleClick(r)})("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)}),2&e&&Un("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),il=(()=>{class t extends OSe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[ei]}),t})(),k6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[MSe],imports:[[va,Xo,Kd,Gg],T0,Xo]}),t})();const SSe=["trigger"],PSe=["panel"];function TSe(t,n){if(1&t&&(H(0,"span",8),de(1),G()),2&t){const e=Ae();W(1),qo(e.placeholder)}}function ESe(t,n){if(1&t&&(H(0,"span",12),de(1),G()),2&t){const e=Ae(2);W(1),qo(e.triggerValue)}}function ASe(t,n){1&t&&Vr(0,0,["*ngSwitchCase","true"])}function LSe(t,n){1&t&&(H(0,"span",9),ke(1,ESe,2,1,"span",10),ke(2,ASe,1,0,"ng-content",11),G()),2&t&&(J("ngSwitch",!!Ae().customTrigger),W(2),J("ngSwitchCase",!0))}function DSe(t,n){if(1&t){const e=Ln();H(0,"div",13)(1,"div",14,15),et("@transformPanel.done",function(o){return Dt(e),Ae()._panelDoneAnimatingStream.next(o.toState)})("keydown",function(o){return Dt(e),Ae()._handleKeydown(o)}),Vr(3,1),G()()}if(2&t){const e=Ae();J("@transformPanelWrap",void 0),W(1),yf("mat-select-panel ",e._getPanelTheme(),""),Br("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Un("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const kSe=[[["mat-select-trigger"]],"*"],ISe=["mat-select-trigger","*"],XX={transformPanelWrap:na("transformPanelWrap",[Do("* => void",qa("@transformPanel",[Q1()],{optional:!0}))]),transformPanel:na("transformPanel",[cr("void",ti({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),cr("showing",ti({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),cr("showing-multiple",ti({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Do("void => *",Mo("120ms cubic-bezier(0, 0, 0.2, 1)")),Do("* => void",Mo("100ms 25ms linear",ti({opacity:0})))])};let QX=0;const KX=new ui("mat-select-scroll-strategy"),FSe=new ui("MAT_SELECT_CONFIG"),HSe={provide:KX,deps:[$l],useFactory:function zSe(t){return()=>t.scrollStrategies.reposition()}};class VSe{constructor(n,e){this.source=n,this.value=e}}const BSe=$u(Hg(E0(KD(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o}})))),GSe=new ui("MatSelectTrigger");let YSe=(()=>{class t extends BSe{constructor(e,i,o,r,a,l,u,f,M,T,U,ie,se,Me){var we,He,Be;super(a,r,u,f,T),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=l,this._parentFormField=M,this._liveAnnouncer=se,this._defaultOptions=Me,this._panelOpen=!1,this._compareWith=(me,ze)=>me===ze,this._uid="mat-select-"+QX++,this._triggerAriaLabelledBy=null,this._destroy=new N,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QX++,this._panelDoneAnimatingStream=new N,this._overlayPanelClass=(null===(we=this._defaultOptions)||void 0===we?void 0:we.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Be=null===(He=this._defaultOptions)||void 0===He?void 0:He.disableOptionCentering)&&void 0!==Be&&Be,this.ariaLabel="",this.optionSelectionChanges=g9(()=>{const me=this.options;return me?me.changes.pipe(Sc(me),Z1(()=>kr(...me.map(ze=>ze.onSelectionChange)))):this._ngZone.onStable.pipe(Ja(1),Z1(()=>this.optionSelectionChanges))}),this.openedChange=new In,this._openedStream=this.openedChange.pipe(ca(me=>me),it(()=>{})),this._closedStream=this.openedChange.pipe(ca(me=>!me),it(()=>{})),this.selectionChange=new In,this.valueChange=new In,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Me?void 0:Me.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Me.typeaheadDebounceInterval),this._scrollStrategyFactory=ie,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(U)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(P6.required))&&void 0!==r&&r}set required(e){this._required=no(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=no(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=no(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Vc(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Qu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Cs(),Yn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Yn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Sc(null),Yn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&r&&!ql(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;a.onKeydown(e);const u=this.selected;u&&l!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,a=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!i.activeItem||ql(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const l=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(l?u.select():u.deselect())})}else{const l=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==l&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Ja(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new GW(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Yn(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Yn(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=kr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Yn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),kr(...this.options.map(i=>i._stateChanges)).pipe(Yn(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(ue(Df),ue(Xr),ue(oo),ue(x6),ue(Ti),ue(Sl,8),ue(D0,8),ue(Gc,8),ue($9,8),ue(Dh,10),Yl("tabindex"),ue(KX),ue(QD),ue(FSe,8))},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&(_o(SSe,5),_o(PSe,5),_o(Xq,5)),2&e){let o;fi(o=gi())&&(i.trigger=o.first),fi(o=gi())&&(i.panel=o.first),fi(o=gi())&&(i._overlayDir=o.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ei,Yo]}),t})(),qg=(()=>{class t extends YSe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,o){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Yn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Ja(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=rk(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:rq((e+i)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new VSe(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),r=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let f=this._selectionModel.selected[0]||this.options.first;a=f&&f.group?32:16}o||(a*=-1);const l=0-(e.left+a-(o?r:0)),u=e.right+a-i.width+(o?0:r);l>0?a+=l+8:u>0&&(a-=u+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,l=Math.floor(256/r);let u;return this.disableOptionCentering?0:(u=0===this._scrollTop?e*r:this._scrollTop===o?(e-(this._getItemCount()-l))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*u-a))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,a=o.height-this._triggerRect.bottom-8,l=Math.abs(this._offsetY),f=Math.min(this._getItemCount()*i,256)-l-this._triggerRect.height;f>a?this._adjustPanelUp(f,a):l>r?this._adjustPanelDown(l,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),a=i*e-o;let l;l=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),l+=rk(l,this.options,this.optionGroups);const u=o/2;this._scrollTop=this._calculateOverlayScroll(l,u,a),this._offsetY=this._calculateOverlayOffsetY(l,u,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,GSe,5),mr(o,J1,5),mr(o,ok,5)),2&e){let r;fi(r=gi())&&(i.customTrigger=r.first),fi(r=gi())&&(i.options=r),fi(r=gi())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&et("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Un("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),po("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[mo([{provide:q9,useExisting:t},{provide:ik,useExisting:t}]),ei],ngContentSelectors:ISe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(ls(kSe),H(0,"div",0,1),et("click",function(){return i.toggle()}),H(3,"div",2),ke(4,TSe,2,1,"span",3),ke(5,LSe,3,2,"span",4),G(),H(6,"div",5),Qe(7,"div",6),G()(),ke(8,DSe,4,14,"ng-template",7),et("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=Di(1);Un("aria-owns",i.panelOpen?i.id+"-panel":null),W(3),J("ngSwitch",i.empty),Un("id",i._valueId),W(1),J("ngSwitchCase",!0),W(1),J("ngSwitchCase",!1),W(3),J("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[$q,bd,iu,tU,Xq,ds],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[XX.transformPanelWrap,XX.transformPanel]},changeDetection:0}),t})(),jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[HSe],imports:[[va,Gg,zw,Xo],T0,jg,zw,Xo]}),t})();const JX=new Set;let N6,USe=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):WSe}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function jSe(t){if(!JX.has(t))try{N6||(N6=document.createElement("style"),N6.setAttribute("type","text/css"),document.head.appendChild(N6)),N6.sheet&&(N6.sheet.insertRule(`@media ${t} {body{ }}`,0),JX.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(rc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function WSe(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Wk=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new N}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eQ(xw(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=h9(eQ(xw(e)).map(a=>this._registerQuery(a).observable));return r=f9(r.pipe(Ja(1)),r.pipe(NW(1),Ks(0))),r.pipe(it(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:f})=>{l.matches=l.matches||u,l.breakpoints[f]=u}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new Wt(a=>{const l=u=>this._zone.run(()=>a.next(u));return i.addListener(l),()=>{i.removeListener(l)}}).pipe(Sc(i),it(({matches:a})=>({query:e,matches:a})),Yn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(qt(USe),qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function eQ(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const qSe=["tooltip"],nQ="tooltip-panel",iQ=Oh({passive:!0}),oQ=new ui("mat-tooltip-scroll-strategy"),ZSe={provide:oQ,deps:[$l],useFactory:function QSe(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},KSe=new ui("mat-tooltip-default-options",{providedIn:"root",factory:function JSe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ePe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T,U,ie){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=l,this._ariaDescriber=u,this._focusMonitor=f,this._dir=T,this._defaultOptions=U,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new N,this._scrollStrategy=M,this._document=ie,U&&(U.position&&(this.position=U.position),U.touchGestures&&(this.touchGestures=U.touchGestures)),T.change.pipe(Yn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=no(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Vc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Vc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Yn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,iQ)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new uu(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Yn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Yn(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${nQ}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Yn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Yn(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Yn(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ql(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(e=this._defaultOptions)||void 0===e?void 0:e.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),r.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Ja(1),Yn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const u=`${this._cssClassPrefix}-${nQ}-`;l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var o;const r=i.relatedTarget;(!r||!(null===(o=this._overlayRef)||void 0===o?void 0:o.overlayElement.contains(r)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,iQ)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Tl=(()=>{class t extends ePe{constructor(e,i,o,r,a,l,u,f,M,T,U,ie){super(e,i,o,r,a,l,u,f,M,T,U,ie),this._tooltipComponent=nPe}}return t.\u0275fac=function(e){return new(e||t)(ue($l),ue(Ti),ue(D9),ue(oc),ue(oo),ue(rc),ue(Hbe),ue(P2),ue(oQ),ue(Sl,8),ue(KSe,8),ue(vr))},t.\u0275dir=St({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[ei]}),t})(),tPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new N,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr),ue(E1,8))},t.\u0275dir=St({type:t}),t})(),nPe=(()=>{class t extends tPe{constructor(e,i,o){super(e,o),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr),ue(Wk),ue(E1,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&_o(qSe,7),2&e){let o;fi(o=gi())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&et("mouseleave",function(r){return i._handleMouseLeave(r)}),2&e&&Br("zoom",i.isVisible()?1:null)},features:[ei],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(H(0,"div",0,1),et("animationend",function(r){return i._handleAnimationEnd(r)}),y0(2,"async"),de(3),G()),2&e){let o;po("mat-tooltip-handset",null==(o=bg(2,4,i._isHandset))?null:o.matches),J("ngClass",i.tooltipClass),W(3),qo(i.message)}},directives:[ds],pipes:[Iy],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),t})(),R6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[ZSe],imports:[[Nw,va,Gg,Xo],Xo,T0]}),t})();function iPe(t,n){if(1&t&&(H(0,"mat-option",19),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e," ")}}function oPe(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",16)(1,"mat-select",17),et("selectionChange",function(o){return Dt(e),Ae(2)._changePageSize(o.value)}),ke(2,iPe,2,2,"mat-option",18),G()()}if(2&t){const e=Ae(2);J("appearance",e._formFieldAppearance)("color",e.color),W(1),J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),W(1),J("ngForOf",e._displayedPageSizeOptions)}}function rPe(t,n){if(1&t&&(H(0,"div",20),de(1),G()),2&t){const e=Ae(2);W(1),qo(e.pageSize)}}function aPe(t,n){if(1&t&&(H(0,"div",12)(1,"div",13),de(2),G(),ke(3,oPe,3,6,"mat-form-field",14),ke(4,rPe,2,1,"div",15),G()),2&t){const e=Ae();W(2),Nt(" ",e._intl.itemsPerPageLabel," "),W(1),J("ngIf",e._displayedPageSizeOptions.length>1),W(1),J("ngIf",e._displayedPageSizeOptions.length<=1)}}function sPe(t,n){if(1&t){const e=Ln();H(0,"button",21),et("click",function(){return Dt(e),Ae().firstPage()}),bi(),H(1,"svg",7),Qe(2,"path",22),G()()}if(2&t){const e=Ae();J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Un("aria-label",e._intl.firstPageLabel)}}function cPe(t,n){if(1&t){const e=Ln();bi(),gd(),H(0,"button",23),et("click",function(){return Dt(e),Ae().lastPage()}),bi(),H(1,"svg",7),Qe(2,"path",24),G()()}if(2&t){const e=Ae();J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Un("aria-label",e._intl.lastPageLabel)}}let z6=(()=>{class t{constructor(){this.changes=new N,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} of ${o}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dPe={provide:z6,deps:[[new s1,new jd,z6]],useFactory:function lPe(t){return t||new z6}},hPe=new ui("MAT_PAGINATOR_DEFAULT_OPTIONS"),pPe=E0(QW(class{}));let fPe=(()=>{class t extends pPe{constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new In,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:r,pageSizeOptions:a,hidePageSize:l,showFirstLastButtons:u}=o;null!=r&&(this._pageSize=r),null!=a&&(this._pageSizeOptions=a),null!=l&&(this._hidePageSize=l),null!=u&&(this._showFirstLastButtons=u)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Vc(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Vc(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Vc(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Vc(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=no(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=no(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[ei]}),t})(),gPe=(()=>{class t extends fPe{constructor(e,i,o){super(e,i,o),o&&null!=o.formFieldAppearance&&(this._formFieldAppearance=o.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(ue(z6),ue(Xr),ue(hPe,8))},t.\u0275cmp=vn({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ei],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1),ke(2,aPe,5,3,"div",2),H(3,"div",3)(4,"div",4),de(5),G(),ke(6,sPe,3,5,"button",5),H(7,"button",6),et("click",function(){return i.previousPage()}),bi(),H(8,"svg",7),Qe(9,"path",8),G()(),gd(),H(10,"button",9),et("click",function(){return i.nextPage()}),bi(),H(11,"svg",7),Qe(12,"path",10),G()(),ke(13,cPe,3,5,"button",11),G()()()),2&e&&(W(2),J("ngIf",!i.hidePageSize),W(3),Nt(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),W(1),J("ngIf",i.showFirstLastButtons),W(1),J("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Un("aria-label",i._intl.previousPageLabel),W(3),J("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Un("aria-label",i._intl.nextPageLabel),W(3),J("ngIf",i.showFirstLastButtons))},directives:[id,qg,J1,Fo,Yi,$o,Tl],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),cC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[dPe],imports:[[va,du,jk,R6,Xo]]}),t})();function mPe(t,n){if(1&t&&(bi(),Qe(0,"circle",4)),2&t){const e=Ae(),i=Di(1);Br("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Un("r",e._getCircleRadius())}}function _Pe(t,n){if(1&t&&(bi(),Qe(0,"circle",4)),2&t){const e=Ae(),i=Di(1);Br("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Un("r",e._getCircleRadius())}}const vPe=Ph(class{constructor(t){this._elementRef=t}},"primary"),bPe=new ui("mat-progress-spinner-default-options",{providedIn:"root",factory:function xPe(){return{diameter:100}}});class Qp extends vPe{constructor(n,e,i,o,r,a,l,u){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=Se.EMPTY,this.mode="determinate";const f=Qp._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),f.has(i.head)||f.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&a&&u&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&u.run(()=>a.markForCheck())}))}get diameter(){return this._diameter}set diameter(n){this._diameter=Vc(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Vc(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Vc(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=Pw(n)||this._document.head,this._attachStyleNode(),n.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(n){var e;const i=50*(null!==(e=n.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=Qp._diameters;let o=i.get(n);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),o||(o=new Set,i.set(n,o)),o.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Qp._diameters=new WeakMap,Qp.\u0275fac=function(n){return new(n||Qp)(ue(Ti),ue(rc),ue(vr,8),ue(E1,8),ue(bPe),ue(Xr),ue(Df),ue(oo))},Qp.\u0275cmp=vn({type:Qp,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(Un("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Br("width",e.diameter,"px")("height",e.diameter,"px"),po("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[ei],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(bi(),H(0,"svg",0,1),ke(2,mPe,1,11,"circle",2),ke(3,_Pe,1,9,"circle",3),G()),2&n&&(Br("width",e.diameter,"px")("height",e.diameter,"px"),J("ngSwitch","indeterminate"===e.mode),Un("viewBox",e._getViewBox()),W(2),J("ngSwitchCase",!0),W(1),J("ngSwitchCase",!1))},directives:[bd,iu],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let lC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo,va],Xo]}),t})();const wPe=["input"],MPe=function(t){return{enterDuration:t}},OPe=["*"],SPe=new ui("mat-radio-default-options",{providedIn:"root",factory:function PPe(){return{color:"accent"}}});let rQ=0;const TPe={provide:L1,useExisting:nt(()=>gM),multi:!0};class aQ{constructor(n,e){this.source=n,this.value=e}}const sQ=new ui("MatRadioGroup");let EPe=(()=>{class t{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+rQ++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new In}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=no(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=no(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new aQ(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr))},t.\u0275dir=St({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})(),gM=(()=>{class t extends EPe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,i,o){if(1&e&&mr(o,mM,5),2&e){let r;fi(r=gi())&&(i._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[mo([TPe,{provide:sQ,useExisting:t}]),ei]}),t})();class APe{constructor(n){this._elementRef=n}}const LPe=$u(Hg(APe));let DPe=(()=>{class t extends LPe{constructor(e,i,o,r,a,l,u,f){super(i),this._changeDetector=o,this._focusMonitor=r,this._radioDispatcher=a,this._providerOverride=u,this._uniqueId="mat-radio-"+ ++rQ,this.id=this._uniqueId,this.change=new In,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===l,f&&(this.tabIndex=Vc(f,0)),this._removeUniqueSelectionListener=a.listen((M,T)=>{M!==this.id&&T===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const i=no(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(no(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=no(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new aQ(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){var e;const i=this.radioGroup;let o;if(o=i&&i.selected&&!this.disabled?i.selected===this?this.tabIndex:-1:this.tabIndex,o!==this._previousTabIndex){const r=null===(e=this._inputElement)||void 0===e?void 0:e.nativeElement;r&&(r.setAttribute("tabindex",o+""),this._previousTabIndex=o)}}}return t.\u0275fac=function(e){kp()},t.\u0275dir=St({type:t,viewQuery:function(e,i){if(1&e&&_o(wPe,5),2&e){let o;fi(o=gi())&&(i._inputElement=o.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[ei]}),t})(),mM=(()=>{class t extends DPe{constructor(e,i,o,r,a,l,u,f){super(e,i,o,r,a,l,u,f)}}return t.\u0275fac=function(e){return new(e||t)(ue(sQ,8),ue(Ti),ue(Xr),ue(P2),ue(EMe),ue(E1,8),ue(SPe,8),Yl("tabindex"))},t.\u0275cmp=vn({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,i){1&e&&et("focus",function(){return i._inputElement.nativeElement.focus()}),2&e&&(Un("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),po("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ei],ngContentSelectors:OPe,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,i){if(1&e&&(ls(),H(0,"label",0,1)(2,"span",2),Qe(3,"span",3)(4,"span",4),H(5,"input",5,6),et("change",function(r){return i._onInputInteraction(r)})("click",function(r){return i._onInputClick(r)}),G(),H(7,"span",7),Qe(8,"span",8),G()(),H(9,"span",9)(10,"span",10),de(11,"\xa0"),G(),Vr(12),G()()),2&e){const o=Di(1);Un("for",i.inputId),W(5),J("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),Un("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),W(2),J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",wo(17,MPe,i._noopAnimations?0:150)),W(2),po("mat-radio-label-before","before"==i.labelPosition)}},directives:[Th],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),dC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Kd,Xo],Xo]}),t})(),cQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})(),_M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[cQ,Kd,Xo,z9],cQ,Xo]}),t})(),uQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo],Xo]}),t})();function nTe(t,n){if(1&t){const e=Ln();H(0,"div",2)(1,"button",3),et("click",function(){return Dt(e),Ae().action()}),de(2),G()()}if(2&t){const e=Ae();W(2),qo(e.data.action)}}function iTe(t,n){}const hQ=new ui("MatSnackBarData");class CM{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const oTe=Math.pow(2,31)-1;class Xk{constructor(n,e){this._overlayRef=e,this._afterDismissed=new N,this._afterOpened=new N,this._onAction=new N,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,oTe))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let rTe=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(ue(Xk),ue(hQ))},t.\u0275cmp=vn({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(H(0,"span",0),de(1),G(),ke(2,nTe,3,1,"div",1)),2&e&&(W(1),qo(i.data.message),W(1),J("ngIf",i.hasAction))},directives:[Fo,Yi],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const aTe={snackBarState:na("state",[cr("void, hidden",ti({transform:"scale(0.8)",opacity:0})),cr("visible",ti({transform:"scale(1)",opacity:1})),Do("* => visible",Mo("150ms cubic-bezier(0, 0, 0.2, 1)")),Do("* => void, * => hidden",Mo("75ms cubic-bezier(0.4, 0.0, 1, 1)",ti({opacity:0})))])};let sTe=(()=>{class t extends $w{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new N,this._onExit=new N,this._onEnter=new N,this._animationState="void",this.attachDomPortal=l=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(l)),this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Ja(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Ti),ue(Xr),ue(rc),ue(CM))},t.\u0275cmp=vn({type:t,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&_o(S6,7),2&e){let o;fi(o=gi())&&(i._portalOutlet=o.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&o6("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&a6("@state",i._animationState)},features:[ei],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,iTe,0,0,"ng-template",1),G(),Qe(2,"div")),2&e&&(W(2),Un("aria-live",i._live)("role",i._role))},directives:[S6],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[aTe.snackBarState]}}),t})(),F6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Gg,Vf,va,du,Xo],Xo]}),t})();const pQ=new ui("mat-snack-bar-default-options",{providedIn:"root",factory:function cTe(){return new CM}});let lTe=(()=>{class t{constructor(e,i,o,r,a,l){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=l,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r=Object.assign(Object.assign({},this._defaultConfig),o);return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=zs.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:CM,useValue:i}]}),a=new uu(this.snackBarContainerComponent,i.viewContainerRef,r),l=e.attach(a);return l.instance.snackBarConfig=i,l.instance}_attach(e,i){const o=Object.assign(Object.assign(Object.assign({},new CM),this._defaultConfig),i),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),l=new Xk(a,r);if(e instanceof Oc){const u=new O6(e,null,{$implicit:o.data,snackBarRef:l});l.instance=a.attachTemplatePortal(u)}else{const u=this._createInjector(o,l),f=new uu(e,void 0,u),M=a.attachComponentPortal(f);l.instance=M.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Yn(r.detachments())).subscribe(u=>{r.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Lh;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,l=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return zs.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Xk,useValue:i},{provide:hQ,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(qt($l),qt(QD),qt(zs),qt(Wk),qt(t,12),qt(pQ))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),vM=(()=>{class t extends lTe{constructor(e,i,o,r,a,l){super(e,i,o,r,a,l),this.simpleSnackBarComponent=rTe,this.snackBarContainerComponent=sTe,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(qt($l),qt(QD),qt(zs),qt(Wk),qt(t,12),qt(pQ))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:F6}),t})(),Qk=(()=>{class t{constructor(){this.changes=new N}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const uTe={provide:Qk,deps:[[new s1,new jd,Qk]],useFactory:function dTe(t){return t||new Qk}},hTe=new ui("MAT_SORT_DEFAULT_OPTIONS"),pTe=QW(E0(class{}));let fQ=(()=>{class t extends pTe{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new N,this.start="asc",this._direction="",this.sortChange=new In}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=no(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,o,r;if(!e)return"";const a=null!==(o=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==o?o:!!(null===(r=this._defaultOptions)||void 0===r?void 0:r.disableClear);let l=function fTe(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,a),u=l.indexOf(this.direction)+1;return u>=l.length&&(u=0),l[u]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(hTe,8))},t.\u0275dir=St({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ei,Yo]}),t})(),gQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[uTe],imports:[[va,Xo]]}),t})(),gTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Lf]]}),t})(),Zk=(()=>{class t{constructor(){this.changes=new N,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const STe={provide:Zk,deps:[[new s1,new jd,Zk]],useFactory:function OTe(t){return t||new Zk}};let _Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[STe,x6],imports:[[Xo,va,Vf,du,gTe,L0,Kd],Xo]}),t})();function Kk(t){return!!t&&(t instanceof Wt||_e(t.lift)&&_e(t.subscribe))}const PTe=[[["caption"]],[["colgroup"],["col"]]],TTe=["caption","colgroup, col"];function Jk(t){return class extends t{constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=no(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}}}const H6=new ui("CDK_TABLE");let qf=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkCellDef",""]]}),t})(),$f=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),bM=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class DTe{}const kTe=Jk(DTe);let Ih=(()=>{class t extends kTe{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=no(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(ue(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,o){if(1&e&&(mr(o,qf,5),mr(o,$f,5),mr(o,bM,5)),2&e){let r;fi(r=gi())&&(i.cell=r.first),fi(r=gi())&&(i.headerCell=r.first),fi(r=gi())&&(i.footerCell=r.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[mo([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ei]}),t})();class eI{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let tI=(()=>{class t extends eI{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ih),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ei]}),t})(),nI=(()=>{class t extends eI{constructor(e,i){var o;if(super(e,i),1===(null===(o=e._table)||void 0===o?void 0:o._elementRef.nativeElement.nodeType)){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ih),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ei]}),t})();class vQ{constructor(){this.tasks=[],this.endTasks=[]}}const iI=new ui("_COALESCED_STYLE_SCHEDULER");let bQ=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new N}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new vQ,this._getScheduleObservable().pipe(Yn(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new vQ;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Ra(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Ja(1))}}return t.\u0275fac=function(e){return new(e||t)(qt(oo))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),oI=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof hC?e.headerCell.template:this instanceof pC?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc),ue(nu))},t.\u0275dir=St({type:t,features:[Yo]}),t})();class ITe extends oI{}const NTe=Jk(ITe);let hC=(()=>{class t extends NTe{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc),ue(nu),ue(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ei,Yo]}),t})();class RTe extends oI{}const zTe=Jk(RTe);let pC=(()=>{class t extends zTe{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc),ue(nu),ue(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ei,Yo]}),t})(),xM=(()=>{class t extends oI{constructor(e,i,o){super(e,i),this._table=o}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc),ue(nu),ue(H6,8))},t.\u0275dir=St({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ei]}),t})(),Zp=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(ue(oc))},t.\u0275dir=St({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),rI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Zp],encapsulation:2}),t})(),sI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Zp],encapsulation:2}),t})(),yM=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc))},t.\u0275dir=St({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const xQ=["top","bottom","left","right"];class FTe{constructor(n,e,i,o,r=!0,a=!0,l){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const o of n)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let r=0;r{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(n,e,i,o=!0){if(!n.length||!this._isBrowser||!e.some(U=>U)&&!i.some(U=>U))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],a=r.children.length,l=this._getCellWidths(r,o),u=this._getStickyStartColumnPositions(l,e),f=this._getStickyEndColumnPositions(l,i),M=e.lastIndexOf(!0),T=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const U="rtl"===this.direction,ie=U?"right":"left",se=U?"left":"right";for(const Me of n)for(let we=0;wee[we]?Me:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===T?[]:l.slice(T).map((Me,we)=>i[we+T]?Me:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const o="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,a=[],l=[],u=[];for(let M=0,T=0;M{var M,T;for(let U=0;U{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);xQ.some(o=>-1===e.indexOf(o)&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of xQ)n.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=o,o+=n[r]);return i}}const cI=new ui("CDK_SPL");let wM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["","rowOutlet",""]]}),t})(),MM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),OM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),SM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(Ti))},t.\u0275dir=St({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),PM=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T,U,ie){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=M,this._viewportRuler=T,this._stickyPositioningListener=U,this._ngZone=ie,this._onDestroy=new N,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new In,this.viewChange=new Io({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=no(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=no(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Yn(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),lM(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&oo.isInAngularZone()?this._ngZone.onStable.pipe(Ja(1),Yn(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const r=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const r=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{const a=[];for(let l=0;l{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const l=o&&o.has(a)?o.get(a):[];if(l.length){const u=l.shift();return u.dataIndex=i,u}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),TM(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=TM(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=TM(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=TM(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,l)=>a||!!l.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||o||r}_switchDataSource(e){this._data=[],lM(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;lM(this.dataSource)?e=this.dataSource.connect(this):Kk(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=rr(this.dataSource)),this._renderChangeSubscription=e.pipe(Yn(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const o=Array.from(i.columns||[]).map(l=>this._columnDefsByName.get(l)),r=o.map(l=>l.sticky),a=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!r.when||r.when(i,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;r&&o.push(r)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,r={}){const a=e.viewContainer.createEmbeddedView(i.template,r,o);return this._renderCellTemplateForItem(i,r),a}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))Zp.mostRecentCellOutlet&&Zp.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of i){const r=this._document.createElement(o.tag);r.setAttribute("role","rowgroup");for(const a of o.outlets)r.appendChild(a.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new FTe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:rr()).pipe(Yn(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(i){const r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];1===r.rootNodes.length&&(null==a?void 0:a.nodeType)===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}return t.\u0275fac=function(e){return new(e||t)(ue(nu),ue(Xr),ue(Ti),Yl("role"),ue(Sl,8),ue(vr),ue(rc),ue(Q9),ue(iI),ue(Df),ue(cI,12),ue(oo,8))},t.\u0275cmp=vn({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,o){if(1&e&&(mr(o,yM,5),mr(o,Ih,5),mr(o,xM,5),mr(o,hC,5),mr(o,pC,5)),2&e){let r;fi(r=gi())&&(i._noDataRow=r.first),fi(r=gi())&&(i._contentColumnDefs=r),fi(r=gi())&&(i._contentRowDefs=r),fi(r=gi())&&(i._contentHeaderRowDefs=r),fi(r=gi())&&(i._contentFooterRowDefs=r)}},viewQuery:function(e,i){if(1&e&&(_o(wM,7),_o(MM,7),_o(OM,7),_o(SM,7)),2&e){let o;fi(o=gi())&&(i._rowOutlet=o.first),fi(o=gi())&&(i._headerRowOutlet=o.first),fi(o=gi())&&(i._footerRowOutlet=o.first),fi(o=gi())&&(i._noDataRowOutlet=o.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&po("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[mo([{provide:H6,useExisting:t},{provide:Q9,useClass:rX},{provide:iI,useClass:bQ},{provide:cI,useValue:null}])],ngContentSelectors:TTe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(ls(PTe),Vr(0),Vr(1,1),Fc(2,0)(3,1)(4,2)(5,3))},directives:[MM,wM,SM,OM],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function TM(t,n){return t.concat(Array.from(n))}let lI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[I9]]}),t})();const VTe=[[["caption"]],[["colgroup"],["col"]]],BTe=["caption","colgroup, col"];let $g=(()=>{class t extends PM{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&po("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[mo([{provide:Q9,useClass:rX},{provide:PM,useExisting:t},{provide:H6,useExisting:t},{provide:iI,useClass:bQ},{provide:cI,useValue:null}]),ei],ngContentSelectors:BTe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(ls(VTe),Vr(0),Vr(1,1),Fc(2,0)(3,1)(4,2)(5,3))},directives:[MM,wM,SM,OM],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})(),Xf=(()=>{class t extends qf{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matCellDef",""]],features:[mo([{provide:qf,useExisting:t}]),ei]}),t})(),Qf=(()=>{class t extends $f{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matHeaderCellDef",""]],features:[mo([{provide:$f,useExisting:t}]),ei]}),t})(),Zf=(()=>{class t extends Ih{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[mo([{provide:Ih,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ei]}),t})(),Kf=(()=>{class t extends tI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ei]}),t})(),Jf=(()=>{class t extends nI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ei]}),t})(),Xg=(()=>{class t extends hC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[mo([{provide:hC,useExisting:t}]),ei]}),t})(),Qg=(()=>{class t extends xM{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[mo([{provide:xM,useExisting:t}]),ei]}),t})(),Zg=(()=>{class t extends rI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[mo([{provide:rI,useExisting:t}]),ei],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Zp],encapsulation:2}),t})(),Kg=(()=>{class t extends sI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[mo([{provide:sI,useExisting:t}]),ei],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[Zp],encapsulation:2}),t})(),fC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[lI,Xo],Xo]}),t})();class KTe extends oX{constructor(n=[]){super(),this._renderData=new Io([]),this._filter=new Io(""),this._internalPageChanges=new N,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(OW(o)){const r=Number(o);return r<9007199254740991?r:o}return o},this.sortData=(e,i)=>{const o=i.active,r=i.direction;return o&&""!=r?e.sort((a,l)=>{let u=this.sortingDataAccessor(a,o),f=this.sortingDataAccessor(l,o);const M=typeof u,T=typeof f;M!==T&&("number"===M&&(u+=""),"number"===T&&(f+=""));let U=0;return null!=u&&null!=f?u>f?U=1:u{const o=Object.keys(e).reduce((a,l)=>a+e[l]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=o.indexOf(r)},this._data=new Io(n),this._updateChangeSubscription()}get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_updateChangeSubscription(){var n;const e=this._sort?kr(this._sort.sortChange,this._sort.initialized):rr(null),i=this._paginator?kr(this._paginator.page,this._internalPageChanges,this._paginator.initialized):rr(null),r=h9([this._data,this._filter]).pipe(it(([u])=>this._filterData(u))),a=h9([r,e]).pipe(it(([u])=>this._orderData(u))),l=h9([a,i]).pipe(it(([u])=>this._pageData(u)));null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=l.subscribe(u=>this._renderData.next(u))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var n;null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=null}}class EM extends KTe{}let wQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Xo,Vf,Kd,z9,Nw],Xo]}),t})();const iEe=["*",[["mat-toolbar-row"]]],oEe=["*","mat-toolbar-row"],rEe=Ph(class{constructor(t){this._elementRef=t}});let Kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Jp=(()=>{class t extends rEe{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(rc),ue(vr))},t.\u0275cmp=vn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,o){if(1&e&&mr(o,Kp,5),2&e){let r;fi(r=gi())&&(i._toolbarRows=r)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&po("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ei],ngContentSelectors:oEe,decls:2,vars:0,template:function(e,i){1&e&&(ls(iEe),Vr(0),Vr(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),dI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Xo],Xo]}),t})(),MQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Nw,Xo],Xo]}),t})(),OQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[X9,du,Z9,uX,gX,K9,nC,D6,zX,jg,HX,L0,J9,hM,k6,ZW,cC,qw,lC,dC,Kd,jk,Ff,uQ,_M,F6,_Q,gQ,fC,wQ,dI,R6,lI,MQ],X9,du,Z9,uX,gX,K9,nC,D6,zX,HX,L0,J9,hM,k6,ZW,cC,qw,lC,dC,Kd,jk,Ff,uQ,_M,F6,_Q,gQ,fC,wQ,dI,R6,lI,MQ]}),t})(),uEe=(()=>{class t extends el{constructor(e,i,o,r,a,l,u){super(e,null,i,o),this.ngClassInstance=u,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new ds(r,a,e,l)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Pc),ue(Bc),ue(nu),ue(Of),ue(yl),ue(ds,10))},t.\u0275dir=St({type:t,inputs:{klass:["class","klass"]},features:[ei]}),t})();const hEe=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ac=(()=>{class t extends uEe{constructor(){super(...arguments),this.inputs=hEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[ei]}),t})();class _Ee{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function SQ(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function TQ(t){const[n,...e]=t.split(":");return new _Ee(n,e.join(":"))}function EQ(t,n){return n.key&&(t[n.key]=n.value),t}let bEe=(()=>{class t extends el{constructor(e,i,o,r,a,l,u,f,M){var T;super(e,null,i,o),this.sanitizer=r,this.ngStyleInstance=u,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Og(e,a,l)),this.init();const U=null!==(T=this.nativeElement.getAttribute("style"))&&void 0!==T?T:"";this.fallbackStyles=this.buildStyleMap(U),this.isServer=f&&ou(M)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=o=>{var r;return null!==(r=this.sanitizer.sanitize(Za.STYLE,o))&&void 0!==r?r:""};if(e)switch(SQ(e)){case"string":return AQ(function CEe(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return AQ(e,i);default:return function PQ(t,n){let e=[];return"set"===SQ(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function vEe(t,n){return t.map(TQ).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(EQ,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Pc),ue(Bc),ue(r9),ue(Of),ue(yl),ue(Og,10),ue(y6),ue(Hc))},t.\u0275dir=St({type:t,features:[ei]}),t})();const xEe=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let hI=(()=>{class t extends bEe{constructor(){super(...arguments),this.inputs=xEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[ei]}),t})();function AQ(t,n){return t.map(TQ).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(EQ,{})}let LQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[ck]]}),t})(),yEe=(()=>{class t extends dl{buildStyles(e,{display:i}){const o=hq(e);return Object.assign(Object.assign({},o),{display:"none"===i?i:o.display})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wEe=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let MEe=(()=>{class t extends el{constructor(e,i,o,r,a){super(e,o,i,r),this._config=a,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=DQ.get(r))&&void 0!==i?i:new Map,DQ.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Pc),ue(yEe),ue(Bc),ue(Eh))},t.\u0275dir=St({type:t,features:[ei]}),t})(),Oo=(()=>{class t extends MEe{constructor(){super(...arguments),this.inputs=wEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[ei]}),t})();const DQ=new Map;let REe=(()=>{class t extends dl{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[o,r,...a]=e.split(" "),l=a.join(" ");const u=i.direction.indexOf("column")>-1?"column":"row",f=H9(u)?"max-width":"max-height",M=H9(u)?"min-width":"min-height",T=String(l).indexOf("calc")>-1,U=T||"auto"===l,ie=String(l).indexOf("%")>-1&&!T,se=String(l).indexOf("px")>-1||String(l).indexOf("rem")>-1||String(l).indexOf("em")>-1||String(l).indexOf("vw")>-1||String(l).indexOf("vh")>-1;let Me=T||se;o="0"==o?0:o,r="0"==r?0:r;const we=!o&&!r;let He={};const Be={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(l||""){case"":const me=!1!==this.layoutConfig.useColumnBasisZero;l="row"===u?"0%":me?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,l="auto";break;case"grow":l="100%";break;case"noshrink":r=0,l="auto";break;case"auto":break;case"none":o=0,r=0,l="auto";break;default:!Me&&!ie&&!isNaN(l)&&(l+="%"),"0%"===l&&(Me=!0),"0px"===l&&(l="0%"),He=Wp(Be,T?{"flex-grow":o,"flex-shrink":r,"flex-basis":Me?l:"100%"}:{flex:`${o} ${r} ${Me?l:"100%"}`})}return He.flex||He["flex-grow"]||(He=Wp(Be,T?{"flex-grow":o,"flex-shrink":r,"flex-basis":l}:{flex:`${o} ${r} ${l}`})),"0%"!==l&&"0px"!==l&&"0.000000001px"!==l&&"auto"!==l&&(He[M]=we||Me&&o?l:null,He[f]=we||!U&&r?l:null),He[M]||He[f]?i.hasWrap&&(He[T?"flex-basis":"flex"]=He[f]?T?He[f]:`${o} ${r} ${He[f]}`:T?He[M]:`${o} ${r} ${He[M]}`):He=Wp(Be,T?{"flex-grow":o,"flex-shrink":r,"flex-basis":l}:{flex:`${o} ${r} ${l}`}),Wp(He,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(qt(Eh))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const zEe=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let FEe=(()=>{class t extends el{constructor(e,i,o,r,a){super(e,r,i,a),this.layoutConfig=o,this.marshal=a,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Yn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Yn(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const o=e.value.split(" ");this.direction=o[0],this.wrap=void 0!==o[1]&&"wrap"===o[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const o=this.direction,r=o.startsWith("row"),a=this.wrap;r&&a?this.styleCache=BEe:r&&!a?this.styleCache=HEe:!r&&a?this.styleCache=GEe:!r&&!a&&(this.styleCache=VEe);const u=Oq(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(u.join(" "),{direction:o,hasWrap:a})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=Oq(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Pc),ue(Eh),ue(REe),ue(Bc))},t.\u0275dir=St({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[ei]}),t})(),ko=(()=>{class t extends FEe{constructor(){super(...arguments),this.inputs=zEe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[ei]}),t})();const HEe=new Map,VEe=new Map,BEe=new Map,GEe=new Map;let uAe=(()=>{class t extends dl{buildStyles(e,i){const o={},[r,a]=e.split(" ");switch(r){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;default:o["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;default:o["align-items"]=o["align-content"]="stretch"}return Wp(o,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===a?H9(i.layout)?null:"100%":null,"max-height":"stretch"===a&&H9(i.layout)?"100%":null})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hAe=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let pAe=(()=>{class t extends el{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Yn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",o=this.inline;"row"===i&&o?this.styleCache=CAe:"row"!==i||o?"row-reverse"===i&&o?this.styleCache=bAe:"row-reverse"!==i||o?"column"===i&&o?this.styleCache=vAe:"column"!==i||o?"column-reverse"===i&&o?this.styleCache=xAe:"column-reverse"===i&&!o&&(this.styleCache=_Ae):this.styleCache=gAe:this.styleCache=mAe:this.styleCache=fAe,this.addStyles(e,{layout:i,inline:o})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),Vw.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Pc),ue(uAe),ue(Bc))},t.\u0275dir=St({type:t,features:[ei]}),t})(),So=(()=>{class t extends pAe{constructor(){super(...arguments),this.inputs=hAe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[ei]}),t})();const fAe=new Map,gAe=new Map,mAe=new Map,_Ae=new Map,CAe=new Map,vAe=new Map,bAe=new Map,xAe=new Map;let NQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[ck,Lf]]}),t})(),YQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[ck]]}),t})(),LM=(()=>{class t{constructor(e,i){ou(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Eh,useValue:Object.assign(Object.assign({},lk),e)},{provide:dk,useValue:i,multi:!0},{provide:y6,useValue:!0}]:[{provide:Eh,useValue:Object.assign(Object.assign({},lk),e)},{provide:dk,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(qt(y6),qt(Hc))},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[NQ,LQ,YQ],NQ,LQ,YQ]}),t})(),UQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[]]}),t})(),jQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[]]}),t})();function pI(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const o=n[i];o?t.setProperty(i,o,(null==e?void 0:e.has(i))?"important":""):t.removeProperty(i)}return t}function V6(t,n){const e=n?"":"none";pI(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function WQ(t,n,e){pI(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function DM(t,n){return n&&"none"!=n?t+" "+n:t}function qQ(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function fI(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function gI(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function mI(t,n,e){const{top:i,bottom:o,left:r,right:a}=t;return e>=i&&e<=o&&n>=r&&n<=a}function gC(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function $Q(t,n,e,i){const{top:o,right:r,bottom:a,left:l,width:u,height:f}=t,M=u*n,T=f*n;return i>o-T&&il-M&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:gI(e)})})}handleScroll(n){const e=ju(n),i=this.positions.get(e);if(!i)return null;const o=i.scrollPosition;let r,a;if(e===this._document){const f=this.getViewportScrollPosition();r=f.top,a=f.left}else r=e.scrollTop,a=e.scrollLeft;const l=o.top-r,u=o.left-a;return this.positions.forEach((f,M)=>{f.clientRect&&e!==M&&e.contains(M)&&gC(f.clientRect,l,u)}),o.top=r,o.left=a,{top:l,left:u}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function QQ(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const u=this._getTargetHandle(l);u&&!this._disabledHandles.has(u)&&!this.disabled&&this._initializeDragSequence(u,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const u=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(u.x-this._pickupPositionOnPage.x)+Math.abs(u.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const ie=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),se=this._dropContainer;if(!ie)return void this._endDragSequence(l);(!se||!se.isDragging()&&!se.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const f=this._getConstrainedPointerPosition(u);if(this._hasMoved=!0,this._lastKnownPointerPosition=u,this._updatePointerDirectionDelta(f),this._dropContainer)this._updateActiveDropContainer(f,u);else{const M=this._activeTransform;M.x=f.x-this._pickupPositionOnPage.x+this._passiveTransform.x,M.y=f.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(M.x,M.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:f,event:l,distance:this._getDragDistance(f),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const u=this._getTargetHandle(l);u&&!this._disabledHandles.has(u)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new XQ(i),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){const e=no(n);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>V6(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>Ol(i)),this._handles.forEach(i=>V6(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=Ol(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,kM),e.addEventListener("touchstart",this._pointerDown,eZ),e.addEventListener("dragstart",this._nativeDragStart,kM)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Ol(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){var n,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(n=this._rootElement)||void 0===n||n.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),V6(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),V6(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var n,e;null===(n=this._preview)||void 0===n||n.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var n,e;null===(n=this._placeholder)||void 0===n||n.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){mC(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,o=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();o.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),WQ(i,!1,_I),this._document.body.appendChild(o.replaceChild(r,i)),this._getPreviewInsertionPoint(o,l).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),o=mC(e),r=!o&&0!==e.button,a=this._rootElement,l=ju(e),u=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),f=o?kw(e):Dw(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),i||r||u||f)return;if(this._handles.length){const U=a.style;this._rootElementTapHighlight=U.webkitTapHighlightColor||"",U.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(U=>this._updateOnScroll(U)),this._boundaryElement&&(this._boundaryRect=gI(this._boundaryElement));const M=this._previewTemplate;this._pickupPositionInElement=M&&M.template&&!M.matchSize?{x:0,y:0}:this._getPointerPositionInElement(n,e);const T=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:T.x,y:T.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){WQ(this._rootElement,!0,_I),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),o=this._getPointerPositionOnPage(n),r=this._getDragDistance(o),a=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:o}),e.drop(this,i,this._initialIndex,this._initialContainer,a,r,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,n,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,o),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let o;if(i&&n){const r=n.matchSize?this._rootElement.getBoundingClientRect():null,a=n.viewContainer.createEmbeddedView(i,n.context);a.detectChanges(),o=nZ(a,this._document),this._previewRef=a,n.matchSize?iZ(o,r):o.style.transform=IM(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const r=this._rootElement;o=QQ(r),iZ(o,r.getBoundingClientRect()),this._initialTransform&&(o.style.transform=this._initialTransform)}return pI(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},_I),V6(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>o.classList.add(r)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function ULe(t){const n=getComputedStyle(t),e=fI(n,"transition-property"),i=e.find(l=>"transform"===l||"all"===l);if(!i)return 0;const o=e.indexOf(i),r=fI(n,"transition-duration"),a=fI(n,"transition-delay");return qQ(r[o])+qQ(a[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const o=a=>{var l;(!a||ju(a)===this._preview&&"transform"===a.propertyName)&&(null===(l=this._preview)||void 0===l||l.removeEventListener("transitionend",o),i(),clearTimeout(r))},r=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=nZ(this._placeholderRef,this._document)):i=QQ(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e){const i=this._rootElement.getBoundingClientRect(),o=n===this._rootElement?null:n,r=o?o.getBoundingClientRect():i,a=mC(e)?e.targetTouches[0]:e,l=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-l.left),y:r.top-i.top+(a.pageY-r.top-l.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=mC(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,o=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const l=this._ownerSVGElement.createSVGPoint();return l.x=o,l.y=r,l.matrixTransform(a.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:o}=this.constrainPosition?this.constrainPosition(n,this):n;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,l=this._boundaryRect,{width:u,height:f}=this._getPreviewRect(),M=l.top+a,T=l.bottom-(f-a);i=tZ(i,l.left+r,l.right-(u-r)),o=tZ(o,M,T)}return{x:i,y:o}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),l=Math.abs(i-r.y);return a>this._config.pointerDirectionChangeThreshold&&(o.x=e>r.x?1:-1,r.x=e),l>this._config.pointerDirectionChangeThreshold&&(o.y=i>r.y?1:-1,r.y=i),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,V6(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,kM),n.removeEventListener("touchstart",this._pointerDown,eZ),n.removeEventListener("dragstart",this._nativeDragStart,kM)}_applyRootElementTransform(n,e){const i=IM(n,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=DM(i,this._initialTransform)}_applyPreviewTransform(n,e){var i;const o=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=IM(n,e);this._preview.style.transform=DM(r,o)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),o=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===o.width&&0===o.height)return;const r=i.left-o.left,a=o.right-i.right,l=i.top-o.top,u=o.bottom-i.bottom;i.width>o.width?(r>0&&(n+=r),a>0&&(n-=a)):n=0,i.height>o.height?(l>0&&(e+=l),u>0&&(e-=u)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:mC(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=ju(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&gC(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var n;return(null===(n=this._parentPositions.positions.get(this._document))||void 0===n?void 0:n.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Pw(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Ol(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function IM(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function tZ(t,n,e){return Math.max(n,Math.min(e,t))}function mC(t){return"t"===t.type[0]}function nZ(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(o=>i.appendChild(o)),i}function iZ(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=IM(n.left,n.top)}function oZ(t,n,e){const i=_C(n,t.length-1),o=_C(e,t.length-1);if(i===o)return;const r=t[i],a=o!0,this.sortPredicate=()=>!0,this.beforeStarted=new N,this.entered=new N,this.exited=new N,this.dropped=new N,this.sorted=new N,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Se.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new N,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function YLe(t=0,n=T9){return t<0&&(t=0),zD(t,t,n)}(0,EW).pipe(Yn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-l):2===this._verticalScrollDirection&&a.scrollBy(0,l),1===this._horizontalScrollDirection?a.scrollBy(-l,0):2===this._horizontalScrollDirection&&a.scrollBy(l,0)})},this.element=Ol(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new XQ(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,o){let r;this._draggingStarted(),null==o?(r=this.sortingDisabled?this._draggables.indexOf(n):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(n,e,i))):r=o;const a=this._activeDraggables,l=a.indexOf(n),u=n.getPlaceholderElement();let f=a[r];if(f===n&&(f=a[r+1]),!f&&(null==r||-1===r||r-1&&a.splice(l,1),f&&!this._dragDropRegistry.isDragging(f)){const M=f.getRootElement();M.parentElement.insertBefore(u,M),a.splice(r,0,n)}else Ol(this.element).appendChild(u),a.push(n);u.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,o,r,a,l){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:o,isPointerOverContainer:r,distance:a,dropPoint:l})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===n.indexOf(o))?this._reset():this._cacheItems()),this}withDirection(n){return this._direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._orientation=n,this}withScrollableParents(n){const e=Ol(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,o){if(this.sortingDisabled||!this._clientRect||!$Q(this._clientRect,.05,e,i))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(n,e,i,o);if(-1===a&&r.length>0)return;const l="horizontal"===this._orientation,u=r.findIndex(we=>we.drag===n),f=r[a],T=f.clientRect,U=u>a?1:-1,ie=this._getItemOffsetPx(r[u].clientRect,T,U),se=this._getSiblingOffsetPx(u,r,U),Me=r.slice();oZ(r,u,a),this.sorted.next({previousIndex:u,currentIndex:a,container:this,item:n}),r.forEach((we,He)=>{if(Me[He]===we)return;const Be=we.drag===n,me=Be?ie:se,ze=Be?n.getPlaceholderElement():we.drag.getRootElement();we.offset+=me,l?(ze.style.transform=DM(`translate3d(${Math.round(we.offset)}px, 0, 0)`,we.initialTransform),gC(we.clientRect,0,me)):(ze.style.transform=DM(`translate3d(0, ${Math.round(we.offset)}px, 0)`,we.initialTransform),gC(we.clientRect,me,0))}),this._previousSwap.overlaps=mI(T,e,i),this._previousSwap.drag=f.drag,this._previousSwap.delta=l?o.x:o.y}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,o=0,r=0;if(this._parentPositions.positions.forEach((a,l)=>{l===this._document||!a.clientRect||i||$Q(a.clientRect,.05,n,e)&&([o,r]=function QLe(t,n,e,i){const o=sZ(n,i),r=cZ(n,e);let a=0,l=0;if(o){const u=t.scrollTop;1===o?u>0&&(a=1):t.scrollHeight-u>t.clientHeight&&(a=2)}if(r){const u=t.scrollLeft;1===r?u>0&&(l=1):t.scrollWidth-u>t.clientWidth&&(l=2)}return[a,l]}(l,a.clientRect,n,e),(o||r)&&(i=l))}),!o&&!r){const{width:a,height:l}=this._viewportRuler.getViewportSize(),u={width:a,height:l,top:0,right:a,bottom:l,left:0};o=sZ(u,e),r=cZ(u,n),i=window}i&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=i,(o||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=Ol(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=Ol(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_cacheItemPositions(){const n="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:gI(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const n=Ol(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var i;const o=e.getRootElement();if(o){const r=null===(i=this._itemPositions.find(a=>a.drag===e))||void 0===i?void 0:i.initialTransform;o.style.transform=r||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(n,e,i){const o="horizontal"===this._orientation,r=e[n].clientRect,a=e[n+-1*i];let l=r[o?"width":"height"]*i;if(a){const u=o?"left":"top",f=o?"right":"bottom";-1===i?l-=a.clientRect[u]-r[f]:l+=r[u]-a.clientRect[f]}return l}_getItemOffsetPx(n,e,i){const o="horizontal"===this._orientation;let r=o?e.left-n.left:e.top-n.top;return-1===i&&(r+=o?e.width-n.width:e.height-n.height),r}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,o="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return o?n>=a.right:e>=a.bottom}{const a=i[0].clientRect;return o?n<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(n,e,i,o){const r="horizontal"===this._orientation,a=this._itemPositions.findIndex(({drag:l,clientRect:u})=>{if(l===n)return!1;if(o){const f=r?o.x:o.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&f===this._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e=Math.floor(u.top)&&io._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._clientRect||!mI(this._clientRect,e,i)||!this.enterPredicate(n,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,i);if(!o)return!1;const r=Ol(this.element);return o===r||r.contains(o)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&(this._itemPositions.forEach(({clientRect:i})=>{gC(i,e.top,e.left)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=Pw(Ol(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function sZ(t,n){const{top:e,bottom:i,height:o}=t,r=.05*o;return n>=e-r&&n<=e+r?1:n>=i-r&&n<=i+r?2:0}function cZ(t,n){const{left:e,right:i,width:o}=t,r=.05*o;return n>=e-r&&n<=e+r?1:n>=i-r&&n<=i+r?2:0}const NM=Oh({passive:!1,capture:!0});let ZLe=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new N,this.pointerUp=new N,this.scroll=new N,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,NM)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,NM)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=i.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:NM}),o||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:NM}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new Wt(o=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&o.next(l)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),kr(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(vr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const KLe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let JLe=(()=>{class t{constructor(e,i,o,r){this._document=e,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=r}createDrag(e,i=KLe){return new qLe(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new XLe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(qt(vr),qt(oo),qt(Df),qt(ZLe))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[JLe],imports:[T0]}),t})();function eDe(){}function CI(t){return null==t?eDe:function(){return this.querySelector(t)}}function nDe(){return[]}function dZ(t){return null==t?nDe:function(){return this.querySelectorAll(t)}}function uZ(t){return function(){return this.matches(t)}}function hZ(t){return new Array(t.length)}function RM(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function sDe(t,n,e,i,o,r){for(var l,a=0,u=n.length,f=r.length;an?1:t>=n?0:NaN}RM.prototype={constructor:RM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var vI="http://www.w3.org/1999/xhtml";const fZ={svg:"http://www.w3.org/2000/svg",xhtml:vI,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zM(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),fZ.hasOwnProperty(n)?{space:fZ[n],local:t}:t}function yDe(t){return function(){this.removeAttribute(t)}}function wDe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function MDe(t,n){return function(){this.setAttribute(t,n)}}function ODe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function SDe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function PDe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function gZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function EDe(t){return function(){this.style.removeProperty(t)}}function ADe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function LDe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function B6(t,n){return t.style.getPropertyValue(n)||gZ(t).getComputedStyle(t,null).getPropertyValue(n)}function kDe(t){return function(){delete this[t]}}function IDe(t,n){return function(){this[t]=n}}function NDe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function mZ(t){return t.trim().split(/^|\s+/)}function bI(t){return t.classList||new _Z(t)}function _Z(t){this._node=t,this._names=mZ(t.getAttribute("class")||"")}function CZ(t,n){for(var e=bI(t),i=-1,o=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var xZ={},Jg=null;function uke(t,n,e){return t=yZ(t,n,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function yZ(t,n,e){return function(i){var o=Jg;Jg=i;try{t.call(this,this.__data__,n,e)}finally{Jg=o}}}function hke(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function pke(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,o=n.length;e=me&&(me=Be+1);!(qe=we[me])&&++me=0;)(a=i[o])&&(r&&4^a.compareDocumentPosition(r)&&r.parentNode.insertBefore(a,r),r=a);return this},sort:function fDe(t){function n(T,U){return T&&U?t(T.__data__,U.__data__):!T-!U}t||(t=gDe);for(var e=this._groups,i=e.length,o=new Array(i),r=0;r1?this.each((null==n?EDe:"function"==typeof n?LDe:ADe)(t,n,null==e?"":e)):B6(this.node(),t)},property:function RDe(t,n){return arguments.length>1?this.each((null==n?kDe:"function"==typeof n?NDe:IDe)(t,n)):this.node()[t]},classed:function VDe(t,n){var e=mZ(t+"");if(arguments.length<2){for(var i=bI(this.node()),o=-1,r=e.length;++o0)for(var u,i=t[0],o=n[0],r=t[e]-i,a=n[e]-o,l=-1;++l<=e;)this._basis.point(this._beta*t[l]+(1-this._beta)*(i+(u=l/e)*r),this._beta*n[l]+(1-this._beta)*(o+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const vke=function t(n){function e(i){return 1===n?new FM(i):new TZ(i,n)}return e.beta=function(i){return t(+i)},e}(.85);var xI=Math.PI,yI=2*xI,em=1e-6,bke=yI-em;function wI(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function EZ(){return new wI}wI.prototype=EZ.prototype={constructor:wI,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,o,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,n,e,i,o){var r=this._x1,a=this._y1,l=(e=+e)-(t=+t),u=(i=+i)-(n=+n),f=r-t,M=a-n,T=f*f+M*M;if((o=+o)<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(T>em)if(Math.abs(M*l-u*f)>em&&o){var U=e-r,ie=i-a,se=l*l+u*u,Me=U*U+ie*ie,we=Math.sqrt(se),He=Math.sqrt(T),Be=o*Math.tan((xI-Math.acos((se+T-Me)/(2*we*He)))/2),me=Be/He,ze=Be/we;Math.abs(me-1)>em&&(this._+="L"+(t+me*f)+","+(n+me*M)),this._+="A"+o+","+o+",0,0,"+ +(M*U>f*ie)+","+(this._x1=t+ze*l)+","+(this._y1=n+ze*u)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,o,r){t=+t,n=+n,r=!!r;var a=(e=+e)*Math.cos(i),l=e*Math.sin(i),u=t+a,f=n+l,M=1^r,T=r?i-o:o-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+u+","+f:(Math.abs(this._x1-u)>em||Math.abs(this._y1-f)>em)&&(this._+="L"+u+","+f),e&&(T<0&&(T=T%yI+yI),T>bke?this._+="A"+e+","+e+",0,1,"+M+","+(t-a)+","+(n-l)+"A"+e+","+e+",0,1,"+M+","+(this._x1=u)+","+(this._y1=f):T>em&&(this._+="A"+e+","+e+",0,"+ +(T>=xI)+","+M+","+(this._x1=t+e*Math.cos(o))+","+(this._y1=n+e*Math.sin(o))))},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 xke=EZ;function HM(t){return function(){return t}}function AZ(t){this._context=t}function yke(t){return new AZ(t)}function wke(t){return t[0]}function Mke(t){return t[1]}AZ.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var LZ=Math.PI;function kZ(t){return(1-Math.cos(LZ*t))/2}var Ske={value:function(){}};function IZ(){for(var i,t=0,n=arguments.length,e={};t=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function Tke(t,n){for(var o,e=0,i=t.length;e0)for(var o,r,e=new Array(o),i=0;i=0&&t._call.call(null,n),t=t._next;--G6}function VZ(){tm=(GM=yC.now())+YM,G6=vC=0;try{HZ()}finally{G6=0,function Lke(){for(var t,e,n=BM,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:BM=e);xC=t,OI(i)}(),tm=0}}function Ake(){var t=yC.now(),n=t-GM;n>1e3&&(YM-=n,GM=t)}function OI(t){G6||(vC&&(vC=clearTimeout(vC)),t-tm>24?(t<1/0&&(vC=setTimeout(VZ,t-yC.now()-YM)),bC&&(bC=clearInterval(bC))):(bC||(GM=yC.now(),bC=setInterval(Ake,1e3)),G6=1,FZ(VZ)))}function SI(t,n,e){var i=new wC;return i.restart(function(o){i.stop(),t(o+n)},n=null==n?0:+n,e),i}wC.prototype=MI.prototype={constructor:wC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Y6():+e)+(null==n?0:+n),!this._next&&xC!==this&&(xC?xC._next=this:BM=this,xC=this),this._call=t,this._time=e,OI()},stop:function(){this._call&&(this._call=null,this._time=1/0,OI())}};var Dke=RZ("start","end","cancel","interrupt"),kke=[];function WM(t,n,e,i,o,r){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function Ike(t,n,e){var o,i=t.__transition;function a(f){var M,T,U,ie;if(1!==e.state)return u();for(M in i)if((ie=i[M]).name===e.name){if(3===ie.state)return SI(a);4===ie.state?(ie.state=6,ie.timer.stop(),ie.on.call("interrupt",t,t.__data__,ie.index,ie.group),delete i[M]):+M0)throw new Error("too late; already scheduled");return e}function e3(t,n){var e=Nh(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Nh(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function e4(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var MC,LI,WZ,qM,UZ=180/Math.PI,AI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jZ(t,n,e,i,o,r){var a,l,u;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(u=t*e+n*i)&&(e-=t*u,i-=n*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i180?M+=360:M-f>180&&(f+=360),U.push({i:T.push(o(T)+"rotate(",null,i)-2,x:e4(f,M)})):M&&T.push(o(T)+"rotate("+M+i)}(f.rotate,M.rotate,T,U),function l(f,M,T,U){f!==M?U.push({i:T.push(o(T)+"skewX(",null,i)-2,x:e4(f,M)}):M&&T.push(o(T)+"skewX("+M+i)}(f.skewX,M.skewX,T,U),function u(f,M,T,U,ie,se){if(f!==T||M!==U){var Me=ie.push(o(ie)+"scale(",null,",",null,")");se.push({i:Me-4,x:e4(f,T)},{i:Me-2,x:e4(M,U)})}else(1!==T||1!==U)&&ie.push(o(ie)+"scale("+T+","+U+")")}(f.scaleX,f.scaleY,M.scaleX,M.scaleY,T,U),f=M=null,function(ie){for(var we,se=-1,Me=U.length;++se>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?XM(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?XM(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=jke.exec(t))?new fu(n[1],n[2],n[3],1):(n=Wke.exec(t))?new fu(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=qke.exec(t))?XM(n[1],n[2],n[3],n[4]):(n=$ke.exec(t))?XM(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xke.exec(t))?tK(n[1],n[2]/100,n[3]/100,1):(n=Qke.exec(t))?tK(n[1],n[2]/100,n[3]/100,n[4]):XZ.hasOwnProperty(t)?KZ(XZ[t]):"transparent"===t?new fu(NaN,NaN,NaN,0):null}function KZ(t){return new fu(t>>16&255,t>>8&255,255&t,1)}function XM(t,n,e,i){return i<=0&&(t=n=e=NaN),new fu(t,n,e,i)}function Kke(t){return t instanceof OC||(t=TC(t)),t?new fu((t=t.rgb()).r,t.g,t.b,t.opacity):new fu}function QM(t,n,e,i){return 1===arguments.length?Kke(t):new fu(t,n,e,null==i?1:i)}function fu(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function JZ(){return"#"+II(this.r)+II(this.g)+II(this.b)}function eK(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function II(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function tK(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new R0(t,n,e,i)}function nK(t){if(t instanceof R0)return new R0(t.h,t.s,t.l,t.opacity);if(t instanceof OC||(t=TC(t)),!t)return new R0;if(t instanceof R0)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,o=Math.min(n,e,i),r=Math.max(n,e,i),a=NaN,l=r-o,u=(r+o)/2;return l?(a=n===r?(e-i)/l+6*(e0&&u<1?0:a,new R0(a,l,u,t.opacity)}function R0(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function NI(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function iK(t,n,e,i,o){var r=t*t,a=r*t;return((1-3*t+3*r-a)*n+(4-6*r+3*a)*e+(1+3*t+3*r-3*a)*i+a*o)/6}function oK(t){return function(){return t}}function aK(t,n){var e=n-t;return e?function rK(t,n){return function(e){return t+e*n}}(t,e):oK(isNaN(t)?n:t)}kI(OC,TC,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:QZ,formatHex:QZ,formatHsl:function Zke(){return nK(this).formatHsl()},formatRgb:ZZ,toString:ZZ}),kI(fu,QM,$Z(OC,{brighter:function(t){return t=null==t?$M:Math.pow($M,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:JZ,formatHex:JZ,formatRgb:eK,toString:eK})),kI(R0,function Jke(t,n,e,i){return 1===arguments.length?nK(t):new R0(t,n,e,null==i?1:i)},$Z(OC,{brighter:function(t){return t=null==t?$M:Math.pow($M,t),new R0(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new R0(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,o=2*e-i;return new fu(NI(t>=240?t-240:t+120,o,i),NI(t,o,i),NI(t<120?t+240:t-120,o,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const sK=function t(n){var e=function iIe(t){return 1==(t=+t)?aK:function(n,e){return e-n?function nIe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):oK(isNaN(n)?e:n)}}(n);function i(o,r){var a=e((o=QM(o)).r,(r=QM(r)).r),l=e(o.g,r.g),u=e(o.b,r.b),f=aK(o.opacity,r.opacity);return function(M){return o.r=a(M),o.g=l(M),o.b=u(M),o.opacity=f(M),o+""}}return i.gamma=t,i}(1);function cK(t){return function(n){var a,l,e=n.length,i=new Array(e),o=new Array(e),r=new Array(e);for(a=0;a=1?(e=1,n-1):Math.floor(e*n),o=t[i],r=t[i+1];return iK((e-i/n)*n,i>0?t[i-1]:2*o-r,o,r,ie&&(r=n.slice(e,r),l[a]?l[a]+=r:l[++a]=r),(i=i[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:e4(i,o)})),e=zI.lastIndex;return e=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?EI:e3;return function(){var a=r(this,t),l=a.on;l!==i&&(o=(i=l).copy()).on(n,e),a.on=o}}var RIe=CC.prototype.constructor;function dK(t){return function(){this.style.removeProperty(t)}}function YIe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function UIe(t,n,e){var i,o;function r(){var a=n.apply(this,arguments);return a!==o&&(i=(o=a)&&YIe(t,a,e)),i}return r._value=n,r}function XIe(t){return function(n){this.textContent=t.call(this,n)}}function QIe(t){var n,e;function i(){var o=t.apply(this,arguments);return o!==e&&(n=(e=o)&&XIe(o)),n}return i._value=t,i}var eNe=0;function t3(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function uK(){return++eNe}var j6=CC.prototype;t3.prototype=function tNe(t){return CC().transition(t)}.prototype={constructor:t3,select:function IIe(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=CI(t));for(var i=this._groups,o=i.length,r=new Array(o),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:n}}CC.prototype.interrupt=function Rke(t){return this.each(function(){!function Nke(t,n){var i,o,a,e=t.__transition,r=!0;if(e){for(a in n=null==n?null:n+"",e)(i=e[a]).name===n?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[a]):r=!1;r&&delete t.__transition}}(this,t)})},CC.prototype.transition=function oNe(t){var n,e;t instanceof t3?(n=t._id,t=t._name):(n=uK(),(e=FI).time=Y6(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,r=0;r=(T=(l+f)/2))?l=T:f=T,(we=e>=(U=(u+M)/2))?u=U:M=U,o=r,!(r=r[He=we<<1|Me]))return o[He]=a,t;if(ie=+t._x.call(null,r.data),se=+t._y.call(null,r.data),n===ie&&e===se)return a.next=r,o?o[He]=a:t._root=a,t;do{o=o?o[He]=new Array(4):t._root=new Array(4),(Me=n>=(T=(l+f)/2))?l=T:f=T,(we=e>=(U=(u+M)/2))?u=U:M=U}while((He=we<<1|Me)==(Be=(se>=U)<<1|ie>=T));return o[Be]=r,o[He]=a,t}function n2(t,n,e,i,o){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=o}function kNe(t){return t[0]}function NNe(t){return t[1]}function VI(t,n,e){var i=new BI(null==n?kNe:n,null==e?NNe:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function BI(t,n,e,i,o,r){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=o,this._y1=r,this._root=void 0}function xK(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var o2=VI.prototype=BI.prototype;function zNe(t){return t.x+t.vx}function FNe(t){return t.y+t.vy}function yK(t){var n,e,i=1,o=1;function r(){for(var u,M,T,U,ie,se,Me,f=n.length,we=0;weU+jt||qeie+jt||rtT.index){var an=U-xt.x-xt.vx,pn=ie-xt.y-xt.vy,yn=an*an+pn*pn;ynu.r&&(u.r=u[f].r)}function l(){if(n){var u,M,f=n.length;for(e=new Array(f),u=0;uM&&(M=o),rT&&(T=r));if(u>M||f>T)return this;for(this.cover(u,f).cover(M,T),e=0;et||t>=o||i>n||n>=r;)switch(f=(nM||(l=se.y0)>T||(u=se.x1)=He)<<1|t>=we)&&(se=U[U.length-1],U[U.length-1]=U[U.length-1-Me],U[U.length-1-Me]=se)}else{var Be=t-+this._x.call(null,ie.data),me=n-+this._y.call(null,ie.data),ze=Be*Be+me*me;if(ze=(U=(a+u)/2))?a=U:u=U,(Me=T>=(ie=(l+f)/2))?l=ie:f=ie,n=e,!(e=e[we=Me<<1|se]))return this;if(!e.length)break;(n[we+1&3]||n[we+2&3]||n[we+3&3])&&(i=n,He=we)}for(;e.data!==t;)if(o=e,!(e=e.next))return this;return(r=e.next)&&delete e.next,o?(r?o.next=r:delete o.next,this):n?(r?n[we]=r:delete n[we],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[He]=e:this._root=e),this):(this._root=r,this)},o2.removeAll=function TNe(t){for(var n=0,e=t.length;n=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function jNe(t,n){for(var o,e=0,i=t.length;e0)for(var o,r,e=new Array(o),i=0;i=0&&t._call.call(null,n),t=t._next;--$6}()}finally{$6=0,function QNe(){for(var t,e,n=tO,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tO=e);kC=t,UI(i)}(),im=0}}function XNe(){var t=IC.now(),n=t-nO;n>1e3&&(iO-=n,nO=t)}function UI(t){$6||(LC&&(LC=clearTimeout(LC)),t-im>24?(t<1/0&&(LC=setTimeout(IK,t-IC.now()-iO)),DC&&(DC=clearInterval(DC))):(DC||(nO=IC.now(),DC=setInterval(XNe,1e3)),$6=1,LK(IK)))}function ZNe(t){return t.x}function KNe(t){return t.y}YI.prototype=kK.prototype={constructor:YI,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?DK():+e)+(null==n?0:+n),!this._next&&kC!==this&&(kC?kC._next=this:tO=this,kC=this),this._call=t,this._time=e,UI()},stop:function(){this._call&&(this._call=null,this._time=1/0,UI())}};var eRe=Math.PI*(3-Math.sqrt(5));function NK(t){var n,e=1,i=.001,o=1-Math.pow(i,1/300),r=0,a=.6,l=GI(),u=kK(M),f=WNe("tick","end");function M(){T(),f.call("tick",n),e1?(null==Me?l.remove(se):l.set(se,ie(Me)),n):l.get(se)},find:function(se,Me,we){var me,ze,qe,rt,xt,He=0,Be=t.length;for(null==we?we=1/0:we*=we,He=0;He1?(f.on(se,Me),n):f.on(se)}}}function RK(){var t,n,e,o,i=h1(-30),r=1,a=1/0,l=.81;function u(U){var ie,se=t.length,Me=VI(t,ZNe,KNe).visitAfter(M);for(e=U,ie=0;ie=a)){(U.data!==n||U.next)&&(0===we&&(me+=(we=t4())*we),0===He&&(me+=(He=t4())*He),me{return(t=X6||(X6={})).Both="both",t.Horizontal="horizontal",t.Vertical="vertical",X6;var t})(),Q6=(()=>{return(t=Q6||(Q6={})).UpperLeft="UpperLeft",t.UpperRight="UpperRight",Q6;var t})();function LRe(t,n,e){e=e||{};let i,o,r,a=null,l=0;function u(){l=!1===e.leading?0:+new Date,a=null,r=t.apply(i,o)}return function(){const f=+new Date;!l&&!1===e.leading&&(l=f);const M=n-(f-l);return i=this,o=arguments,M<=0?(clearTimeout(a),a=null,l=f,r=t.apply(i,o)):!a&&!1!==e.trailing&&(a=setTimeout(u,M)),r}}function DRe(t,n){return function(i,o,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,o,{configurable:!0,enumerable:r.enumerable,value:LRe(r.value,t,n)}),this[o]}}}}let FK=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class kRe{constructor(n,e,i){"string"==typeof n&&(n=FK.find(o=>o.name===n)),this.colorDomain=n.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(n,this.domain)}generateColorScheme(n,e){return"string"==typeof n&&(n=FK.find(i=>i.name===n)),ZM().range(n.domain).domain(e)}getColor(n){if(null==n)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(o=>o.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}let NRe=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new In,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:o}=this.element.nativeElement;i&&o?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo))},t.\u0275dir=St({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();var Z6=(()=>{return(t=Z6||(Z6={})).LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT",Z6;var t})();function K6(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function VK(t,n){return"number"==typeof n?t[n]:n}const BK={dagre:class RRe{constructor(){this.defaultSettings={orientation:Z6.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),q6.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],o=n.nodes.find(r=>r.id===i.id);o.position={x:i.x,y:i.y},o.dimension={width:i.width,height:i.height}}return n}updateEdge(n,e){const i=n.nodes.find(u=>u.id===e.source),o=n.nodes.find(u=>u.id===e.target),r=i.position.y<=o.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:o.position.x,y:o.position.y+r*(o.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new q6.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const o=Object.assign({},i);return o.width=i.dimension.width,o.height=i.dimension.height,o.x=i.position.x,o.y=i.position.y,o}),this.dagreEdges=n.edges.map(i=>{const o=Object.assign({},i);return o.id||(o.id=n3()),o});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class zRe{constructor(){this.defaultSettings={orientation:Z6.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),q6.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const o=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:o.x,y:o.y},dimension:{width:o.width,height:o.height}})};return n.clusters=(n.clusters||[]).map(e),n.nodes=n.nodes.map(e),n}updateEdge(n,e){const i=n.nodes.find(u=>u.id===e.source),o=n.nodes.find(u=>u.id===e.target),r=i.position.y<=o.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:o.position.x,y:o.position.y+r*(o.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new q6.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const o=Object.assign({},i);return o.width=i.dimension.width,o.height=i.dimension.height,o.x=i.position.x,o.y=i.position.y,o}),this.dagreClusters=n.clusters||[],this.dagreEdges=n.edges.map(i=>{const o=Object.assign({},i);return o.id||(o.id=n3()),o});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(o=>{this.dagreGraph.setParent(o,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class HRe{constructor(){this.defaultSettings={orientation:Z6.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),q6.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],o=n.nodes.find(r=>r.id===i.id);o.position={x:i.x,y:i.y},o.dimension={width:i.width,height:i.height}}for(const e of n.edges)this.updateEdge(n,e);return n}updateEdge(n,e){const i=n.nodes.find(se=>se.id===e.source),o=n.nodes.find(se=>se.id===e.target),r="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",a="y"===r?"x":"y",l="y"===r?"height":"width",u=i.position[r]<=o.position[r]?-1:1,f={[a]:i.position[a],[r]:i.position[r]-u*(i.dimension[l]/2)},M={[a]:o.position[a],[r]:o.position[r]+u*(o.dimension[l]/2)},T=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[f,{[a]:f[a],[r]:f[r]-u*T},{[a]:M[a],[r]:M[r]+u*T},M];const ie=n.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return ie&&(ie.points=e.points),n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new q6.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const o=Object.assign({},i);return o.width=i.dimension.width,o.height=i.dimension.height,o.x=i.position.x,o.y=i.position.y,o}),this.dagreEdges=n.edges.map(i=>{const o=Object.assign({},i);return o.id||(o.id=n3()),o});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class VRe{constructor(){this.defaultSettings={force:NK().force("charge",RK().strength(-150)).force("collide",yK(5)),forceLink:PK().id(n=>n.id).distance(()=>100)},this.settings={},this.outputGraph$=new N}run(n){return this.inputGraph=n,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(n){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||n3(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:K6(e.source).id,target:K6(e.target).id,points:[{x:K6(e.source).x,y:K6(e.source).y},{x:K6(e.target).x,y:K6(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(o=>o.id===n.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(n,e){if(!n)return;const i=this.d3Graph.nodes.find(o=>o.id===n.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(n,e){if(!n)return;const i=this.d3Graph.nodes.find(o=>o.id===n.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class BRe{constructor(){this.defaultSettings={force:(0,oRe.d3adaptor)(Object.assign(Object.assign(Object.assign({},m),y),E)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new N}run(n){return this.inputGraph=n,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(o=>o.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(o=>o.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),o=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(-1!==i&&-1!==o)return Object.assign(Object.assign({},e),{source:i,target:o})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),o=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(!(i>=0&&o>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(n){return this.outputGraph.nodes=n.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||n3(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=n.links.map(e=>{const i=VK(n.nodes,e.source),o=VK(n.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(n.groupLinks.map(e=>{const i=n.nodes.find(l=>l.id===e.source),o=n.nodes.find(l=>l.id===e.target),r=i||n.groups.find(l=>l.id===e.source),a=o||n.groups.find(l=>l.id===e.target);return Object.assign(Object.assign({},e),{source:r.id,target:a.id,points:[r.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy())]})})),this.outputGraph.clusters=n.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),o=this.internalGraph.nodes[i];!o||(this.draggingStart={x:o.x-e.x,y:o.y-e.y},o.fixed=1,this.settings.force.start())}onDrag(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),o=this.internalGraph.nodes[i];!o||(o.x=this.draggingStart.x+e.x,o.y=this.draggingStart.y+e.y)}onDragEnd(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),o=this.internalGraph.nodes[i];!o||(o.fixed=0)}}};let GK=(()=>{class t{getLayout(e){if(BK[e])return new BK[e];throw new Error(`Unknown layout type '${e}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),GRe=(()=>{class t{constructor(){this.mouseWheelUp=new In,this.mouseWheelDown=new In}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),r=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):r&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&et("mousewheel",function(r){return i.onMouseWheelChrome(r)})("DOMMouseScroll",function(r){return i.onMouseWheelFirefox(r)})("wheel",function(r){return i.onWheel(r)})("onmousewheel",function(r){return i.onMouseWheelIE(r)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),YRe=(()=>{class t{constructor(e,i,o,r){this.el=e,this.zone=i,this.cd=o,this.layoutService=r,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=X6.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Q6.UpperRight,this.scheme="cool",this.animations=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.zoomChange=new In,this.clickHandler=new In,this.isMouseMoveCalled=!1,this.graphSubscription=new Se,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=a=>a.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${n3()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:o}=e;this.setLayout(this.layout),o&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new NRe(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=vke.beta(1)),this.zone.run(()=>{this.dims=function IRe({width:t,height:n}){let e=t,i=n;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Se;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=n3()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=n3()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof Wt?e:rr(e);this.graphSubscription.add(i.subscribe(o=>{this.graph=o,this.tick()})),0!==this.graph.nodes.length&&i.pipe(kg()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),e.add(r.id)});const i=new Set;(this.graph.clusters||[]).map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),i.add(r.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const o=[];for(const r in this.graph.edgeLabels){const a=this.graph.edgeLabels[r],l=r.replace(/[^\w-]*/g,""),u=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let f=this._oldLinks.find(u?Me=>`${Me.source}${Me.target}${Me.id}`===l:Me=>`${Me.source}${Me.target}`===l);const M=this.graph.edges.find(u?Me=>`${Me.source}${Me.target}${Me.id}`===l:Me=>`${Me.source}${Me.target}`===l);f?f.data&&M&&M.data&&JSON.stringify(f.data)!==JSON.stringify(M.data)&&(f.data=M.data):f=M||a,f.oldLine=f.line;const T=a.points,U=this.generateLine(T),ie=Object.assign({},f);ie.line=U,ie.points=T,this.updateMidpointOnEdge(ie,T);const se=T[Math.floor(T.length/2)];se&&(ie.textTransform=`translate(${se.x||0},${se.y||0})`),ie.textAngle=0,ie.oldLine||(ie.oldLine=ie.line),this.calcDominantBaseline(ie),o.push(ie)}this.graph.edges=o,this.graph.edges&&(this._oldLinks=this.graph.edges.map(r=>{const a=Object.assign({},r);return a.oldLine=r.line,a})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Q6.UpperLeft:return"";case Q6.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,o=1/0,r=-1/0;for(let a=0;ai?l.position.x+l.dimension.width:i,r=l.position.y+l.dimension.height>r?l.position.y+l.dimension.height:r}e-=100,o-=100,i+=100,r+=100,this.graphDims.width=i-e,this.graphDims.height=r-o,this.minimapOffsetX=e,this.minimapOffsetY=o}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,o=this.graph.nodes.find(a=>a.id===i.id);if(!o)return;let r;try{if(r=i.getBBox(),!r.width||!r.height)return}catch(a){return}if(o.dimension.height=this.nodeHeight?o.dimension.height&&o.meta.forceDimensions?o.dimension.height:this.nodeHeight:o.dimension.height&&o.meta.forceDimensions?o.dimension.height:r.height,this.nodeMaxHeight&&(o.dimension.height=Math.max(o.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(o.dimension.height=Math.min(o.dimension.height,this.nodeMinHeight)),this.nodeWidth)o.dimension.width=o.dimension.width&&o.meta.forceDimensions?o.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let a;try{for(const l of i.getElementsByTagName("text")){const u=l.getBBox();a?(u.width>a.width&&(a.width=u.width),u.height>a.height&&(a.height=u.height)):a=u}}catch(l){return}o.dimension.width=o.dimension.width&&o.meta.forceDimensions?o.dimension.width:a.width+20}else o.dimension.width=o.dimension.width&&o.meta.forceDimensions?o.dimension.width:r.width;this.nodeMaxWidth&&(o.dimension.width=Math.max(o.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(o.dimension.width=Math.min(o.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const o=this.graph.edges.find(r=>r.id===i.nativeElement.id);o&&(SZ(i.nativeElement).select(".line").attr("d",o.oldLine).transition().ease(kZ).duration(e?500:0).attr("d",o.line),SZ(this.el.nativeElement).select(`#${o.id}`).attr("d",o.oldTextPath).transition().ease(kZ).duration(e?500:0).attr("d",o.textPath),this.updateMidpointOnEdge(o,o.points))})}calcDominantBaseline(e){const i=e.points[0],o=e.points[e.points.length-1];e.oldTextPath=e.textPath,o.xo.x).y(o=>o.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const o=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*o;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const a=e.clientX,l=e.clientY,u=this.el.nativeElement.querySelector("svg"),f=u.querySelector("g.chart"),M=u.createSVGPoint();M.x=a,M.y=l;const T=M.matrixTransform(f.getScreenCTM().inverse());this.pan(T.x,T.y,!0),this.zoom(o),this.pan(-T.x,-T.y,!0)}else this.zoom(o)}pan(e,i,o=!1){const r=o?1:this.zoomLevel;this.transformationMatrix=EC(this.transformationMatrix,fK(e/r,i/r)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=EC(this.transformationMatrix,fK((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=EC(this.transformationMatrix,function fNe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return pNe(n)&&(n=t),{a:t,c:0,e:0,b:0,d:n,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const a of this.graph.edges)if((a.target===i.id||a.source===i.id||a.target.id===i.id||a.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const l=this.layout.updateEdge(this.graph,a),u=l instanceof Wt?l:rr(l);this.graphSubscription.add(u.subscribe(f=>{this.graph=f,this.redrawEdge(a)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function mNe(t){return function pK(t){return"matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}(t)}(function vNe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*n)/n,b:Math.round(t.b*n)/n,c:Math.round(t.c*n)/n,d:Math.round(t.d*n)/n,e:Math.round(t.e*n)/n,f:Math.round(t.f*n)/n}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new kRe(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY,r=i-this._touchLastX,a=o-this._touchLastY;this._touchLastX=i,this._touchLastY=o,this.pan(r,a)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let o=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);othis.maxZoomLevel&&(o=this.maxZoomLevel),o!==this.zoomLevel&&(this.zoomLevel=o,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(o=>o.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let o=i.movementX,r=i.movementY;switch(this.isMinimapPanning&&(o=-this.minimapScaleCoefficient*o*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),e){case X6.Horizontal:this.pan(o,0);break;case X6.Vertical:this.pan(0,r);break;default:this.pan(o,r)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const o=i[i.length/2],r=i[i.length/2-1];e.midPoint={x:(o.x+r.x)/2,y:(o.y+r.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const o=this.el.nativeElement;if(null!==o.parentNode){const r=o.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=Jc(window,"resize").pipe(Ks(200)).subscribe(o=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(Xr),ue(GK))},t.\u0275cmp=vn({type:t,selectors:[["ngx-graph"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,aRe,5),mr(o,sRe,5),mr(o,cRe,5),mr(o,lRe,5),mr(o,dRe,5)),2&e){let r;fi(r=gi())&&(i.linkTemplate=r.first),fi(r=gi())&&(i.nodeTemplate=r.first),fi(r=gi())&&(i.clusterTemplate=r.first),fi(r=gi())&&(i.defsTemplate=r.first),fi(r=gi())&&(i.miniMapNodeTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(_o(uRe,5),_o(hRe,5)),2&e){let o;fi(o=gi())&&(i.nodeElements=o),fi(o=gi())&&(i.linkElements=o)}},hostBindings:function(e,i){1&e&&et("mousemove",function(r){return i.onMouseMove(r)},!1,Ep)("mousedown",function(r){return i.onMouseDown(r)},!1,Ep)("click",function(r){return i.graphClick(r)},!1,Ep)("touchmove",function(r){return i.onTouchMove(r)},!1,Ep)("mouseup",function(r){return i.onMouseUp(r)},!1,Ep)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[Yo],ngContentSelectors:ARe,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(ls(),H(0,"div",0),et("mouseWheelUp",function(r){return i.onZoom(r,"in")})("mouseWheelDown",function(r){return i.onZoom(r,"out")}),bi(),H(1,"svg",1),ke(2,MRe,12,12,"g",2),H(3,"clipPath"),Qe(4,"rect"),G(),ke(5,ERe,6,15,"g",3),G()()),2&e&&(Br("width",i.width,"px"),J("@animationState","active")("@.disabled",!i.animations),W(1),Un("width",i.width)("height",i.height),W(1),J("ngIf",i.initialized&&i.graph),W(1),Un("id",i.minimapClipPathId),W(1),Un("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),W(1),J("ngIf",i.showMiniMap))},directives:[GRe,Yi,Sg,$o],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[na("animationState",[Do(":enter",[ti({opacity:0}),Mo("500ms 100ms",ti({opacity:1}))])])]},changeDetection:0}),An([DRe(500)],t.prototype,"updateMinimap",null),t})(),URe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[GK],imports:[[va]]}),t})(),YK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va],URe]}),t})();function UK(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,i)}return e}function jo(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,i=new Array(n);e0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function J6(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function JI(t){return t.classList?J6(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function lJ(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function dO(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function eN(t){return t.size!==z0.size||t.x!==z0.x||t.y!==z0.y||t.rotate!==z0.rotate||t.flipX||t.flipY}function dJ(){var t="fa",n=nJ,e=Rr.familyPrefix,i=Rr.replacementClass,o=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(e!==t||i!==n){var r=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),l=new RegExp("\\.".concat(n),"g");o=o.replace(r,".".concat(e,"-")).replace(a,"--".concat(e,"-")).replace(l,".".concat(i))}return o}var uJ=!1;function tN(){Rr.autoAddCss&&!uJ&&(function _ze(t){if(t&&o3){var n=Tc.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;for(var e=Tc.head.childNodes,i=null,o=e.length-1;o>-1;o--){var r=e[o],a=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(i=r)}Tc.head.insertBefore(n,i)}}(dJ()),uJ=!0)}var wze={mixout:function(){return{dom:{css:dJ,insertCss:tN}}},hooks:function(){return{beforeDOMElementCreation:function(){tN()},beforeI2svg:function(){tN()}}}},a3=n4||{};a3[r3]||(a3[r3]={}),a3[r3].styles||(a3[r3].styles={}),a3[r3].hooks||(a3[r3].hooks={}),a3[r3].shims||(a3[r3].shims=[]);var Rh=a3[r3],hJ=[],uO=!1;function Oze(t){!o3||(uO?setTimeout(t,0):hJ.push(t))}function HC(t){var n=t.tag,e=t.attributes,i=void 0===e?{}:e,o=t.children,r=void 0===o?[]:o;return"string"==typeof t?lJ(t):"<".concat(n," ").concat(function vze(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(lJ(t[e]),'" ')},"").trim()}(i),">").concat(r.map(HC).join(""),"")}function pJ(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}o3&&((uO=(Tc.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Tc.readyState))||Tc.addEventListener("DOMContentLoaded",function t(){Tc.removeEventListener("DOMContentLoaded",t),uO=1,hJ.map(function(n){return n()})}));var nN=function(n,e,i,o){var u,f,M,r=Object.keys(n),a=r.length,l=void 0!==o?function(n,e){return function(i,o,r,a){return n.call(e,i,o,r,a)}}(e,o):e;for(void 0===i?(u=1,M=n[r[0]]):(u=0,M=i);u=55296&&o<=56319&&e2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,o=void 0!==i&&i,r=fJ(n);"function"!=typeof Rh.hooks.addPack||o?Rh.styles[t]=jo(jo({},Rh.styles[t]||{}),r):Rh.hooks.addPack(t,fJ(n)),"fas"===t&&oN("fa",n)}var VC=Rh.styles,Eze=Rh.shims,Aze=Object.values(rJ),rN=null,gJ={},mJ={},_J={},CJ={},vJ={},Lze=Object.keys(KI);function kze(t,n){var e=n.split("-"),i=e[0],o=e.slice(1).join("-");return i!==t||""===o||function Dze(t){return~uze.indexOf(t)}(o)?null:o}var bJ=function(){var n=function(r){return nN(VC,function(a,l,u){return a[u]=nN(l,r,{}),a},{})};gJ=n(function(o,r,a){return r[3]&&(o[r[3]]=a),r[2]&&r[2].filter(function(u){return"number"==typeof u}).forEach(function(u){o[u.toString(16)]=a}),o}),mJ=n(function(o,r,a){return o[a]=a,r[2]&&r[2].filter(function(u){return"string"==typeof u}).forEach(function(u){o[u]=a}),o}),vJ=n(function(o,r,a){var l=r[2];return o[a]=a,l.forEach(function(u){o[u]=a}),o});var e="far"in VC||Rr.autoFetchSvg,i=nN(Eze,function(o,r){var a=r[0],l=r[1],u=r[2];return"far"===l&&!e&&(l="fas"),"string"==typeof a&&(o.names[a]={prefix:l,iconName:u}),"number"==typeof a&&(o.unicodes[a.toString(16)]={prefix:l,iconName:u}),o},{names:{},unicodes:{}});_J=i.names,CJ=i.unicodes,rN=hO(Rr.styleDefault)};function aN(t,n){return(gJ[t]||{})[n]}function e_(t,n){return(vJ[t]||{})[n]}function xJ(t){return _J[t]||{prefix:null,iconName:null}}function r4(){return rN}function hO(t){return cO[t]||cO[KI[t]]||(t in Rh.styles?t:null)||null}function pO(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.skipLookups,i=void 0!==e&&e,o=null,r=t.reduce(function(a,l){var u=kze(Rr.familyPrefix,l);if(VC[l]?(l=Aze.includes(l)?rze[l]:l,o=l,a.prefix=l):Lze.indexOf(l)>-1?(o=l,a.prefix=hO(l)):u?a.iconName=u:l!==Rr.replacementClass&&a.rest.push(l),!i&&a.prefix&&a.iconName){var f="fa"===o?xJ(a.iconName):{},M=e_(a.prefix,a.iconName);f.prefix&&(o=null),a.iconName=f.iconName||M||a.iconName,a.prefix=f.prefix||a.prefix,"far"===a.prefix&&!VC.far&&VC.fas&&!Rr.autoFetchSvg&&(a.prefix="fas")}return a},{prefix:null,iconName:null,rest:[]});return("fa"===r.prefix||"fa"===o)&&(r.prefix=r4()||"fas"),r}(function mze(t){lO.push(t)})(function(t){rN=hO(t.styleDefault)}),bJ();var Rze=function(){function t(){(function jRe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),this.definitions={}}return function WRe(t,n,e){n&&jK(t.prototype,n),e&&jK(t,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"add",value:function(){for(var e=this,i=arguments.length,o=new Array(i),r=0;r0&&M.forEach(function(T){"string"==typeof T&&(e[l][T]=f)}),e[l][u]=f}),e}}]),t}(),yJ=[],t_={},n_={},zze=Object.keys(n_);function cN(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),o=2;o1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return o3?(am("beforeI2svg",n),s3("pseudoElements2svg",n),s3("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot;!1===Rr.autoReplaceSvg&&(Rr.autoReplaceSvg=!0),Rr.observeMutations=!0,Oze(function(){Gze({autoReplaceSvgRoot:e}),am("watch",n)})}},Bze={icon:function(n){if(null===n)return null;if("object"===oO(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:e_(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var e=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=hO(n[0]);return{prefix:i,iconName:e_(i,e)||e}}if("string"==typeof n&&(n.indexOf("".concat(Rr.familyPrefix,"-"))>-1||n.match(aze))){var o=pO(n.split(" "),{skipLookups:!0});return{prefix:o.prefix||r4(),iconName:e_(o.prefix,o.iconName)||o.iconName}}if("string"==typeof n){var r=r4();return{prefix:r,iconName:e_(r,n)||n}}}},gu={noAuto:function(){Rr.autoReplaceSvg=!1,Rr.observeMutations=!1,am("noAuto")},config:Rr,dom:Vze,parse:Bze,library:wJ,findIconDefinition:lN,toHtml:HC},Gze=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot,i=void 0===e?Tc:e;(Object.keys(Rh.styles).length>0||Rr.autoFetchSvg)&&o3&&Rr.autoReplaceSvg&&gu.dom.i2svg({node:i})};function fO(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return HC(i)})}}),Object.defineProperty(t,"node",{get:function(){if(o3){var i=Tc.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function dN(t){var n=t.icons,e=n.main,i=n.mask,o=t.prefix,r=t.iconName,a=t.transform,l=t.symbol,u=t.title,f=t.maskId,M=t.titleId,T=t.extra,U=t.watchable,ie=void 0!==U&&U,se=i.found?i:e,Me=se.width,we=se.height,He="fak"===o,Be=[Rr.replacementClass,r?"".concat(Rr.familyPrefix,"-").concat(r):""].filter(function(jt){return-1===T.classes.indexOf(jt)}).filter(function(jt){return""!==jt||!!jt}).concat(T.classes).join(" "),me={children:[],attributes:jo(jo({},T.attributes),{},{"data-prefix":o,"data-icon":r,class:Be,role:T.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Me," ").concat(we)})},ze=He&&!~T.classes.indexOf("fa-fw")?{width:"".concat(Me/we*16*.0625,"em")}:{};ie&&(me.attributes[om]=""),u&&(me.children.push({tag:"title",attributes:{id:me.attributes["aria-labelledby"]||"title-".concat(M||FC())},children:[u]}),delete me.attributes.title);var qe=jo(jo({},me),{},{prefix:o,iconName:r,main:e,mask:i,maskId:f,transform:a,symbol:l,styles:jo(jo({},ze),T.styles)}),rt=i.found&&e.found?s3("generateAbstractMask",qe)||{children:[],attributes:{}}:s3("generateAbstractIcon",qe)||{children:[],attributes:{}},Ut=rt.attributes;return qe.children=rt.children,qe.attributes=Ut,l?function Uze(t){var e=t.iconName,i=t.children,o=t.attributes,r=t.symbol,a=!0===r?"".concat(t.prefix,"-").concat(Rr.familyPrefix,"-").concat(e):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:jo(jo({},o),{},{id:a}),children:i}]}]}(qe):function Yze(t){var n=t.children,e=t.main,i=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(eN(a)&&e.found&&!i.found){var f={x:e.width/e.height/2,y:.5};o.style=dO(jo(jo({},r),{},{"transform-origin":"".concat(f.x+a.x/16,"em ").concat(f.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:n}]}(qe)}function MJ(t){var n=t.content,e=t.width,i=t.height,o=t.transform,r=t.title,a=t.extra,l=t.watchable,u=void 0!==l&&l,f=jo(jo(jo({},a.attributes),r?{title:r}:{}),{},{class:a.classes.join(" ")});u&&(f[om]="");var M=jo({},a.styles);eN(o)&&(M.transform=function xze(t){var n=t.transform,e=t.width,o=t.height,r=void 0===o?16:o,a=t.startCentered,l=void 0!==a&&a,u="";return u+=l&&eJ?"translate(".concat(n.x/16-(void 0===e?16:e)/2,"em, ").concat(n.y/16-r/2,"em) "):l?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(u+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:o,startCentered:!0,width:e,height:i}),M["-webkit-transform"]=M.transform);var T=dO(M);T.length>0&&(f.style=T);var U=[];return U.push({tag:"span",attributes:f,children:[n]}),r&&U.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),U}function jze(t){var n=t.content,e=t.title,i=t.extra,o=jo(jo(jo({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),r=dO(i.styles);r.length>0&&(o.style=r);var a=[];return a.push({tag:"span",attributes:o,children:[n]}),e&&a.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),a}var uN=Rh.styles;function hN(t){var n=t[0],e=t[1],r=jI(t.slice(4),1)[0];return{found:!0,width:n,height:e,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Rr.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Rr.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Rr.familyPrefix,"-").concat("primary"),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var Wze={found:!1,width:512,height:512};function pN(t,n){var e=n;return"fa"===n&&null!==Rr.styleDefault&&(n=r4()),new Promise(function(i,o){if(s3("missingIconAbstract"),"fa"===e){var a=xJ(t)||{};t=a.iconName||t,n=a.prefix||n}if(t&&n&&uN[n]&&uN[n][t])return i(hN(uN[n][t]));(function qze(t,n){!oJ&&!Rr.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))})(t,n),i(jo(jo({},Wze),{},{icon:Rr.showMissingIcons&&t&&s3("missingIconAbstract")||{}}))})}var OJ=function(){},fN=Rr.measurePerformance&&sO&&sO.mark&&sO.measure?sO:{mark:OJ,measure:OJ},BC='FA "6.1.1"',gN_begin=function(n){return fN.mark("".concat(BC," ").concat(n," begins")),function(){return function(n){fN.mark("".concat(BC," ").concat(n," ends")),fN.measure("".concat(BC," ").concat(n),"".concat(BC," ").concat(n," begins"),"".concat(BC," ").concat(n," ends"))}(n)}},gO=function(){};function PJ(t){return"string"==typeof(t.getAttribute?t.getAttribute(om):null)}function Kze(t){return Tc.createElementNS("http://www.w3.org/2000/svg",t)}function Jze(t){return Tc.createElement(t)}function TJ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.ceFn,i=void 0===e?"svg"===t.tag?Kze:Jze:e;if("string"==typeof t)return Tc.createTextNode(t);var o=i(t.tag);Object.keys(t.attributes||[]).forEach(function(a){o.setAttribute(a,t.attributes[a])});var r=t.children||[];return r.forEach(function(a){o.appendChild(TJ(a,{ceFn:i}))}),o}var mO={replace:function(n){var e=n[0];if(e.parentNode)if(n[1].forEach(function(o){e.parentNode.insertBefore(TJ(o),e)}),null===e.getAttribute(om)&&Rr.keepOriginalSource){var i=Tc.createComment(function eFe(t){var n=" ".concat(t.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(n){var e=n[0],i=n[1];if(~JI(e).indexOf(Rr.replacementClass))return mO.replace(n);var o=new RegExp("".concat(Rr.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(l,u){return u===Rr.replacementClass||u.match(o)?l.toSvg.push(u):l.toNode.push(u),l},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var a=i.map(function(l){return HC(l)}).join("\n");e.setAttribute(om,""),e.innerHTML=a}};function EJ(t){t()}function AJ(t,n){var e="function"==typeof n?n:gO;if(0===t.length)e();else{var i=EJ;"async"===Rr.mutateApproach&&(i=n4.requestAnimationFrame||EJ),i(function(){var o=function Zze(){return!0===Rr.autoReplaceSvg?mO.replace:mO[Rr.autoReplaceSvg]||mO.replace}(),r=gN_begin("mutate");t.map(o),r(),e()})}}var mN=!1;function LJ(){mN=!0}function _N(){mN=!1}var _O=null;function DJ(t){if(JK&&Rr.observeMutations){var n=t.treeCallback,e=void 0===n?gO:n,i=t.nodeCallback,o=void 0===i?gO:i,r=t.pseudoElementsCallback,a=void 0===r?gO:r,l=t.observeMutationsRoot,u=void 0===l?Tc:l;_O=new JK(function(f){if(!mN){var M=r4();J6(f).forEach(function(T){if("childList"===T.type&&T.addedNodes.length>0&&!PJ(T.addedNodes[0])&&(Rr.searchPseudoElements&&a(T.target),e(T.target)),"attributes"===T.type&&T.target.parentNode&&Rr.searchPseudoElements&&a(T.target.parentNode),"attributes"===T.type&&PJ(T.target)&&~dze.indexOf(T.attributeName))if("class"===T.attributeName&&function Xze(t){var n=t.getAttribute?t.getAttribute(QI):null,e=t.getAttribute?t.getAttribute(ZI):null;return n&&e}(T.target)){var U=pO(JI(T.target)),se=U.iconName;T.target.setAttribute(QI,U.prefix||M),se&&T.target.setAttribute(ZI,se)}else(function Qze(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(Rr.replacementClass)})(T.target)&&o(T.target)})}}),o3&&_O.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function nFe(t){var n=t.getAttribute("style"),e=[];return n&&(e=n.split(";").reduce(function(i,o){var r=o.split(":"),a=r[0],l=r.slice(1);return a&&l.length>0&&(i[a]=l.join(":").trim()),i},{})),e}function iFe(t){var n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",o=pO(JI(t));return o.prefix||(o.prefix=r4()),n&&e&&(o.prefix=n,o.iconName=e),o.iconName&&o.prefix||o.prefix&&i.length>0&&(o.iconName=function Ize(t,n){return(mJ[t]||{})[n]}(o.prefix,t.innerText)||aN(o.prefix,iN(t.innerText))),o}function oFe(t){var n=J6(t.attributes).reduce(function(o,r){return"class"!==o.name&&"style"!==o.name&&(o[r.name]=r.value),o},{}),e=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return Rr.autoA11y&&(e?n["aria-labelledby"]="".concat(Rr.replacementClass,"-title-").concat(i||FC()):(n["aria-hidden"]="true",n.focusable="false")),n}function kJ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=iFe(t),i=e.iconName,o=e.prefix,r=e.rest,a=oFe(t),l=cN("parseNodeAttributes",{},t),u=n.styleParser?nFe(t):[];return jo({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:o,transform:z0,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:u,attributes:a}},l)}var aFe=Rh.styles;function IJ(t){var n="nest"===Rr.autoReplaceSvg?kJ(t,{styleParser:!1}):kJ(t);return~n.extra.classes.indexOf(aJ)?s3("generateLayersText",t,n):s3("generateSvgReplacementMutation",t,n)}function NJ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o3)return Promise.resolve();var e=Tc.documentElement.classList,i=function(T){return e.add("".concat(iJ,"-").concat(T))},o=function(T){return e.remove("".concat(iJ,"-").concat(T))},r=Object.keys(Rr.autoFetchSvg?KI:aFe),a=[".".concat(aJ,":not([").concat(om,"])")].concat(r.map(function(M){return".".concat(M,":not([").concat(om,"])")})).join(", ");if(0===a.length)return Promise.resolve();var l=[];try{l=J6(t.querySelectorAll(a))}catch(M){}if(!(l.length>0))return Promise.resolve();i("pending"),o("complete");var u=gN_begin("onTree"),f=l.reduce(function(M,T){try{var U=IJ(T);U&&M.push(U)}catch(ie){oJ||"MissingIcon"===ie.name&&console.error(ie)}return M},[]);return new Promise(function(M,T){Promise.all(f).then(function(U){AJ(U,function(){i("active"),i("complete"),o("pending"),"function"==typeof n&&n(),u(),M()})}).catch(function(U){u(),T(U)})})}function sFe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;IJ(t).then(function(e){e&&AJ([e],n)})}var lFe=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,o=void 0===i?z0:i,r=e.symbol,a=void 0!==r&&r,l=e.mask,u=void 0===l?null:l,f=e.maskId,M=void 0===f?null:f,T=e.title,U=void 0===T?null:T,ie=e.titleId,se=void 0===ie?null:ie,Me=e.classes,we=void 0===Me?[]:Me,He=e.attributes,Be=void 0===He?{}:He,me=e.styles,ze=void 0===me?{}:me;if(n){var qe=n.prefix,rt=n.iconName,xt=n.icon;return fO(jo({type:"icon"},n),function(){return am("beforeDOMElementCreation",{iconDefinition:n,params:e}),Rr.autoA11y&&(U?Be["aria-labelledby"]="".concat(Rr.replacementClass,"-title-").concat(se||FC()):(Be["aria-hidden"]="true",Be.focusable="false")),dN({icons:{main:hN(xt),mask:u?hN(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:qe,iconName:rt,transform:jo(jo({},z0),o),symbol:a,title:U,maskId:M,titleId:se,extra:{attributes:Be,styles:ze,classes:we}})})}},dFe={mixout:function(){return{icon:(t=lFe,function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:lN(n||{}),o=e.mask;return o&&(o=(o||{}).icon?o:lN(o||{})),t(i,jo(jo({},e),{},{mask:o}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=NJ,e.nodeCallback=sFe,e}}},provides:function(n){n.i2svg=function(e){var i=e.node,r=e.callback;return NJ(void 0===i?Tc:i,void 0===r?function(){}:r)},n.generateSvgReplacementMutation=function(e,i){var o=i.iconName,r=i.title,a=i.titleId,l=i.prefix,u=i.transform,f=i.symbol,M=i.mask,T=i.maskId,U=i.extra;return new Promise(function(ie,se){Promise.all([pN(o,l),M.iconName?pN(M.iconName,M.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Me){var we=jI(Me,2);ie([e,dN({icons:{main:we[0],mask:we[1]},prefix:l,iconName:o,transform:u,symbol:f,maskId:T,title:r,titleId:a,extra:U,watchable:!0})])}).catch(se)})},n.generateAbstractIcon=function(e){var f,i=e.children,o=e.attributes,r=e.main,a=e.transform,u=dO(e.styles);return u.length>0&&(o.style=u),eN(a)&&(f=s3("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),i.push(f||r.icon),{children:i,attributes:o}}}},uFe={mixout:function(){return{layer:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.classes,r=void 0===o?[]:o;return fO({type:"layer"},function(){am("beforeDOMElementCreation",{assembler:e,params:i});var a=[];return e(function(l){Array.isArray(l)?l.map(function(u){a=a.concat(u.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Rr.familyPrefix,"-layers")].concat(aO(r)).join(" ")},children:a}]})}}}},hFe={mixout:function(){return{counter:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.title,r=void 0===o?null:o,a=i.classes,l=void 0===a?[]:a,u=i.attributes,f=void 0===u?{}:u,M=i.styles,T=void 0===M?{}:M;return fO({type:"counter",content:e},function(){return am("beforeDOMElementCreation",{content:e,params:i}),jze({content:e.toString(),title:r,extra:{attributes:f,styles:T,classes:["".concat(Rr.familyPrefix,"-layers-counter")].concat(aO(l))}})})}}}},pFe={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.transform,r=void 0===o?z0:o,a=i.title,l=void 0===a?null:a,u=i.classes,f=void 0===u?[]:u,M=i.attributes,T=void 0===M?{}:M,U=i.styles,ie=void 0===U?{}:U;return fO({type:"text",content:e},function(){return am("beforeDOMElementCreation",{content:e,params:i}),MJ({content:e,transform:jo(jo({},z0),r),title:l,extra:{attributes:T,styles:ie,classes:["".concat(Rr.familyPrefix,"-layers-text")].concat(aO(f))}})})}}},provides:function(n){n.generateLayersText=function(e,i){var o=i.title,r=i.transform,a=i.extra,l=null,u=null;if(eJ){var f=parseInt(getComputedStyle(e).fontSize,10),M=e.getBoundingClientRect();l=M.width/f,u=M.height/f}return Rr.autoA11y&&!o&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,MJ({content:e.innerHTML,width:l,height:u,transform:r,title:o,extra:a,watchable:!0})])}}},fFe=new RegExp('"',"ug"),RJ=[1105920,1112319];function zJ(t,n){var e="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,o){if(null!==t.getAttribute(e))return i();var a=J6(t.children).filter(function(rt){return rt.getAttribute(XI)===n})[0],l=n4.getComputedStyle(t,n),u=l.getPropertyValue("font-family").match(sze),f=l.getPropertyValue("font-weight"),M=l.getPropertyValue("content");if(a&&!u)return t.removeChild(a),i();if(u&&"none"!==M&&""!==M){var T=l.getPropertyValue("content"),U=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?cO[u[2].toLowerCase()]:cze[f],ie=function gFe(t){var n=t.replace(fFe,""),e=function Tze(t,n){var o,e=t.length,i=t.charCodeAt(n);return i>=55296&&i<=56319&&e>n+1&&(o=t.charCodeAt(n+1))>=56320&&o<=57343?1024*(i-55296)+o-56320+65536:i}(n,0),i=e>=RJ[0]&&e<=RJ[1],o=2===n.length&&n[0]===n[1];return{value:iN(o?n[0]:n),isSecondary:i||o}}(T),se=ie.value,Me=ie.isSecondary,we=u[0].startsWith("FontAwesome"),He=aN(U,se),Be=He;if(we){var me=function Nze(t){var n=CJ[t],e=aN("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(se);me.iconName&&me.prefix&&(He=me.iconName,U=me.prefix)}if(!He||Me||a&&a.getAttribute(QI)===U&&a.getAttribute(ZI)===Be)i();else{t.setAttribute(e,Be),a&&t.removeChild(a);var ze=function rFe(){return{iconName:null,title:null,titleId:null,prefix:null,transform:z0,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),qe=ze.extra;qe.attributes[XI]=n,pN(He,U).then(function(rt){var xt=dN(jo(jo({},ze),{},{icons:{main:rt,mask:{prefix:null,iconName:null,rest:[]}},prefix:U,iconName:Be,extra:qe,watchable:!0})),Ut=Tc.createElement("svg");"::before"===n?t.insertBefore(Ut,t.firstChild):t.appendChild(Ut),Ut.outerHTML=xt.map(function(jt){return HC(jt)}).join("\n"),t.removeAttribute(e),i()}).catch(o)}}else i()})}function mFe(t){return Promise.all([zJ(t,"::before"),zJ(t,"::after")])}function _Fe(t){return!(t.parentNode===document.head||~oze.indexOf(t.tagName.toUpperCase())||t.getAttribute(XI)||t.parentNode&&"svg"===t.parentNode.tagName)}function FJ(t){if(o3)return new Promise(function(n,e){var i=J6(t.querySelectorAll("*")).filter(_Fe).map(mFe),o=gN_begin("searchPseudoElements");LJ(),Promise.all(i).then(function(){o(),_N(),n()}).catch(function(){o(),_N(),e()})})}var CFe={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=FJ,e}}},provides:function(n){n.pseudoElements2svg=function(e){var i=e.node;Rr.searchPseudoElements&&FJ(void 0===i?Tc:i)}}},HJ=!1,vFe={mixout:function(){return{dom:{unwatch:function(){LJ(),HJ=!0}}}},hooks:function(){return{bootstrap:function(){DJ(cN("mutationObserverCallbacks",{}))},noAuto:function(){!function tFe(){!_O||_O.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;HJ?_N():DJ(cN("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},VJ=function(n){return n.toLowerCase().split(" ").reduce(function(i,o){var r=o.toLowerCase().split("-"),a=r[0],l=r.slice(1).join("-");if(a&&"h"===l)return i.flipX=!0,i;if(a&&"v"===l)return i.flipY=!0,i;if(l=parseFloat(l),isNaN(l))return i;switch(a){case"grow":i.size=i.size+l;break;case"shrink":i.size=i.size-l;break;case"left":i.x=i.x-l;break;case"right":i.x=i.x+l;break;case"up":i.y=i.y-l;break;case"down":i.y=i.y+l;break;case"rotate":i.rotate=i.rotate+l}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},bFe={mixout:function(){return{parse:{transform:function(e){return VJ(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var o=i.getAttribute("data-fa-transform");return o&&(e.transform=VJ(o)),e}}},provides:function(n){n.generateAbstractTransformGrouping=function(e){var i=e.main,o=e.transform,a=e.iconWidth,l={transform:"translate(".concat(e.containerWidth/2," 256)")},u="translate(".concat(32*o.x,", ").concat(32*o.y,") "),f="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),M="rotate(".concat(o.rotate," 0 0)"),ie={outer:l,inner:{transform:"".concat(u," ").concat(f," ").concat(M)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:jo({},ie.outer),children:[{tag:"g",attributes:jo({},ie.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:jo(jo({},i.icon.attributes),ie.path)}]}]}}}},CN={x:0,y:0,width:"100%",height:"100%"};function BJ(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}var yFe={hooks:function(){return{parseNodeAttributes:function(e,i){var o=i.getAttribute("data-fa-mask"),r=o?pO(o.split(" ").map(function(a){return a.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=r4()),e.mask=r,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(n){n.generateAbstractMask=function(e){var t,i=e.children,o=e.attributes,r=e.main,a=e.mask,l=e.maskId,M=r.icon,U=a.icon,ie=function bze(t){var n=t.transform,i=t.iconWidth,o={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(r," ").concat(a," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:e.transform,containerWidth:a.width,iconWidth:r.width}),se={tag:"rect",attributes:jo(jo({},CN),{},{fill:"white"})},Me=M.children?{children:M.children.map(BJ)}:{},we={tag:"g",attributes:jo({},ie.inner),children:[BJ(jo({tag:M.tag,attributes:jo(jo({},M.attributes),ie.path)},Me))]},He={tag:"g",attributes:jo({},ie.outer),children:[we]},Be="mask-".concat(l||FC()),me="clip-".concat(l||FC()),ze={tag:"mask",attributes:jo(jo({},CN),{},{id:Be,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[se,He]},qe={tag:"defs",children:[{tag:"clipPath",attributes:{id:me},children:(t=U,"g"===t.tag?t.children:[t])},ze]};return i.push(qe,{tag:"rect",attributes:jo({fill:"currentColor","clip-path":"url(#".concat(me,")"),mask:"url(#".concat(Be,")")},CN)}),{children:i,attributes:o}}}},wFe={provides:function(n){var e=!1;n4.matchMedia&&(e=n4.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],o={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:jo(jo({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=jo(jo({},r),{},{attributeName:"opacity"}),l={tag:"circle",attributes:jo(jo({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||l.children.push({tag:"animate",attributes:jo(jo({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:jo(jo({},a),{},{values:"1;0;1;1;0;1;"})}),i.push(l),i.push({tag:"path",attributes:jo(jo({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:jo(jo({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:jo(jo({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:jo(jo({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},OFe=[wze,dFe,uFe,hFe,pFe,CFe,vFe,bFe,yFe,wFe,{hooks:function(){return{parseNodeAttributes:function(e,i){var o=i.getAttribute("data-fa-symbol");return e.symbol=null!==o&&(""===o||o),e}}}}];!function Fze(t,n){var e=n.mixoutsTo;yJ=t,t_={},Object.keys(n_).forEach(function(i){-1===zze.indexOf(i)&&delete n_[i]}),yJ.forEach(function(i){var o=i.mixout?i.mixout():{};if(Object.keys(o).forEach(function(a){"function"==typeof o[a]&&(e[a]=o[a]),"object"===oO(o[a])&&Object.keys(o[a]).forEach(function(l){e[a]||(e[a]={}),e[a][l]=o[a][l]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(a){t_[a]||(t_[a]=[]),t_[a].push(r[a])})}i.provides&&i.provides(n_)})}(OFe,{mixoutsTo:gu});var SFe=gu.parse,PFe=gu.icon;const TFe=["*"],LFe=t=>{const n={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(n).map(e=>n[e]?e:null).filter(e=>e)};let IFe=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GJ=(()=>{class t{constructor(){this.definitions={}}addIcons(...e){for(const i of e){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const o of i.icon[2])"string"==typeof o&&(this.definitions[i.prefix][o]=i)}}addIconPacks(...e){for(const i of e){const o=Object.keys(i).map(r=>i[r]);this.addIcons(...o)}}getIconDefinition(e,i){return e in this.definitions&&i in this.definitions[e]?this.definitions[e][i]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),NFe=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=St({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[Yo]}),t})(),RFe=(()=>{class t{constructor(e,i){this.renderer=e,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(ue(yl),ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[Yo],ngContentSelectors:TFe,decls:1,vars:0,template:function(e,i){1&e&&(ls(),Vr(0))},encapsulation:2}),t})(),ps=(()=>{class t{constructor(e,i,o,r,a){this.sanitizer=e,this.config=i,this.iconLibrary=o,this.stackItem=r,this.classes=[],null!=a&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,e){const o=this.findIconDefinition(i);if(null!=o){const r=this.buildParams();this.renderIcon(o,r)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const i=((t,n)=>(t=>void 0!==t.prefix&&void 0!==t.iconName)(t)?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:n,iconName:t}:void 0)(e,this.config.defaultPrefix);if("icon"in i)return i;const o=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=o?o:((t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(i),null)}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?SFe.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...LFe(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,i){const o=PFe(e,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(o.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(ue(r9),ue(IFe),ue(GJ),ue(NFe,8),ue(RFe,8))},t.\u0275cmp=vn({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,i){2&e&&(Fu("innerHTML",i.renderedIconHTML,A5),Un("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[Yo],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),YJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();C(71345),new ui("SMOOTH_SCROLL_OPTIONS");let zFe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const VFe=new ui("NG_SCROLLBAR_OPTIONS");let UJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:VFe,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Lf,Vf,mbe,zFe]]}),t})();function F0(t){return getComputedStyle(t)}function L2(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function CO(t){var n=document.createElement("div");return n.className=t,n}var jJ="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function a4(t,n){if(!jJ)throw new Error("No element matching method supported");return jJ.call(t,n)}function i_(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function WJ(t,n){return Array.prototype.filter.call(t.children,function(e){return a4(e,n)})}var Zl_element_thumb=function(t){return"ps__thumb-"+t},Zl_element_rail=function(t){return"ps__rail-"+t},Zl_element_consuming="ps__child--consume",Zl_state_focus="ps--focus",Zl_state_clicking="ps--clicking",Zl_state_active=function(t){return"ps--active-"+t},Zl_state_scrolling=function(t){return"ps--scrolling-"+t},qJ={x:null,y:null};function $J(t,n){var e=t.element.classList,i=Zl_state_scrolling(n);e.contains(i)?clearTimeout(qJ[n]):e.add(i)}function XJ(t,n){qJ[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(Zl_state_scrolling(n))},t.settings.scrollingThreshold)}var GC=function(n){this.element=n,this.handlers={}},QJ={isEmpty:{configurable:!0}};GC.prototype.bind=function(n,e){void 0===this.handlers[n]&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},GC.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(o){return!(!e||o===e)||(i.element.removeEventListener(n,o,!1),!1)})},GC.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},QJ.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(GC.prototype,QJ);var o_=function(){this.eventElements=[]};function vO(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function bO(t,n,e,i,o){var r;if(void 0===i&&(i=!0),void 0===o&&(o=!1),"top"===n)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function GFe(t,n,e,i,o){var r=e[0],a=e[1],l=e[2],u=e[3],f=e[4],M=e[5];void 0===i&&(i=!0),void 0===o&&(o=!1);var T=t.element;t.reach[u]=null,T[l]<1&&(t.reach[u]="start"),T[l]>t[r]-t[a]-1&&(t.reach[u]="end"),n&&(T.dispatchEvent(vO("ps-scroll-"+u)),n<0?T.dispatchEvent(vO("ps-scroll-"+f)):n>0&&T.dispatchEvent(vO("ps-scroll-"+M)),i&&function BFe(t,n){$J(t,n),XJ(t,n)}(t,u)),t.reach[u]&&(n||o)&&T.dispatchEvent(vO("ps-"+u+"-reach-"+t.reach[u]))}(t,e,r,i,o)}function ol(t){return parseInt(t,10)||0}o_.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new GC(n),this.eventElements.push(e)),e},o_.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},o_.prototype.unbind=function(n,e,i){var o=this.eventElement(n);o.unbind(e,i),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1)},o_.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},o_.prototype.once=function(n,e,i){var o=this.eventElement(n),r=function(a){o.unbind(e,r),i(a)};o.bind(e,r)};var r_={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function c3(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(WJ(n,Zl_element_rail("x")).forEach(function(o){return i_(o)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(WJ(n,Zl_element_rail("y")).forEach(function(o){return i_(o)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function jFe(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,L2(n.scrollbarXRail,e);var o={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?o.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:o.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,L2(n.scrollbarYRail,o),L2(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),L2(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(Zl_state_active("x")):(n.classList.remove(Zl_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(Zl_state_active("y")):(n.classList.remove(Zl_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function ZJ(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function KJ(t,n){var e=n[0],i=n[1],o=n[2],r=n[3],a=n[4],l=n[5],u=n[6],f=n[7],M=n[8],T=t.element,U=null,ie=null,se=null;function Me(Be){Be.touches&&Be.touches[0]&&(Be[o]=Be.touches[0].pageY),T[u]=U+se*(Be[o]-ie),$J(t,f),c3(t),Be.stopPropagation(),Be.preventDefault()}function we(){XJ(t,f),t[M].classList.remove(Zl_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",Me)}function He(Be,me){U=T[u],me&&Be.touches&&(Be[o]=Be.touches[0].pageY),ie=Be[o],se=(t[i]-t[e])/(t[r]-t[l]),me?t.event.bind(t.ownerDocument,"touchmove",Me):(t.event.bind(t.ownerDocument,"mousemove",Me),t.event.once(t.ownerDocument,"mouseup",we),Be.preventDefault()),t[M].classList.add(Zl_state_clicking),Be.stopPropagation()}t.event.bind(t[a],"mousedown",function(Be){He(Be)}),t.event.bind(t[a],"touchstart",function(Be){He(Be,!0)})}var KFe={"click-rail":function WFe(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,c3(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,c3(t),e.stopPropagation()})},"drag-thumb":function qFe(t){KJ(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),KJ(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function $Fe(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(a4(n,":hover")||a4(t.scrollbarX,":focus")||a4(t.scrollbarY,":focus"))){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(function YFe(t){return a4(t,"input,[contenteditable]")||a4(t,"select,[contenteditable]")||a4(t,"textarea,[contenteditable]")||a4(t,"button,[contenteditable]")}(a))return}var l=0,u=0;switch(r.which){case 37:l=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:u=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:l=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:u=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:u=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==l||t.settings.suppressScrollY&&0!==u||(n.scrollTop-=u,n.scrollLeft+=l,c3(t),function o(r,a){var l=Math.floor(n.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===l&&a>0||l>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var u=n.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===u&&r<0||u>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}(l,u)&&r.preventDefault())}})},wheel:function XFe(t){var n=t.element;function r(a){var l=function i(a){var l=a.deltaX,u=-1*a.deltaY;return(void 0===l||void 0===u)&&(l=-1*a.wheelDeltaX/6,u=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(l*=10,u*=10),l!=l&&u!=u&&(l=0,u=a.wheelDelta),a.shiftKey?[-u,-l]:[l,u]}(a),u=l[0],f=l[1];if(!function o(a,l,u){if(!r_.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(a))return!1;for(var f=a;f&&f!==n;){if(f.classList.contains(Zl_element_consuming))return!0;var M=F0(f);if(u&&M.overflowY.match(/(scroll|auto)/)){var T=f.scrollHeight-f.clientHeight;if(T>0&&(f.scrollTop>0&&u<0||f.scrollTop0))return!0}if(l&&M.overflowX.match(/(scroll|auto)/)){var U=f.scrollWidth-f.clientWidth;if(U>0&&(f.scrollLeft>0&&l<0||f.scrollLeft0))return!0}f=f.parentNode}return!1}(a.target,u,f)){var M=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?n.scrollTop-=f*t.settings.wheelSpeed:n.scrollTop+=u*t.settings.wheelSpeed,M=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?n.scrollLeft+=u*t.settings.wheelSpeed:n.scrollLeft-=f*t.settings.wheelSpeed,M=!0):(n.scrollTop-=f*t.settings.wheelSpeed,n.scrollLeft+=u*t.settings.wheelSpeed),c3(t),M=M||function e(a,l){var u=Math.floor(n.scrollTop),f=0===n.scrollTop,M=u+n.offsetHeight===n.scrollHeight,T=0===n.scrollLeft,U=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(l)>Math.abs(a)?f||M:T||U)||!t.settings.wheelPropagation}(u,f),M&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}void 0!==window.onwheel?t.event.bind(n,"wheel",r):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",r)},touch:function QFe(t){if(r_.supportsTouch||r_.supportsIePointer){var n=t.element,o={},r=0,a={},l=null;r_.supportsTouch?(t.event.bind(n,"touchstart",M),t.event.bind(n,"touchmove",U),t.event.bind(n,"touchend",ie)):r_.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",M),t.event.bind(n,"pointermove",U),t.event.bind(n,"pointerup",ie)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",M),t.event.bind(n,"MSPointerMove",U),t.event.bind(n,"MSPointerUp",ie)))}function i(se,Me){n.scrollTop-=Me,n.scrollLeft-=se,c3(t)}function u(se){return se.targetTouches?se.targetTouches[0]:se}function f(se){return!(se.pointerType&&"pen"===se.pointerType&&0===se.buttons||!(se.targetTouches&&1===se.targetTouches.length||se.pointerType&&"mouse"!==se.pointerType&&se.pointerType!==se.MSPOINTER_TYPE_MOUSE))}function M(se){if(f(se)){var Me=u(se);o.pageX=Me.pageX,o.pageY=Me.pageY,r=(new Date).getTime(),null!==l&&clearInterval(l)}}function U(se){if(f(se)){var Me=u(se),we={pageX:Me.pageX,pageY:Me.pageY},He=we.pageX-o.pageX,Be=we.pageY-o.pageY;if(function T(se,Me,we){if(!n.contains(se))return!1;for(var He=se;He&&He!==n;){if(He.classList.contains(Zl_element_consuming))return!0;var Be=F0(He);if(we&&Be.overflowY.match(/(scroll|auto)/)){var me=He.scrollHeight-He.clientHeight;if(me>0&&(He.scrollTop>0&&we<0||He.scrollTop0))return!0}if(Me&&Be.overflowX.match(/(scroll|auto)/)){var ze=He.scrollWidth-He.clientWidth;if(ze>0&&(He.scrollLeft>0&&Me<0||He.scrollLeft0))return!0}He=He.parentNode}return!1}(se.target,He,Be))return;i(He,Be),o=we;var me=(new Date).getTime(),ze=me-r;ze>0&&(a.x=He/ze,a.y=Be/ze,r=me),function e(se,Me){var we=Math.floor(n.scrollTop),He=n.scrollLeft,Be=Math.abs(se),me=Math.abs(Me);if(me>Be){if(Me<0&&we===t.contentHeight-t.containerHeight||Me>0&&0===we)return 0===window.scrollY&&Me>0&&r_.isChrome}else if(Be>me&&(se<0&&He===t.contentWidth-t.containerWidth||se>0&&0===He))return!0;return!0}(He,Be)&&se.preventDefault()}}function ie(){t.settings.swipeEasing&&(clearInterval(l),l=setInterval(function(){t.isInitialized?clearInterval(l):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(l):(i(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(l)},10))}}},YC=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var o in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[o]=e[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var M,f,r=function(){return n.classList.add(Zl_state_focus)},a=function(){return n.classList.remove(Zl_state_focus)};this.isRtl="rtl"===F0(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(f=n.scrollLeft,n.scrollLeft=-1,M=n.scrollLeft<0,n.scrollLeft=f,M),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new o_,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=CO(Zl_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=CO(Zl_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=F0(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ol(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ol(l.borderLeftWidth)+ol(l.borderRightWidth),L2(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ol(l.marginLeft)+ol(l.marginRight),L2(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=CO(Zl_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=CO(Zl_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=F0(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ol(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function UFe(t){var n=F0(t);return ol(n.width)+ol(n.paddingLeft)+ol(n.paddingRight)+ol(n.borderLeftWidth)+ol(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ol(u.borderTopWidth)+ol(u.borderBottomWidth),L2(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ol(u.marginTop)+ol(u.marginBottom),L2(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return KFe[f](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),c3(this)};YC.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,L2(this.scrollbarXRail,{display:"block"}),L2(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ol(F0(this.scrollbarXRail).marginLeft)+ol(F0(this.scrollbarXRail).marginRight),this.railYMarginHeight=ol(F0(this.scrollbarYRail).marginTop)+ol(F0(this.scrollbarYRail).marginBottom),L2(this.scrollbarXRail,{display:"none"}),L2(this.scrollbarYRail,{display:"none"}),c3(this),bO(this,"top",0,!1,!0),bO(this,"left",0,!1,!0),L2(this.scrollbarXRail,{display:""}),L2(this.scrollbarYRail,{display:""}))},YC.prototype.onScroll=function(n){!this.isAlive||(c3(this),bO(this,"top",this.element.scrollTop-this.lastScrollTop),bO(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},YC.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),i_(this.scrollbarX),i_(this.scrollbarY),i_(this.scrollbarXRail),i_(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},YC.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const JFe=YC;var JJ=function(){if("undefined"!=typeof Map)return Map;function t(n,e){var i=-1;return n.some(function(o,r){return o[0]===e&&(i=r,!0)}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(e){var i=t(this.__entries__,e),o=this.__entries__[i];return o&&o[1]},n.prototype.set=function(e,i){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=i:this.__entries__.push([e,i])},n.prototype.delete=function(e){var i=this.__entries__,o=t(i,e);~o&&i.splice(o,1)},n.prototype.has=function(e){return!!~t(this.__entries__,e)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(e,i){void 0===i&&(i=null);for(var o=0,r=this.__entries__;o0},t.prototype.connect_=function(){!vN||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rHe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!vN||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(n){var e=n.propertyName,i=void 0===e?"":e;oHe.some(function(r){return!!~i.indexOf(r)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),eee=function(t,n){for(var e=0,i=Object.keys(n);e0},t}(),iee="undefined"!=typeof WeakMap?new WeakMap:new JJ,oee=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=aHe.getInstance(),i=new mHe(n,e,this);iee.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){oee.prototype[t]=function(){var n;return(n=iee.get(this))[t].apply(n,arguments)}});const CHe=void 0!==xO.ResizeObserver?xO.ResizeObserver:oee,xHe=new ui("PERFECT_SCROLLBAR_CONFIG");class yHe{constructor(n,e,i,o){this.x=n,this.y=e,this.w=i,this.h=o}}class ree{constructor(n,e){this.x=n,this.y=e}}const aee=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class wHe{constructor(n={}){this.assign(n)}assign(n={}){for(const e in n)this[e]=n[e]}}let s4=(()=>{class t{constructor(e,i,o,r,a){this.zone=e,this.differs=i,this.elementRef=o,this.platformId=r,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new N,this.disabled=!1,this.psScrollY=new In,this.psScrollX=new In,this.psScrollUp=new In,this.psScrollDown=new In,this.psScrollLeft=new In,this.psScrollRight=new In,this.psYReachEnd=new In,this.psYReachStart=new In,this.psXReachEnd=new In,this.psXReachStart=new In}ngOnInit(){if(!this.disabled&&ll(this.platformId)){const e=new wHe(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new JFe(this.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new CHe(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{aee.forEach(i=>{const o=i.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`);Jc(this.elementRef.nativeElement,o).pipe(FD(20),Yn(this.ngDestroy)).subscribe(r=>{this[i].emit(r)})})})}}ngOnDestroy(){ll(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&ll(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(e){e.disabled&&!e.disabled.isFirstChange()&&ll(this.platformId)&&e.disabled.currentValue!==e.disabled.previousValue&&(!0===e.disabled.currentValue?this.ngOnDestroy():!1===e.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(e){}},0))}geometry(e="scroll"){return new yHe(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.instance?new ree(this.instance.reach.x||0,this.instance.reach.y||0):new ree(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(e="any"){const i=this.elementRef.nativeElement;return"any"===e?i.classList.contains("ps--active-x")||i.classList.contains("ps--active-y"):"both"===e?i.classList.contains("ps--active-x")&&i.classList.contains("ps--active-y"):i.classList.contains("ps--active-"+e)}scrollTo(e,i,o){this.disabled||(null==i&&null==o?this.animateScrolling("scrollTop",e,o):(null!=e&&this.animateScrolling("scrollLeft",e,o),null!=i&&this.animateScrolling("scrollTop",i,o)))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,o){if("string"==typeof e&&(e=this.elementRef.nativeElement.querySelector(e)),e){const r=e.getBoundingClientRect(),a=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-a.left+this.elementRef.nativeElement.scrollLeft+(i||0),o),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-a.top+this.elementRef.nativeElement.scrollTop+(i||0),o)}}animateScrolling(e,i,o){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),o&&"undefined"!=typeof window){if(i!==this.elementRef.nativeElement[e]){let r=0,a=0,l=performance.now(),u=this.elementRef.nativeElement[e];const f=(u-i)/2,M=T=>{a+=Math.PI/(o/(T-l)),r=Math.round(i+f+f*Math.cos(a)),this.elementRef.nativeElement[e]===u&&(a>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=r,u=this.elementRef.nativeElement[e],l=T,this.animation=window.requestAnimationFrame(M)))};window.requestAnimationFrame(M)}}else this.elementRef.nativeElement[e]=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Of),ue(Ti),ue(Hc),ue(xHe,8))},t.\u0275dir=St({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[Yo]}),t})(),MO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va],va]}),t})(),D1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Uf,OQ,$p,LM,UQ,jQ,lZ,UJ,MO,YK,YJ],va,OQ,Uf,$p,LM,UQ,jQ,lZ,UJ,MO,YK,YJ]}),t})();const MHe={customScrollbars:!0,routerAnimation:"fadeIn"};class zh{static cleanID(n){return n&&n.replace(/\W/g,"_")}static generateGUID(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()}static pad(n,e){let i=0,o="";for(;i++{return(t=H0||(H0={})).ACTIVITY_NODE="activity_node",t.EVIDENCE="evidence",t.ENTITY="entity",t.ARTICLE="article",t.CONTRIBUTOR="contributor",H0;var t})();class Pi{constructor(n,e,i,o,r){this.id=n,this.label=e,this.url=i,this.modelId=r,this.entityType=H0.ENTITY,this.termHistory=[],this.weight=1,this._uuid=null,this.uuid=o}static createEntity(n){return new Pi(null==n?void 0:n.id,null==n?void 0:n.label)}get uuid(){return this._uuid}set uuid(n){n&&(this._uuid=n),this.displayId="noc-node-"+zh.cleanID(n)}hasValue(){return null!=this.id&&this.id.length>0}}function LHe(t,n){return t.weight{return(t=El||(El={})).general="general",t.cardinality="cardinality",t.relation="relation",El;var t})(),Al=(()=>{return(t=Al||(Al={})).warning="warning",t.error="error",Al;var t})();class wd{constructor(n,e,i,o){this.category=n,this.type=e,this.message=i,this.meta=o}}class c_{constructor(n,e){this.results=[],this.category=n,this.requestParams=e}}class sm{constructor(n,e,i){this.uuid=n,this.oldValue=e,this.newValue=i}}class bN{constructor(){this.categoryType="isa_closure"}}var $n=(()=>{return(t=$n||($n={})).GoCellularComponent="GoCellularComponent",t.GoBiologicalProcess="GoBiologicalProcess",t.GoMolecularFunction="GoMolecularFunction",t.GoMolecularEntity="GoMolecularEntity",t.GoCellularAnatomical="GoCellularAnatomical",t.GoProteinContainingComplex="GoProteinContainingComplex",t.GoBiologicalPhase="GoBiologicalPhase",t.GoChemicalEntity="GoChemicalEntity",t.GoCellTypeEntity="GoCellTypeEntity",t.GoAnatomicalEntity="GoAnatomicalEntity",t.GoOrganism="GoOrganism",t.WormLifeStage="WormLifeStage",t.GoChemicalEntityHasInput="GoChemicalEntityHasInput",t.GoChemicalEntityHasOutput="GoChemicalEntityHasOutput",t.GoEvidence="GoEvidence",t.BPPhaseStageExistenceOverlaps="BPPhaseStageExistenceOverlaps",t.BPPhaseStageExistenceStartsEnds="BPPhaseStageExistenceStartsEnds",t.UberonStage="UberonStage",$n;var t})();class OO{constructor(n){this.entityType=H0.ACTIVITY_NODE,this.rootTypes=[],this.term=new Pi("",""),this.termLookup=new c_,this.isExtension=!1,this.nodeGroup={},this.ontologyClass=[],this.isComplement=!1,this.assignedBy=null,this.contributor=null,this.isCatalyticActivity=!1,this.isKey=!1,this.treeLevel=1,this.required=!1,this.termRequired=!1,this.visible=!0,this.skipEvidenceCheck=!1,this.showEvidence=!0,this.errors=[],this.warnings=[],this.status="0",this.relationEditable=!1,this.showInMenu=!1,this.insertMenuNodes=[],this.linkedNode=!1,this.expandable=!0,this.expanded=!1,this.causalNode=!1,this.canDelete=!0,n&&this.overrideValues(n)}getTerm(){return this.term}get id(){return this._id}set id(n){this._id=n,this.displayId=zh.cleanID(n)}get classExpression(){return this.term.classExpression}set classExpression(n){this.term.classExpression=n}updateNodeType(){this.hasRootType(Jl)?this.type=$n.GoBiologicalProcess:this.hasRootType(e1)?this.type=$n.GoMolecularEntity:this.hasRootType(p1)?this.type=$n.GoMolecularFunction:this.hasRootType(Jl)?this.type=$n.GoBiologicalProcess:this.hasRootType(rd)&&(this.type=$n.GoCellularComponent)}setTermOntologyClass(n){this.ontologyClass=n}toggleIsComplement(){const n=this;n.isComplement=!n.isComplement,n.nodeGroup.isComplement=n.isComplement}setIsComplement(n){this.isComplement=n}hasValue(){return this.term.hasValue()}hasRootType(n){return!!(0,Zt.find)(this.rootTypes,i=>i.id===n.category)}hasRootTypes(n){let e=!1;for(let i=0;i0&&(e=!1),e}reviewTermChanges(n,e){const i=this;let o=!1;return i.term.modified&&(i.type===$n.GoMolecularEntity?(e.gpsCount++,n.gpsCount++):(e.termsCount++,n.termsCount++),o=!0),(0,Zt.each)(i.predicate.evidence,(r,a)=>{const l=r.reviewEvidenceChanges(n,e);o=o||l}),e.updateTotal(),o}checkStored(n){const e=this;n&&e.term.id!==n.term.id&&(e.term.termHistory.unshift(new Pi(n.term.id,n.term.label)),e.term.modified=!0),(0,Zt.each)(e.predicate.evidence,(i,o)=>{const r=null==n?void 0:n.predicate.getEvidenceById(i.uuid);i.checkStored(r)})}addPendingChanges(n){const e=this;e.term.id!==n.term.id&&(e.pendingEntityChanges=new sm(e.uuid,n.term,e.term)),e.predicate.edge.id!==n.predicate.edge.id&&(e.pendingRelationChanges=new sm(e.uuid,n.predicate.edge,e.predicate.edge)),(0,Zt.each)(e.predicate.evidence,(i,o)=>{const r=n.predicate.getEvidenceById(i.uuid);i.addPendingChanges(r)})}enableSubmit(n,e=!0){const i=this;let o=!0;if(i.termRequired&&!i.term.id){i.required=!0;const a=new wd(Al.error,El.general,`"${i.label}" is required`,{aspect:i.label});n.push(a),o=!1}else i.required=!1;return!i.skipEvidenceCheck&&i.hasValue()&&e&&(0,Zt.each)(i.predicate.evidence,(r,a)=>{o=r.enableSubmit(n,i,a+1)&&o}),o}overrideValues(n={}){Object.assign(this,n)}}function SO(t){return t.map(e=>{let i;return i="is_obsolete"===e.categoryType?`${e.categoryType}:${e.category}`:`${e.categoryType}:"${e.category}"`,e.suffix&&(i+=" "+e.suffix),i}).join(" OR ")}function cee(t,n){return t.term.id===n.term.id}function lee(t,n){return t.weight0;e=l&&u}return e}}function uee(t,n){return t.evidence.id===n.evidence.id&&t.reference===n.reference&&t.with===n.with}function hee(t,n){return t.evidence.id===n.evidence.id}function pee(t,n){return t.reference===n.reference}function fee(t,n){return t.with===n.with}function FHe(t,n){return t.date===n.date}class h3{constructor(n,e){this._edge=new Pi("",""),this.isComplement=!1,this.isReverseLink=!1,this.comments=[],this.evidenceLookup=new c_,this.referenceLookup=new c_,this.withLookup=new c_,this._evidenceMeta={lookupBase:"",ontologyClass:"eco"},this.visible=!0,this.edge=n,this.evidence=e||[]}get edge(){return this._edge}set edge(n){this._edge=n||new Pi("","")}setEvidenceMeta(n,e){this._evidenceMeta.lookupBase=e,this._evidenceMeta.ontologyClass=n,this.evidenceLookup.requestParams=JSON.parse(JSON.stringify(e)),this.addEvidence()}setEvidence(n){const e=this;e.evidence=[],(0,Zt.each)(n,function(i,o){e.addEvidence(i)})}addEvidence(n){const i=n?(0,Zt.cloneDeep)(n):new Ll;return i.setEvidenceOntologyClass(this._evidenceMeta.ontologyClass),this.evidence.push(i),i}hasEvidence(){return!!this.evidence&&(this.evidence.length>1||this.evidence.length>0&&!!this.evidence[0].hasValue())}removeEvidence(n){const e=this;0===n&&1===e.evidence.length?e.evidence[0].clearValues():e.evidence.splice(n,1)}resetEvidence(){const n=this;n.evidence=[n.evidence[0]],n.evidence[0].clearValues()}getEvidenceById(n){return(0,Zt.find)(this.evidence,i=>i.uuid===n)}}const TO={defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"50",start:"0",packet:"1",callback_type:"search",qf:["annotation_class^3","annotation_class_label_searchable^5.5","description_searchable^1","comment_searchable^0.5","synonym_searchable^1","alternate_id^1","isa_closure^1","isa_closure_label_searchable^1"],_:Date.now()},mu=(t,n={})=>{const e=new OO,i=new h3(null),o=SO(t),r=SO([xN]);return e.overrideValues(n),i.setEvidenceMeta("eco",Object.assign({},JSON.parse(JSON.stringify(TO)),{fq:['document_category:"ontology_class"',r]})),e.predicate=i,t&&t.length>0&&(e.termLookup=new c_(null,Object.assign({},JSON.parse(JSON.stringify(TO)),{fq:['document_category:"ontology_class"',o]}))),e};var EO,BHe=new Uint8Array(16);function GHe(){if(!EO&&!(EO="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return EO(BHe)}const YHe=/^(?:[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,jHe=function UHe(t){return"string"==typeof t&&YHe.test(t)};for(var ad=[],yN=0;yN<256;++yN)ad.push((yN+256).toString(16).substr(1));const WC=function $He(t,n,e){var i=(t=t||{}).random||(t.rng||GHe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=i[o];return n}return function WHe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(ad[t[n+0]]+ad[t[n+1]]+ad[t[n+2]]+ad[t[n+3]]+"-"+ad[t[n+4]]+ad[t[n+5]]+"-"+ad[t[n+6]]+ad[t[n+7]]+"-"+ad[t[n+8]]+ad[t[n+9]]+"-"+ad[t[n+10]]+ad[t[n+11]]+ad[t[n+12]]+ad[t[n+13]]+ad[t[n+14]]+ad[t[n+15]]).toLowerCase();if(!jHe(e))throw TypeError("Stringified UUID is invalid");return e}(i)};class D2{constructor(n,e,i){this.id=WC(),this.subject=n,this.object=e,this.predicate=i}isTripleComplete(){return this.subject&&this.object&&this.predicate}}function qC(t,n,e){return t._nodes[e]=n,t._edges[e]=[],t}function cm(t){return t._nodes}function wN(t,n){return t._edges[n.subjectId].push(n),t}function KHe(t,n){return t.uuid===n.uuid}function JHe(t,n){const e=Object.values(cm(t)),i=Object.values(cm(n));return(0,Zt.differenceWith)(e,i,KHe)}var eVe=C(85510);class _ee{constructor(){this.graph={_nodes:{},_edges:{}},this.graphlib=new eVe.Graph}get nodes(){const n=cm(this.graph);return Object.values(n)}get edges(){return this.getEdges(null)}exist(n){return n in this.graph._nodes}getNode(n){return function gee(t,n){return t._nodes[n]}(this.graph,n)}getNodes(n){const e=this;return n.map(o=>e.getNode(o))}addNode(n){return this.graphlib.setNode(n.id),qC(this.graph,n,n.id)}addNodes(...n){const e=this;n.forEach(i=>{e.addNode(i)})}removeNode(n){this.graphlib.removeNode(n.id),function XHe(t,n){delete t._nodes[n]}(this.graph,n.id)}addEdge(n,e,i){const o=new D2(n,e,i),r={subjectId:n.id,objectId:e.id,metadata:o};this.graphlib.setEdge(o.subject.id,o.object.id),wN(this.graph,r)}addEdgeById(n,e,i){const o=this.getNode(n),r=this.getNode(e);this.addEdge(o,r,i)}editEdge(n,e,i){this.getEdge(n,e)}getEdge(n,e){const o=function QHe(t,n){return(0,Zt.find)(t._edges[n.subjectId],e=>e.objectId===n.objectId)}(this.graph,{subjectId:n,objectId:e,metadata:null});return o?o.metadata:null}getEdges(n){const e=function lm(t,n){if(n)return t._edges[n];const e=[];return Object.keys(t._edges).forEach(i=>{e.push(...t._edges[i])}),e}(this.graph,n);return null==e?void 0:e.map(i=>i.metadata)}removeEdge(n,e,i){const o=new D2(n,e,i),r={subjectId:n.id,objectId:e.id,metadata:o};this.graphlib.removeEdge(n.id,e.id),function ZHe(t,n){(0,Zt.remove)(t._edges[n.subjectId],e=>e.objectId===n.objectId)}(this.graph,r)}sourceNodes(){const n=this.graphlib.sources();return this.getNodes(n)}successors(n){const e=this.graphlib.successors(n);return this.getNodes(e)}descendants(n){const e=this._descendantsDFS(n);return this.getNodes(e)}_descendantsDFS(n){const e=this,i=this.graphlib.successors(n);return i?(0,Zt.flatten)(i.concat(i.map(function(o){return e._descendantsDFS(o)}))):[]}getTrimmedGraph(n){const e=this,i={_nodes:{},_edges:{}},o=e.getEdges(n),r=e.getNode(n);return qC(i,r,r.id),(0,Zt.each)(o,a=>{e._trimGraphDFS(i,a.subject,a.object,a.predicate,a.predicate)}),i}edgeTypeExist(n,e,i,o){return(0,Zt.find)(this.getEdges(n),l=>l.predicate.edge.id===e&&l.subject.type===i&&l.object.type===o)}_trimGraphDFS(n,e,i,o,r){const a=this;if(i.hasValue()){const l=new h3(o.edge,r.evidence),u=new D2(e,i,l),f={subjectId:e.id,objectId:i.id,metadata:u};qC(n,i,i.id),wN(n,f)}(0,Zt.each)(a.getEdges(i.id),l=>{a._trimGraphDFS(n,i.hasValue()?i:e,l.object,i.hasValue()?l.predicate:o,l.predicate)})}}const $C=JSON.parse('{"Y":[{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002234","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000066","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002411","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002305","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002304","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002211","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002212","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002213","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":null,"object":["CARO:0000000","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012003","exclude_from_extensions":false},{"subject":"GO:0048856","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002296","exclude_from_extensions":false},{"subject":"GO:0048646","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002297","exclude_from_extensions":false},{"subject":"GO:0009653","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002298","exclude_from_extensions":false},{"subject":"GO:0030154","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002315","exclude_from_extensions":false},{"subject":"GO:0051301","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":false},{"subject":"GO:0045165","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002348","exclude_from_extensions":false},{"subject":"GO:0001709","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002349","exclude_from_extensions":false},{"subject":"GO:0001708","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002356","exclude_from_extensions":false},{"subject":"GO:0022607","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002588","exclude_from_extensions":false},{"subject":"GO:0022411","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002590","exclude_from_extensions":false},{"subject":"GO:0016043","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002592","exclude_from_extensions":false},{"subject":"GO:0021700","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002299","exclude_from_extensions":false},{"subject":"GO:0040007","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002343","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000","CHEBI:24431","CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"GO:0040011","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002565","exclude_from_extensions":false},{"subject":"GO:0008152","root_subject":"GO:0008150","object":["CHEBI:24431"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0008152","root_subject":"GO:0008150","object":["CHEBI:24431"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0034367","root_subject":"GO:0008150","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002591","exclude_from_extensions":false},{"subject":"GO:0007389","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002356","exclude_from_extensions":false},{"subject":"GO:0006810","root_subject":"GO:0008150","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0006810","root_subject":"GO:0008150","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002333","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000051","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000066","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["CHEBI:24431","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002234","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["CHEBI:24431","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002413","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002211","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002212","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002213","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002578","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002630","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002629","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012012","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002407","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002409","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012009","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012010","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent","GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002418","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004046","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004047","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002411","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002305","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002304","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":null,"object":["GO:0044848","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002092","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["CHEBI:24431","CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["GO:0005575"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["GO:0005575"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"CARO:0000000","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CARO:0000000","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001015","exclude_from_extensions":false},{"subject":"CL:0000003","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["CARO:0000000"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002220","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["CARO:0000000"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002131","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002490","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002491","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["CARO:0000000","GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000051","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002490","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":null,"object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002491","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["CARO:0000000","GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["GO:0003674"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002326","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0110165"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0110165","GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0003674"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002326","exclude_from_extensions":false}]}'),tVe=JSON.parse('[{"id":"CHEBI:33695","label":"information biomacromolecule","definition":"","comment":"","synonyms":[""]},{"id":"CHEBI:36080","label":"protein","definition":"A biological macromolecule minimally consisting of one polypeptide chain synthesized at the ribosome.","comment":"","synonyms":["proteins"]},{"id":"GO:0032991","label":"protein complex","definition":"A stable assembly of two or more macromolecules, i.e. proteins, nucleic acids, carbohydrates or lipids, in which at least one component is a protein and the constituent parts function together.","comment":"A protein complex in this context is meant as a stable set of interacting proteins which can be co-purified by an acceptable method, and where the complex has been shown to exist as an isolated, functional unit in vivo. Acceptable experimental methods include stringent protein purification followed by detection of protein interaction. The following methods should be considered non-acceptable: simple immunoprecipitation, pull-down experiments from cell extracts without further purification, colocalization and 2-hybrid screening. Interactions that should not be captured as protein complexes include: 1) enzyme/substrate, receptor/ligand or any similar transient interactions, unless these are a critical part of the complex assembly or are required e.g. for the receptor to be functional; 2) proteins associated in a pull-down/co-immunoprecipitation assay with no functional link or any evidence that this is a defined biological entity rather than a loose-affinity complex; 3) any complex where the only evidence is based on genetic interaction data; 4) partial complexes, where some subunits (e.g. transmembrane ones) cannot be expressed as recombinant proteins and are excluded from experiments (in this case, independent evidence is necessary to find out the composition of the full complex, if known). Interactions that may be captured as protein complexes include: 1) enzyme/substrate or receptor/ligand if the complex can only assemble and become functional in the presence of both classes of subunits; 2) complexes where one of the members has not been shown to be physically linked to the other(s), but is a homologue of, and has the same functionality as, a protein that has been experimentally demonstrated to form a complex with the other member(s); 3) complexes whose existence is accepted based on localization and pharmacological studies, but for which experimental evidence is not yet available for the complex as a whole.","synonyms":["macromolecular complex","macromolecule complex","protein complex"]},{"id":"GO:0005575","label":"cellular component","definition":"A location, relative to cellular compartments and structures, occupied by a macromolecular machine when it carries out a molecular function. There are two ways in which the gene ontology describes locations of gene products: (1) relative to cellular structures (e.g., cytoplasmic side of plasma membrane) or compartments (e.g., mitochondrion), and (2) the stable macromolecular complexes of which they are parts (e.g., the ribosome).","comment":"Note that, in addition to forming the root of the cellular component ontology, this term is recommended for use for the annotation of gene products whose cellular component is unknown. When this term is used for annotation, it indicates that no information was available about the cellular component of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this.","synonyms":["cell or subcellular entity","cellular component"]},{"id":"GO:0008150","label":"biological process","definition":"A biological process represents a specific objective that the organism is genetically programmed to achieve. Biological processes are often described by their outcome or ending state, e.g., the biological process of cell division results in the creation of two daughter cells (a divided cell) from a single parent cell. A biological process is accomplished by a particular set of molecular functions carried out by specific gene products (or macromolecular complexes), often in a highly regulated manner and in a particular temporal sequence.","comment":"Note that, in addition to forming the root of the biological process ontology, this term is recommended for use for the annotation of gene products whose biological process is unknown. When this term is used for annotation, it indicates that no information was available about the biological process of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this.","synonyms":["biological process","physiological process"]},{"id":"GO:0048856","label":"anatomical structure development","definition":"The biological process whose specific outcome is the progression of an anatomical structure from an initial condition to its mature state. This process begins with the formation of the structure and ends with the mature structure, whatever form that may be including its natural destruction. An anatomical structure is any biological entity that occupies space and is distinguished from its surroundings. Anatomical structures can be macroscopic such as a carpel, or microscopic such as an acrosome.","comment":"","synonyms":["development of an anatomical structure"]},{"id":"GO:0048646","label":"anatomical structure formation involved in morphogenesis","definition":"The developmental process pertaining to the initial formation of an anatomical structure from unspecified parts. This process begins with the specific processes that contribute to the appearance of the discrete structure and ends when the structural rudiment is recognizable. An anatomical structure is any biological entity that occupies space and is distinguished from its surroundings. Anatomical structures can be macroscopic such as a carpel, or microscopic such as an acrosome.","comment":"Note that, for example, the formation of a pseudopod in an amoeba would not be considered formation involved in morphogenesis because it would not be thought of as the formation of an anatomical structure that was part of the shaping of the amoeba during its development. The formation of an axon from a neuron would be considered the formation of an anatomical structure involved in morphogenesis because it contributes to the creation of the form of the neuron in a developmental sense.","synonyms":["formation of an anatomical structure involved in morphogenesis"]},{"id":"GO:0009653","label":"anatomical structure morphogenesis","definition":"The process in which anatomical structures are generated and organized. Morphogenesis pertains to the creation of form.","comment":"","synonyms":["anatomical structure organization","morphogenesis"]},{"id":"GO:0030154","label":"cell differentiation","definition":"The process in which relatively unspecialized cells, e.g. embryonic or regenerative cells, acquire specialized structural and/or functional features that characterize the cells, tissues, or organs of the mature organism or some other relatively stable phase of the organism\'s life history. Differentiation includes the processes involved in commitment of a cell to a specific fate and its subsequent development to the mature state.","comment":"","synonyms":[""]},{"id":"GO:0051301","label":"cell division","definition":"The process resulting in division and partitioning of components of a cell to form more cells; may or may not be accompanied by the physical separation of a cell into distinct, individually membrane-bounded daughter cells.","comment":"Note that this term differs from \'cytokinesis ; GO:0000910\' in that cytokinesis does not include nuclear division.","synonyms":[""]},{"id":"GO:0045165","label":"cell fate commitment","definition":"The commitment of cells to specific cell fates and their capacity to differentiate into particular kinds of cells. Positional information is established through protein signals that emanate from a localized source within a cell (the initial one-cell zygote) or within a developmental field.","comment":"Note that this term was \'cell fate determination\' but the term name was changed to better match its existing definition and the child term \'cell fate determination; GO:0001709\' was also created.","synonyms":[""]},{"id":"GO:0001709","label":"cell fate determination","definition":"A process involved in cell fate commitment. Once determination has taken place, a cell becomes committed to differentiate down a particular pathway regardless of its environment.","comment":"","synonyms":[""]},{"id":"GO:0001708","label":"cell fate specification","definition":"The process involved in the specification of cell identity. Once specification has taken place, a cell will be committed to differentiate down a specific pathway if left in its normal environment.","comment":"","synonyms":[""]},{"id":"GO:0022607","label":"cellular component assembly","definition":"The aggregation, arrangement and bonding together of a cellular component.","comment":"","synonyms":["cell structure assembly","cellular component assembly at cellular level"]},{"id":"GO:0022411","label":"cellular component disassembly","definition":"A cellular process that results in the breakdown of a cellular component.","comment":"","synonyms":["cell structure disassembly","cellular component disassembly at cellular level"]},{"id":"GO:0016043","label":"cellular component organization","definition":"A process that results in the assembly, arrangement of constituent parts, or disassembly of a cellular component.","comment":"","synonyms":["cell organisation","cellular component organisation at cellular level","cellular component organisation in other organism","cellular component organization at cellular level","cellular component organization in other organism"]},{"id":"GO:0021700","label":"developmental maturation","definition":"A developmental process, independent of morphogenetic (shape) change, that is required for an anatomical structure, cell or cellular component to attain its fully functional state.","comment":"","synonyms":[""]},{"id":"GO:0040007","label":"growth","definition":"The increase in size or mass of an entire organism, a part of an organism or a cell.","comment":"See also the biological process term \'cell growth ; GO:0016049\'.","synonyms":[""]},{"id":"GO:0051179","label":"localization","definition":"Any process in which a cell, a substance, or a cellular entity, such as a protein complex or organelle, is transported, tethered to or otherwise maintained in a specific location. In the case of substances, localization may also be achieved via selective degradation.","comment":"","synonyms":["establishment and maintenance of localization","establishment and maintenance of position","localisation"]},{"id":"GO:0040011","label":"locomotion","definition":"Self-propelled movement of a cell or organism from one location to another.","comment":"","synonyms":[""]},{"id":"GO:0034367","label":"protein-containing complex remodeling","definition":"The acquisition, loss, or modification of macromolecules within a complex, resulting in the alteration of an existing complex.","comment":"","synonyms":[""]},{"id":"GO:0007389","label":"pattern specification process","definition":"Any developmental process that results in the creation of defined areas or spaces within an organism to which cells respond and eventually are instructed to differentiate.","comment":"","synonyms":[""]},{"id":"GO:0008152","label":"metabolic process","definition":"The chemical reactions and pathways, including anabolism and catabolism, by which living organisms transform chemical substances. Metabolic processes typically transform small molecules, but also include macromolecular processes such as DNA repair and replication, and protein synthesis and degradation.","comment":"Note that metabolic processes do not include single functions or processes such as protein-protein interactions, protein-nucleic acids, nor receptor-ligand interactions.","synonyms":["metabolism"]},{"id":"GO:0006810","label":"transport","definition":"The directed movement of substances (such as macromolecules, small molecules, ions) or cellular components (such as complexes and organelles) into, out of or within a cell, or between cells, or within a multicellular organism by means of some agent such as a transporter or a transporter complex, a pore or a motor protein.","comment":"Note that this term should not be used for direct annotation. It should be possible to make a more specific annotation to one of the children of this term, for e.g. to transmembrane transport, to microtubule-based transport or to vesicle-mediated transport.","synonyms":[""]},{"id":"GO:0003674","label":"molecular function","definition":"A molecular process that can be carried out by the action of a single macromolecular machine, usually via direct physical interactions with other molecular entities. Function in this sense denotes an action, or activity, that a gene product (or a complex) performs. These actions are described from two distinct but related perspectives: (1) biochemical activity, and (2) role as a component in a larger system/process.","comment":"Note that, in addition to forming the root of the molecular function ontology, this term is recommended for use for the annotation of gene products whose molecular function is unknown. When this term is used for annotation, it indicates that no information was available about the molecular function of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this. Despite its name, this is not a type of \'function\' in the sense typically defined by upper ontologies such as Basic Formal Ontology (BFO). It is instead a BFO:process carried out by a single gene product or complex.","synonyms":["molecular function"]},{"id":"GO:0005215","label":"transporter activity","definition":"Enables the directed movement of substances (such as macromolecules, small molecules, ions) into, out of or within a cell, or between cells.","comment":"Some transporters, such as certain members of the SLC family, are referred to as \'carriers\'; however GO uses carrier with a different meaning: a carrier binds to and transports the substance (see GO:0140104 molecular carrier activity), whereas a transporter forms some pore that allows the passing of molecules.","synonyms":[""]},{"id":"CHEBI:24431","label":"chemical","definition":"A chemical entity is a physical entity of interest in chemistry including molecular entities, parts thereof, and chemical substances.","comment":"","synonyms":["chemical entity"]},{"id":"ECO:0000000","label":"evidence","definition":"A type of information that is used to support an assertion.","comment":"","synonyms":[""]},{"id":"CARO:0000000","label":"anatomy","definition":"","comment":"","synonyms":[""]},{"id":"CL:0000003","label":"cell","definition":"A cell that is found in a natural setting, which includes multicellular organism cells \'in vivo\' (i.e. part of an organism), and unicellular organisms \'in environment\' (i.e. part of a natural environment).","comment":"","synonyms":[""]},{"id":"NCBITaxon:1","label":"Organism","definition":"","comment":"","synonyms":[""]},{"id":"GO:0044848","label":"biological phase","definition":"A distinct period or stage in a biological process or cycle.","comment":"Note that phases are is_a disjoint from other biological processes. happens_during relationships can operate between phases and other biological processes e.g. DNA replication happens_during S phase.","synonyms":[""]},{"id":"UBERON:0000105","label":"stage","definition":"A spatiotemporal region encompassing some part of the life cycle of an organism.","comment":"","synonyms":[""]},{"id":"PO:0009012","label":"plant stage","definition":"A stage in the life of a plant structure (PO:0009011) during which the plant structure undergoes developmental processes.","comment":"","synonyms":["etapa de desarrollo de estructura vegetal (Spanish, exact)","plant growth and development stage (exact)"]},{"id":"BFO:0000050","label":"part of","definition":"a core relation that holds between a part and its whole","comment":"","synonyms":[""]},{"id":"BFO:0000051","label":"has part","definition":"a core relation that holds between a whole and its part","comment":"","synonyms":[""]},{"id":"BFO:0000066","label":"occurs in","definition":"b occurs_in c =def b is a process and c is a material entity or immaterial entity& there exists a spatiotemporal region r and b occupies_spatiotemporal_region r.& forall(t) if b exists_at t then c exists_at t & there exist spatial regions s and s\u2019 where & b spatially_projects_onto s at t& c is occupies_spatial_region s\u2019 at t& s is a proper_continuant_part_of s\u2019 at t","comment":"Paraphrase of definition: a relation between a process and an independent continuant, in which the process takes place entirely within the independent continuant","synonyms":[""]},{"id":"RO:0002220","label":"adjacent to","definition":"x adjacent to y if and only if x and y share a boundary.","comment":"","synonyms":[""]},{"id":"RO:0002131","label":"overlaps","definition":"x overlaps y if and only if there exists some z such that x has part z and z part of y","comment":"","synonyms":[""]},{"id":"RO:0002490","label":"existence overlaps","definition":"x existence overlaps y if and only if either (a) the start of x is part of y or (b) the end of x is part of y. Formally: x existence starts and ends during y iff (\u03b1(x) >= \u03b1(y) & \u03b1(x) <= \u03c9(y)) OR (\u03c9(x) <= \u03c9(y) & \u03c9(x) >= \u03b1(y))","comment":"The relations here were created based on work originally by Fabian Neuhaus and David Osumi-Sutherland. The work has not yet been vetted and errors in definitions may have occurred during transcription.","synonyms":[""]},{"id":"RO:0002491","label":"existence starts and ends during","definition":"x exists during y if and only if: 1) the time point at which x begins to exist is after or equal to the time point at which y begins and 2) the time point at which x ceases to exist is before or equal to the point at which y ends. Formally: x existence starts and ends during y iff \u03b1(x) >= \u03b1(y) & \u03b1(x) <= \u03c9(y) & \u03c9(x) <= \u03c9(y) & \u03c9(x) >= \u03b1(y)","comment":"The relations here were created based on work originally by Fabian Neuhaus and David Osumi-Sutherland. The work has not yet been vetted and errors in definitions may have occurred during transcription.","synonyms":["exists during"]},{"id":"RO:0002333","label":"enabled by","definition":"inverse of enables","comment":"","synonyms":[""]},{"id":"RO:0002326","label":"contributes to","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002233","label":"has input","definition":"p has input c iff: p is a process, c is a material entity, c is a participant in p, c is present at the start of p, and the state of c is modified during p.","comment":"","synonyms":[""]},{"id":"RO:0002234","label":"has output","definition":"p has output c iff c is a participant in p, c is present at the end of p, and c is not present in the same state at the beginning of p.","comment":"","synonyms":[""]},{"id":"RO:0004009","label":"has primary input","definition":"p has primary input c if (a) p has input c and (b) the goal of process is to modify, consume, or transform c.","comment":"","synonyms":[""]},{"id":"RO:0004008","label":"has primary output","definition":"p has primary output c if (a) p has output c and (b) the goal of process is to modify, produce, or transform c.","comment":"","synonyms":[""]},{"id":"RO:0002339","label":"has target end location","definition":"This relationship holds between p and l when p is a transport or localization process in which the outcome is to move some cargo c from a an initial location to some destination l.","comment":"","synonyms":[""]},{"id":"RO:0002338","label":"has target start location","definition":"This relationship holds between p and l when p is a transport or localization process in which the outcome is to move some cargo c from some initial location l to some destination.","comment":"","synonyms":[""]},{"id":"RO:0002313","label":"transports or maintains localization of","definition":"Holds between p and c when p is a localization process (localization covers maintenance of localization as well as its establishment) and the outcome of this process is to regulate the localization of c.","comment":"","synonyms":[""]},{"id":"RO:0002413","label":"directly provides input for","definition":"p provides input for q iff p is immediately causally upstream of q, and there exists some c such that p has_output c and q has_input c.","comment":"","synonyms":[""]},{"id":"RO:0002629","label":"directly positively regulates","definition":"p directly positively regulates q iff p is immediately causally upstream of q, and p positively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0001025","label":"located in","definition":"a relation between two independent continuants, the target and the location, in which the target is entirely within the location","comment":"","synonyms":[""]},{"id":"RO:0001015","label":"location of","definition":"a relation between two independent continuants, the location and the target, in which the target is entirely within the location","comment":"","synonyms":[""]},{"id":"RO:0002432","label":"is active in","definition":"c executes activity in d if and only if c enables p and p occurs_in d. Assuming no action at a distance by gene products, if a gene product enables (is capable of) a process that occurs in some structure, it must have at least some part in that structure.","comment":"","synonyms":["enables activity in"]},{"id":"RO:0002092","label":"happens during","definition":"","comment":"X happens_during Y iff: (start(Y) before_or_simultaneous_with start(X)) AND (end(X) before_or_simultaneous_with end(Y))","synonyms":[""]},{"id":"RO:0002211","label":"regulates","definition":"process(P1) regulates process(P2) iff:\xa0P1 results in the initiation or termination of P2 OR affects the frequency of its initiation or termination OR affects the magnitude or rate of output of P2.","comment":"","synonyms":[""]},{"id":"RO:0002212","label":"negatively regulates","definition":"p negatively regulates q iff p regulates q, and p decreases the rate or magnitude of execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002213","label":"positively regulates","definition":"p positively regulates q iff p regulates q, and p increases the rate or magnitude of execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002578","label":"directly regulates","definition":"p directly regulates q iff p is immediately causally upstream of q and p regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002630","label":"directly negatively regulates","definition":"p directly negatively regulates q iff p is immediately causally upstream of q, and p negatively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002406","label":"directly activates","definition":"p directly activates q if and only if p is immediately upstream of q and p is the realization of a function to increase the rate or activity of q","comment":"This term was obsoleted because it has the same meaning as \'directly positively regulates\'.","synonyms":[""]},{"id":"RO:0012012","label":"indirectly regulates","definition":"p indirectly regulates q iff p is indirectly causally upstream of q and p regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002407","label":"indirectly activates","definition":"p indirectly activates q if and only if p is upstream of q and there is a chain of directly activates relationships connecting p and q, where the chain is of length greater than one.","comment":"","synonyms":[""]},{"id":"RO:0002409","label":"indirectly inhibits","definition":"p indirectly negatively regulates q iff p is indirectly causally upstream of q and p negatively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0012009","label":"constitutively upstream of","definition":"p is constitutively upstream of q iff p is causally upstream of q, p is required for execution of q or a part of q, and the execution of p is approximately constant.","comment":"","synonyms":[""]},{"id":"RO:0012010","label":"removes input for","definition":"p removes input for q iff p is causally upstream of q, there exists some c such that p has_input c and q has_input c, p reduces the levels of c, and c is rate limiting for execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002418","label":"causally upstream of or within","definition":"p \'causally upstream or within\' q iff (1) the end of p is before the end of q and (2) the execution of p exerts some causal influence over the outputs of q; i.e. if p was abolished or the outputs of p were to be modified, this would necessarily affect q.","comment":"","synonyms":[""]},{"id":"RO:0004046","label":"causally upstream of or within, negative effect","definition":"","comment":"","synonyms":[""]},{"id":"RO:0004047","label":"causally upstream of or within, positive effect","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002411","label":"causally upstream of","definition":"p is causally upstream of q if and only if p precedes q and p and q are linked in a causal chain","comment":"","synonyms":[""]},{"id":"RO:0002305","label":"causally upstream of, negative effect","definition":"p is causally upstream of, negative effect q iff p is casually upstream of q, and the execution of p decreases the execution of q.","comment":"holds between x and y if and only if x is causally upstream of y and the progression of x decreases the frequency, rate or extent of y","synonyms":[""]},{"id":"RO:0002304","label":"causally upstream of, positive effect","definition":"p is causally upstream of, positive effect q iff p is casually upstream of q, and the execution of p is required for the execution of q.","comment":"holds between x and y if and only if x is causally upstream of y and the progression of x increases the frequency, rate or extent of y","synonyms":[""]},{"id":"RO:0012003","label":"acts on population of","definition":"p acts on population of c iff c\' is a collection, has members of type c, and p has participant c","comment":"","synonyms":[""]},{"id":"RO:0002296","label":"results in development of","definition":"p \'results in development of\' c if and only if p is a developmental process and p results in the state of c changing from its initial state as a primordium or anlage through its mature state and to its final state.","comment":"","synonyms":[""]},{"id":"RO:0002297","label":"results in formation of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002298","label":"results in morphogenesis of","definition":"The relationship that links an entity with the process that results in the formation and shaping of that entity over time from an immature to a mature state.","comment":"","synonyms":[""]},{"id":"RO:0002315","label":"results in acquisition of features of","definition":"The relationship that links a specified entity with the process that results in an unspecified entity acquiring the features and characteristics of the specified entity","comment":"","synonyms":[""]},{"id":"RO:0002348","label":"results in commitment to","definition":"p \'results in commitment to\' c if and only if p is a developmental process and c is a cell and p results in the state of c changing such that is can only develop into a single cell type.","comment":"","synonyms":[""]},{"id":"RO:0002349","label":"results in determination of","definition":"p \'results in determination of\' c if and only if p is a developmental process and c is a cell and p results in the state of c changing to be determined. Once a cell becomes determined, it becomes committed to differentiate down a particular pathway regardless of its environment.","comment":"","synonyms":[""]},{"id":"RO:0002356","label":"results in specification of","definition":"The relationship linking a cell and its participation in a process that results in the fate of the cell being specified. Once specification has taken place, a cell will be committed to differentiate down a specific pathway if left in its normal environment. ","comment":"","synonyms":[""]},{"id":"RO:0002588","label":"results in assembly of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002590","label":"results in disassembly of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002592","label":"results in organization of","definition":"p results in organization of c iff p results in the assembly, arrangement of constituent parts, or disassembly of c","comment":"","synonyms":[""]},{"id":"RO:0002299","label":"results in maturation of","definition":"The relationship that links an entity with a process that results in the progression of the entity over time that is independent of changes in it\'s shape and results in an end point state of that entity.","comment":"","synonyms":[""]},{"id":"RO:0002343","label":"results in growth of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002565","label":"results in movement of","definition":"Holds between p and c when p is locomotion process and the outcome of this process is the change of location of c","comment":"","synonyms":[""]},{"id":"RO:0002591","label":"results in remodeling of","definition":"","comment":"","synonyms":[""]}]');class B0{static toTitleCase(n){n=n.toLowerCase().split(" ");for(var e=0;e{n[e.id]=e}),n}static getPredicates(n,e,i){const o=new Set;return e||i?(n.forEach(r=>{const a=!e||0===e.length||e.includes(r.subject),l=!i||0===i.length||r.object.some(u=>i.includes(u));a&&l&&o.add(r.predicate)}),[...o]):(n.forEach(r=>{o.add(r.predicate)}),[...o])}static getObjects(n,e){const i=new Set;return n.forEach(o=>{e.includes(o.subject)&&o.object.forEach(r=>i.add(r))}),[...i]}static getSubjectShapes(n,e,i=!0){return n.filter(o=>i?o.subject===e&&!o.exclude_from_extensions:o.subject===e)}static getRangeBySubject(n,e,i){return n.find(o=>o.subject===e&&o.predicate===i&&!o.exclude_from_extensions)}static getRangeLabels(n,e){return n.map(o=>{const r=o.object.map(l=>{var u;return null===(u=e[l])||void 0===u?void 0:u.label}),a=(0,Zt.cloneDeep)(e[o.predicate]);return a.rangeLabel=r.join(", "),a})}}var fs=(()=>{return(t=fs||(fs={})).none="none",t.oneToOne="oneToOne",t.oneToMany="oneToMany",fs;var t})();function iVe(t,n){return t.id===n.id}const Cee={[$n.GoMolecularEntity]:[{label:"Add part of (Protein Complex)",id:$n.GoProteinContainingComplex,node:{type:$n.GoProteinContainingComplex,category:[Kl],label:"(GP) part of (Protein Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:3,isKey:!1,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToMany},{label:"Add located in (CC)",id:$n.GoCellularComponent,node:{type:$n.GoCellularComponent,category:[rd],label:"(GP) located in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:10,showInMenu:!0},predicate:Ht.edge.locatedIn,cardinality:fs.oneToMany}],[$n.GoProteinContainingComplex]:[{label:"Add has part (Gene Product)",id:$n.GoMolecularEntity,node:{type:$n.GoMolecularEntity,category:[e1,Kl],label:"(Protein Complex) has part (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:3,isKey:!1,showInMenu:!0},predicate:Ht.edge.hasPart,cardinality:fs.oneToMany}],[$n.GoMolecularFunction]:[{label:"Add enabled by Protein Complex",id:$n.GoProteinContainingComplex,node:{id:Kl.id,type:$n.GoProteinContainingComplex,category:[Kl],label:"(MF) enabled by (Protein Complex)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,weight:2,isKey:!0},predicate:Ht.edge.enabledBy,cardinality:fs.oneToOne},{label:"Add enabled by GP",id:$n.GoMolecularEntity,node:{id:e1.id,type:$n.GoMolecularEntity,category:[e1,Kl],label:"(MF) enabled by (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,weight:2,isKey:!0},predicate:Ht.edge.enabledBy,cardinality:fs.oneToOne},{label:"Add part of (BP)",id:$n.GoBiologicalProcess,node:{type:$n.GoBiologicalProcess,category:[Jl],label:"(MF) part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,weight:10,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add occurs in (CC)",id:$n.GoCellularComponent,node:{type:$n.GoCellularComponent,category:[rd],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20,showInMenu:!0},predicate:Ht.edge.occursIn,cardinality:fs.oneToOne},{label:"Add occurs in (Cell Type)",id:$n.GoCellTypeEntity,node:{category:[l_],type:$n.GoCellTypeEntity,label:"occurs in (Cell Type)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!1,weight:30},predicate:Ht.edge.occursIn,cardinality:fs.oneToOne},{label:"Add occurs in (Anatomy)",id:$n.GoAnatomicalEntity,node:{category:[u3],type:$n.GoAnatomicalEntity,label:"occurs in (Anatomy)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:40},predicate:Ht.edge.occursIn,cardinality:fs.oneToOne},{label:"Add occurs in (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50},predicate:Ht.edge.occursIn,cardinality:fs.oneToOne},{label:"Add Has Input (Chemical/Protein Containing Complex)",id:$n.GoChemicalEntityHasInput,node:{category:[l3,Kl],type:$n.GoChemicalEntityHasInput,label:"has input (Chemical/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,isExtension:!0,weight:4,showInMenu:!0},predicate:Ht.edge.hasInput,cardinality:fs.oneToMany},{label:"Add Has Output (Chemical/Protein Containing Complex)",id:$n.GoChemicalEntityHasOutput,node:{category:[l3,Kl],type:$n.GoChemicalEntityHasOutput,label:"has output (Chemical/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,isExtension:!0,weight:5,showInMenu:!0},predicate:Ht.edge.hasOutput,cardinality:fs.oneToMany},{label:"Add Happens During (Biological Phase)",id:$n.GoBiologicalPhase,node:{category:[jC,PO],type:$n.GoBiologicalPhase,label:"happens during (Biological Phase)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,isExtension:!0,weight:3,showInMenu:!0},predicate:Ht.edge.happensDuring,cardinality:fs.oneToOne},{label:"Add has part (Subfunction)",id:$n.GoMolecularFunction,node:{type:$n.GoMolecularFunction,category:[p1],label:"has part (Subfunction)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:100,showInMenu:!0},predicate:Ht.edge.hasPart,cardinality:fs.oneToMany},...(t=>{const n=[];return(0,Zt.each)(t,e=>{n.push({id:$n.GoBiologicalProcess,node:{type:$n.GoBiologicalProcess,category:[Jl],label:`MF ${e.label} BP`,aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isKey:!0,relationEditable:!0,weight:10},predicate:e,cardinality:fs.oneToOne})}),n})([Pi.createEntity(Ht.edge.causallyUpstreamOfOrWithin),Pi.createEntity(Ht.edge.causallyUpstreamOf),Pi.createEntity(Ht.edge.causallyUpstreamOfNegativeEffect),Pi.createEntity(Ht.edge.causallyUpstreamOfPositiveEffect),Pi.createEntity(Ht.edge.causallyUpstreamOfOrWithinPositiveEffect),Pi.createEntity(Ht.edge.causallyUpstreamOfOrWithinNegativeEffect)])],[$n.GoBiologicalProcess]:[{label:"Add part of (BP)",id:$n.GoBiologicalProcess,node:{category:[Jl],type:$n.GoBiologicalProcess,label:"part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:10,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add occurs in (CC)",id:$n.GoCellularComponent,node:{category:[rd],type:$n.GoCellularComponent,aspect:"C",label:"occurs in (CC)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:20},predicate:Ht.edge.occursIn,cardinality:fs.oneToOne},{label:"Add Has Input (Chemical/Anatomical Entity/Protein Containing Complex)",id:$n.GoChemicalEntityHasInput,node:{category:[l3,u3,Kl],type:$n.GoChemicalEntityHasInput,label:"Has Input (Chemical/Anatomical Entity/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:14,showInMenu:!0},predicate:Ht.edge.hasInput,cardinality:fs.oneToMany},{label:"Add Has Output (Chemical/Anatomical Entity/Protein Containing Complex)",id:$n.GoChemicalEntityHasInput,node:{category:[l3,u3,Kl],type:$n.GoChemicalEntityHasOutput,label:"Has Output (Chemical/Anatomical Entity/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:14,showInMenu:!0},predicate:Ht.edge.hasOutput,cardinality:fs.oneToMany}],[$n.GoCellularComponent]:[{label:"Add part of (CC)",id:$n.GoCellularComponent,node:{category:[rd],type:$n.GoCellularComponent,aspect:"C",label:"part of (CC)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:20,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Cell Type)",id:$n.GoCellTypeEntity,node:{category:[l_],type:$n.GoCellTypeEntity,label:"part of (Cell Type)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:30,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Anatomy)",id:$n.GoAnatomicalEntity,node:{category:[u3],type:$n.GoAnatomicalEntity,label:"part of (Anatomy)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:40,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add Existence Overlaps (BP/Phase/Stage)",id:$n.BPPhaseStageExistenceOverlaps,node:{category:[Jl,PO],type:$n.BPPhaseStageExistenceOverlaps,label:"existence overlaps (BP/Phase/Stage)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:60,showInMenu:!0},predicate:Ht.edge.existenceOverlaps,cardinality:fs.oneToMany},{label:"Add Existence Starts and Ends During (BP/Phase/Stage)",id:$n.BPPhaseStageExistenceStartsEnds,node:{category:[Jl,PO],type:$n.BPPhaseStageExistenceStartsEnds,label:"Add Existence Starts and Ends During (BP/Phase/Stage)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:61,showInMenu:!0},predicate:Ht.edge.existenceStartsEndsDuring,cardinality:fs.oneToMany}],[$n.GoCellTypeEntity]:[{label:"Add part of (Anatomy)",id:$n.GoAnatomicalEntity,node:{category:[u3],type:$n.GoAnatomicalEntity,label:"part of (Anatomy)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:40,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne},{label:"Add part of (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne}],[$n.GoAnatomicalEntity]:[{label:"Add part of (Organism)",id:$n.GoOrganism,node:{category:[UC],type:$n.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:fs.oneToOne}],[$n.GoChemicalEntity]:[{label:"Add located in (CC)",id:$n.GoCellularComponent,node:{category:[rd],type:$n.GoCellularComponent,aspect:"C",label:"located in (CC)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:20,showInMenu:!0},predicate:Ht.edge.locatedIn,cardinality:fs.oneToOne}]};class _u{constructor(n,e){this.count=0,this.frequency=0,this.tooltip="",this.nodes=[],this.label=n||null,this.shorthand=e||null}getSortedNodes(){return(0,Zt.orderBy)(this.nodes,["frequency"],["desc"])}append(n){this.nodes.push(n),this.count=this.nodes.length,n instanceof OO?this.tooltip+=`${n.term.label} (${n.term.id}) \n`:n instanceof Ll&&(this.tooltip+=`${n.evidence.label} (${n.evidence.id}) \n\n ${n.referenceEntity.label} \n\n ${n.withEntity.label} \n`)}}class MN{constructor(){this.bp=new _u("Biological Process","BP"),this.cc=new _u("Cellular Component","CC"),this.mf=new _u("Molecular Function","MF"),this.gp=new _u("Gene Product","GP"),this.other=new _u("Other"),this.evidences=new _u("Evidence(Full)"),this.evidenceEcos=new _u("Evidence Codes"),this.references=new _u("Reference"),this.withs=new _u("With/From"),this.papers=new _u("PMID Papers"),this.contributors=new _u("Contribution"),this.relations=new _u("Relations"),this.dates=new _u("Dates"),this.allTerms=[],this.nodes=[],this.nodes=[this.mf,this.bp,this.cc]}}var XC=C(15439),rVe=C.t(XC,2),AO=C.n(XC),d_=(()=>{return(t=d_||(d_={}))[t.creation=1]="creation",t[t.editing=2]="editing",d_;var t})(),c4=(()=>{return(t=c4||(c4={})).GP="gp",t.MF="mf",t.BP="bp",t.CC="cc",t.DATE="date",c4;var t})(),k2=(()=>{return(t=k2||(k2={})).TABLE="table",t.TREE="tree",t.TREE_TABLE="tree_table",t.SLIM_TREE="slim_tree",t.GRAPH="graph",k2;var t})(),so=(()=>{return(t=so||(so={})).default="default",t.bpOnly="bpOnly",t.ccOnly="ccOnly",t.molecule="molecule",t.proteinComplex="proteinComplex",t.simpleAnnoton="simpleAnnoton",so;var t})();class aVe{constructor(){this.width=150,this.height=150}}class sVe{constructor(){this.x=0,this.y=0}}class QC extends _ee{constructor(){super(),this.validateEvidence=!0,this.modified=!1,this.expanded=!1,this.visible=!0,this.graphPreview={nodes:[],edges:[]},this.summary=new MN,this.activityDisplayType=k2.TREE,this.displayNumber="1",this.hasViolations=!1,this.violations=[],this.position=new sVe,this.size=new aVe,this._backgroundColor="green",this.activityType="default",this.id=WC(),this.errors=[],this.submitErrors=[]}updateProperties(){this.updateNodeTypes(),this.updateSummary(),this.updateDate(),this.updateRootNodes()}get id(){return this._id}set id(n){this._id=n,this.displayId=zh.cleanID(n)+"activity"}get backgroundColor(){switch(this.activityType){case so.ccOnly:return"purple";case so.bpOnly:return"brown";case so.molecule:return"teal";default:return this._backgroundColor}}get activityConnections(){throw new Error("Method not implemented")}get rootNode(){return this.sourceNodes()[0]}postRunUpdateCompliment(){(this.activityType===so.default||this.activityType===so.bpOnly)&&this.mfNode&&this.enabledByEdge&&this.mfNode.isComplement&&(this.enabledByEdge.predicate.isComplement=!0)}postRunUpdate(){if(this.activityType!==so.ccOnly){const e=this.enabledByEdge;this.mfNode&&e&&(this.mfNode.showEvidence=!1,this.mfNode.predicate=e.predicate)}}getActivityTypeDetail(){return Ht.activityType.options[this.activityType]}updateNodeTypes(){this.nodes.forEach(n=>{n.updateNodeType()})}updateRootNodes(){this.getEdges(this.rootNode.id).forEach(e=>{var i,o,r,a;switch(null===(i=e.predicate.edge)||void 0===i?void 0:i.id){case Ht.edge.enabledBy.id:this.mfNode=e.subject,this.gpNode=e.object,this.enabledByEdge=e;break;case Ht.edge.partOf.id:this.bpNode=e.object;break;case Ht.edge.occursIn.id:this.ccNode=e.object}this.activityType===so.bpOnly&&(0,Zt.find)(Ht.bpOnlyCausalEdges,{id:null===(o=e.predicate.edge)||void 0===o?void 0:o.id})&&(this.bpNode=e.object,this.bpPartOfEdge=e),this.activityType===so.ccOnly&&(this.gpNode=this.rootNode,((null===(r=e.predicate.edge)||void 0===r?void 0:r.id)===Ht.edge.locatedIn.id||(null===(a=e.predicate.edge)||void 0===a?void 0:a.id)===Ht.edge.isActiveIn.id)&&(this.ccNode=e.object))})}updateDate(){const n=this,e=this.rootNode;!e||(n.date=AO()(e.date,"YYYY-MM-DD"),n.nodes.forEach(i=>{const o=AO()(i.date,"YYYY-MM-DD");o>n.date&&(n.date=o)}),(0,Zt.each)(n.edges,i=>{(0,Zt.each)(i.predicate.evidence,o=>{const r=AO()(o.date,"YYYY-MM-DD");r>n.date&&(n.date=r)})}),this.formattedDate=n.date.format("ll"))}updateSummary(){let e=new MN,i=0;this.nodes.filter(r=>r.term.hasValue()).forEach(r=>{r.type===$n.GoMolecularFunction?e.mf.append(r):r.type===$n.GoBiologicalProcess?e.bp.append(r):r.type===$n.GoCellularComponent?e.cc.append(r):e.other.append(r)}),e.mf.nodes.length>0&&(i|=4),e.bp.nodes.length>0&&(i|=2),e.cc.nodes.length>0&&(i|=1),e.coverage=i,this.summary=e}updateShapeMenuShex(n){(0,Zt.each)(this.nodes,i=>{const o=i.category.map(l=>l.category);n&&o.push(...n.map(l=>l.id));const r=((t,n=!0)=>{const e=[],i=B0.genTermLookupTable(),o=$C.Y;return t.forEach(r=>{const a=B0.getSubjectShapes(o,r,n);if(a){B0.getPredicates(o);const u=B0.getRangeLabels(a,i);e.push(...u)}}),(0,Zt.uniqWith)(e,iVe)})(o),a=[];(0,Zt.each)(r,l=>{a.push(l)}),i.canInsertNodes=a,i.insertMenuNodes=(0,Zt.filter)(a,l=>!0)})}updateEdgesShex(n,e,i){const o=this;let a=!1;(0,Zt.each)(Cee[n.type]||[],l=>{if(i.edge.id===l.predicate.id&&l.cardinality===fs.oneToOne){const u=o.edgeTypeExist(n.id,l.predicate.id,n.type,l.node.type);if(u)return u.object.treeLevel++,o.removeEdge(u.subject,u.object,u.predicate),o.addEdge(u.subject,e,u.predicate),o.addEdge(e,u.object,i),a=!0,!1}}),a||o.addEdgeById(n.id,e.id,i)}updateEdges(n,e,i){const o=this;let a=!1;(0,Zt.each)(Cee[n.type]||[],l=>{if(i.edge.id===l.predicate.id&&l.cardinality===fs.oneToOne){const u=o.edgeTypeExist(n.id,l.predicate.id,n.type,l.node.type);if(u)return u.object.treeLevel++,o.removeEdge(u.subject,u.object,u.predicate),o.addEdge(u.subject,e,u.predicate),o.addEdge(e,u.object,i),a=!0,!1}}),a||o.addEdgeById(n.id,e.id,i)}getNodesByType(n){return(0,Zt.filter)(this.nodes,o=>o.type===n)}getRootNodeByType(n){const i=this.getEdges(this.rootNode.id),o=(0,Zt.find)(i,r=>r.object.type===n);return o?o.object:null}adjustCC(){if(this.ccNode&&!this.ccNode.hasValue()){const n=this.getEdges(this.ccNode.id);if(n.length>0){const e=n[0],i=Ht.rootNode.cc;this.ccNode.term=new Pi(i.id,i.label),this.ccNode.predicate.evidence=e.predicate.evidence}}}getViolationDisplayErrors(){const e=[];return e.push(...this.violations.map(i=>i.getDisplayError())),e}adjustActivity(){const n=this;if(n.activityType===Ht.activityType.options.bpOnly.name){const e=Ht.rootNode.mf,i=n.mfNode,o=n.bpNode;i.term=new Pi(e.id,e.label),i.predicate.evidence=o.predicate.evidence,n.bpOnlyEdge&&(this.bpPartOfEdge.predicate.edge.id=o.predicate.edge.id=n.bpOnlyEdge.id,this.bpPartOfEdge.predicate.edge.label=o.predicate.edge.label=n.bpOnlyEdge.label)}n.activityType!==so.ccOnly&&n.activityType!==so.molecule&&this.mfNode&&this.enabledByEdge&&(this.enabledByEdge.predicate.evidence=this.mfNode.predicate.evidence)}copyValues(n){(0,Zt.each)(this.nodes,function(i){const o=n.getNode(i.id);o&&i.copyValues(o)})}setActivityType(n){this.activityType=n}getEdgesByEdgeId(n){return(0,Zt.filter)(this.edges,o=>o.predicate.edge.id===n)||null}enableSubmit(){const n=this;let e=!0;if(n.submitErrors=[],(0,Zt.each)(n.nodes,i=>{e=i.enableSubmit(n.submitErrors,this.validateEvidence)&&e}),n.activityType===so.bpOnly&&!n.bpOnlyEdge){const o=new wd(Al.error,El.general,"Causal relation is required",{aspect:"Molecular Function"});n.submitErrors.push(o),e=!1}if(n.nodes.length<2){const i=new wd(Al.error,El.general,"At least 2 nodes are required");n.submitErrors.push(i),e=!1}return e}createSave(){var n;const e=this,i={title:"enabled by "+(null===(n=e.gpNode)||void 0===n?void 0:n.term.label),triples:[],nodes:[],graph:null};return e.adjustCC(),e.adjustActivity(),i.nodes=e.nodes,i.triples=e.edges,i}createCCSave(){const n=this,e=n.getEdges(n.rootNode.id);(0,Zt.each)(e,i=>{const o=new QC;o.addNode(n.rootNode),o.addEdge(i.subject,i.object,i.predicate)})}createEdit(n){const i=n.createSave(),o=this.createSave();return{addNodes:o.nodes,addTriples:o.triples,removeIds:JHe(i.graph,o.graph).map(a=>a.uuid),removeTriples:[]}}createEditEvidence(n,e){const o=n.getEdge(e.subjectId,e.objectId);return{addTriples:this.getEdge(e.subjectId,e.objectId),removeTriples:o}}createAddIndividual(n,e){return{addTriples:this.getEdge(e.subjectId,e.objectId)}}createDelete(){const e={uuids:[],triples:[]},i=[];return(0,Zt.each)(this.nodes,o=>{o.hasValue()&&i.push(o.uuid)}),e.uuids=i,e}createActivityNodeDelete(n){const i={uuids:[]},o=this.descendants(n.id).map(r=>r.uuid);return o.push(n.uuid),i.uuids=o,i}setPreview(){const n=this,e=n.createSave();n.graphPreview.nodes=e.nodes.map(i=>({id:i.id,label:i.term.label?i.term.label:""})),n.graphPreview.edges=e.triples.map(i=>({source:i.subject.id,target:i.object.id,label:i.predicate.edge.label}))}insertSubgraph(n,e,i){n.getTrimmedGraph(i.id)}get title(){const n=this,e=n.gpNode,i=e?e.getTerm().label:"";let o="";return o=n.activityType===so.ccOnly||n.activityType===so.molecule?i:`enabled by (${i})`,o}buildTrees(){const e=this._sortActivities(this.edges);return this.rootNode?[this._buildTree(e,this.rootNode)]:[]}buildGPTrees(){const n=this,e=this._sortActivities(n.edges);return[n._buildTree(e,n.gpNode)]}_buildTree(n,e){if(!e)return;const o=[new vee(e)],r=a=>{for(const l in a){const u=[];for(const f in n)n[f].subject.id===a[l].node.id&&u.push(new vee(n[f].object));u.length>0&&(a[l].children=u,r(u))}};return r(o),o[0]}get presentation(){const n=this;if(this._presentation)return this._presentation;const e=n.gpNode,i=n.mfNode,o=e?e.getTerm().label:"",r=i?i.getTerm().label:"";let a="",l="";n.activityType===so.ccOnly||n.activityType===so.molecule||n.activityType===so.proteinComplex?l=o:(a=(null==i?void 0:i.isComplement)?"NOT":"",l=`enabled by ${o}`);const u={qualifier:a,title:l,gpText:o,mfText:r,gp:{},fd:{}},f=n.nodes.sort(lee);return(0,Zt.each)(f,function(M){M.displaySection&&M.displayGroup&&(u[M.displaySection.id][M.displayGroup.id]||(u[M.displaySection.id][M.displayGroup.id]={shorthand:M.displayGroup.shorthand,label:M.displayGroup.label,nodes:[]}),u[M.displaySection.id][M.displayGroup.id].nodes.push(M),M.nodeGroup=u[M.displaySection.id][M.displayGroup.id],M.isComplement&&(M.nodeGroup.isComplement=!0))}),this._presentation=u,this._presentation}resetPresentation(){this._presentation=null}_sortActivities(n){const e=Ht.edgePriority;return(0,Zt.orderBy)(n,["weight",o=>{const r=e.indexOf(o.predicate.edge.id);return-1===r?e.length:r}])}}class vee{constructor(n,e=[]){this.node=n,this.id=n.id,this.children=e}}function cVe(t,n){return t.id===n.id}const bee=(t,n,e)=>({type:$n.GoMolecularEntity,category:e,label:n.label,canDelete:!0,displaySection:t.displaySection,displayGroup:t.displayGroup,weight:t.weight+2}),lVe={[so.default]:{type:$n.GoMolecularFunction,label:"Molecular Function",aspect:"",category:[p1],displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,skipEvidenceCheck:!0,canDelete:!1,termRequired:!0,weight:1},[so.bpOnly]:{type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,skipEvidenceCheck:!0,visible:!1,canDelete:!1,weight:1},[so.ccOnly]:{type:$n.GoMolecularEntity,category:[e1],label:"Gene Product",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1},[so.proteinComplex]:{type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,skipEvidenceCheck:!0,visible:!1,canDelete:!1,weight:1},[so.molecule]:{type:$n.GoChemicalEntity,category:[l3],label:"Molecule",skipEvidenceCheck:!0,showEvidence:!1,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1}},dVe={type:so.simpleAnnoton,nodes:{gp:{id:"gp",type:$n.GoMolecularEntity,category:[e1,Kl],label:"Gene Product",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},goterm:{id:"goterm",type:$n.GoMolecularFunction,category:[p1,Jl,NHe],label:"GO Term",aspect:"F",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,canDelete:!1,weight:1},extension:{id:"extension",type:$n.GoCellularComponent,category:[],label:"Extension",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!1,skipEvidenceCheck:!0,canDelete:!1,weight:1}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoMolecularEntity,predicate:Ht.edge.enabledBy}]},uVe={type:so.default,nodes:{[$n.GoMolecularFunction]:{id:p1.id,type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,termRequired:!0,canDelete:!1,weight:1},[$n.GoMolecularEntity]:{id:e1.id,type:$n.GoMolecularEntity,category:[e1,Kl],label:"enabled by (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},[$n.GoBiologicalProcess]:{id:Jl.id,type:$n.GoBiologicalProcess,category:[Jl],label:"(MF) part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,weight:10},[$n.GoCellularComponent]:{id:rd.id,type:$n.GoCellularComponent,category:[rd],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoMolecularEntity,predicate:Ht.edge.enabledBy},{subject:$n.GoMolecularFunction,object:$n.GoBiologicalProcess,predicate:Ht.edge.partOf},{subject:$n.GoMolecularFunction,object:$n.GoCellularComponent,predicate:Ht.edge.occursIn}]},hVe={type:so.bpOnly,nodes:{[$n.GoMolecularFunction]:{id:p1.id,type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,visible:!1,canDelete:!1,weight:1},[$n.GoMolecularEntity]:{id:e1.id,type:$n.GoMolecularEntity,category:[e1,Kl],label:"enabled by (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},[$n.GoBiologicalProcess]:{id:Jl.id,type:$n.GoBiologicalProcess,category:[Jl],label:"Biological Process",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,termRequired:!0,weight:10}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoMolecularEntity,predicate:Ht.edge.enabledBy},{subject:$n.GoMolecularFunction,object:$n.GoBiologicalProcess,predicate:Ht.edge.causallyUpstreamOfOrWithin}],overrides:{[$n.GoBiologicalProcess]:{label:"Biological Process"},[$n.GoCellularComponent]:{}}},pVe={type:so.ccOnly,nodes:{[$n.GoMolecularEntity]:{id:e1.id,type:$n.GoMolecularEntity,category:[e1,Kl],label:"Gene Product",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1}},triples:[]},fVe={type:so.proteinComplex,isComplex:!0,nodes:{[$n.GoProteinContainingComplex]:{id:Kl.id,type:$n.GoProteinContainingComplex,category:[Kl],label:"Protein Complex",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:2},[$n.GoMolecularFunction]:{id:p1.id,type:$n.GoMolecularFunction,category:[p1],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,termRequired:!0,canDelete:!1,weight:1},[$n.GoBiologicalProcess]:{id:Jl.id,type:$n.GoBiologicalProcess,category:[Jl],label:"(MF) part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,weight:10},[$n.GoCellularComponent]:{id:rd.id,type:$n.GoCellularComponent,category:[rd],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:$n.GoMolecularFunction,object:$n.GoProteinContainingComplex,predicate:Ht.edge.enabledBy},{subject:$n.GoMolecularFunction,object:$n.GoBiologicalProcess,predicate:Ht.edge.partOf},{subject:$n.GoMolecularFunction,object:$n.GoCellularComponent,predicate:Ht.edge.occursIn}]},gVe={type:so.molecule,nodes:{[$n.GoChemicalEntity]:{id:l3.id,type:$n.GoChemicalEntity,category:[l3],label:"Molecule",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1},[$n.GoCellularComponent]:{id:rd.id,type:$n.GoCellularComponent,category:[rd],label:"(Chemical) located in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:$n.GoChemicalEntity,object:$n.GoCellularComponent,predicate:Ht.edge.locatedIn}]},u_=t=>{const e=new QC;return e.activityType=t.type,(0,Zt.each)(t.nodes,i=>{const o=mu(i.category,i);e.addNode(o)}),(0,Zt.each)(t.triples,i=>{const o=e.getNode(i.object);if(o){const r=o.predicate;r.edge=Pi.createEntity(i.predicate),o.treeLevel++,e.addEdgeById(i.subject,i.object,r)}}),e.updateShapeMenuShex(),e.enableSubmit(),e.updateProperties(),e};class h_{constructor(){this.entityType=H0.CONTRIBUTOR,this.group={},this._groups=[]}set groups(n){this._groups=n,n&&n.length>0&&(this.group=n[0])}get groups(){return this._groups}static fromResponse(n){const e=new h_;return e.orcid=n.uri,e.name=n.nickname,e.groups=n.groups,e}}function vVe(t,n){return t.name{class t{constructor(e){this.httpClient=e,this.baristaUrl=Er.globalBaristaLocation,this.contributors=[],this.groups=[],this.onUserChanged=new Io(void 0)}set baristaToken(e){this._baristaToken=e}get baristaToken(){return this._baristaToken}getUser(e){const i=e||localStorage.getItem("barista_token");if(i)return this.httpClient.get(`${this.baristaUrl}/user_info_by_token/${i}`).subscribe(o=>{if(o){o.token?(this.user=h_.fromResponse(o),this.user.token=this.baristaToken=o.token,localStorage.setItem("barista_token",this.baristaToken)):(this.user=null,this.baristaToken=null,localStorage.removeItem("barista_token")),this.onUserChanged.next(this.user);const r=new URL(window.location.href);r.searchParams.delete("barista_token"),window.history.replaceState(null,null,r.href)}});this.baristaToken=null,this.user=null,this.onUserChanged.next(this.user)}getUsers(){return this.httpClient.get(`${this.baristaUrl}/users`)}getUserInfo(e){const o=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/user_info_by_id/${o}`)}getContributorDetails(e){return(0,Zt.find)(this.contributors,r=>r.orcid===e)}getContributorName(e){const o=(0,Zt.find)(this.contributors,r=>r.orcid===e);return o?o.name:e}getContributorsFromAnnotations(e){const i=this;return e.map(r=>{const a=r.value(),l=i.getContributorDetails(r.value());if(l)return l;{const u=new h_;return u.orcid=u.name=a,u}})}getGroups(){return this.httpClient.get(`${this.baristaUrl}/groups`)}getGroupDetails(e){return(0,Zt.find)(this.groups,r=>r.url===e)}getGroupDetailsByName(e){return(0,Zt.find)(this.groups,r=>r.name===e)}getGroupInfo(e){const o=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/group_info_by_id/${o}`)}getGroupsFromAnnotations(e){const i=this;return e.map(r=>{const a=r.value();return i.getGroupDetails(r.value())||new ON(null,a)})}getGroupsFromUrls(e){const i=this;return e.map(r=>i.getGroupDetails(r)||new ON(null,r))}getGroupsFromNames(e){const i=this;return e.map(r=>i.getGroupDetailsByName(r)||new ON(null,r))}filterContributors(e){const i=e.toLowerCase();return this.contributors.filter(o=>0===o.name.toLowerCase().indexOf(i))}filterGroups(e){const i=e.toLowerCase();return this.groups.filter(o=>0===o.name.toLowerCase().indexOf(i))}getGroupName(e){const o=(0,Zt.find)(this.groups,r=>r.url===e);return o?o.name:e}distinctUser(e,i){return e&&i?e.token===i.token:e===i}}return t.\u0275fac=function(e){return new(e||t)(qt(ru))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const xee=JSON.parse('{"Y":[{"subject":"CHEBI:33695","object":["GO:0003674"],"predicate":"RO:0002327"},{"subject":"CHEBI:33695","object":["GO:0003674"],"predicate":"RO:0002326"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0002331"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004034"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004032"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004033"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004034"},{"subject":"CHEBI:33695","object":["GO:0008150"],"predicate":"RO:0004035"},{"subject":"CHEBI:33695","object":["GO:0005575"],"predicate":"RO:0002432"},{"subject":"CHEBI:33695","object":["GO:0005575"],"predicate":"RO:0001025"},{"subject":"CHEBI:33695","object":["GO:0032991"],"predicate":"BFO:0000050"}]}');class yee{constructor(n){this.gpToTermEdges=[],this.extensionEdges=[],n&&this.activityToAnnotation(n)}activityToAnnotation(n){this.gp=n.getNode("gp"),this.goterm=n.getNode("goterm"),this.extension=n.getNode("extension")}findEdgeByCriteria(n){const e=Ht.simpleAnnotationEdgeConfig;for(const i in e)if(e.hasOwnProperty(i)){let o=!0;const r=e[i];for(const a in n)if(r[a]!==n[a]){o=!1;break}if(o)return i}return null}createSave(){var n,e;const i={title:"enabled by "+(null===(n=this.gp)||void 0===n?void 0:n.term.label),triples:[],nodes:[this.gp,this.goterm],graph:null},o=this.gpToTermEdge.id,r=Ht.simpleAnnotationEdgeConfig[o];if(r){if(r.mfNodeRequired){const a=mu([]),l=Ht.rootNode.mf;a.term=new Pi(l.id,l.label);const u=this._createTriple(a,this.gp,r.gpToTermPredicate,this.goterm.predicate.evidence,r.gpToTermReverse);if(i.triples.push(u),r.mfToTermPredicate){const f=this._createTriple(a,this.goterm,r.mfToTermPredicate,this.goterm.predicate.evidence);i.triples.push(f)}}else{const a=this._createTriple(this.gp,this.goterm,r.gpToTermPredicate,this.goterm.predicate.evidence,r.gpToTermReverse);i.triples.push(a)}if(null===(e=this.extension)||void 0===e?void 0:e.hasValue()){const a=new D2(this.goterm,this.extension,new h3(this.extensionEdge,this.goterm.predicate.evidence));i.nodes.push(this.extension),i.triples.push(a)}return i}console.warn("No configuration defined for edge:",o)}_createTriple(n,e,i,o,r=!1){const a=Ht.allEdges.find(f=>f.id===i);if(!a)throw new Error(`Edge configuration not found for predicate ID: ${i}`);const l=Pi.createEntity(a),u=new h3(l,o);return r?new D2(e,n,u):new D2(n,e,u)}updateAspect(){if(!this.goterm.hasValue())return;const e=Ht.rootNode;for(const i in Ht.rootNode)if(this.goterm.rootTypes&&this.goterm.rootTypes.some(o=>o.id===e[i].id)){this.gotermAspect=e[i].aspect;break}return null}}let Co=(()=>{class t{constructor(e){this.noctuaUserService=e,this.globalUrl={},this._parameterize=i=>Object.keys(i).map(o=>o+"="+i[o]).join("&"),this.onSetupReady=new Io(null),this.termLookupTable=B0.genTermLookupTable(),this.shapePredicates=B0.getPredicates($C.Y)}get edges(){return Ht.edge}get modelState(){const e=[Ht.modelState.options.development,Ht.modelState.options.production,Ht.modelState.options.review,Ht.modelState.options.closed,Ht.modelState.options.delete,Ht.modelState.options.internal_test];return{options:e,selected:e[0]}}get graphLayoutDetail(){const e=[Ht.graphLayoutDetail.options.detailed,Ht.graphLayoutDetail.options.simple,Ht.graphLayoutDetail.options.preview];return{options:e,selected:e[0]}}findModelState(e){return(0,Zt.find)(this.modelState.options,o=>o.name===e)}get evidenceDBs(){const e=[Ht.evidenceDB.options.pmid,Ht.evidenceDB.options.doi,Ht.evidenceDB.options.goRef];return{options:e,selected:e[0]}}get activityType(){const e=[Ht.activityType.options.default,Ht.activityType.options.bpOnly,Ht.activityType.options.ccOnly];return{options:e,selected:e[0]}}get activitySortField(){const e=[Ht.activitySortField.options.gp,Ht.activitySortField.options.date];return{options:e,selected:e[0]}}get bpOnlyEdges(){const e=[Ht.edge.causallyUpstreamOfOrWithin,Ht.edge.causallyUpstreamOf,Ht.edge.causallyUpstreamOfPositiveEffect,Ht.edge.causallyUpstreamOfNegativeEffect,Ht.edge.causallyUpstreamOfOrWithinPositiveEffect,Ht.edge.causallyUpstreamOfOrWithinNegativeEffect];return{options:e,selected:e[0]}}get ccOnlyEdges(){const e=[Ht.edge.partOf,Ht.edge.locatedIn,Ht.edge.isActiveIn];return{options:e,selected:e[0]}}get graphDisplayDefaultEdges(){const e=[Ht.edge.enabledBy,Ht.edge.partOf,Ht.edge.occursIn,Ht.edge.hasInput];return{options:e,selected:e[0]}}get effectDirection(){const e=[Ht.effectDirection.positive,Ht.effectDirection.negative];return{options:e,selected:e[0]}}get findReplaceCategories(){const e=[Ht.findReplaceCategory.options.term,Ht.findReplaceCategory.options.gp,Ht.findReplaceCategory.options.reference];return{options:e,selected:e[0]}}get directness(){const e=[Ht.directness.direct,Ht.directness.indirect];return{options:e,selected:e[0]}}get activityRelationship(){const e=[Ht.activityRelationship.regulation,Ht.activityRelationship.constitutivelyUpstream,Ht.activityRelationship.providesInputFor,Ht.activityRelationship.removesInputFor,Ht.activityRelationship.undetermined];return{options:e,selected:e[0]}}get activityMoleculeRelationship(){const e=[Ht.activityMoleculeRelationship.product];return{options:e,selected:e[0]}}get moleculeActivityRelationship(){const e=[Ht.moleculeActivityRelationship.regulates,Ht.moleculeActivityRelationship.substrate];return{options:e,selected:e[0]}}setupUrls(){const e=this,i=e.noctuaUserService.baristaToken,o=new URL(window.location.href);o.searchParams.delete("barista_token");const a={barista_token:i},l={return:o.href};this.loginUrl=Er.globalBaristaLocation+"/login?"+e._parameterize(Object.assign({},l)),this.logoutUrl=Er.globalBaristaLocation+"/logout?"+e._parameterize(Object.assign({},a,l)),this.noctuaUrl=Er.noctuaUrl+"?"+(i?e._parameterize(Object.assign({},a)):""),this.homeUrl=window.location.href}setUniversalUrls(){const e=this;e.globalUrl={};let i=new Zd;e.noctuaUserService.baristaToken&&(i=i.append("barista_token",e.noctuaUserService.baristaToken));const o=i.toString();return e.globalUrl.goUrl="http://www.geneontology.org/",e.globalUrl.noctuaUrl=Er.noctuaUrl+"?"+o,e.globalUrl.universalWorkbenches=Er.globalWorkbenchesUniversal.map(r=>({label:r["menu-name"],url:Er.workbenchUrl+r["workbench-id"]+"?"+o})),e.globalUrl.universalBetaTestWorkbenches=Er.globalWorkbenchesUniversalBetaTest.map(r=>({label:r["menu-name"],url:Er.workbenchUrl+r["workbench-id"]+"?"+o})),e.globalUrl}getModelUrls(e){const o={};let r=new Zd;this.noctuaUserService.baristaToken&&(r=r.append("barista_token",this.noctuaUserService.baristaToken)),o.graphEditorUrl=Er.noctuaUrl+"/editor/graph/"+e+"?"+r.toString(),e&&(r=r.append("model_id",e));const a=r.toString();return o.owlUrl=Er.noctuaUrl+"/download/"+e+"/owl",o.gpadUrl=Er.noctuaUrl+"/download/"+e+"/gpad",o.noctuaFormUrl=Er.workbenchUrl+"noctua-form?"+a,o.noctuaVPEUrl=Er.workbenchUrl+"noctua-visual-pathway-editor?"+a,o.modelWorkbenches=Er.globalWorkbenchesModel.map(l=>({id:l["workbench-id"],label:l["menu-name"],url:Er.workbenchUrl+l["workbench-id"]+"?"+a})),o.modelBetaTestWorkbenches=Er.globalWorkbenchesModelBetaTest.map(l=>({id:l["workbench-id"],label:l["menu-name"],url:Er.workbenchUrl+l["workbench-id"]+"?"+a})),o.workbenches={},o.modelWorkbenches.forEach(l=>{o.workbenches[l.id]=l}),o}activityToAnnotation(e){var i;const o=new yee,r={};e.activityType===so.ccOnly||e.activityType===so.molecule?(o.gp=e.gpNode,e.getEdges(e.gpNode.id).forEach(f=>{Ht.ccOnlyEdges.includes(f.predicate.edge.id)&&(r.gpToTermPredicate=f.predicate.edge.id,o.goterm=f.object,o.gp.predicate=f.predicate)})):(r.gpToTermPredicate=Ht.edge.enabledBy.id,o.gp=e.gpNode,o.goterm=e.mfNode,(null===(i=e.mfNode)||void 0===i?void 0:i.term.id)===Ht.rootNode.mf.id&&(r.mfNodeRequired=!0,e.getEdges(e.mfNode.id).forEach(f=>{Ht.mfToTermEdges.includes(f.predicate.edge.id)&&(o.gpToTermEdge=f.predicate.edge,r.mfToTermPredicate=f.predicate.edge.id,o.goterm=f.object,e.getEdges(f.object.id).forEach(M=>{o.extensionEdge=M.predicate.edge,o.extension=M.object}))})));const a=this.findEdge(r.gpToTermPredicate),l=o.findEdgeByCriteria(r),u=this.findEdge(l);return a&&u&&(o.gpToTermEdge=Pi.createEntity(a),o.gpToTermEdge.inverseEntity=u),o.gpToTermEdges=this.getTermRelations(o.gp.rootTypes,o.goterm.rootTypes,!0),o}createPredicate(e,i){const o=new h3(e,i);return(t=>{const n=SO([xN]);t.setEvidenceMeta("eco",Object.assign({},JSON.parse(JSON.stringify(TO)),{fq:['document_category:"ontology_class"',n]}))})(o),o}createActivityBaseModel(e,i){const o=lVe[e];if(o)return((t,n)=>{const e=new QC;e.activityType=t;const i=mu(n.category,n);return e.addNode(i),e.updateShapeMenuShex(),e.enableSubmit(),e.updateProperties(),e})(e,Object.assign(Object.assign({},o),i))}createActivityModel(e){switch(e){case so.default:return u_(uVe);case so.bpOnly:return u_(hVe);case so.ccOnly:return u_(pVe);case so.molecule:return u_(gVe);case so.proteinComplex:return u_(fVe);case so.simpleAnnoton:return u_(dVe)}}getTermRelations(e,i,o=!1){if(!e||!i)return[];const r=e.map(u=>u.id),a=i.map(u=>u.id);return B0.getPredicates(o?xee.Y:$C.Y,r,a).map(u=>this.findEdge(u))}setTermLookup(e,i){((t,n)=>{if(n&&n.length>0){const e=SO(n);t.termLookup=new c_(null,Object.assign({},JSON.parse(JSON.stringify(TO)),{fq:['document_category:"ontology_class"',e]}))}})(e,i)}getObjectsRelations(e,i=!1){if(!e)return[];const o=e.map(a=>a.id);return B0.getObjects(i?xee.Y:$C.Y,o).reduce((a,l)=>{const u=this.termLookupTable[l];if(u){const f=new bN;f.category=u.id,a.push(f)}return a},[])}addActivityNodeShex(e,i,o,r){return((t,n,e,i)=>{const o=bee(n,e,i.category),r=mu(i.category,o);r.subjectId=n.id,r.id=i.id?i.id:WC(),t.addNode(r),r.treeLevel=n.treeLevel+1;const a=t.getNode(r.id).predicate;return a.subjectId=n.id,a.objectId=r.id,a.edge=Pi.createEntity(e),t.addEdge(n,r,a),t.updateProperties(),t.resetPresentation(),r})(e,i,o,r)}insertActivityNodeShex(e,i,o,r=null){return((t,n,e,i=null)=>{const o=B0.genTermLookupTable(),r=$C.Y,a=[];n.category.forEach(M=>{const T=B0.getRangeBySubject(r,M.category,e.id);if(T){const U=T.object.map(ie=>{const se=o[ie],Me=new bN;return Me.category=se.id,Me});a.push(...U)}});const l=bee(n,e,a),u=mu(a,l);u.id=i||WC(),u.subjectId=n.id,t.addNode(u),u.treeLevel=n.treeLevel+1;const f=t.getNode(u.id).predicate;return f.subjectId=n.id,f.objectId=u.id,f.edge=Pi.createEntity(e),t.addEdge(n,u,f),t.updateProperties(),t.resetPresentation(),u})(e,i,o,r)}insertActivityNodeByPredicate(e,i,o,r){}createActivityModelFakeData(e){const o=this.createActivityModel(so.default);return e.forEach(r=>{const a=o.getNode(r.id),l=[];a.term=new Pi(r.term.id,r.term.label),(0,Zt.each)(r.evidence,u=>{const f=new Ll;f.evidence=new Pi(u.evidence.id,u.evidence.label),f.reference=u.reference,f.with=u.with,l.push(f)}),a.predicate.setEvidence(l)}),o.enableSubmit(),o}findEdge(e){const i=(0,Zt.find)(Ht.allEdges,{id:e});return Pi.createEntity(i||{id:e,label:e})}getAspect(e){const i=(0,Zt.find)(Ht.rootNode,{id:e});return i?i.aspect:""}getModelId(e){return"gomodel:"+e.substr(e.lastIndexOf("/")+1)}getIndividalId(e){return"gomodel:"+e.substr(e.lastIndexOf("/")+2)}}return t.\u0275fac=function(e){return new(e||t)(qt(yr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Cu=(()=>{return(t=Cu||(Cu={})).RESET="reset",t.STORE="store",Cu;var t})(),p3=(()=>{return(t=p3||(p3={})).NONE="none",t.MERGE="merge",t.REBUILD="rebuild",p3;var t})(),f3=(()=>{return(t=f3||(f3={})).NONE="none",t.ADD_ACTIVITY="add_activity",t.ADD_CAUSAL_RELATION="add_causal_relation",f3;var t})();class SN{constructor(){this.terms=[],this.reference=[]}}class yVe{constructor(){this.field=c4.GP,this.label="",this.ascending=!0}}class dm{constructor(){this.totalChanges=0,this.camsCount=0,this.termsCount=0,this.gpsCount=0,this.evidenceCount=0,this.referencesCount=0,this.withsCount=0,this.relationsCount=0}updateTotal(){this.totalChanges=this.termsCount+this.gpsCount+this.evidenceCount+this.referencesCount+this.withsCount+this.relationsCount}}class Md{constructor(n=!1,e=""){this.status=!1,this.message="",this.status=n,this.message=e}reset(){this.status=!1,this.message=""}}class wVe{constructor(){this.signal=p3.NONE,this.count=0,this.autoRebuild=!1,this.autoMerge=!1,this.message="",this.description=""}addMergeSignal(){this.count++,1===this.count?(this.signal=p3.MERGE,this.message="new changes available. Please refresh Model",this.description="Model has pending Changes. Please Reload"):(this.signal=p3.REBUILD,this.message="another new changes available. Please reload Model",this.description="Model has pending Changes. Please Reload")}addRebuildSignal(){this.count++,this.signal=p3.REBUILD,this.message="Model has been saved. Please reload Model",this.description="Model has pending Changes. Please Reload"}reset(){this.count=0,this.signal=p3.NONE,this.message="",this.description=""}}class LO{constructor(){this.comments=[],this.groups=[],this.contributors=[],this.expanded=!1,this.causalRelations=[],this.sortBy=new yVe,this.error=!1,this.modified=!1,this.modifiedStats=new dm,this.matchedCount=0,this.queryMatch=new SN,this.dateReviewAdded=Date.now(),this.operation=f3.NONE,this.rebuildRule=new wVe,this.moreDetail=!1,this.displayNumber="1",this.graphPreview={nodes:[],edges:[]},this.loading=new Md(!1),this.isReasoned=!1,this.hasViolations=!1,this.manualLayout=!1,this.layoutChanged=!1,this.annotationActivities=[],this._filteredActivities=[],this._activities=[],this._storedActivities=[]}get id(){return this._id}set id(n){this._id=n,this.displayId=zh.cleanID(n)}get activities(){var n;const e=this.sortBy.ascending?"asc":"desc";switch(null===(n=this.sortBy)||void 0===n?void 0:n.field){case c4.DATE:return(0,Zt.orderBy)(this._activities,["date",this._getGPText],[e,e]);case c4.MF:return(0,Zt.orderBy)(this._activities,[this._getMFText,this._getGPText],[e,e]);case c4.BP:return(0,Zt.orderBy)(this._activities,[this._getBPText,this._getGPText],[e,e]);case c4.CC:return(0,Zt.orderBy)(this._activities,[this._getCCText,this._getGPText],[e,e]);default:return(0,Zt.orderBy)(this._activities,[this._getGPText],[e,e])}}set activities(n){(0,Zt.each)(n,e=>{const i=this.findActivityById(e.id);i&&(e.expanded=i.expanded)}),this._activities=n}get storedActivities(){return this._storedActivities}set storedActivities(n){(0,Zt.each)(n,e=>{const i=this.findActivityById(e.id);i&&(e.expanded=i.expanded)}),this._storedActivities=n}updateSortBy(n,e){this.sortBy.field=n,this.sortBy.label=e}toggleExpand(){this.expanded=!this.expanded}expandAllActivities(n){(0,Zt.each)(this.activities,i=>{i.expanded=n})}getCausalRelation(n,e){return this.causalRelations.find(o=>{var r,a,l,u,f;return(null===(r=o.predicate)||void 0===r?void 0:r.isReverseLink)?(null===(a=o.object)||void 0===a?void 0:a.id)===n&&(null===(l=o.object)||void 0===l?void 0:l.id)===n:(null===(u=o.subject)||void 0===u?void 0:u.id)===n&&(null===(f=o.object)||void 0===f?void 0:f.id)===e})}clearHighlight(){(0,Zt.each)(this._activities,e=>{(0,Zt.each)(e.nodes,i=>{i.term.highlight=!1,(0,Zt.each)(i.predicate.evidence,o=>{o.evidence.highlight=!1,o.referenceEntity.highlight=!1,o.withEntity.highlight=!1})})})}findNodeById(n,e){let o;return(0,Zt.each)(e,r=>{if(o=(0,Zt.find)(r.nodes,a=>a.uuid===n),o)return!1}),o}findActivityById(n){return(0,Zt.find)(this.activities,i=>i.id===n)}findActivityByNodeUuid(n){const i=[];return(0,Zt.each)(this._activities,o=>{(0,Zt.each)(o.nodes,r=>{r.uuid===n&&i.push(o),(0,Zt.each)(r.predicate.evidence,a=>{a.uuid===n&&i.push(o)})})}),i}checkStored(){const n=this;(0,Zt.each)(n._activities,e=>{(0,Zt.each)(e.nodes,i=>{const o=n.findNodeById(i.uuid,n.storedActivities);i.checkStored(o)})})}applyFilter(){const n=this;n.clearHighlight(),n.queryMatch&&n.queryMatch.terms.length>0&&(n._filteredActivities=[],n.matchedCount=0,(0,Zt.each)(n._activities,e=>{let i=!1;(0,Zt.each)(e.nodes,o=>{(0,Zt.each)(n.queryMatch.terms,r=>{o.term.uuid===r.uuid&&(o.term.highlight=!0,o.term.activityDisplayId=r.activityDisplayId=e.displayId,n.matchedCount+=1,i=!0)}),(0,Zt.each)(o.predicate.evidence,r=>{(0,Zt.each)(n.queryMatch.terms,a=>{r.uuid===a.uuid&&(r.referenceEntity.highlight=!0,r.referenceEntity.activityDisplayId=a.activityDisplayId=e.displayId,n.matchedCount+=1,i=!0)})})}),i&&n._filteredActivities.push(e)}))}applyWeights(n=0){const e=this;e.queryMatch&&e.queryMatch.terms.length>0&&(0,Zt.each)(e.activities,i=>{(0,Zt.each)(i.nodes,o=>{const r=(0,Zt.find)(e.queryMatch.terms,{uuid:o.term.uuid});r&&(r.weight=o.term.weight=n,n++),(0,Zt.each)(o.predicate.evidence,a=>{const l=(0,Zt.find)(e.queryMatch.terms,{uuid:a.referenceEntity.uuid});l&&(l.weight=a.referenceEntity.weight=n,n++)})})})}addPendingChanges(n,e,i){(0,Zt.each)(this._activities,r=>{(0,Zt.each)(r.nodes,a=>{(0,Zt.each)(n,l=>{if(i.name===Ht.findReplaceCategory.options.reference.name)(0,Zt.each)(a.predicate.evidence,(u,f)=>{if(u.uuid===l.uuid){const M=new Pi(u.reference,u.reference),T=new Pi(e,e);u.pendingReferenceChanges=new sm(u.uuid,M,T),u.pendingReferenceChanges.uuid=u.uuid}});else if(a.term.uuid===l.uuid){const u=new Pi(e,e);a.pendingEntityChanges=new sm(a.uuid,a.term,u)}})})})}reviewCamChanges(n=new dm){const e=this;let i=!1;return e.modifiedStats=new dm,(0,Zt.each)(e._activities,o=>{(0,Zt.each)(o.nodes,r=>{o.modified=r.reviewTermChanges(n,e.modifiedStats),i=i||o.modified})}),e.modifiedStats.updateTotal(),i}getNodesByType(n){const i=[];return(0,Zt.each)(this.activities,o=>{i.push({activity:o,title:o.title,activityNodes:o.getNodesByType(n)})}),i}getNodesByTypeFlat(n){const i=[];return(0,Zt.each)(this.activities,o=>{i.push(...o.getNodesByType(n))}),i}getTerms(n){const i=[];return n&&n.nodes&&(0,Zt.each)(n.nodes,o=>{i.push(o)}),(0,Zt.each)(this.activities,o=>{(0,Zt.each)(o.nodes,r=>{i.push(r)})}),i}getEvidences(n){const i=[];return n&&n.nodes&&(0,Zt.each)(n.nodes,o=>{(0,Zt.each)(o.predicate.evidence,r=>{r.hasValue()&&i.push(r)})}),(0,Zt.each)(this.activities,o=>{(0,Zt.each)(o.edges,r=>{(0,Zt.each)(r.predicate.evidence,a=>{a.hasValue()&&i.push(a)})})}),i}setViolations(){var n;null===(n=this.violations)||void 0===n||n.forEach(i=>{const o=this.findActivityByNodeUuid(i.node.uuid);o&&o.forEach(r=>{r.hasViolations=!0,r.violations.push(i)})})}getViolationDisplayErrors(){const e=[];return e.push(...this.violations.map(i=>i.getDisplayError())),e}tableCanDisplayEnabledBy(n){return n.predicate.edge&&n.predicate.edge.id===Ht.edge.enabledBy.id}tableDisplayExtension(n){return"mf"===n.id?"":n.isComplement?"NOT "+n.predicate.edge.label:n.predicate.edge.label}updateActivityDisplayNumber(){const n=this;(0,Zt.each)(n.activities,(e,i)=>{e.displayNumber=n.displayNumber+"."+(i+1).toString()})}updateProperties(){var n;(0,Zt.each)(this._activities,(i,o)=>{i.updateProperties()}),this.sortBy.label=null===(n=Ht.activitySortField.options[this.sortBy.field])||void 0===n?void 0:n.label}_getGPText(n){return n.presentation.gpText.toLowerCase()}_getMFText(n){return n.mfNode?n.mfNode.term.label:""}_getBPText(n){return n.bpNode?n.bpNode.term.label:""}_getCCText(n){return n.ccNode?n.ccNode.term.label:""}}class MVe{constructor(n){switch(this.directness=Ht.directness.direct,this.effectDirection=Ht.effectDirection.positive,this.displaySection={directness:!0,effectDirection:!0},n){case Od.ACTIVITY_ACTIVITY:this.relationship=Ht.activityRelationship.regulation;break;case Od.ACTIVITY_MOLECULE:this.relationship=Ht.activityMoleculeRelationship.product;break;case Od.MOLECULE_ACTIVITY:this.relationship=Ht.moleculeActivityRelationship.regulates}}}var g3=(()=>{return(t=g3||(g3={}))[t.creation=1]="creation",t[t.editing=2]="editing",g3;var t})(),Od=(()=>{return(t=Od||(Od={})).ACTIVITY_ACTIVITY="activity",t.ACTIVITY_MOLECULE="activityMolecule",t.MOLECULE_ACTIVITY="moleculeActivity",Od;var t})();class PN extends _ee{constructor(n,e,i){super(),this.reverseEdge=!1,this.graphPreview={nodes:[],edges:[]},this.id=WC(),this.subject=n,this.object=e,this.predicate=i,this.setConnectorType(),this.rule=new MVe(this.connectorType),this.subjectNode=(0,Zt.cloneDeep)(this.subject.rootNode),this.objectNode=this.object.rootNode,this.subjectNode.predicate.evidence=i.evidence,this.setRule(),this.setLinkDirection(),this.createGraph(),this.setPreview()}setRule(){const n=this,e=n.edgeToConnectorQuestion(n.predicate.edge);e?Object.entries(e).forEach(i=>{const[o,r]=i,a=r.split(":");n.rule[o]=Ht[a[0]][a[1]]}):(n.rule.relationship=null,n.rule.directness=null,n.rule.effectDirection=null)}addDefaultEvidence(){let n;n=this.connectorType===Od.MOLECULE_ACTIVITY?this.object:this.subject;const e=n.mfNode,i=n.gpNode;if(i&&e){const o=n.getEdge(e.id,i.id);this.predicate.evidence=(0,Zt.cloneDeep)(o.predicate.evidence)}}checkConnection(n){var e;const i=this;if(i.rule.displaySection.effectDirection=!0,n.relationship)switch(n.relationship.id){case Ht.activityRelationship.regulation.id:i.rule.displaySection.effectDirection=!0,i.rule.displaySection.directness=!0;break;case Ht.activityRelationship.constitutivelyUpstream.id:case Ht.activityRelationship.providesInputFor.id:case Ht.activityRelationship.removesInputFor.id:i.rule.displaySection.effectDirection=!1,i.rule.displaySection.directness=!1;break;case Ht.activityRelationship.undetermined.id:case Ht.moleculeActivityRelationship.regulates.id:i.rule.displaySection.effectDirection=!0,i.rule.displaySection.directness=!1;break;case Ht.moleculeActivityRelationship.substrate.id:case Ht.activityMoleculeRelationship.product.id:i.rule.displaySection.effectDirection=!1,i.rule.displaySection.directness=!1}i.predicate.edge=this.getCausalConnectorEdge(null===(e=n.relationship)||void 0===e?void 0:e.id,i.rule.displaySection.effectDirection&&n.effectDirection?n.effectDirection.id:null,i.rule.displaySection.directness&&n.directness?n.directness.id:null),i.prepareSave(n),this.setLinkDirection(),i.setPreview()}getVPEEdge(n,e,i){const o=Ht.decisionTree;if(o[n]){if(o[n].edge)return o[n].edge;if(e&&o[n][e]){if(o[n][e].edge)return o[n][e].edge;if(i&&o[n][e][i])return o[n][e][i].edge}}}getCausalConnectorEdge(n,e,i){const o=this.getVPEEdge(n,e,i),r=(0,Zt.find)(Ht.allEdges,{id:o}),a=Pi.createEntity(r||{id:o,label:o});return a.id===Ht.edge.hasInput.id&&(a.label="input of"),a}getInputs(n){const e=Ht.decisionTree;for(const i in e){if(e[i].edge===n)return{relationship:i};if("object"==typeof e[i])for(const o in e[i]){if(e[i][o].edge===n)return{relationship:i,effectDirection:o};if("object"==typeof e[i][o])for(const r in e[i][o])if(e[i][o][r].edge===n)return{relationship:i,effectDirection:o,directness:r}}}return null}edgeToConnectorQuestion(n){return this.getInputs(n.id)}setConnectorType(){this.subject.activityType!==so.molecule&&this.object.activityType!==so.molecule?this.connectorType=Od.ACTIVITY_ACTIVITY:this.subject.activityType!==so.molecule&&this.object.activityType===so.molecule?this.connectorType=Od.ACTIVITY_MOLECULE:this.subject.activityType===so.molecule&&this.object.activityType!==so.molecule&&(this.connectorType=Od.MOLECULE_ACTIVITY)}setLinkDirection(){this.predicate.isReverseLink=this.connectorType===Od.MOLECULE_ACTIVITY&&this.predicate.edge.id===Ht.edge.hasInput.id}setPreview(){this.graphPreview.nodes=[...this._getPreviewNodes()],this.graphPreview.edges=[...this._getPreviewEdges()]}_getPreviewNodes(){let e=[];return e=[this.subject,this.object].map(o=>{const r=o.mfNode;return{id:o.id,label:r?null==r?void 0:r.term.label:""}}),e}createSave(){const n=this,e={title:"",nodes:[],triples:[],graph:null};let i;return i=n.predicate.isReverseLink?[new D2(n.objectNode,n.subjectNode,n.predicate)]:[new D2(n.subjectNode,n.objectNode,n.predicate)],e.triples=i,e}createEdit(n,e){e&&(this.predicate=e);const o=n.createSave(),r=this.createSave();return{removeTriples:o.triples,addTriples:r.triples}}createEditEvidence(n,e){const i=this;i.predicate.evidence=e.evidence;const o=new D2(i.subjectNode,i.objectNode,n.predicate);return{addTriples:new D2(i.subjectNode,i.objectNode,i.predicate),removeTriples:o}}createDelete(){const n=this,e={triples:[]};return e.triples.push(n.predicate.isReverseLink?new D2(n.objectNode,n.subjectNode,n.predicate):new D2(n.subjectNode,n.objectNode,n.predicate)),e}createGraph(n){const e=this,i=n||e.predicate.evidence;e.addNodes(e.subjectNode,e.objectNode),e.addEdge(e.subjectNode,e.objectNode,new h3(e.predicate.edge,i))}prepareSave(n){const i=n.evidenceFormArray.map(o=>{const r=new Ll;return r.uuid=o.uuid,r.evidence=new Pi(o.evidence.id,o.evidence.label),r.reference=o.reference,r.with=o.with,r});this.predicate.evidence=i}_getPreviewEdges(){const n=this;let e=[];return e=[{source:n.subject.id,target:n.object.id,label:n.predicate.edge?n.predicate.edge.label:""}],e}}class TN{constructor(){this.entityType=H0.ARTICLE}}const wee=C(6268),SVe=new(C(9951).conf)(wee.data.golr),PVe=Er.globalGolrServer,TVe=C(99572).jquery,EVe=C(61503),Mee=new TVe(C(6740));Mee.use_jsonp(!0);let Sd=(()=>{class t{constructor(e,i,o){this.httpClient=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.evidenceList=[],this.termList=[],this.articleCache={},this.onArticleCacheReady=new Io(null),this.name="DefaultLookupName",this.linker=new wee.linker,this.golrURLBase=Er.globalGolrNeoServer+"select?",this.localClosures=[]}lookupFunc(){return{termLookup:this.termLookup.bind(this),evidenceLookup:this.evidenceLookup.bind(this)}}escapeGolrValue(e){return e.replace(/([\!\*\+\-\=\<\>\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}buildQ(e){const i=new EVe(PVe,SVe,Mee,"async");return i.set_comfy_query(e),i.get_query(e)}termLookup(e,i){const o=this;i.q=o.buildQ(e);const r=new Zd({fromObject:i}),a=this.golrURLBase+r.toString();return this.httpClient.jsonp(a,"json.wrf").pipe(it(l=>o._lookupMap(l)))}termPreLookup(e){return(0,Zt.filter)(this.termList,r=>r.type===e).map(r=>r.term)}evidencePreLookup(){return(0,Zt.uniqWith)(this.evidenceList,hee).map(o=>o.evidence)}referencePreLookup(){return(0,Zt.uniqWith)(this.evidenceList,pee).map(o=>o.reference)}withPreLookup(){return(0,Zt.uniqWith)(this.evidenceList,fee).map(o=>o.with)}evidenceLookup(e,i){const o=this,r=e.toLowerCase();let a=[];switch(i){case"reference":a=o.referencePreLookup().filter(l=>!!l&&l.toLowerCase().includes(r));break;case"with":a=o.withPreLookup().filter(l=>!!l&&l.toLowerCase().includes(r))}return a}companionLookup(e,i,o){const r=this,a=Er.globalGolrServer+"select?",l={defType:"edismax",qt:"standard",indent:"on",wt:"json",sort:"annotation_class_label asc",rows:"2000",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","json.nl":"arrarr","facet.limit":"2000",fq:['document_category: "annotation"','aspect: "'+i+'"','bioentity: "'+e+'"'],"facet.field":["source","assigned_by","aspect","evidence_type_closure","annotation_class_label"],q:"*:*"};o.term&&l.fq.push('annotation_class:"'+o.term+'"'),o.evidence&&l.fq.push('evidence:"'+o.evidence+'"');const f=a+new Zd({fromObject:l}).toString();return this.httpClient.jsonp(f,"json.wrf").pipe(it(M=>{const U=[];return(0,Zt.each)(M.response.docs,function(ie){let se;const Me=new Ll;if(Me.setEvidence(new Pi(ie.evidence,ie.evidence_label)),ie.reference&&ie.reference.length>0&&(Me.reference=ie.reference.join(" | ")),ie.evidence_with&&ie.evidence_with.length>0&&(Me.with=ie.evidence_with.join(" | ")),Me.groups=r.noctuaUserService.getGroupsFromNames([ie.assigned_by]),se=(0,Zt.find)(U,we=>we.getTerm().id===ie.annotation_class),ie.annotation_extension_json)try{const we=[];Array.isArray(ie.annotation_extension_json)?ie.annotation_extension_json.forEach(He=>{we.push(JSON.parse(He))}):we.push(JSON.parse(ie.annotation_extension_json)),Me.evidenceExts=[],we.forEach(He=>{if(He.relationship&&He.relationship.relation){const Be=new zHe;Be.term=new Pi(He.relationship.id,He.relationship.label),He.relationship.relation.forEach(me=>{Be.relations.push(new Pi(me.id,me.label))}),Me.evidenceExts.push(Be)}})}catch(we){console.log(we,se,ie.annotation_extension_json)}se?se.predicate.addEvidence(Me):(se=new OO,se.predicate=new h3(null),se.term=new Pi(ie.annotation_class,ie.annotation_class_label),se.predicate.addEvidence(Me),U.push(se))}),U}))}categoryToClosure(e){return e.map(i=>`${i.categoryType}:"${i.category}"`).join(" OR ")}isaClosure(e,i){const r={q:this.buildQ(e),defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"2",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","facet.limit":"25","json.nl":"arrarr",packet:"1",callback_type:"search","facet.field":["source","subset","idspace","is_obsolete"],fq:['document_category:"ontology_class"',i],qf:["annotation_class^3","isa_closure^1"]},a=new Zd({fromObject:r}),l=this.golrURLBase+a.toString();return this.httpClient.jsonp(l,"json.wrf").pipe(it(u=>{const f=u.response.docs;let M=!1;return f.length>0&&(M=f[0].annotation_class===e),M}))}getTermDetail(e){const i=this,o={q:i.buildQ(e),defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"2",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","facet.limit":"25","json.nl":"arrarr",packet:"1",callback_type:"search","facet.field":["source","subset","idspace","is_obsolete"],fq:['document_category:"ontology_class"'],qf:["annotation_class^3","isa_closure^1"]},r=new Zd({fromObject:o}),a=this.golrURLBase+r.toString();return this.httpClient.jsonp(a,"json.wrf").pipe(it(l=>i._lookupMap(l)),it(l=>l.length>0?l[0]:l))}getTermURL(e){if(e.startsWith("ECO"))return"http://www.evidenceontology.org/term/"+e;if(e.startsWith("PMID")){const o=e.split(":");return o.length>1?"https://www.ncbi.nlm.nih.gov/pubmed/"+o[1].trim():null}return this.linker.url(e)}addPubmedInfos(e){const i=this,o=Object.keys(this.articleCache),r=(0,Zt.difference)(e,o);if(r.length>0){const a=Er.pubMedSummaryApi+r.join(",");this.httpClient.get(a).pipe(it(l=>l.result),it(l=>l.uids.map(u=>this._addArticles(l[u])))).subscribe(l=>{l.forEach(u=>{i.articleCache["PMID:"+u.id]=u}),i.onArticleCacheReady.next(!0)})}else i.onArticleCacheReady.next(!0)}getPubmedInfo(e){return this.httpClient.get(Er.pubMedSummaryApi+e).pipe(it(o=>o.result),it(o=>o[e]),it(o=>this._addArticles(o)))}_addArticles(e){if(!e)return;const o=new TN;return o.id=e.uid,o.title=e.title,o.link=this.linker.url(`${Ht.evidenceDB.options.pmid.name}:${e.uid}`),o.date=e.pubdate,e.authors&&Array.isArray(e.authors)&&(o.author=e.authors.map(r=>r.name).join(", ")),o}_lookupMap(e){const i=this;return e.response.docs.map(a=>{var l;let u;if(a.database_xref&&a.database_xref.length>0){const f=a.database_xref[0].split(":");u=f.length>1?f[1]:f[0]}return{id:a.annotation_class,label:a.annotation_class_label,link:i.getTermURL(a.annotation_class),description:a.description,isObsolete:a.is_obsolete,replacedBy:a.replaced_by,rootTypes:i._makeEntitiesArray(a.isa_closure,a.isa_closure_label),xref:u,notAnnotatable:!(null===(l=a.subset)||void 0===l?void 0:l.includes("gocheck_do_not_annotate"))}})}_makeEntitiesArray(e,i){let o=[];return i||e?(i?e.length===i.length&&(o=e.map((r,a)=>new Pi(r,i[a]))):o=e.map((r,a)=>new Pi(r,r)),(0,Zt.filter)(o,r=>!r.id.startsWith("BFO"))):[]}}return t.\u0275fac=function(e){return new(e||t)(qt(ru),qt(yr),qt(Co))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Oee=C(66713);const LVe={"@context":{gomodel:"http://model.geneontology.org/",BIOMD:"http://www.ebi.ac.uk/compneur-srv/biomodels-main/publ-model.do?mid=",COG_Function:"http://www.ncbi.nlm.nih.gov/COG/grace/shokog.cgi?fun=",WB:"http://identifiers.org/wormbase/",FBbt:"http://purl.obolibrary.org/obo/FBbt_",KEGG_LIGAND:"http://www.genome.jp/dbget-bin/www_bget?cpd:",PSO_GIT:"https://github.com/Planteome/plant-stress-ontology/issues/",MaizeGDB_stock:"http://maizegdb.org/data_center/stock?id=",EMAPA:"http://purl.obolibrary.org/obo/EMAPA_",GO:"http://purl.obolibrary.org/obo/GO_",NCBI_GP:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&val=",NMPDR:"http://www.nmpdr.org/linkin.cgi?id=",CASSPC:"http://research.calacademy.org/research/ichthyology/catalog/getname.asp?rank=Species&id=",TGD_REF:"http://db.ciliate.org/cgi-bin/reference/reference.pl?dbid=",NCBIGene:"http://identifiers.org/ncbigene/",KEGG_REACTION:"http://www.genome.jp/dbget-bin/www_bget?rn:",PseudoCAP:"http://v2.pseudomonas.com/getAnnotation.do?locusID=",UniPathway:"http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=",MEROPS_fam:"http://merops.sanger.ac.uk/cgi-bin/famsum?family=",GO_REF:"http://purl.obolibrary.org/obo/go/references/",VEGA:"http://vega.sanger.ac.uk/id/",ZFIN:"http://identifiers.org/zfin/",AspGD_REF:"http://www.aspergillusgenome.org/cgi-bin/reference/reference.pl?dbid=",RO:"http://purl.obolibrary.org/obo/RO_",Pfam:"http://pfam.xfam.org/family/",UBERON:"http://purl.obolibrary.org/obo/UBERON_",GR:"http://www.gramene.org/db/searches/browser?search_type=All&RGN=on&query=",PDB:"http://www.rcsb.org/pdb/cgi/explore.cgi?pdbId=",CORIELL:"http://ccr.coriell.org/Sections/Search/Sample_Detail.aspx?Ref=",JCVI_GenProp:"http://cmr.jcvi.org/cgi-bin/CMR/shared/GenomePropDefinition.cgi?prop_acc=",SGN:"http://identifiers.org/sgn/",BFO:"http://purl.obolibrary.org/obo/BFO_","Genesys-pgr":"https://www.genesys-pgr.org/acn/search?q=",UniMod:"http://www.unimod.org/modifications_view.php?editid1=","UM-BBD_reactionID":"http://eawag-bbd.ethz.ch/servlets/pageservlet?ptype=r&reacID=",PubChem_Substance:"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pcsubstance&term=",EcoCyc:"http://biocyc.org/ECOLI/NEW-IMAGE?type=PATHWAY&object=",Reactome:"http://identifiers.org/reactome/",InterPro:"http://identifiers.org/interpro/",UniRule:"http://www.uniprot.org/unirule/",MGCSC_GENETIC_STOCKS:"http://www.maizegdb.org/cgi-bin/displaystockrecord.cgi?id=",dictyBase:"http://identifiers.org/dictybase/",PO_GIT:"https://github.com/Planteome/plant-ontology/issues/",AspGD_LOCUS:"http://identifiers.org/aspgd.locus/",SGD:"http://identifiers.org/sgd/",COG_Pathway:"http://www.ncbi.nlm.nih.gov/COG/new/release/coglist.cgi?pathw=",ENZYME:"http://www.expasy.ch/cgi-bin/nicezyme.pl?",PAMGO_MGG:"http://scotland.fgl.ncsu.edu/cgi-bin/adHocQuery.cgi?adHocQuery_dbName=smeng_goannotation&Action=Data&QueryName=Functional+Categorization+of+MGG+GO+Annotation&P_KeyWord=",AgBase:"http://www.agbase.msstate.edu/cgi-bin/getEntry.pl?db_pick=[ChickGO/MaizeGO]&uid=",AraCyc:"http://www.arabidopsis.org:1555/ARA/NEW-IMAGE?type=NIL&object=",EcoCyc_REF:"http://biocyc.org/ECOLI/reference.html?type=CITATION-FRAME&object=",CHEBI:"http://purl.obolibrary.org/obo/CHEBI_",HGNC:"http://identifiers.org/hgnc/",dictyBase_gene_name:"http://dictybase.org/gene/",TAIR:"http://identifiers.org/tair.locus/",EnsemblFungi:"http://www.ensemblgenomes.org/id/",Wikipedia:"http://en.wikipedia.org/wiki/",SUPERFAMILY:"http://supfam.cs.bris.ac.uk/SUPERFAMILY/cgi-bin/scop.cgi?ipid=SSF",SWALL:"http://ca.expasy.org/cgi-bin/sprot-search-de?S=1&T=1&SEARCH=","PSI-MOD":"http://www.ebi.ac.uk/ontology-lookup/?termId=MOD:",FYPO:"http://purl.obolibrary.org/obo/FYPO_",RGD:"http://identifiers.org/rgd/","UM-BBD_enzymeID":"http://eawag-bbd.ethz.ch/servlets/pageservlet?ptype=ep&enzymeID=",Broad_MGG:"http://www.broad.mit.edu/annotation/genome/magnaporthe_grisea/GeneLocus.html?sp=S","Swiss-Prot":"http://www.ebi.uniprot.org/uniprot-srv/uniProtView.do?proteinac=",PMID:"http://www.ncbi.nlm.nih.gov/pubmed/",Xenbase:"http://identifiers.org/xenbase/",PR:"http://purl.obolibrary.org/obo/PR_",MIPS_funcat:"http://mips.gsf.de/cgi-bin/proj/funcatDB/search_advanced.pl?action=2&wert=",GR_REF:"http://www.gramene.org/db/literature/pub_search?ref_id=",MaizeGDB:"http://maizegdb.org/gene_center/gene/",HAMAP:"http://hamap.expasy.org/unirule/",SGN_ref:"http://www.sgn.cornell.edu/chado/publication.pl?pub_id=",TO_GIT:"https://github.com/Planteome/plant-trait-ontology/issues/",MeSH:"http://n2t.net/MESH:",GR_PROTEIN:"http://identifiers.org/gramene.protein/",MaizeGDB_REF:"http://maizegdb.org/data_center/reference?id=",GEO:"http://www.ncbi.nlm.nih.gov/sites/GDSbrowser?acc=",PO:"http://purl.obolibrary.org/obo/PO_",PomBase:"http://identifiers.org/pombase/",ENA:"http://www.ebi.ac.uk/ena/data/view/",PIRSF:"http://pir.georgetown.edu/cgi-bin/ipcSF?id=",EMBL:"http://www.ebi.ac.uk/cgi-bin/emblfetch?style=html&Submit=Go&id=",Prosite:"http://www.expasy.ch/cgi-bin/prosite-search-ac?","H-invDB_cDNA":"http://www.h-invitational.jp/hinv/spsoup/transcript_view?acc_id=",EC:"http://www.expasy.org/enzyme/",MACSC_REF:"http://www.maizegdb.org/cgi-bin/displaytraitrecord.cgi?id=",PAMGO_VMD:"http://vmd.vbi.vt.edu/cgi-bin/browse/go_detail.cgi?gene_id=",IRGC:"https://www.genesys-pgr.org/acn/search?q=IRGC+",NASC_code:"http://seeds.nottingham.ac.uk/NASC/stockatidb.lasso?code=",COG_Cluster:"http://www.ncbi.nlm.nih.gov/COG/new/release/cow.cgi?cog=",TreeGenes:"http://dendrome.ucdavis.edu/treegenes/protein/view_protein.php?id=",WB_REF:"http://www.wormbase.org/db/misc/paper?name=",TGD_LOCUS:"http://db.ciliate.org/cgi-bin/locus.pl?locus=",MA:"http://purl.obolibrary.org/obo/MA_",UniProtKB:"http://identifiers.org/uniprot/",MGI:"http://identifiers.org/mgi/",GRINDesc:"https://npgsweb.ars-grin.gov/gringlobal/descriptordetail.aspx?id=",DDANAT:"http://purl.obolibrary.org/obo/DDANAT_","RAP-DB":"http://rapdb.dna.affrc.go.jp/tools/search/run?id=on&attr=desc&attr=cgs&attr=cgn&attr=cgss&attr=cgns&attr=rgss&attr=rgns&keyword=",KEGG_PATHWAY:"http://identifiers.org/kegg.pathway/",JCVI_CMR:"http://cmr.jcvi.org/cgi-bin/CMR/shared/GenePage.cgi?locus=",dictyBase_REF:"http://dictybase.org/db/cgi-bin/dictyBase/reference/reference.pl?refNo=",DOI:"http://dx.doi.org/",LIFEdb:"http://www.dkfz.de/LIFEdb/LIFEdb.aspx?ID=",PANTHER:"http://identifiers.org/panther.family/",Gene3D:"http://gene3d.biochem.ucl.ac.uk/search?mode=family&sterm=",PATRIC:"http://patric.vbi.vt.edu/gene/overview.php?fid=",FB:"http://identifiers.org/flybase/",PAINT_REF:"http://www.pantherdb.org/panther/lookupId.jsp?id=PTHR",CASREF:"http://research.calacademy.org/research/ichthyology/catalog/getref.asp?id=",ENSEMBL:"http://identifiers.org/ensembl/",SMART:"http://smart.embl-heidelberg.de/smart/do_annotation.pl?BLAST=DUMMY&DOMAIN=",RefSeq:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=",WBls:"http://purl.obolibrary.org/obo/WBls_",MaizeGDB_QTL:"http://www.maizegdb.org/data_center/trait?id=",SOY_ref:"http://www.soybase.org/sbt/search/search_results.php?category=Soybase_ID&search_term=",ECO:"http://purl.obolibrary.org/obo/ECO_",CGD_REF:"http://www.candidagenome.org/cgi-bin/reference/reference.pl?dbid=",ECK:"http://www.ecogene.org/geneInfo.php?eck_id=",CGD:"http://identifiers.org/cgd/",GR_GENE:"http://identifiers.org/gramene.gene/",RNAmods:"http://s59.cas.albany.edu/RNAmods/cgi-bin/rnashow.cgi?",KEGG_ENZYME:"http://identifiers.org/kegg.enzyme/",CACAO:"http://gowiki.tamu.edu/wiki/index.php/",IUPHAR_GPCR:"http://www.iuphar-db.org/DATABASE/FamilyMenuForward?familyId=",JCVI_TIGRFAMS:"http://search.jcvi.org/search?p&q=",SOY_QTL:"http://soybase.org/sbt/search/search_results.php?category=QTLName&search_term=",DDBJ:"http://arsa.ddbj.nig.ac.jp/arsa/ddbjSplSearch?KeyWord=",PRINTS:"http://www.bioinf.manchester.ac.uk/cgi-bin/dbbrowser/sprint/searchprintss.cgi?display_opts=Prints&category=None&queryform=false®expr=off&prints_accn=",PO_REF:"http://planteome.org/po_ref/",IMG:"http://img.jgi.doe.gov/cgi-bin/pub/main.cgi?section=GeneDetail&page=geneDetail&gene_oid=",CL:"http://purl.obolibrary.org/obo/CL_","UniProtKB-SubCell":"http://www.uniprot.org/locations/",NIF_Subcellular:"http://www.neurolex.org/wiki/",GeneDB:"http://identifiers.org/genedb/",ApiDB_PlasmoDB:"http://www.plasmodb.org/gene/",RNAcentral:"http://rnacentral.org/rna/",CGD_LOCUS:"http://www.candidagenome.org/cgi-bin/locus.pl?locus=",Rfam:"http://rfam.sanger.ac.uk/family/",Broad_NEUROSPORA:"http://www.broadinstitute.org/annotation/genome/neurospora/GeneDetails.html?sp=S",AGI_LocusCode:"http://arabidopsis.org/servlets/TairObject?type=locus&name=",OBO_SF2_PO:"http://sourceforge.net/p/obo/plant-ontology-po-term-requests/",FMA:"http://purl.obolibrary.org/obo/FMA_",CDD:"http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=",PubChem_Compound:"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pccompound&term=",HGNC_gene:"http://identifiers.org/hgnc.gene/",PharmGKB:"http://www.pharmgkb.org/do/serve?objId=",VMD:"http://vmd.vbi.vt.edu/cgi-bin/browse/browserDetail_new.cgi?gene_id=",UniParc:"http://www.uniprot.org/uniparc/",MEROPS:"http://merops.sanger.ac.uk/cgi-bin/pepsum?mid=",GDB:"http://www.gdb.org/gdb-bin/genera/accno?accessionNum=GDB:",SEED:"http://www.theseed.org/linkin.cgi?id=",SO:"http://purl.obolibrary.org/obo/SO_",Soy_gene:"http://www.soybase.org/sbt/search/search_results.php?category=FeatureName&search_term=",CORUM:"http://mips.gsf.de/genre/proj/corum/complexdetails.html?id=",RHEA:"http://www.rhea-db.org/reaction.xhtml?id=",dbSNP:"http://identifiers.org/dbsnp/",MaizeGDB_Locus:"http://identifiers.org/maizegdb.locus/",MO:"http://mged.sourceforge.net/ontologies/MGEDontology.php#",PLANA_REF:"http://purl.obolibrary.org/obo/plana/references/",BRENDA:"http://www.brenda-enzymes.info/php/result_flat.php4?ecno=",ASAP:"https://asap.ahabs.wisc.edu/annotation/php/feature_info.php?FeatureID=",CAS:"http://identifiers.org/cas/","H-invDB_locus":"http://www.h-invitational.jp/hinv/spsoup/locus_view?hix_id=","UM-BBD_ruleID":"http://eawag-bbd.ethz.ch/servlets/rule.jsp?rule=",NCBITaxon:"http://purl.obolibrary.org/obo/NCBITaxon_",ComplexPortal:"https://www.ebi.ac.uk/complexportal/complex/",JSTOR:"http://www.jstor.org/stable/",GRIMS:"https://www.genesys-pgr.org/acn/search2?q=IRGC+",PATO:"http://purl.obolibrary.org/obo/PATO_",GR_QTL:"http://identifiers.org/gramene.qtl/",ECOGENE:"http://www.ecogene.org/geneInfo.php?eg_id=",HPA_antibody:"http://www.proteinatlas.org/antibody_info.php?antibody_id=",VBRC:"http://vbrc.org/query.asp?web_id=VBRC:",EO_GIT:"https://github.com/Planteome/plant-environment-ontology/issues/",EchoBASE:"http://www.biolws1.york.ac.uk/echobase/Gene.cfm?recordID=",CASGEN:"http://research.calacademy.org/research/ichthyology/catalog/getname.asp?rank=Genus&id=",IUPHAR_RECEPTOR:"http://www.iuphar-db.org/DATABASE/ObjectDisplayForward?objectId=",IRIC:"http://oryzasnp.org/_variety.zul?irisid=",GenBank:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val=",TGD:"http://identifiers.org/tgd/",JCVI_EGAD:"http://cmr.jcvi.org/cgi-bin/CMR/EgadSearch.cgi?search_string=",PubChem_BioAssay:"http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=",TC:"http://www.tcdb.org/tcdb/index.php?tc=","SABIO-RK":"http://sabio.villa-bosch.de/reacdetails.jsp?reactid=",OBO_SF2_PECO:"https://sourceforge.net/p/obo/plant-environment-ontology-eo/",MetaCyc:"http://identifiers.org/metacyc/",PAMGO_GAT:"http://agro.vbi.vt.edu/public/servlet/GeneEdit?&Search=Search&level=2&genename=",ModBase:"http://salilab.org/modbase/searchbyid?databaseID=",OMIM:"http://omim.org/entry/",GR_MUT:"http://www.gramene.org/db/genes/search_gene?acc=",HPA:"http://www.proteinatlas.org/tissue_profile.php?antibody_id=",IntAct:"http://identifiers.org/intact/",ProDom:"http://prodom.prabi.fr/prodom/current/cgi-bin/request.pl?question=DBEN&query=",GRIN:"https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=",WBPhenotype:"http://purl.obolibrary.org/obo/WBPhenotype_",BioCyc:"http://biocyc.org/META/NEW-IMAGE?type=PATHWAY&object=",ENSEMBL_GeneID:"http://www.ensembl.org/id/",PIR:"http://pir.georgetown.edu/cgi-bin/pirwww/nbrfget?uid=","UniProtKB-KW":"http://www.uniprot.org/keywords/",Planteome_gene:"https://www.google.com/search?q=",AspGD:"http://www.aspergillusgenome.org/cgi-bin/locus.pl?dbid=",JCVI_Medtr:"http://medicago.jcvi.org/cgi-bin/medicago/search/shared/ORF_infopage.cgi?orf=",EuPathDB:"http://eupathdb.org/gene/",PMCID:"http://www.ncbi.nlm.nih.gov/sites/entrez?db=pmc&cmd=search&term="}};let p_=(()=>{class t{constructor(){const e=(0,Oee.q)(LVe);this._curie=new Oee.T(e)}getCurieUtil(){return this._curie}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ZC=(()=>{return(t=ZC||(ZC={})).cardinality="cardinality",t.relation="relations",ZC;var t})();class See{constructor(n,e){this.node=n,this.type=e}getDisplayError(){}get message(){return this._message}}class DVe extends See{constructor(n,e,i,o){super(n,ZC.cardinality),this.node=n,this.predicate=e,this.nobjects=i,this.cardinality=o,this.subject=n}get message(){var n;return this._message=`Only one ${null===(n=this.predicate)||void 0===n?void 0:n.label} is allowed`,this._message}getDisplayError(){var n,e,i;const o=this,r={aspect:"",subjectNode:{label:null===(e=null===(n=o.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label},edge:{label:null===(i=o.predicate)||void 0===i?void 0:i.label}};return new wd(Al.error,El.cardinality,o.message,r)}}class kVe extends See{constructor(n){super(n,ZC.relation),this.node=n,this.subject=n}get message(){var n,e,i,o;return this._message=`Incorrect relationship between ${null===(e=null===(n=this.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label} and ${null===(o=null===(i=this.object)||void 0===i?void 0:i.term)||void 0===o?void 0:o.label}`,this._message}getDisplayError(){var n,e,i,o,r,a,l,u,f;const M=this,T={aspect:"",subjectNode:{label:null===(e=null===(n=M.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label},edge:{label:null===(i=M.predicate)||void 0===i?void 0:i.label},objectNode:{label:(null===(r=null===(o=M.object)||void 0===o?void 0:o.term)||void 0===r?void 0:r.label)?null===(l=null===(a=M.object)||void 0===a?void 0:a.term)||void 0===l?void 0:l.label:null===(f=null===(u=M.object)||void 0===u?void 0:u.term)||void 0===f?void 0:f.id}};return new wd(Al.error,El.relation,M.message,T)}}var DO=C(72759);const IVe=C(29494),NVe=C(6268),RVe=C(61759),r2=C(33837),zVe=C(99572).jquery,l4=C(8886),FVe=C(42023);let Yc=(()=>{class t{constructor(e,i,o,r,a){this.curieService=e,this.httpClient=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaLookupService=a,this.baristaLocation=Er.globalBaristaLocation,this.minervaDefinitionName=Er.globalMinervaDefinitionName,this.linker=new NVe.linker,this.curieUtil=this.curieService.getCurieUtil(),this.onCamRebuildChange=new Io(null),this.onCamGraphChanged=new Io(null),this.onActivityAdded=new Io(null)}registerManager(e=!1){const i=new zVe(RVe);i.method("POST");const o=new FVe(this.baristaLocation,this.minervaDefinitionName,this.noctuaUserService.baristaToken,i,"async");return o.register("prerun",()=>{}),o.register("postrun",()=>{},9),o.register("manager_error",M=>{console.log("There was a manager error ("+M.message_type()+"): "+M.message())},10),o.register("warning",M=>{alert("Warning: "+M.message()+"; your operation was likely not performed")},10),o.register("error",M=>{M.message()&&-1!==M.message().indexOf("InsufficientPermissionsException")?alert("Error: it seems like you do not have permission to perform that operation. Did you remember to login?"):M.message()&&-1!==M.message().indexOf("token")?alert("Error: it seems like you have a bad token..."):(console.log("error:",M,M.message_type(),M.message()),M.message().includes("UnknownIdentifierException"))},10),o.use_reasoner_p(e),o}registerBaristaClient(e){const i=this,o=new IVe(Er.globalBaristaLocation,this.noctuaUserService.baristaToken);return o.register("merge",function(r){console.log("barista/merge response"),i.onCamMergeSignal(e,r)}),o.register("rebuild",function(r){console.log("barista/rebuild response"),i.onCamRebuildSignal(e,r)}),o.connect(e.id),o}getGraphInfo(e,i){const o=this;e.loading=new Md(!0,"Loading Model Activities ..."),e.id=i,e.manager=this.registerManager(),e.copyModelManager=this.registerManager(),e.artManager=this.registerManager(),e.groupManager=this.registerManager(),e.replaceManager=this.registerManager(!1),e.manager.register("rebuild",function(r){o.rebuild(e,r)},10)}getMetadata(e){const i=this,o=new LO;o.graph=new DO.graph,o.graph.load_data_basic(e),o.id=e.id,o.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(o.id)}),o.modified=e["modified-p"];const r=o.graph.get_annotations_by_key("title"),a=o.graph.get_annotations_by_key("comment"),l=o.graph.get_annotations_by_key("state"),u=o.graph.get_annotations_by_key("date"),f=o.graph.get_annotations_by_key("providedBy"),M=o.graph.get_annotations_by_key("contributor");return o.contributors=i.noctuaUserService.getContributorsFromAnnotations(M),o.groups=i.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(o.date=u[0].value()),r.length>0&&(o.title=r[0].value()),o.comments=a.map(T=>T.value()),l.length>0&&(o.state=i.noctuaFormConfigService.findModelState(l[0].value())),o}rebuild(e,i){const o=this;if(e.graph){const T=new DO.graph;T.load_data_basic(i.data()),e.graph.merge_special(T)}else e.graph=new DO.graph,e.graph.load_data_basic(i.data());e.id=i.data().id,e.modified=i.data()["modified-p"],e.isReasoned=i["is-reasoned"];const r=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("comment"),l=e.graph.get_annotations_by_key("state"),u=e.graph.get_annotations_by_key("date"),f=e.graph.get_annotations_by_key("providedBy"),M=e.graph.get_annotations_by_key("contributor");e.contributors=o.noctuaUserService.getContributorsFromAnnotations(M),e.groups=o.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(e.date=u[0].value()),r.length>0&&(e.title=r[0].value()),e.comments=a.map(T=>T.value()),l.length>0&&(e.state=o.noctuaFormConfigService.findModelState(l[0].value())),o.loadCam(e),o.loadViolations(e,i.data()["validation-results"]),e.loading.status=!1}onCamMergeSignal(e,i){e.rebuildRule.addMergeSignal(),e.rebuildRule.autoRebuild&&this.onCamRebuildChange.next(e)}onCamRebuildSignal(e,i){e.rebuildRule.addRebuildSignal(),e.rebuildRule.autoRebuild&&this.onCamRebuildChange.next(e)}rebuildFromStoredApi(e,i){const o=this;e.graph=new DO.graph,e.graph.load_data_basic(i),e.id=i.id;const r=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("comment"),l=e.graph.get_annotations_by_key("state"),u=e.graph.get_annotations_by_key("date"),f=e.graph.get_annotations_by_key("providedBy"),M=e.graph.get_annotations_by_key("contributor");e.contributors=o.noctuaUserService.getContributorsFromAnnotations(M),e.groups=o.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(e.date=u[0].value()),r.length>0&&(e.title=r[0].value()),e.comments=a.map(T=>T.value()),l.length>0&&(e.state=o.noctuaFormConfigService.findModelState(l[0].value())),o.loadCam(e,!1)}loadCam(e,i=!0){const o=this,r=o.graphToActivities(e.graph);if(Er.isGraph){const a=o.graphToMolecules(e.graph);if(r.push(...a),e.operation===f3.ADD_ACTIVITY){const l=o.getAddedActivity(r,e.activities);o.onActivityAdded.next(l)}e.activities=r,e.updateProperties(),e.causalRelations=o.getCausalRelations(e),o.getActivityLocations(e)}else e.activities=r,e.updateProperties();e.applyFilter(),e.updateActivityDisplayNumber(),e.operation=f3.NONE,i&&o.onCamGraphChanged.next(e)}getAddedActivity(e,i){const o=(0,Zt.differenceWith)(e,i,cVe);return o&&o.length>0?o[0]:null}loadViolations(e,i){const o=this;let r;i&&i["shex-validation"]&&i["shex-validation"].violations&&(r=i["shex-validation"].violations,e.hasViolations=r.length>0,e.violations=[],r.forEach(a=>{a.explanations.forEach(l=>{l.constraints.forEach(u=>{const f=o.generateViolation(e,a.node,u);f&&e.violations.push(f)})})})),e.setViolations()}generateViolation(e,i,o){const r=this,a=r.nodeToActivityNode(e.graph,i);if(!a)return null;let l;if(o.cardinality){const u=r.noctuaFormConfigService.findEdge(o.property);l=new DVe(a,u,o.nobjects,o.cardinality)}else if(o.object){l=new kVe(a),l.predicate=r.noctuaFormConfigService.findEdge(o.property);const u=o.object.startsWith("http")?r.curieUtil.getCurie(o.object):o.object;l.object=r.nodeToActivityNode(e.graph,u)}return l}getNodeInfo(e){const i={};return(0,Zt.each)(e.types(),function(o){const r="complement"===o.type()?o.complement_class_expression():o;i.id=r.class_id(),i.label=r.class_label(),i.classExpression=r}),i}getNodeRootInfo(e){return e.root_types().map(o=>{const r="complement"===o.type()?o.complement_class_expression():o;return new Pi(r.class_id(),r.class_label())})}getNodeCategoryInfo(e){return e.map(o=>{const r=new bN;return r.category=o.id,r})}getNodeDate(e){const i=e.get_annotations_by_key("date");return i.length>0?i[0].value():null}getNodeLocation(e){const i={x:0,y:0},o=e.get_annotations_by_key("hint-layout-x"),r=e.get_annotations_by_key("hint-layout-y");return 1===o.length&&(i.x=parseInt(o[0].value())),1===r.length&&(i.y=parseInt(r[0].value())),i}getNodeIsComplement(e){let i=!0;return e&&(0,Zt.each)(e.types(),function(o){const r=o.type();i=i&&"complement"===r}),i}nodeToActivityNode(e,i){const o=this,r=e.get_node(i);if(!r)return null;const a=o.getNodeInfo(r),l=o.getNodeRootInfo(r),u={id:i,uuid:i,date:o.getNodeDate(r),term:new Pi(a.id,a.label,o.linker.url(a.id),i),rootTypes:l,category:o.getNodeCategoryInfo(l),classExpression:a.classExpression,location:o.getNodeLocation(r),isComplement:o.getNodeIsComplement(r)};return new OO(u)}edgeComments(e){return e.get_annotations_by_key("comment").map(o=>o.value())}edgeToEvidence(e,i){const o=this,r=i.get_annotations_by_key("evidence"),a=[];return(0,Zt.each)(r,function(l){const u=l.value(),f=e.get_node(u),M=new Ll;if(M.edge=new Pi(i.predicate_id(),""),M.uuid=f.id(),f){const T=o.getNodeInfo(f);M.setEvidence(new Pi(T.id,T.label,o.noctuaLookupService.getTermURL(T.id)),T.classExpression);const U=f.get_annotations_by_key("source"),ie=f.get_annotations_by_key("with"),se=f.get_annotations_by_key("contributor"),Me=f.get_annotations_by_key("providedBy"),we=o.getNodeDate(f),He=XC(we,"YYYY-MM-DD");if(M.date=we,M.formattedDate=He.format("ll"),U.length>0){const Be=U.sort(o._compareSources);M.reference=Be.map(ze=>ze.value()).join("| ");const me=o.noctuaLookupService.getTermURL(M.reference);M.referenceEntity=new Pi(M.reference,M.reference,me,M.uuid)}ie.length>0&&(M.with=ie[0].value(),M.withEntity=new Pi(M.with,M.with,null,M.uuid)),Me.length>0&&(M.groups=o.noctuaUserService.getGroupsFromAnnotations(Me)),se.length>0&&(M.contributors=o.noctuaUserService.getContributorsFromAnnotations(se)),a.push(M)}}),a}isStartEdge(e,i){return i===Ht.edge.enabledBy.id||(i===Ht.edge.partOf.id||i===Ht.edge.locatedIn.id||i===Ht.edge.contributesTo.id||i===Ht.edge.isActiveIn.id)&&e.hasRootType(e1)}getTerms(e){const i=this,o=new MN,r=[],a={};(0,Zt.each)(e.all_nodes(),u=>{const f=i.nodeToActivityNode(e,u.id());f.id=f.uuid,r.push(f),a[f.term.id]=a[f.term.id]?a[f.term.id]+1:1,f.hasRootType(e1)?o.gp.frequency++:f.hasRootType(p1)?o.mf.frequency++:f.hasRootType(Jl)?o.bp.frequency++:f.hasRootType(rd)?o.cc.frequency++:f.hasRootType(dee)||o.other.frequency++});const l=(0,Zt.chain)(r).uniqWith(cee).value();return(0,Zt.each)(l,u=>{u.frequency=a[u.term.id],u.hasRootType(e1)?(u.type=$n.GoMolecularEntity,o.gp.append(u)):u.hasRootType(p1)?(u.type=$n.GoMolecularFunction,o.mf.append(u)):u.hasRootType(Jl)?(u.type=$n.GoBiologicalProcess,o.bp.append(u)):u.hasRootType(rd)?(u.type=$n.GoCellularComponent,o.cc.append(u)):u.hasRootType(dee)||o.other.append(u)}),o.allTerms=l,this.addSummaryEvidences(e,o),o}addSummaryEvidences(e,i){const o=this,r=[],a={},l=[],u=[];(0,Zt.each)(e.all_edges(),we=>{const He=we.predicate_id(),Be=o.edgeToEvidence(e,we);u.push(He),a[He]=a[He]?a[He]+1:1,i.relations.frequency++,Be.forEach(me=>{var ze;r.push(me);const qe=me.evidence.id+me.referenceEntity.id+me.withEntity.id;a[me.evidence.id]=a[me.evidence.id]?a[me.evidence.id]+1:1,a[qe]=a[qe]?a[qe]+1:1,a[me.referenceEntity.id]=a[me.referenceEntity.id]?a[me.referenceEntity.id]+1:1,a[me.withEntity.id]=a[me.withEntity.id]?a[me.withEntity.id]+1:1,a[me.date]=a[me.date]?a[me.date]+1:1,me.contributors.map(rt=>{a[rt.orcid]=a[rt.orcid]?a[rt.orcid]+1:1,i.contributors.frequency++,l.push(rt)}),i.evidences.frequency++,i.evidenceEcos.frequency++,i.dates.frequency++,me.referenceEntity.id&&i.references.frequency++,me.withEntity.id&&i.withs.frequency++,(null===(ze=me.referenceEntity)||void 0===ze?void 0:ze.label.trim().startsWith("PMID"))&&i.papers.frequency++})});const f=(0,Zt.uniq)(u),M=(0,Zt.chain)(r).uniqWith(FHe).value(),T=(0,Zt.chain)(r).uniqWith(uee).value(),U=(0,Zt.chain)(r).uniqWith(hee).value(),ie=(0,Zt.chain)(r).uniqWith(pee).value(),se=(0,Zt.chain)(r).uniqWith(fee).value(),Me=(0,Zt.chain)(l).uniqWith(bVe).value();(0,Zt.each)(M,we=>{const He=new Pi(we.date,we.formattedDate);He.frequency=a[we.date],i.dates.append(He)}),(0,Zt.each)(f,we=>{const He=o.noctuaFormConfigService.findEdge(we);He.frequency=a[we],i.relations.append(He)}),(0,Zt.each)(T,we=>{we.frequency=a[we.evidence.id+we.referenceEntity.id+we.withEntity.id],i.evidences.append(we)}),(0,Zt.each)(U,we=>{we.evidence.frequency=a[we.evidence.id],i.evidenceEcos.append(we.evidence)}),(0,Zt.each)(ie,we=>{we.referenceEntity.frequency=a[we.evidence.id],i.references.append(we.referenceEntity)}),(0,Zt.each)(se,we=>{we.withEntity.frequency=a[we.evidence.id],i.withs.append(we.withEntity)}),(0,Zt.each)(ie,we=>{var He;if(we.referenceEntity&&(null===(He=we.referenceEntity)||void 0===He?void 0:He.id.trim().startsWith("PMID"))){const Be=new TN;Be.id=we.referenceEntity.id.trim(),Be.frequency=a[we.referenceEntity.id],i.papers.append(Be)}}),(0,Zt.each)(Me,we=>{we.frequency=a[we.orcid],i.contributors.append(we)})}getActivityPreset(e,i,o,r){let l=so.default;return o!==Ht.edge.partOf.id&&o!==Ht.edge.locatedIn.id&&o!==Ht.edge.contributesTo.id&&o!==Ht.edge.isActiveIn.id||!e.hasRootType(e1)?e.term.id===Ht.rootNode.mf.id?(0,Zt.each)(r,function(u){(0,Zt.find)(Ht.bpOnlyCausalEdges,{id:u.predicate_id()})&&(l=so.bpOnly)}):i.hasRootType(Kl)&&(l=so.proteinComplex):l=so.ccOnly,this.noctuaFormConfigService.createActivityBaseModel(l,e)}graphToActivities(e){const i=this,o=[];return(0,Zt.each)(e.all_edges(),r=>{const a=r.subject_id(),l=r.object_id(),u=i.nodeToActivityNode(e,a),f=i.nodeToActivityNode(e,l);if(i.isStartEdge(u,r.predicate_id())){const M=e.get_edges_by_subject(a),T=i.getActivityPreset(u,f,r.predicate_id(),M),U=T.rootNode;U.term=u.term,U.date=u.date,U.category=u.category,U.rootTypes=u.rootTypes,U.classExpression=u.classExpression,U.setIsComplement(u.isComplement),U.uuid=a,i._graphToActivityDFS(e,T,M,U),T.id=a,T.postRunUpdateCompliment(),T.postRunUpdate(),o.push(T)}}),o}graphToMolecules(e){const i=this,o=[];return(0,Zt.each)(e.all_nodes(),r=>{const a=i.nodeToActivityNode(e,r.id());if(a.hasRootType(l3)&&!a.hasRootType(e1)){const l=e.get_edges_by_subject(r.id()),u=e.get_edges_by_object(r.id());if(!(0,Zt.find)(u,M=>M.predicate_id()===Ht.edge.enabledBy.id)){const M=i.noctuaFormConfigService.createActivityBaseModel(so.molecule,a),T=M.rootNode;T.term=a.term,T.date=a.date,T.classExpression=a.classExpression,T.uuid=r.id(),M.id=r.id(),i._graphToActivityDFS(e,M,l,T),o.push(M)}}}),o}getCausalRelations(e){const i=this,o=[];return(0,Zt.each)(e.activities,r=>{(0,Zt.each)(e.graph.get_edges_by_subject(r.id),a=>{const l=a.predicate_id(),u=i.edgeToEvidence(e.graph,a),f=a.object_id(),M=i.nodeToActivityNode(e.graph,f),U=this.noctuaFormConfigService.findEdge(l);if(M.hasRootType(p1)||M.hasRootType(l3)){const ie=e.findActivityById(f),se=new h3(U,u);U.id===Ht.edge.hasInput.id&&(se.isReverseLink=!0,se.reverseLinkTitle="input of");const Me=new D2(r,ie,se);Me.subject&&Me.object&&o.push(Me)}})}),o}saveModelGroup(e,i){e.manager.use_groups([i]),e.groupId=i}copyModel(e,i){const o=this,r=new r2.request_set(o.noctuaUserService.baristaToken,e.id),a=new r2.request("model","copy");return a.model(e.id),r.add_annotation_to_model("title",i),r.add(a,"query"),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&r.use_groups([o.noctuaUserService.user.group.id]),e.copyModelManager.request_with(r)}copyModelRaw(e,i,o=!1){const r=this,a=Er.globalBaristaLocation,l=Er.globalMinervaDefinitionName;let u=new M0;u=u.append("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");let M=`token=${this.noctuaUserService.baristaToken}&intention=query&requests=${encodeURIComponent(JSON.stringify([{entity:"model",operation:"copy",arguments:{"model-id":e.id,"preserve-evidence":o,values:[{key:"title",value:i}]}}]))}`;return r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&(M=M+"&provided-by="+r.noctuaUserService.user.group.id),this.httpClient.post(`${a}/api/${l}/m3BatchPrivileged`,M,{headers:u})}resetModel(e){const o=new r2.request_set(this.noctuaUserService.baristaToken,e.id),r=new r2.request("model","reset");return r.model(e.id),o.add(r,"query"),e.manager.request_with(o)}storeCam(e){const i=this,o=new r2.request_set(i.noctuaUserService.baristaToken,e.id);return i.noctuaUserService.user&&i.noctuaUserService.user.groups.length>0&&o.use_groups([i.noctuaUserService.user.group.id]),o.store_model(e.id),e.manager.request_with(o)}saveCamAnnotations(e,i){const r=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("state"),l=e.graph.get_annotations_by_key("comment"),u=new r2.request_set(this.noctuaUserService.baristaToken,e.id);(0,Zt.each)(r,function(f){u.remove_annotation_from_model("title",f.value())}),(0,Zt.each)(a,function(f){u.remove_annotation_from_model("state",f.value())}),(0,Zt.each)(l,function(f){u.remove_annotation_from_model("comment",f.value())}),u.add_annotation_to_model("title",i.title),u.add_annotation_to_model("state",i.state),i.comments.forEach(f=>{u.add_annotation_to_model("comment",f)}),u.store_model(e.id),e.manager.request_with(u)}savePredicateComments(e,i,o){const a=new r2.request_set(this.noctuaUserService.baristaToken,e.id),l=e.graph.get_edge(i.subjectId,i.objectId,i.edge.id),u=l.get_annotations_by_key("comment");l&&u.forEach(f=>{a.remove_annotation_from_fact("comment",f.value(),null,[i.subjectId,i.objectId,i.edge.id])}),a.add_annotation_to_fact("comment",o,null,[i.subjectId,i.objectId,i.edge.id]),a.store_model(e.id),e.manager.request_with(a)}addActivity(e,i,o,r,a=f3.ADD_ACTIVITY){const l=this,u=new r2.request_set(l.noctuaUserService.baristaToken,e.model.id);return e.title||u.add_annotation_to_model("title",r),(0,Zt.each)(i,function(f){l.addIndividual(u,f)}),l.addFact(u,o),l.noctuaUserService.user&&l.noctuaUserService.user.groups.length>0&&u.use_groups([l.noctuaUserService.user.group.id]),e.operation=a,u.store_model(e.id),e.manager.request_with(u)}editConnection(e,i,o){const r=this,a=new r2.request_set(r.noctuaUserService.baristaToken,e.id);return(0,Zt.each)(i,l=>{a.remove_fact([l.subject.uuid,l.object.uuid,l.predicate.edge.id])}),r.addFact(a,o),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&a.use_groups([r.noctuaUserService.user.group.id]),a.store_model(e.id),e.manager.request_with(a)}editActivity(e,i,o,r,a=[]){const l=this,u=new r2.request_set(l.noctuaUserService.baristaToken,e.id);return(0,Zt.each)(i,function(f){l.addIndividual(u,f)}),(0,Zt.each)(a,function(f){u.remove_fact([f.subject.uuid,f.object.uuid,f.predicate.edge.id])}),l.addFact(u,o),(0,Zt.each)(r,function(f){u.remove_individual(f)}),l.noctuaUserService.user&&l.noctuaUserService.user.groups.length>0&&u.use_groups([l.noctuaUserService.user.group.id]),u.store_model(e.id),e.manager.request_with(u)}bulkEditActivity(e){const i=this,o=new r2.request_set(i.noctuaUserService.baristaToken,e.id);return(0,Zt.each)(e.activities,r=>{(0,Zt.each)(r.nodes,a=>{i.bulkEditIndividual(o,e.id,a),(0,Zt.each)(a.predicate.evidence,l=>{i.bulkEditEvidence(o,e.id,l)})})}),i.noctuaUserService.user&&i.noctuaUserService.user.groups.length>0&&o.use_groups([i.noctuaUserService.user.group.id]),e.replaceManager.request_with(o)}bulkEditActivityNode(e,i){const o=this,r=new r2.request_set(o.noctuaUserService.baristaToken,e.id);return o.bulkEditIndividual(r,e.id,i),(0,Zt.each)(i.predicate.evidence,a=>{o.bulkEditEvidence(r,e.id,a)}),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&r.use_groups([o.noctuaUserService.user.group.id]),e.replaceManager.request_with(r)}deleteActivity(e,i,o){const r=this;return(()=>{const l=new r2.request_set(r.noctuaUserService.baristaToken,e.model.id);return(0,Zt.each)(o,function(u){l.remove_fact([u.subject.uuid,u.object.uuid,u.predicate.edge.id])}),(0,Zt.each)(i,function(u){l.remove_individual(u)}),l.store_model(e.id),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&l.use_groups([r.noctuaUserService.user.group.id]),e.manager.request_with(l)})()}deleteEvidence(e,i){const o=this;return(()=>{const a=new r2.request_set(o.noctuaUserService.baristaToken,e.model.id);return a.remove_evidence(i,e.model.id),a.store_model(e.id),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&a.use_groups([o.noctuaUserService.user.group.id]),e.manager.request_with(a)})()}deleteEvidenceAnnotation(e,i,o,r){const a=this;return(()=>{const u=new r2.request_set(a.noctuaUserService.baristaToken,e.model.id);return u.remove_annotation_from_individual(o,r,null,i),u.store_model(e.id),a.noctuaUserService.user&&a.noctuaUserService.user.groups.length>0&&u.use_groups([a.noctuaUserService.user.group.id]),e.manager.request_with(u)})()}addFact(e,i){const o=this;i.forEach(r=>{const a=o.addIndividual(e,r.subject),l=o.addIndividual(e,r.object);a&&l&&(r.predicate.uuid=e.add_fact([a,l,r.predicate.edge.id]),(0,Zt.each)(r.predicate.evidence,function(u){e.add_evidence(u.evidence.id,u.reference,u.with,r.predicate.uuid)}))})}deleteFact(e,i){(0,Zt.each)(i,function(r){(0,Zt.each)(r.predicate.evidence,function(a){e.remove_individual(a.uuid)}),e.remove_individual(r.subject.uuid)})}addIndividual(e,i){if(i.uuid)return i.uuid;if(i.hasValue()){if(i.isComplement){const o=new l4;o.as_complement(i.term.id),i.uuid=e.add_individual(o)}else i.uuid=e.add_individual(i.term.id);return i.uuid}return null}editIndividual(e,i,o,r){o.hasValue()&&r.hasValue()&&(e.remove_type_from_individual(o.classExpression,o.uuid,i.id),e.add_type_to_individual(l4.cls(r.getTerm().id),o.uuid,i.id))}bulkEditIndividual(e,i,o){o.hasValue()&&o.pendingEntityChanges&&(e.remove_type_from_individual(l4.cls(o.pendingEntityChanges.oldValue.id),o.pendingEntityChanges.uuid,i),e.add_type_to_individual(l4.cls(o.pendingEntityChanges.newValue.id),o.pendingEntityChanges.uuid,i))}bulkEditEvidence(e,i,o){o.hasValue()&&o.pendingEvidenceChanges&&(e.remove_type_from_individual(l4.cls(o.pendingEvidenceChanges.oldValue.id),o.uuid,i),e.add_type_to_individual(l4.cls(o.pendingEvidenceChanges.newValue.id),o.pendingEvidenceChanges.uuid,i),this.editUserEvidenceAnnotations(e,o.pendingEvidenceChanges.uuid)),o.hasValue()&&o.pendingReferenceChanges&&(e.remove_annotation_from_individual("source",o.pendingReferenceChanges.oldValue.id,null,o.pendingReferenceChanges.uuid),e.add_annotation_to_individual("source",o.pendingReferenceChanges.newValue.id,null,o.pendingReferenceChanges.uuid),this.editUserEvidenceAnnotations(e,o.pendingReferenceChanges.uuid)),o.hasValue()&&o.pendingWithChanges&&(e.remove_annotation_from_individual("with",o.pendingWithChanges.oldValue.id,null,o.pendingWithChanges.uuid),e.add_annotation_to_individual("with",o.pendingWithChanges.newValue.id,null,o.pendingWithChanges.uuid),this.editUserEvidenceAnnotations(e,o.pendingWithChanges.uuid))}editUserEvidenceAnnotations(e,i){e.remove_annotation_from_individual("provided-by",this.noctuaUserService.user.group.url,null,i),e.add_annotation_to_individual("provided-by",this.noctuaUserService.user.group.url,null,i),e.remove_annotation_from_individual("contributor",this.noctuaUserService.user.orcid,null,i),e.add_annotation_to_individual("contributor",this.noctuaUserService.user.orcid,null,i)}replaceIndividual(e,i,o,r){e.remove_type_from_individual(l4.cls(o.id),o.uuid,i),e.add_type_to_individual(l4.cls(r.id),o.uuid,i)}deleteIndividual(e,i){i.uuid&&e.remove_individual(i.uuid)}getActivityLocations(e){const i=localStorage.getItem(`activityLocations-${e.id}`);if(i){e.manualLayout=!0;const o=JSON.parse(i);e.activities.forEach(r=>{const a=(0,Zt.find)(o,{id:r.id});a&&(r.position.x=a.x,r.position.y=a.y)})}}setActivityLocations(e){const i=e.activities.map(o=>({id:o.id,x:o.position.x,y:o.position.y}));localStorage.setItem(`activityLocations-${e.id}`,JSON.stringify(i))}addActivityLocation(e,i){const o=[...e.activities,i].map(r=>({id:r.id,x:r.position.x,y:r.position.y}));localStorage.setItem(`activityLocations-${e.id}`,JSON.stringify(o))}_graphToActivityDFS(e,i,o,r){const a=this;for(const l of o){const u=l.predicate_id(),f=this.noctuaFormConfigService.shapePredicates.find(Be=>Be===u),M=this.noctuaFormConfigService.termLookupTable[u];if(!f||!M)continue;const T=Ht.causalEdges.map(Be=>Be.id);let U=this.noctuaFormConfigService.shapePredicates.filter(Be=>!T.includes(Be));if(i.activityType===so.bpOnly&&r.term.id===Ht.rootNode.mf.id&&(U=[...U,...Ht.bpOnlyCausalEdges.map(Be=>Be.id)]),!U.includes(u))continue;const ie=l.object_id(),se=a.edgeToEvidence(e,l),Me=a.edgeComments(l),we=a.nodeToActivityNode(e,ie),He=this.noctuaFormConfigService.addActivityNodeShex(i,r,M,we);if(i.updateShapeMenuShex(),He){const Be=i.getEdge(r.id,He.id);Be&&(Be.object.id=we.id,Be.object.uuid=we.uuid,Be.object.term=we.term,Be.object.date=we.date,Be.object.category=we.category,Be.object.rootTypes=we.rootTypes,Be.object.classExpression=we.classExpression,Be.object.setIsComplement(we.isComplement),Be.predicate.isComplement=Be.object.isComplement,Be.predicate.evidence=se,Be.predicate.comments=Me,Be.predicate.uuid=l.id(),a._graphToActivityDFS(e,i,e.get_edges_by_subject(ie),Be.object))}}return i}_compareSources(e,i){return e.value()>i.value()?-1:1}}return t.\u0275fac=function(e){return new(e||t)(qt(p_),qt(ru),qt(yr),qt(Co),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class HVe{constructor(n){this.title=new Lo,this.state=new Lo,this.group=new Lo,this.commentFormArray=new Xu([]),this._metadata=n}createCamForm(n,e){const i=this;n&&(i.title.setValue(n.title),i.state.setValue(n.state),i.group.setValue(e?e.group:""),n.comments.forEach(o=>{i.commentFormArray.push(new Lo(o))}))}getError(){}populateConnectorForm(n){n.title=this.title.value,n.state=this.state.value}}class KC{constructor(n){this._lookupFunc=n}get lookupFunc(){return this._lookupFunc()}}const VVe=C(72759);let Zr=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.noctuaFormConfigService=e,this.zone=i,this.httpClient=o,this.noctuaUserService=r,this._fb=a,this.noctuaLookupService=l,this._bbopGraphService=u,this.curieService=f,this.searchApi=Er.searchApi,this.cams=[],this.currentMatch=new Pi(null,null),this.onCamChanged=new Io(null),this.camFormGroup=new Io(null),this.camFormGroup$=this.camFormGroup.asObservable(),this.onCamsChanged=new Io(null),this.onCopyModelChanged=new Io(null),this.onCamsCheckoutChanged=new Io(null),this.onSelectedCamChanged=new Io(null),this.onSelectedNodeChanged=new Io(null),this.onSelectedActivityChanged=new Io(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSelectedCamChanged.subscribe(M=>{M&&(this.currentMatch.modelId=M)}),this.onSelectedNodeChanged.subscribe(M=>{M&&(this.currentMatch.uuid=M)})}initializeForm(e){e&&(this.cam=e),this.camForm=this.createCamForm(),this.camFormGroup.next(this._fb.group(this.camForm))}createCamForm(){const i=new KC(this.noctuaLookupService.lookupFunc.bind(this.noctuaLookupService)),o=new HVe(i);return o.createCamForm(this.cam,this.noctuaUserService.user),o}getCam(e){const i=new LO;return this.cam=i,i.graph=null,i.id=e,i.model=Object.assign({},{id:e,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e)}),i.expanded=!0,this._bbopGraphService.getGraphInfo(i,e),i.manager.get_model(i.id),this.onCamChanged.next(i),i}reload(e){this._bbopGraphService.onCamRebuildChange.next(e)}loadCam(e){e.graph=null,e.modifiedStats=new dm,e.rebuildRule.reset(),e.model=Object.assign({},{id:e.id,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e.id)}),this._bbopGraphService.getGraphInfo(e,e.id),this.cam=e,e.manager.get_model(e.id)}loadCamMeta(e){e.graph=null,e.modifiedStats=new dm,e.model=Object.assign({},{id:e.id,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e.id)}),this._bbopGraphService.getGraphInfo(e,e.id)}buildTermsTree(e){return[e.mf,e.bp,e.cc,e.gp,e.other,e.relations,e.evidences,e.evidenceEcos,e.references,e.withs,e.papers,e.contributors,e.dates].map(r=>({id:r.label,frequency:r.frequency,isCategory:!0,label:r.label,children:r.getSortedNodes()}))}addCamAnnotationActivities(e){e.annotationActivities=e.activities.map(i=>{const o=this.noctuaFormConfigService.activityToAnnotation(i);return o.activity=i,o})}getStoredModel(e){return this.httpClient.get(`${this.searchApi}/stored?id=${e.id}`)}bulkEditCam(e){const o=[];return o.push(this._bbopGraphService.bulkEditActivity(e)),Ah(o)}deleteActivity(e){const o=e.createDelete();return this._bbopGraphService.deleteActivity(this.cam,o.uuids,o.triples)}updateTermList(e,i){this.noctuaLookupService.termList=this.getUniqueTerms(e),i.termLookup.results=this.noctuaLookupService.termPreLookup(i.type)}updateEvidenceList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.evidenceLookup.results=this.noctuaLookupService.evidencePreLookup()}updateReferenceList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.referenceLookup.results=this.noctuaLookupService.referencePreLookup()}updateWithList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.withLookup.results=this.noctuaLookupService.withPreLookup()}getNodesByType(e){return this.cam.getNodesByType(e)}getNodesByTypeFlat(e){return this.cam.getNodesByTypeFlat(e)}getUniqueTerms(e){const i=this.cam.getTerms(e);return(0,Zt.uniqWith)(i,cee)}getUniqueEvidence(e){const i=this.cam.getEvidences(e);return(0,Zt.uniqWith)(i,uee)}copyModel(e,i,o=!1){const r=this;return r._bbopGraphService.copyModelRaw(e,i,o).subscribe(a=>{const l=r._bbopGraphService.getMetadata(a.data);r.onCopyModelChanged.next(l)})}resetModel(e){return this._bbopGraphService.resetModel(e)}reviewChangesCam(e,i){return e.reviewCamChanges(i)}reviewCamChanges(e){const o=new dm;return this.reviewChangesCam(e,o)&&o.camsCount++,o.updateTotal(),{stats:o}}populateStoredModel(e,i){e.storedGraph=new(0,VVe.graph),e.storedGraph.load_data_basic(i),e.storedActivities=this._bbopGraphService.graphToActivities(e.storedGraph),e.checkStored(),e.reviewCamChanges()}addCamEdit(e){const i=this;e.loading.status=!0,i.getStoredModel(e).pipe(Yu(()=>{e.loading.status=!1})).subscribe({next:o=>{if(!o||!o.storedModel||!o.activeModel)return;i.populateStoredModel(e,o.storedModel);const r=i.reviewCamChanges(e);i.onCamsCheckoutChanged.next(r),e.loading.status=!1}})}loadCams(){this.onCamsChanged.next(this.cams)}updateModel(e,i){const o=this;i&&i.length>0&&i.forEach(r=>{const a=(0,Zt.find)(e,{id:r.data().id});a&&(o._bbopGraphService.rebuild(a,r),a.checkStored())})}expandMatch(e){(0,Zt.each)(this.cams,o=>{o.expanded=!0;const r=o.findActivityByNodeUuid(e);(0,Zt.each)(r,a=>{a.expanded=!0})})}getReplaceObject(e,i,o){const a=(0,Zt.groupBy)(e,"modelId"),l=[];let u;return u=o&&o.name===Ht.findReplaceCategory.options.reference.name?Ll.formatReference(i):null==i?void 0:i.id,(0,Zt.each)(a,(f,M)=>{const T=(0,Zt.find)(this.cams,{id:M});T&&(T.addPendingChanges(e,u,o),l.push(T))}),this.reviewChangesCams(),l}replace(e){return this.reviewChangesCams(),this.bulkEditCams(e)}bulkEditActivityNode(e,i){const o=this,r=[];return r.push(o._bbopGraphService.bulkEditActivityNode(e,i)),Ah(r).pipe(it(a=>o.updateModel([e],a)))}bulkEditCams(e){const i=this,o=[];return(0,Zt.each)(e,r=>{o.push(i._bbopGraphService.bulkEditActivity(r))}),Ah(o).pipe(it(r=>i.updateModel(e,r)))}storeCams(e){const i=this;return Ra(e).pipe(da(o=>i._bbopGraphService.storeCam(o)))}bulkStoredModel(e){const i=this,o=[];return(0,Zt.each)(e,r=>{r.loading=new Md(!0,"Calculating Pending Changes ..."),o.push(i.getStoredModel(r))}),Ah(o)}reviewChangesCams(){const e=this,i=new dm;(0,Zt.each)(this.cams,r=>{e.reviewChangesCam(r,i)&&i.camsCount++}),i.updateTotal(),this.onCamsCheckoutChanged.next({stats:i})}clearHighlight(){(0,Zt.each)(this.cams,e=>e.clearHighlight())}clearCams(){this.cams=[],this.onCamsChanged.next(this.cams)}resetCams(e){const i=this;return Ra(e).pipe(da(o=>i._bbopGraphService.resetModel(o)))}resetMatch(){(0,Zt.each)(this.cams,e=>{e.queryMatch=new SN})}resetLoading(e,i=new Md){(0,Zt.each)(e,o=>{o.loading=i})}reloadCam(e,i){const o=this;Ra([e]).pipe(da(r=>i===Cu.RESET?(r.loading=new Md(!0,"Resetting Model ..."),o.resetCams([r])):i===Cu.STORE?(r.loading=new Md(!0,"Saving Model ..."),o.storeCams([r])):Na),Yu(()=>{o.resetLoading([e])})).subscribe({next:r=>{if(!r||!r.data())return;o.populateStoredModel(e,r.data());const a=o.reviewCamChanges(e);o.onCamsCheckoutChanged.next(a),e.loading.status=!1}})}sortCams(){this.cams.sort(this._compareDateReviewAdded)}applyMatchWeights(e){(0,Zt.each)(e,(o,r)=>{o.applyWeights(1)})}updateDisplayNumber(e){(0,Zt.each)(e,(i,o)=>{i.displayNumber=(o+1).toString(),i.updateActivityDisplayNumber()})}_compareDateReviewAdded(e,i){return e.dateReviewAdded{e._metadata.lookupFunc.termLookup(i,n.evidenceLookup.requestParams).subscribe(o=>{n.evidenceLookup.results=o})}),e.reference.valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{n.referenceLookup.results=e._metadata.lookupFunc.evidenceLookup(i,"reference")}),e.with.valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{n.withLookup.results=e._metadata.lookupFunc.evidenceLookup(i,"with")})}setEvidenceValidator(){this.evidence.setValidators(function BVe(t){return n=>{if(t&&t.hasValue()){if(!n.value)return{[`Evidence for "${t.label}" is required`]:{value:n.value}};if(!n.value.id)return{[`Select correct evidence for "${t.label}" correct value`]:{value:n.value}}}return null}}(this._term))}getErrors(n){this.evidence.errors&&n.push(this.evidence.errors),this.reference.errors&&n.push(this.reference.errors),this.with.errors&&n.push(this.with.errors)}}class GVe{constructor(n){this.edge=new Lo,this.relationship=new Lo,this.directness=new Lo,this.effectDirection=new Lo,this.evidenceForms=[],this.evidenceFormArray=new Xu([]),this._fb=new e2,this._metadata=n}createEntityForms(n){const e=this;n.evidence.forEach(i=>{const o=new kO(e._metadata,null,i);e.evidenceForms.push(o),o.onValueChanges(n),e.evidenceFormArray.push(e._fb.group(o))})}updateEvidenceForms(n){const e=this;e.evidenceForms=[],e.evidenceFormArray=new Xu([]),n.evidence.forEach(i=>{const o=new kO(e._metadata,null,i);e.evidenceForms.push(o),o.onValueChanges(n),e.evidenceFormArray.push(e._fb.group(o))})}populateConnectorForm(){const e=[];this.evidenceForms.forEach(i=>{const o=new Ll;i.populateEvidence(o),e.push(o)})}}let IO=(()=>{class t{constructor(e,i,o,r,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=o,this.noctuaLookupService=r,this.bbopGraphService=a,this.connectors=[],this._allowRequestWatch=!1,this.onActivityChanged=new Io(null),this.onLinkChanged=new Io(null),this.connectorFormGroup=new Io(null),this.connectorFormGroup$=this.connectorFormGroup.asObservable(),this.camService.onCamChanged.subscribe(l=>{!l||(this.cam=l)})}initializeForm(e,i){const o=this;if(o._allowRequestWatch=!1,o.subjectActivity=this.cam.findActivityById(e),o.objectActivity=this.cam.findActivityById(i),o.causalConnection=o.cam.getCausalRelation(e,i),this.causalConnection){const r=(0,Zt.cloneDeep)(this.causalConnection.predicate);o.connectorActivity=new PN(o.subjectActivity,o.objectActivity,r),o.connectorActivity.state=g3.editing,o.currentConnectorActivity=(0,Zt.cloneDeep)(this.connectorActivity)}else{const r=o.noctuaFormConfigService.createPredicate(Pi.createEntity(Ht.edge.positivelyRegulates));o.connectorActivity=new PN(o.subjectActivity,o.objectActivity,r),o.connectorActivity.state=g3.creation,o.connectorActivity.addDefaultEvidence()}this.connectorForm=this.createConnectorForm(),this.connectorFormGroup.next(this._fb.group(this.connectorForm)),this.connectorActivity.connectorType===Od.ACTIVITY_ACTIVITY?(this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection),this.connectorForm.directness.setValue(this.connectorActivity.rule.directness)):this.connectorActivity.connectorType===Od.ACTIVITY_MOLECULE?this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship):this.connectorActivity.connectorType===Od.MOLECULE_ACTIVITY&&(this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection)),this._onActivityFormChanges(),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection)}updateEvidence(e){this.connectorForm.updateEvidenceForms(e.predicate),this.connectorFormGroup.next(this._fb.group(this.connectorForm))}createConnectorForm(){const e=this,i=new KC(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),o=new GVe(i);return o.createEntityForms(e.connectorActivity.predicate),o}saveActivity(){const e=this;if(e.connectorActivity.state===g3.editing){const i=e.connectorActivity.createEdit(e.currentConnectorActivity);return e.bbopGraphService.editConnection(e.cam,i.removeTriples,i.addTriples).then(()=>{this.initializeForm(e.subjectActivity.id,e.objectActivity.id)})}{const i=e.connectorActivity.createSave();return e.bbopGraphService.addActivity(e.cam,[],i.triples,"",f3.ADD_CAUSAL_RELATION)}}deleteConnectorEdge(e){const o=e.createDelete();return this.bbopGraphService.deleteActivity(this.cam,[],o.triples)}_onActivityFormChanges(){this.connectorFormGroup.getValue().valueChanges.subscribe(e=>{var i,o;this.connectorActivity.checkConnection(e),(null===(o=null===(i=this.connectorActivity.predicate)||void 0===i?void 0:i.edge)||void 0===o?void 0:o.id)&&this._allowRequestWatch&&this.connectorActivity.state===g3.editing&&this.saveActivity(),this._allowRequestWatch=!0})}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(Co),qt(Zr),qt(Sd),qt(Yc))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class EN{constructor(n,e){this.relationship=new Lo,this.term=new Lo,this.evidenceForms=[],this.evidenceFormArray=new Xu([]),this._fb=new e2,this._metadata=n,this.id=e.id,this.node=e,this.term.setValue(e.getTerm()),this.relationship.setValue(e.predicate.edge),this._onValueChanges(e.termLookup)}createEvidenceForms(n){const e=this;this.setTermValidator(n),n.predicate.evidence.forEach(i=>{const o=new kO(e._metadata,n,i);e.evidenceForms.push(o),o.onValueChanges(n.predicate),e.evidenceFormArray.push(e._fb.group(o))})}refreshEvidenceForms(n){const e=this;e.evidenceForms=[],e.evidenceFormArray=new Xu([]),n.forEach(i=>{const o=new kO(e._metadata,e.node,i);e.evidenceForms.push(o),o.onValueChanges(e.node.predicate),e.evidenceFormArray.push(e._fb.group(o))})}populateTerm(){const n=this;n.relationship.value&&n.node.relationEditable&&(n.node.predicate.edge=n.relationship.value),n.term.value&&n.term.value.id&&(n.node.term=new Pi(n.term.value.id,n.term.value.label),n.node.rootTypes=n.term.value.rootTypes,n.evidenceForms.forEach((e,i)=>{const o=n.node.predicate.evidence[i];o&&e.populateEvidence(o)}))}populateTermEvidenceOnly(){const n=this;n.evidenceForms.forEach((e,i)=>{const o=n.node.predicate.evidence[i];o&&e.populateEvidence(o)})}_onValueChanges(n){const e=this;e.term.valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{e._metadata.lookupFunc.termLookup(i,e.node.termLookup.requestParams).subscribe(o=>{e.node.termLookup.results=o})})}setTermValidator(n){this.term.setValidators("mf"===n.id?function YVe(t){return n=>n.value?n.value.id?null:{[`Selevt ${t.label} correct value`]:{value:n.value}}:{[`${t.label} is required`]:{value:n.value}}}(n):null)}getErrors(n){const e=this;e.term.errors&&n.push(e.term.errors),e.evidenceForms.forEach(i=>{i.getErrors(n)})}}let Pd=(()=>{class t{constructor(e,i,o,r,a,l){this._fb=e,this.zone=i,this.noctuaFormConfigService=o,this.bbopGraphService=r,this.camService=a,this.noctuaLookupService=l,this.entityFormGroup=new Io(null),this.entityFormGroup$=this.entityFormGroup.asObservable(),this.camService.onCamChanged.subscribe(u=>{!u||(this.cam=u)})}initializeForm(e,i){this.currentActivity=(0,Zt.cloneDeep)(e),this.activity=e,this.entity=i,this.entityForm=this.createActivityEntityForm(this.entity),this.entityFormGroup.next(this._fb.group(this.entityForm)),this._onActivityFormChanges()}reinitializeForm(e,i){this.entityForm.term.setValue(e),this.entityForm.refreshEvidenceForms(i),this.entityFormGroup.next(this._fb.group(this.entityForm))}createActivityEntityForm(e){const o=new KC(this.noctuaLookupService.lookupFunc.bind(this.noctuaLookupService)),r=new EN(o,e);return r.createEvidenceForms(e),r}activityEntityFormToActivity(){this.entityForm.populateTerm()}_onActivityFormChanges(){this.entityFormGroup.getValue().valueChanges.subscribe(()=>{})}saveActivity(){const e=this;e.activityEntityFormToActivity(),e.activity instanceof PN&&(e.activity.predicate.evidence=e.entity.predicate.evidence);const i=e.activity.createEdit(e.currentActivity);return e.bbopGraphService.editActivity(e.cam,i.addNodes,i.addTriples,i.removeIds)}addIndividual(){const e=this;e.activityEntityFormToActivity();const i=e.activity.createAddIndividual(e.currentActivity,e.entity.predicate);return e.bbopGraphService.editActivity(e.cam,[e.entity],[i.addTriples],[],[])}saveSearchDatabase(){const e=this,i=e.currentActivity.getEdge(e.entity.predicate.subjectId,e.entity.predicate.objectId),o=e.activity.getEdge(e.entity.predicate.subjectId,e.entity.predicate.objectId);return e.bbopGraphService.editActivity(e.cam,[],[o],[],[i])}addEvidence(){const e=this;e.activityEntityFormToActivity();const i=e.activity.createEditEvidence(e.currentActivity,e.entity.predicate);return e.bbopGraphService.editActivity(e.cam,[],[i.addTriples],[],[i.removeTriples])}createEvidence(e){const i=this;i.entity.predicate.evidence=e;const o=i.activity.createEditEvidence(i.currentActivity,i.entity.predicate);return i.bbopGraphService.editActivity(i.cam,[],[o.addTriples],[],[o.removeTriples])}deleteActivityNode(e,i){const r=e.createActivityNodeDelete(i);return this.bbopGraphService.deleteActivity(this.cam,r.uuids,[])}deleteEvidence(e){return this.bbopGraphService.deleteEvidence(this.cam,e)}deleteEvidenceReference(e,i){return this.bbopGraphService.deleteEvidenceAnnotation(this.cam,e,"source",i)}deleteEvidenceWith(e,i){return this.bbopGraphService.deleteEvidenceAnnotation(this.cam,e,"with",i)}saveActivityReplace(e,i){const o=this;i&&(e.loading=new Md(!0,"Replacing ..."));const r=(0,Zt.cloneDeep)(o.entity);return o.activityEntityFormToActivity(),o.entity.addPendingChanges(r),o.camService.bulkEditActivityNode(e,o.entity)}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(oo),qt(Co),qt(Yc),qt(Zr),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Pee{constructor(n){this.name="",this.isComplement=!1,this.entityForms=[],this.entityGroup=new Xu([]),this._fb=new e2,this._metadata=n}createEntityForms(n){const e=this;this.entityForms=[],n.forEach(i=>{if(i.visible){const o=new EN(e._metadata,i);i.skipEvidenceCheck||o.createEvidenceForms(i),e.entityForms.push(o),e.entityGroup.push(e._fb.group(o))}})}populateActivityNodes(n){this.entityForms.forEach(i=>{i.populateTerm()})}getErrors(n){this.entityForms.forEach(i=>{i.getErrors(n)})}}class UVe{constructor(n){this.entityGroupForms=[],this.bpOnlyEdge=new Lo,this.ccOnlyEdge=new Lo,this.gp=new Xu([]),this.fd=new Xu([]),this._fb=new e2,this._metadata=n}createMolecularEntityForm(n){const e=this;(0,Zt.each)(n,(i,o)=>{const r=new Pee(this._metadata);this.entityGroupForms.push(r),r.name=o,r.createEntityForms(i.nodes),e.gp.push(e._fb.group(r))})}createFunctionDescriptionForm(n){const e=this;(0,Zt.each)(n,(i,o)=>{const r=new Pee(this._metadata);this.entityGroupForms.push(r),r.name=o,r.isComplement=i.isComplement,r.createEntityForms(i.nodes),e.fd.push(e._fb.group(r))})}populateActivity(n){this.entityGroupForms.forEach(e=>{e.populateActivityNodes(n)}),this.bpOnlyEdge.value&&(n.bpOnlyEdge=new Pi(this.bpOnlyEdge.value.id,this.bpOnlyEdge.value.label))}getErrors(n){this.entityGroupForms.forEach(e=>{e.getErrors(n)})}}let Ts=(()=>{class t{constructor(e,i,o,r,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=o,this.bbopGraphService=r,this.noctuaLookupService=a,this.errors=[],this.camService.onCamChanged.subscribe(l=>{!l||(this.cam=l)}),this.activity=this.noctuaFormConfigService.createActivityModel(so.default),this.onActivityCreated=new Io(null),this.onActivityChanged=new Io(null),this.activityFormGroup=new Io(null),this.activityFormGroup$=this.activityFormGroup.asObservable(),this.initializeForm()}initializeForm(e){const i=this;i.errors=[],i.state=d_.creation,i.currentActivity=null,i.activity.resetPresentation(),i.activityForm=this.createActivityForm(),i.activityFormGroup.next(this._fb.group(this.activityForm)),i.activity.updateShapeMenuShex(e),i.activity.enableSubmit(),i._onActivityFormChanges()}initializeFormData(){this.fakester(this.activity),this.initializeForm()}createActivityForm(){const e=this,i=new KC(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),o=new UVe(i);return o.createFunctionDescriptionForm(e.activity.presentation.fd),o.createMolecularEntityForm(e.activity.presentation.gp),o}activityFormToActivity(){this.activityForm.populateActivity(this.activity)}_onActivityFormChanges(){this.activityFormGroup.getValue().valueChanges.subscribe(()=>{this.activityFormToActivity(),this.activity.enableSubmit()})}getActivityFormErrors(){let e=[];return this.activityForm.getErrors(e),e}setActivityType(e){this.activity=this.noctuaFormConfigService.createActivityModel(e),this.initializeForm()}linkFormNode(e,i){e.uuid=i.uuid,e.term=i.getTerm()}cloneForm(e,i){this.activity=this.noctuaFormConfigService.createActivityModel(e.activityType),i&&(0,Zt.each)(i,function(o){let r=this.activity.getNode(o.id);r&&r.copyValues(o)}),this.initializeForm()}saveActivity(){const e=this;if(e.activityFormToActivity(),this.activity.activityType===so.ccOnly){const i=[],o=e.createCCAnnotations(e.activity);return(0,Zt.each)(o,r=>{const a=r.createSave();i.push(e.bbopGraphService.addActivity(e.cam,a.nodes,a.triples,a.title))}),Ah(i)}{const i=e.activity.createSave();return Ah(e.bbopGraphService.addActivity(e.cam,i.nodes,i.triples,i.title))}}createCCAnnotations(e){const i=this,o=e.getEdges(e.rootNode.id),r=[];return(0,Zt.each)(o,a=>{const l=new QC,u=(0,Zt.cloneDeep)(a.subject),f=(0,Zt.cloneDeep)(a.object),M=(0,Zt.cloneDeep)(a.predicate);l.activityType=e.activityType,l.addNode(u),l.addNodes(f),l.addEdge(u,f,M),i._createCCAnnotationsDFS(e,l,f),r.push(l)}),r}_createCCAnnotationsDFS(e,i,o){const r=this,a=e.getEdges(o.id);(0,Zt.each)(a,l=>{const u=(0,Zt.cloneDeep)(l.object),f=(0,Zt.cloneDeep)(l.predicate);i.addNodes(u),i.addEdge(o,u,f),r._createCCAnnotationsDFS(e,i,u)})}clearForm(){this.activity=this.noctuaFormConfigService.createActivityModel(this.activity.activityType),this.initializeForm()}fakester(e){const i=this;(0,Zt.each)(e.nodes,o=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.termLookup.requestParams,{rows:100})).subscribe(r=>{if(r&&r.length>0){const a=r.length;o.term=Pi.createEntity(r[Math.floor(Math.random()*a)]),(0,Zt.each)(o.predicate.evidence,l=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.predicate.evidenceLookup.requestParams,{rows:100})).subscribe(u=>{if(u&&u.length>0){const f=u.length;l.evidence=Pi.createEntity(u[Math.floor(Math.random()*f)]),l.reference=`PMID:${Math.floor(1e6*Math.random())+1e3}`}})})}})})}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(Co),qt(Zr),qt(Yc),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var f_=(()=>{return(t=f_||(f_={})).ACTIVITY="activity",t.ACTIVITY_CONNECTOR="activity_connector",f_;var t})();let JC=(()=>{class t{constructor(e){this.noctuaFormConfigService=e}buildTermsStats(e){return[e.mf,e.bp,e.cc,e.gp,e.other].map(r=>({name:r.shorthand?r.shorthand:r.label,series:r.getSortedNodes().map(a=>({name:a.term.label,value:a.frequency}))}))}buildTermsDistribution(e){const i=e.reduce((a,l)=>(a.push(...l.nodes),a),[]);return(0,Zt.orderBy)(i,["frequency"],["desc"]).slice(0,20).map(a=>({name:a.term.label,value:a.frequency}))}buildContributionsStats(e){const i=(0,Zt.orderBy)(e,["id"]);let o=0;return[{name:"All Contributors",series:i.map(a=>(o+=a.frequency,{name:new Date(a.label),value:o}))}]}buildAspectPie(e){return e.map(o=>({name:o.label,value:o.frequency}))}buildTermsPie(e){return e.map(o=>({name:o.term.label,value:o.frequency}))}buildRelationsPie(e){return(0,Zt.orderBy)(e,["frequency"],["desc"]).map(r=>({name:r.label,value:r.frequency}))}buildContributorBar(e){return(0,Zt.orderBy)(e,["frequency"],["desc"]).map(r=>({name:r.name,value:r.frequency}))}}return t.\u0275fac=function(e){return new(e||t)(qt(Co))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class jVe{constructor(n){this.isComplement=new Lo,this.gpToTermEdge=new Lo,this.extensionEdge=new Lo,this.extensionType=new Lo,this.entityForms=[],this._fb=new e2,this._metadata=n}createEntityForms(n){const e=this;n.forEach(i=>{const o=new EN(e._metadata,i);i.skipEvidenceCheck||o.createEvidenceForms(i),this.entityForms.push(o);const a={gp:"gp",goterm:"goterm",extension:"extension"}[i.id];a&&(e[a]=this._fb.group(o))})}createMolecularEntityForm(n){(0,Zt.each)(n,(e,i)=>{this.createEntityForms(e.nodes)})}populateActivity(n){this.gpToTermEdge.value&&(n.gpToTermEdge=this.gpToTermEdge.value),this.extensionEdge.value&&(n.extensionEdge=this.extensionEdge.value),this.entityForms.forEach(e=>{e.populateTerm()})}getErrors(n){this.entityForms.forEach(e=>{e.getErrors(n)})}}let NO=(()=>{class t{constructor(e,i,o,r,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=o,this.bbopGraphService=r,this.noctuaLookupService=a,this.errors=[],this.destroy$=new N,this.previousGotermRelation=null,this.camService.onCamChanged.subscribe(l=>{!l||(this.cam=l)}),this.onActivityCreated=new Io(null),this.onActivityChanged=new Io(null),this.annotationFormGroup=new Io(null),this.annotationFormGroup$=this.annotationFormGroup.asObservable(),this.initializeForm()}initializeForm(){this.activity=this.noctuaFormConfigService.createActivityModel(so.simpleAnnoton),this.errors=[],this.currentActivity=null,this.activity.resetPresentation(),this.annotationForm=this.createAnnotationForm(),this.annotationFormGroup.next(this._fb.group(this.annotationForm)),this.activity.enableSubmit(),this.annotationActivity=new yee(this.activity),this._onActivityFormChanges(),this.onActivityChanged.next(this.activity)}initializeFormData(){this.fakester(this.activity),this.initializeForm()}createAnnotationForm(){const e=this,i=new KC(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),o=new jVe(i);return o.createMolecularEntityForm(e.activity.presentation.gp),o}activityFormToActivity(){this.annotationForm.populateActivity(this.annotationActivity),this.annotationActivity.goterm.isComplement=this.annotationForm.isComplement.value}_onActivityFormChanges(){this.annotationFormGroup.getValue().valueChanges.pipe(Yn(this.destroy$)).subscribe(e=>{var i;this.activityFormToActivity(),this.activity.enableSubmit(),this.annotationActivity.updateAspect();const o=this.noctuaFormConfigService.getTermRelations(this.annotationActivity.gp.rootTypes,this.annotationActivity.goterm.rootTypes,!0),r=this.noctuaFormConfigService.getObjectsRelations(this.annotationActivity.goterm.rootTypes),a=this.noctuaFormConfigService.getTermRelations(this.annotationActivity.goterm.rootTypes,this.annotationActivity.extension.rootTypes);if(this.annotationActivity.gpToTermEdges=o,this.annotationActivity.extensionEdges=a,r.length>0&&(this.annotationActivity.extension.category=r,this.noctuaFormConfigService.setTermLookup(this.annotationActivity.extension,r)),o.length>0&&this.annotationActivity.gp.hasValue()&&this.annotationActivity.goterm.hasValue()){if(this.destroy$.next(),!o.some(u=>{var f;return u.id===(null===(f=this.annotationActivity.gpToTermEdge)||void 0===f?void 0:f.id)})){if(this.annotationForm.gpToTermEdge.setValue(o[0]),this.annotationActivity.goterm.hasRootType(Kl)){const u=o.find(f=>f.id===Ht.edge.partOf.id);this.annotationForm.gpToTermEdge.setValue(u)}this.previousGotermRelation=null===(i=this.annotationActivity.gpToTermEdge)||void 0===i?void 0:i.id}this.destroy$=new N,this._onActivityFormChanges()}})}getActivityFormErrors(){let e=[];return this.annotationForm.getErrors(e),e}setActivityType(e){this.activity=this.noctuaFormConfigService.createActivityModel(e),this.initializeForm()}cloneForm(e,i){this.activity=this.noctuaFormConfigService.createActivityModel(e.activityType),i&&(0,Zt.each)(i,function(o){let r=this.activity.getNode(o.id);r&&r.copyValues(o)}),this.initializeForm()}saveAnnotation(){const e=this;e.activityFormToActivity(),console.log(e.activity),e.annotationActivity.activityToAnnotation(e.activity);const i=e.annotationActivity.createSave();return Ah(e.bbopGraphService.addActivity(e.cam,i.nodes,i.triples,i.title))}clearForm(){this.initializeForm()}fakester(e){const i=this;(0,Zt.each)(e.nodes,o=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.termLookup.requestParams,{rows:100})).subscribe(r=>{if(r&&r.length>0){const a=r.length;o.term=Pi.createEntity(r[Math.floor(Math.random()*a)]),(0,Zt.each)(o.predicate.evidence,l=>{i.noctuaLookupService.termLookup("a",Object.assign({},o.predicate.evidenceLookup.requestParams,{rows:100})).subscribe(u=>{if(u&&u.length>0){const f=u.length;l.evidence=Pi.createEntity(u[Math.floor(Math.random()*f)]),l.reference=`PMID:${Math.floor(1e6*Math.random())+1e3}`}})})}})})}}return t.\u0275fac=function(e){return new(e||t)(qt(e2),qt(Co),qt(Zr),qt(Yc),qt(Sd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Uc=(()=>{return(t=Uc||(Uc={})).activityForm="activityForm",t.camForm="camForm",t.findReplace="findReplace",t.copyModel="copyModel",t.camTermsSummary="camTermsSummary",t.camStats="camStats",Uc;var t})(),d4=(()=>{return(t=d4||(d4={})).camPreview="camPreview",t.camTable="camTable",d4;var t})(),um=(()=>{return(t=um||(um={})).activityForm="activityForm",t.camForm="camForm",t.termDetail="termDetail",um;var t})();class WVe{}function qVe(t,n){return t.taxonName{class t{constructor(e){this._router=e,this._init()}get bufferValue(){return this._bufferValue.asObservable()}setBufferValue(e){this._bufferValue.next(e)}get mode(){return this._mode.asObservable()}setMode(e){this._mode.next(e)}get value(){return this._value.asObservable()}setValue(e){this._value.next(e)}get visible(){return this._visible.asObservable()}_init(){this._bufferValue=new Io(0),this._mode=new Io("indeterminate"),this._value=new Io(0),this._visible=new Io(!1),this._router.events.pipe(ca(e=>e instanceof g6)).subscribe(()=>{this.show()}),this._router.events.pipe(ca(e=>e instanceof Gp)).subscribe(()=>{this.hide()})}show(){this._visible.next(!0)}hide(){this._visible.next(!1)}}return t.\u0275fac=function(e){return new(e||t)(qt(A1))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function QVe(t,n){if(1&t&&(er(0),Qe(1,"mat-progress-bar",1),tr()),2&t){const e=Ae();W(1),J("bufferValue",e.bufferValue)("mode",e.mode)("value",e.value)}}let ZVe=(()=>{class t{constructor(e){this._noctuaProgressBarService=e,this._unsubscribeAll=new N}ngOnInit(){this._noctuaProgressBarService.bufferValue.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.bufferValue=e}),this._noctuaProgressBarService.mode.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.mode=e}),this._noctuaProgressBarService.value.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.value=e}),this._noctuaProgressBarService.visible.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.visible=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(XVe))},t.\u0275cmp=vn({type:t,selectors:[["noctua-progress-bar"]],decls:1,vars:1,consts:[[4,"ngIf"],["color","accent",3,"bufferValue","mode","value"]],template:function(e,i){1&e&&ke(0,QVe,2,3,"ng-container",0),2&e&&J("ngIf",i.visible)},directives:[Yi,G9],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}noctua-progress-bar{position:absolute;top:0;left:0;right:0;width:100%;z-index:99998}noctua-progress-bar mat-progress-bar .mat-progress-bar-buffer{background-color:#c5c6cb!important}\n'],encapsulation:2}),t})();var a2=(()=>{return(t=a2||(a2={})).filter="filter",t.relation="relation",t.group="group",t.contributor="contributor",t.organism="organism",t.history="history",t.replace="replace",t.artBasket="artBasket",t.activityForm="activityForm",t.camForm="camForm",t.copyModel="copyModel",t.apps="apps",t.announcement="announcement",t.findReplace="findReplace",t.camTermsSummary="camTermsSummary",t.camStats="camStats",a2;var t})(),Ju=(()=>{return(t=Ju||(Ju={})).camPreview="camPreview",t.camTable="camTable",t.camGraph="camGraph",Ju;var t})(),m3=(()=>{return(t=m3||(m3={})).activityForm="activityForm",t.activityPreview="activityPreview",t.camForm="camForm",t.camTable="camTable",t.activityTable="activityTable",t.activityConnectorTable="activityConnectorTable",t.graphSettings="graphSettings",t.termDetail="termDetail",m3;var t})();class hm{constructor(){this.showAspect=!1,this.showIsExtension=!1,this.showEvidence=!0,this.showEvidenceSummary=!0,this.showReference=!0,this.showEvidenceCode=!0,this.showComments=!0,this.showWith=!0,this.showGroup=!0,this.showContributor=!0,this.showAddEvidenceButton=!1}createSettingsForm(){return new td({showAspect:new Lo(this.showAspect),showIsExtension:new Lo(this.showIsExtension),showEvidence:new Lo(this.showEvidence),showEvidenceSummary:new Lo(this.showEvidenceSummary),showEvidenceCode:new Lo(this.showEvidenceCode),showReference:new Lo(this.showReference),showWith:new Lo(this.showWith),showComments:new Lo(this.showComments),showGroup:new Lo(this.showGroup),showContributor:new Lo(this.showContributor)})}populateSettings(n){this.showAspect=n.showAspect,this.showIsExtension=n.showIsExtension,this.showEvidence=n.showEvidence,this.showReference=n.showReference,this.showEvidenceCode=n.showEvidenceCode,this.showEvidenceSummary=n.showEvidenceSummary,this.showWith=n.showWith,this.showComments=n.showComments,this.showGroup=n.showGroup,this.showContributor=n.showContributor}graphSettings(){this.showAspect=!1,this.showIsExtension=!1,this.showEvidence=!0,this.showEvidenceSummary=!0,this.showReference=!0,this.showEvidenceCode=!0,this.showComments=!0,this.showWith=!0,this.showGroup=!1,this.showContributor=!1}}var eh=(()=>{return(t=eh||(eh={})).STANDARD_ANNOTATIONS="noctua-standard-annotations",t.FORM="noctua-form",t.GRAPH_EDITOR="graph-editor",t.VISUAL_PATHWAY_EDITOR="noctua-visual-pathway-editor",eh;var t})();let ul=(()=>{class t{constructor(e,i){this._bbopGraphService=e,this.noctuaUserService=i,this.selectedLeftSidenav=a2.apps;const o=new hm;o.graphSettings(),this.onCamSettingsChanged=new Io(o)}createModel(e){const i=this,o=this._bbopGraphService.registerManager();o.register("rebuild",function(r){},10),o.add_model().then(r=>{const a=r.data().id;let l=new Zd;l=l.append("model_id",a),l=l.append("barista_token",i.noctuaUserService.baristaToken);const u=l.toString();window.open({[eh.GRAPH_EDITOR]:`${Er.noctuaUrl}/editor/graph/${a}?${u}`,[eh.STANDARD_ANNOTATIONS]:`${Er.workbenchUrl}${eh.STANDARD_ANNOTATIONS}?${u}`,[eh.FORM]:`${Er.workbenchUrl}${eh.FORM}?${u}`,[eh.VISUAL_PATHWAY_EDITOR]:`${Er.workbenchUrl}${eh.VISUAL_PATHWAY_EDITOR}?${u}`}[e],"_blank")})}setLeftSidenav(e){this._leftSidenav=e}openLeftSidenav(){return this._leftSidenav.open()}selectLeftSidenav(e){this.selectedLeftSidenav=e}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this._leftDrawer=e}closeLeftDrawer(){return this._leftDrawer.close()}setRightDrawer(e){this._rightDrawer=e}openLeftDrawer(){return this._leftDrawer.open()}openRightDrawer(){return this._rightDrawer.open()}closeRightDrawer(){return this._rightDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this._leftDrawer.toggle()}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)(qt(Yc),qt(yr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tee=(()=>{class t{constructor(e){this.httpClient=e,this.cursor=0,this.onAnnouncementsChanged=new Io(null),this.onAnnouncementChanged=new Io(null)}getAnnouncement(){return this.httpClient.get(Er.announcementUrl).subscribe(e=>{e&&(e.length>0&&this.onAnnouncementChanged.next(e[this.cursor]),this.onAnnouncementsChanged.next(e))})}}return t.\u0275fac=function(e){return new(e||t)(qt(ru))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Is=(()=>{return(t=Is||(Is={})).filter="filter",t.relation="relation",t.group="group",t.contributor="contributor",t.organism="organism",t.history="history",t.replace="replace",t.artBasket="artBasket",Is;var t})(),fa=(()=>{return(t=fa||(fa={})).home="home",t.cams="cams",t.camsReview="camReview",t.reviewChanges="reviewChanges",fa;var t})(),Fh=(()=>{return(t=Fh||(Fh={})).camForm="camForm",t.copyModel="copyModel",t.announcement="announcement",Fh;var t})(),hl=(()=>{return(t=hl||(hl={})).off="off",t.on="on",t.locked="locked",hl;var t})(),RO=(()=>{return(t=RO||(RO={})).term="term",t.gp="gp",t.reference="reference",RO;var t})();let pl=(()=>{class t{constructor(){this.reviewMode=hl.off,this.isReviewMode=!1,this.reviewLevel=0,this.selectedLeftPanel=Is.filter,this.selectedMiddlePanel=fa.cams}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e,e===fa.cams?this.reviewLevel=0:e===fa.camsReview?this.reviewLevel=1:e===fa.reviewChanges&&(this.reviewLevel=2),this.scrollToTop()}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this.leftDrawer=e}openLeftDrawer(){return this.leftDrawer.open()}closeLeftDrawer(){return this.leftDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this.leftDrawer.toggle()}setRightDrawer(e){this.rightDrawer=e}openRightDrawer(){return this.rightDrawer.open()}closeRightDrawer(){return this.rightDrawer.close()}scrollToTop(){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToTop(0)}))})}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function G0(t){return getComputedStyle(t)}function I2(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function zO(t){var n=document.createElement("div");return n.className=t,n}var Eee="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function u4(t,n){if(!Eee)throw new Error("No element matching method supported");return Eee.call(t,n)}function g_(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function Aee(t,n){return Array.prototype.filter.call(t.children,function(e){return u4(e,n)})}var t1_element_thumb=function(t){return"ps__thumb-"+t},t1_element_rail=function(t){return"ps__rail-"+t},t1_element_consuming="ps__child--consume",t1_state_focus="ps--focus",t1_state_clicking="ps--clicking",t1_state_active=function(t){return"ps--active-"+t},t1_state_scrolling=function(t){return"ps--scrolling-"+t},Lee={x:null,y:null};function Dee(t,n){var e=t.element.classList,i=t1_state_scrolling(n);e.contains(i)?clearTimeout(Lee[n]):e.add(i)}function kee(t,n){Lee[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(t1_state_scrolling(n))},t.settings.scrollingThreshold)}var ev=function(n){this.element=n,this.handlers={}},Iee={isEmpty:{configurable:!0}};ev.prototype.bind=function(n,e){void 0===this.handlers[n]&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},ev.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(o){return!(!e||o===e)||(i.element.removeEventListener(n,o,!1),!1)})},ev.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},Iee.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(ev.prototype,Iee);var m_=function(){this.eventElements=[]};function FO(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function HO(t,n,e,i,o){var r;if(void 0===i&&(i=!0),void 0===o&&(o=!1),"top"===n)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function JVe(t,n,e,i,o){var r=e[0],a=e[1],l=e[2],u=e[3],f=e[4],M=e[5];void 0===i&&(i=!0),void 0===o&&(o=!1);var T=t.element;t.reach[u]=null,T[l]<1&&(t.reach[u]="start"),T[l]>t[r]-t[a]-1&&(t.reach[u]="end"),n&&(T.dispatchEvent(FO("ps-scroll-"+u)),n<0?T.dispatchEvent(FO("ps-scroll-"+f)):n>0&&T.dispatchEvent(FO("ps-scroll-"+M)),i&&function KVe(t,n){Dee(t,n),kee(t,n)}(t,u)),t.reach[u]&&(n||o)&&T.dispatchEvent(FO("ps-"+u+"-reach-"+t.reach[u]))}(t,e,r,i,o)}function rl(t){return parseInt(t,10)||0}m_.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new ev(n),this.eventElements.push(e)),e},m_.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},m_.prototype.unbind=function(n,e,i){var o=this.eventElement(n);o.unbind(e,i),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1)},m_.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},m_.prototype.once=function(n,e,i){var o=this.eventElement(n),r=function(a){o.unbind(e,r),i(a)};o.bind(e,r)};var __={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function _3(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.round(i.width),t.containerHeight=Math.round(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(Aee(n,t1_element_rail("x")).forEach(function(o){return g_(o)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(Aee(n,t1_element_rail("y")).forEach(function(o){return g_(o)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function nBe(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,I2(n.scrollbarXRail,e);var o={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?o.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:o.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,I2(n.scrollbarYRail,o),I2(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),I2(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(t1_state_active("x")):(n.classList.remove(t1_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(t1_state_active("y")):(n.classList.remove(t1_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function Nee(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function Ree(t,n){var e=n[0],i=n[1],o=n[2],r=n[3],a=n[4],l=n[5],u=n[6],f=n[7],M=n[8],T=t.element,U=null,ie=null,se=null;function Me(Be){Be.touches&&Be.touches[0]&&(Be[o]=Be.touches[0].pageY),T[u]=U+se*(Be[o]-ie),Dee(t,f),_3(t),Be.stopPropagation(),Be.type.startsWith("touch")&&Be.changedTouches.length>1&&Be.preventDefault()}function we(){kee(t,f),t[M].classList.remove(t1_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",Me)}function He(Be,me){U=T[u],me&&Be.touches&&(Be[o]=Be.touches[0].pageY),ie=Be[o],se=(t[i]-t[e])/(t[r]-t[l]),me?t.event.bind(t.ownerDocument,"touchmove",Me):(t.event.bind(t.ownerDocument,"mousemove",Me),t.event.once(t.ownerDocument,"mouseup",we),Be.preventDefault()),t[M].classList.add(t1_state_clicking),Be.stopPropagation()}t.event.bind(t[a],"mousedown",function(Be){He(Be)}),t.event.bind(t[a],"touchstart",function(Be){He(Be,!0)})}var lBe={"click-rail":function iBe(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,_3(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,_3(t),e.stopPropagation()})},"drag-thumb":function oBe(t){Ree(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ree(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function rBe(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(u4(n,":hover")||u4(t.scrollbarX,":focus")||u4(t.scrollbarY,":focus"))){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(function eBe(t){return u4(t,"input,[contenteditable]")||u4(t,"select,[contenteditable]")||u4(t,"textarea,[contenteditable]")||u4(t,"button,[contenteditable]")}(a))return}var l=0,u=0;switch(r.which){case 37:l=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:u=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:l=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:u=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:u=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==l||t.settings.suppressScrollY&&0!==u||(n.scrollTop-=u,n.scrollLeft+=l,_3(t),function o(r,a){var l=Math.floor(n.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===l&&a>0||l>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var u=n.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===u&&r<0||u>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}(l,u)&&r.preventDefault())}})},wheel:function aBe(t){var n=t.element;function r(a){var l=function i(a){var l=a.deltaX,u=-1*a.deltaY;return(void 0===l||void 0===u)&&(l=-1*a.wheelDeltaX/6,u=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(l*=10,u*=10),l!=l&&u!=u&&(l=0,u=a.wheelDelta),a.shiftKey?[-u,-l]:[l,u]}(a),u=l[0],f=l[1];if(!function o(a,l,u){if(!__.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(a))return!1;for(var f=a;f&&f!==n;){if(f.classList.contains(t1_element_consuming))return!0;var M=G0(f);if(u&&M.overflowY.match(/(scroll|auto)/)){var T=f.scrollHeight-f.clientHeight;if(T>0&&(f.scrollTop>0&&u<0||f.scrollTop0))return!0}if(l&&M.overflowX.match(/(scroll|auto)/)){var U=f.scrollWidth-f.clientWidth;if(U>0&&(f.scrollLeft>0&&l<0||f.scrollLeft0))return!0}f=f.parentNode}return!1}(a.target,u,f)){var M=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?n.scrollTop-=f*t.settings.wheelSpeed:n.scrollTop+=u*t.settings.wheelSpeed,M=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?n.scrollLeft+=u*t.settings.wheelSpeed:n.scrollLeft-=f*t.settings.wheelSpeed,M=!0):(n.scrollTop-=f*t.settings.wheelSpeed,n.scrollLeft+=u*t.settings.wheelSpeed),_3(t),M=M||function e(a,l){var u=Math.floor(n.scrollTop),f=0===n.scrollTop,M=u+n.offsetHeight===n.scrollHeight,T=0===n.scrollLeft,U=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(l)>Math.abs(a)?f||M:T||U)||!t.settings.wheelPropagation}(u,f),M&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}void 0!==window.onwheel?t.event.bind(n,"wheel",r):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",r)},touch:function sBe(t){if(__.supportsTouch||__.supportsIePointer){var n=t.element,o={},r=0,a={},l=null;__.supportsTouch?(t.event.bind(n,"touchstart",M),t.event.bind(n,"touchmove",U),t.event.bind(n,"touchend",ie)):__.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",M),t.event.bind(n,"pointermove",U),t.event.bind(n,"pointerup",ie)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",M),t.event.bind(n,"MSPointerMove",U),t.event.bind(n,"MSPointerUp",ie)))}function i(se,Me){n.scrollTop-=Me,n.scrollLeft-=se,_3(t)}function u(se){return se.targetTouches?se.targetTouches[0]:se}function f(se){return!(se.pointerType&&"pen"===se.pointerType&&0===se.buttons||!(se.targetTouches&&1===se.targetTouches.length||se.pointerType&&"mouse"!==se.pointerType&&se.pointerType!==se.MSPOINTER_TYPE_MOUSE))}function M(se){if(f(se)){var Me=u(se);o.pageX=Me.pageX,o.pageY=Me.pageY,r=(new Date).getTime(),null!==l&&clearInterval(l)}}function U(se){if(f(se)){var Me=u(se),we={pageX:Me.pageX,pageY:Me.pageY},He=we.pageX-o.pageX,Be=we.pageY-o.pageY;if(function T(se,Me,we){if(!n.contains(se))return!1;for(var He=se;He&&He!==n;){if(He.classList.contains(t1_element_consuming))return!0;var Be=G0(He);if(we&&Be.overflowY.match(/(scroll|auto)/)){var me=He.scrollHeight-He.clientHeight;if(me>0&&(He.scrollTop>0&&we<0||He.scrollTop0))return!0}if(Me&&Be.overflowX.match(/(scroll|auto)/)){var ze=He.scrollWidth-He.clientWidth;if(ze>0&&(He.scrollLeft>0&&Me<0||He.scrollLeft0))return!0}He=He.parentNode}return!1}(se.target,He,Be))return;i(He,Be),o=we;var me=(new Date).getTime(),ze=me-r;ze>0&&(a.x=He/ze,a.y=Be/ze,r=me),function e(se,Me){var we=Math.floor(n.scrollTop),He=n.scrollLeft,Be=Math.abs(se),me=Math.abs(Me);if(me>Be){if(Me<0&&we===t.contentHeight-t.containerHeight||Me>0&&0===we)return 0===window.scrollY&&Me>0&&__.isChrome}else if(Be>me&&(se<0&&He===t.contentWidth-t.containerWidth||se>0&&0===He))return!0;return!0}(He,Be)&&se.preventDefault()}}function ie(){t.settings.swipeEasing&&(clearInterval(l),l=setInterval(function(){t.isInitialized?clearInterval(l):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(l):t.element?(i(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(l):clearInterval(l)},10))}}},tv=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var o in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[o]=e[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var M,f,r=function(){return n.classList.add(t1_state_focus)},a=function(){return n.classList.remove(t1_state_focus)};this.isRtl="rtl"===G0(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(f=n.scrollLeft,n.scrollLeft=-1,M=n.scrollLeft<0,n.scrollLeft=f,M),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new m_,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=zO(t1_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=zO(t1_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=G0(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=rl(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=rl(l.borderLeftWidth)+rl(l.borderRightWidth),I2(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=rl(l.marginLeft)+rl(l.marginRight),I2(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=zO(t1_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=zO(t1_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=G0(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=rl(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function tBe(t){var n=G0(t);return rl(n.width)+rl(n.paddingLeft)+rl(n.paddingRight)+rl(n.borderLeftWidth)+rl(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=rl(u.borderTopWidth)+rl(u.borderBottomWidth),I2(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=rl(u.marginTop)+rl(u.marginBottom),I2(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return lBe[f](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),_3(this)};tv.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,I2(this.scrollbarXRail,{display:"block"}),I2(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=rl(G0(this.scrollbarXRail).marginLeft)+rl(G0(this.scrollbarXRail).marginRight),this.railYMarginHeight=rl(G0(this.scrollbarYRail).marginTop)+rl(G0(this.scrollbarYRail).marginBottom),I2(this.scrollbarXRail,{display:"none"}),I2(this.scrollbarYRail,{display:"none"}),_3(this),HO(this,"top",0,!1,!0),HO(this,"left",0,!1,!0),I2(this.scrollbarXRail,{display:""}),I2(this.scrollbarYRail,{display:""}))},tv.prototype.onScroll=function(n){!this.isAlive||(_3(this),HO(this,"top",this.element.scrollTop-this.lastScrollTop),HO(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},tv.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),g_(this.scrollbarX),g_(this.scrollbarY),g_(this.scrollbarXRail),g_(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},tv.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const dBe=tv;class uBe{constructor(n,e,i,o){this.x=n,this.y=e,this.w=i,this.h=o}}class zee{constructor(n,e){this.x=n,this.y=e}}let ts=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this._noctuaConfigService=i,this._platform=o,this._router=r,this.isInitialized=!1,this.isMobile=!1,this._animation=null,this._enabled=!1,this._debouncedUpdate=Zt.debounce(this.update,150),this._options={updateOnRouteChange:!1},this._unsubscribeAll=new N}set noctuaPerfectScrollbarOptions(e){this._options=Zt.merge({},this._options,e),setTimeout(()=>{this._destroy()}),setTimeout(()=>{this._init()})}get noctuaPerfectScrollbarOptions(){return this._options}set enabled(e){""===e&&(e=!0),this.enabled!==e&&(this._enabled=e,this.enabled?this._init():this._destroy())}get enabled(){return this._enabled}ngOnInit(){Jc(window,"resize").pipe(Yn(this._unsubscribeAll),Ks(150)).subscribe(()=>{this.update()})}ngAfterViewInit(){this._noctuaConfigService.config.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.enabled=e.customScrollbars}),this.noctuaPerfectScrollbarOptions.updateOnRouteChange&&this._router.events.pipe(Yn(this._unsubscribeAll),ca(e=>e instanceof Gp)).subscribe(()=>{setTimeout(()=>{this.scrollToTop(),this.update()},0)})}ngOnDestroy(){this._destroy(),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_init(){this.isInitialized||((this._platform.ANDROID||this._platform.IOS)&&(this.isMobile=!0),!this.isMobile&&(this.isInitialized=!0,this.ps=new dBe(this.elementRef.nativeElement,Object.assign({},this.noctuaPerfectScrollbarOptions)),this.ps.event.eventElements.forEach(e=>{void 0!==e.handlers.keydown&&e.element.removeEventListener("keydown",e.handlers.keydown[0])})))}_destroy(){!this.isInitialized||!this.ps||(this.ps.destroy(),this.ps=null,this.isInitialized=!1)}_updateOnResize(){this._debouncedUpdate()}documentClick(e){!this.isInitialized||!this.ps||this.ps.update()}update(){!this.isInitialized||this.ps.update()}destroy(){this.ngOnDestroy()}geometry(e="scroll"){return new uBe(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.ps?new zee(this.ps.reach.x||0,this.ps.reach.y||0):new zee(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollTo(e,i,o){null==i&&null==o?this.animateScrolling("scrollTop",e,o):(null!=e&&this.animateScrolling("scrollLeft",e,o),null!=i&&this.animateScrolling("scrollTop",i,o))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,o){const r=this.elementRef.nativeElement.querySelector(e);if(!r)return;const a=r.getBoundingClientRect(),l=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",a.left-l.left+this.elementRef.nativeElement.scrollLeft+(i||0),o),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",a.top-l.top+this.elementRef.nativeElement.scrollTop+(i||0),o)}animateScrolling(e,i,o){if(this._animation&&(window.cancelAnimationFrame(this._animation),this._animation=null),o&&"undefined"!=typeof window){if(i!==this.elementRef.nativeElement[e]){let r=0,a=0,l=performance.now(),u=this.elementRef.nativeElement[e];const f=(u-i)/2,M=T=>{a+=Math.PI/(o/(T-l)),r=Math.round(i+f+f*Math.cos(a)),this.elementRef.nativeElement[e]===u&&(a>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=r,u=this.elementRef.nativeElement[e],l=T,this._animation=window.requestAnimationFrame(M)))};window.requestAnimationFrame(M)}}else this.elementRef.nativeElement[e]=i}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Hw),ue(rc),ue(A1))},t.\u0275dir=St({type:t,selectors:[["","noctuaPerfectScrollbar",""]],hostBindings:function(e,i){1&e&&et("resize",function(){return i._updateOnResize()},!1,Tp)("click",function(r){return i.documentClick(r)},!1,Ep)},inputs:{noctuaPerfectScrollbarOptions:"noctuaPerfectScrollbarOptions",enabled:["noctuaPerfectScrollbar","enabled"]}}),t})();function hBe(t,n){1&t&&(H(0,"a",8),de(1," More Details "),G()),2&t&&Ro("href",Ae().$implicit.descriptionUrl,ao)}function pBe(t,n){if(1&t&&(H(0,"div")(1,"strong"),de(2),G(),Qe(3,"br"),de(4),ke(5,hBe,2,1,"a",7),G()),2&t){const e=n.$implicit;yf("alert alert-",e.level," w-100-p my-8"),W(2),qo(e.title),W(2),Nt(" ",e.description," "),W(1),J("ngIf",e.descriptionUrl)}}let fBe=(()=>{class t{constructor(e,i){this.noctuaSearchMenuService=e,this.noctuaAnnouncementService=i,this._unsubscribeAll=new N}ngOnInit(){this.noctuaAnnouncementService.onAnnouncementsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcements=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}close(){this.sidenav.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(pl),ue(Tee))},t.\u0275cmp=vn({type:t,selectors:[["noc-announcement-panel"]],inputs:{sidenav:"sidenav"},decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p","p-8"],[3,"class",4,"ngFor","ngForOf"],["target","_banl",3,"href",4,"ngIf"],["target","_banl",3,"href"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Announcements"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),ke(10,pBe,6,6,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.announcements))},directives:[nd,tl,D0,Oo,So,ko,Fo,Ir,ts,$o,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}']}),t})();function gBe(t,n){if(1&t){const e=Ln();H(0,"div",7)(1,"div",8)(2,"div",9),de(3," Create Model In "),G(),Qe(4,"span",3),G(),H(5,"div",14)(6,"div",15)(7,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.STANDARD_ANNOTATIONS)}),de(8," STANDARD ANNOTATIONS EDITOR "),G(),H(9,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.VISUAL_PATHWAY_EDITOR)}),de(10," PATHWAY EDITOR "),G(),H(11,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.FORM)}),de(12," FORM EDITOR "),G(),H(13,"button",16),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.GRAPH_EDITOR)}),de(14," GRAPH EDITOR "),G()()()()}2&t&&(W(7),Un("data-cy","create-standard-annotations-button"),W(2),Un("data-cy","create-pathway-button"),W(2),Un("data-cy","create-form-button"),W(2),Un("data-cy","create-graph-button"))}const mBe=function(){return["fas","list-alt"]},_Be=function(){return["fas","sitemap"]};function CBe(t,n){if(1&t&&(H(0,"div",7)(1,"div",8)(2,"div",9),de(3," Edit In "),G(),Qe(4,"span",3),G(),H(5,"div",17)(6,"div",18)(7,"a",19)(8,"mat-chip",20)(9,"div",21),Qe(10,"fa-icon",22),G(),H(11,"div",23),de(12," Form Editor "),G()()()(),H(13,"div",18)(14,"a",19)(15,"mat-chip",20)(16,"div",21),Qe(17,"fa-icon",22),G(),H(18,"div",23),de(19," Graph Editor "),G()()()()()()),2&t){const e=Ae();W(7),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaFormUrl,ao),W(3),J("icon",_i(4,mBe)),W(4),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.graphEditorUrl,ao),W(3),J("icon",_i(5,_Be))}}function vBe(t,n){if(1&t&&(H(0,"div",7)(1,"div",8)(2,"div",9),de(3," Export As "),G(),Qe(4,"span",3),G(),H(5,"div",17)(6,"div",24)(7,"a",19)(8,"mat-chip",20)(9,"div",23),de(10," GPAD "),G()()()(),H(11,"div",24)(12,"a",19)(13,"mat-chip",20)(14,"div",23),de(15," OWL "),G()()()()()()),2&t){const e=Ae();W(7),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.gpadUrl,ao),W(5),J("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.owlUrl,ao)}}function bBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),de(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function xBe(t,n){if(1&t&&(H(0,"div",7)(1,"div",8)(2,"div",9),de(3," Model Workbenches "),G(),Qe(4,"span",3),G(),H(5,"div",10),ke(6,bBe,5,2,"div",11),G()()),2&t){const e=Ae();W(6),J("ngForOf",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.modelWorkbenches)}}function yBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),de(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function wBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),de(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function MBe(t,n){if(1&t&&(H(0,"div",25)(1,"a",19)(2,"mat-chip",20)(3,"div",23),de(4),G()()()()),2&t){const e=n.$implicit;W(1),Ro("href",e.url,ao),W(3),Nt(" ",e.label," ")}}function OBe(t,n){if(1&t&&(er(0),ke(1,MBe,5,2,"div",11),tr()),2&t){const e=Ae();W(1),J("ngForOf",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.modelBetaTestWorkbenches)}}let SBe=(()=>{class t{constructor(e,i,o,r){this.noctuaConfigService=e,this.noctuaCommonMenuService=i,this.camService=o,this.noctuaUserService=r,this.WorkbenchId=eh,this.date=new Date,this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)})}createModel(e){this.noctuaCommonMenuService.createModel(e)}close(){this.sidenav.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(Co),ue(ul),ue(Zr),ue(yr))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-apps"]],inputs:{sidenav:"sidenav"},decls:30,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-form-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-section-body","p-8"],["class","w-100-p p-4",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","noc-beta"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-section-body","p-8","w-100-p"],["fxLayout","row wrap","fxLayoutAlign","center center",1,"noc-create","w-100-p"],["mat-raised-button","","fxFlex","45",1,"noc-rounded-button","m-4",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-body","p-8"],["fxFlex","50",1,"p-8"],["target","_blank",1,"w-100-p",3,"href"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip"],[1,"noc-icon"],[3,"icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","50",1,"p-4"],[1,"w-100-p","p-4"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Workbenches"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),ke(10,gBe,15,4,"div",6),ke(11,CBe,20,6,"div",6),Qe(12,"mat-divider"),ke(13,vBe,16,2,"div",6),ke(14,xBe,7,1,"div",6),H(15,"div",7)(16,"div",8)(17,"div",9),de(18," Global Workbenches "),G(),Qe(19,"span",3),G(),H(20,"div",10),ke(21,yBe,5,2,"div",11),G()(),H(22,"div",12)(23,"div",8)(24,"div",9),de(25," Beta Testing Workbenches "),G(),Qe(26,"span",3),G(),H(27,"div",10),ke(28,wBe,5,2,"div",11),ke(29,OBe,2,1,"ng-container",13),G()()()()),2&e&&(W(10),J("ngIf",i.noctuaUserService.user),W(1),J("ngIf",i.cam),W(2),J("ngIf",i.cam),W(1),J("ngIf",i.cam),W(7),J("ngForOf",null==i.noctuaConfigService.globalUrl?null:i.noctuaConfigService.globalUrl.universalWorkbenches),W(7),J("ngForOf",null==i.noctuaConfigService.globalUrl?null:i.noctuaConfigService.globalUrl.universalBetaTestWorkbenches),W(1),J("ngIf",i.cam))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,T2,ps,VX,$o],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled{pointer-events:none;opacity:.3}.mat-row:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected{background-color:#798fb826}.mat-toolbar{height:40px;min-height:40px;max-height:40px}.mat-toolbar mat-toolbar-row{height:40px;min-height:40px;max-height:40px}.mat-toolbar mat-toolbar-row button{color:#eee;border:#ccc solid 1px}.mat-toolbar mat-toolbar-row button:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body{padding:0!important}.noc-drawer .noc-drawer-header{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer .noc-drawer-header .noc-drawer-header-title{font-size:14px;font-weight:700}.noc-drawer .noc-drawer-body{min-height:calc(100% - 90px)}.noc-drawer .noc-drawer-body .noc-draw-body-disabled{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer .noc-drawer-footer{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog{height:100%;width:100%;overflow:hidden}.noc-dialog .noc-dialog-header{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog .noc-dialog-header .noc-dialog-header-title{font-size:14px;font-weight:700}.noc-dialog .noc-dialog-header button{color:#eee;border:#ccc solid 1px}.noc-dialog .noc-dialog-header button:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog .noc-dialog-body{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog .noc-dialog-footer{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section{width:100%;background-color:#fff}.noc-form-section .noc-section-header{height:30px;background-color:#798fb84d}.noc-form-section .noc-section-header .noc-section-heading{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section .noc-section-header .noc-action-button{margin:0;height:30px}.noc-form-section .noc-section-body{padding:4px 8px}.noc-column-toolbar{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar button{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert{padding:10px;font-size:12px;font-style:italic}.noc-card-simple{margin-bottom:20px}.noc-card-simple .noc-header{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple .noc-header .noc-title{font-size:14px;font-weight:700}.noc-card-simple .noc-body{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button:hover{background-color:#ee7979;color:#fff}mwlResizable{box-sizing:border-box}.resize-handle-top,.resize-handle-bottom{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top{top:0}.resize-handle-bottom{bottom:0}.resize-handle-left,.resize-handle-right{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left{left:0}.resize-handle-right{right:0}noc-noctua-apps{display:block;width:450px;min-width:450px;max-width:450px;z-index:100;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}noc-noctua-apps .noc-create{padding:8px}noc-noctua-apps .noc-create button{color:#039be5;font-size:10px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}noc-noctua-apps .noc-cam-form{width:100%;min-width:100%;max-width:100%}noc-noctua-apps .noc-beta{background-color:#fad38a}noc-noctua-apps .noc-header{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}noc-noctua-apps .noc-header mat-icon-button{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}noc-noctua-apps .noc-header .noc-title{font-size:10px;padding:0 14px}noc-noctua-apps .noc-body{padding:0 14px 14px}noc-noctua-apps .noc-drawer-body{padding-bottom:250px}noc-noctua-apps a{display:block;text-decoration:none!important}noc-noctua-apps mat-chip{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;max-width:100%;text-overflow:ellipsis;white-space:nowrap}noc-noctua-apps mat-chip .noc-chip-label{padding:0 8px 0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}noc-noctua-apps mat-chip .noc-chip-label .noc-icon-action{font-size:10px;background-color:transparent}noc-noctua-apps mat-chip .noc-chip-label .noc-icon-action:hover{font-size:14px;color:#222}noc-noctua-apps mat-chip.noc-table-chip{padding:0;height:30px;min-height:30px;max-height:30px;font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}noc-noctua-apps mat-chip.noc-table-chip .noc-icon,noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action{font-size:10px;background-color:transparent}noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action:hover{font-size:14px;color:#222;background-color:#0003}noc-noctua-apps mat-chip.noc-table-chip .noc-icon{background-color:#bbc9cc}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip{border:#bbc9cc solid 1px;background-color:#bbc9cc33}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip .noc-icon{background-color:#bbc9cc}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip .noc-icon{color:#59939e}noc-noctua-apps mat-chip.noc-table-chip.noc-date-chip{border:#aee9f5 solid 1px;background-color:#aee9f533}noc-noctua-apps mat-chip.noc-table-chip.noc-date-chip .noc-icon{background-color:#aee9f5}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-development{border:#f4c89c solid 1px;background-color:#f4c89c33}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-development .noc-icon{background-color:#f4c89c}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-production{border:#b6f1cc solid 1px;background-color:#b6f1cc33}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-production .noc-icon{background-color:#b6f1cc}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-review{border:#d8f6a3 solid 1px;background-color:#d8f6a333}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-review .noc-icon{background-color:#d8f6a3}\n'],encapsulation:2}),t})();class AN extends class PBe{constructor(){this.size=50,this.total=0,this.pageNumber=0,this.pageSizeOptions=[10,25,50,100]}}{}var sd=(()=>{return(t=sd||(sd={})).ids="ids",t.titles="titles",t.gps="gps",t.terms="terms",t.obsoleteTerms="obsoleteTerms",t.pmids="pmids",t.contributors="contributors",t.groups="groups",t.organisms="organisms",t.states="states",t.exactdates="exactdates",t.startdates="startdates",t.enddates="enddates",sd;var t})();class cd{constructor(n){this.camPage=new AN,this.titles=[],this.ids=[],this.gps=[],this.terms=[],this.obsoleteTerms=[],this.pmids=[],this.contributors=[],this.groups=[],this.organisms=[],this.states=[],this.exactdates=[],this.startdates=[],this.enddates=[],this.expand=!0,this.filtersCount=0,n&&(this.camPage=n.camPage||new AN,this.titles=n.titles||[],this.contributors=n.contributors||[],this.groups=n.groups||[],this.pmids=n.pmids||[],this.terms=n.terms||[],this.obsoleteTerms=n.obsoleteTerms||[],this.ids=n.ids||[],this.gps=n.gps||[],this.organisms=n.organisms||[],this.states=n.states||[],this.exactdates=n.exactdates||[],this.startdates=n.startdates||[],this.enddates=n.enddates||[],this.expand=n.expand)}updateFiltersCount(){const n=this;n.filtersCount=n.titles.length+n.ids.length+n.gps.length+n.terms.length+n.obsoleteTerms.length+n.pmids.length+n.contributors.length+n.groups.length+n.organisms.length+n.states.length+n.exactdates.length+n.startdates.length+n.enddates.length}query(n=!0){const e=this,i=[];return n&&(i.push(`offset=${(e.camPage.pageNumber*e.camPage.size).toString()}`),i.push(`limit=${e.camPage.size.toString()}`)),(0,Zt.each)(e.titles,o=>{i.push(`title=${o}`)}),(0,Zt.each)(e.terms,o=>{i.push(`term=${o.id}`)}),(0,Zt.each)(e.obsoleteTerms,o=>{i.push(`term=${o.id}`)}),(0,Zt.each)(e.groups,o=>{i.push(`group=${o.url}`)}),(0,Zt.each)(e.contributors,o=>{i.push(`contributor=${o.orcid}`)}),(0,Zt.each)(e.ids,o=>{i.push(`id=${o}`)}),(0,Zt.each)(e.gps,o=>{i.push(`gp=${o.id}`)}),(0,Zt.each)(e.pmids,o=>{i.push(`pmid=${o}`)}),(0,Zt.each)(e.exactdates,o=>{i.push(`exactdate=${o}`)}),(0,Zt.each)(e.startdates,o=>{i.push(`date=${o}`)}),(0,Zt.each)(e.enddates,o=>{i.push(`dateend=${o}`)}),(0,Zt.each)(e.organisms,o=>{i.push(`taxon=${o.taxonIri}`)}),(0,Zt.each)(e.states,o=>{i.push(`state=${o.name}`)}),e.expand&&i.push("expand"),i.push("debug"),i}build(n=!0){return this.query(n).join("&")}clearSearch(){this.titles=[],this.contributors=[],this.groups=[],this.pmids=[],this.terms=[],this.gps=[],this.organisms=[],this.states=[],this.exactdates=[],this.startdates=[],this.enddates=[]}}var Fee=C(94327);class Hee{constructor(n){this.displaySections=[],this.save(n)}generateHistorySummary(n){const e=this;let o=0;if(n.ids&&n.ids.length>0){const r=n.ids.map(a=>a.label).join(", ");e._addParam("Model Id(s)",r),o++}if(n.contributors&&n.contributors.length>0){const r=n.contributors.map(a=>a.name).join(", ");e._addParam("Contributor(s)",r,"user"),o++}if(n.groups&&n.groups.length>0){const r=n.groups.map(a=>a.name).join(", ");e._addParam("Group(s)",r,"users"),o++}if(n.pmids&&n.pmids.length>0){const r=n.pmids.join(", ");e._addParam("Ref",r),o++}if(n.terms&&n.terms.length>0){const r=n.terms.map(a=>a.label).join(", ");e._addParam("Term(s)",r),o++}if(n.gps&&n.gps.length>0){const r=n.gps.map(a=>a.label).join(", ");e._addParam("GP(s)",r),o++}if(n.organisms&&n.organisms.length>0){const r=n.organisms.map(a=>a.taxonName).join(", ");e._addParam("Organism(s)",r,"paw"),o++}if(n.states&&n.states.length>0){const r=n.states.map(a=>a.label).join(", ");e._addParam("State(s)",r,"tasks"),o++}if(n.exactdates&&n.exactdates.length>0){const r=n.exactdates.join(", ");e._addParam("Date",r,"calendar-day"),o++}n.startdates&&n.startdates.length>0&&n.enddates&&n.enddates.length>0&&(e._addParam("Date Range",`${n.startdates[0]} - ${n.enddates[0]}`,"calendar-week"),o++),0===o&&e._addParam("Default Search","Recent Models","clock")}save(n){this.searchCriteriaString=JSON.stringify(n,void 0,2),this.generateHistorySummary(n)}getSearchCriteria(){return new cd(JSON.parse(this.searchCriteriaString))}_addParam(n,e,i){this.displaySections.push({name:n,value:e,icon:i})}}class Y0{static cleanID(n){return n&&n.replace(/\W/g,"_")}static filterArrayByString(n,e){return""===e?n:(e=e.toLowerCase(),n.filter(i=>this.searchInObj(i,e)))}static searchInObj(n,e){for(const i in n){if(!n.hasOwnProperty(i))continue;const o=n[i];if("string"==typeof o){if(this.searchInString(o,e))return!0}else if(Array.isArray(o)&&this.searchInArray(o,e))return!0;if("object"==typeof o&&this.searchInObj(o,e))return!0}}static searchInArray(n,e){for(const i of n)if("string"==typeof i&&this.searchInString(i,e)||"object"==typeof i&&this.searchInObj(i,e))return!0}static searchInString(n,e){return n.toLowerCase().includes(e)}static generateGUID(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()}static toggleInArray(n,e){-1===e.indexOf(n)?e.push(n):e.splice(e.indexOf(n),1)}static handleize(n){return n.toString().toLowerCase().replace(new RegExp("/s+/g"),"-").replace(new RegExp("/[^w-]+/g"),"").replace(new RegExp("/--+/g"),"-").replace(new RegExp("/^-+/"),"").replace(new RegExp("/-+$/"),"")}}class Vee{constructor(n,e,i){this.id=n,this.title=e,this.dateAdded=i,this.displayId=Y0.cleanID(n)}}class C_{constructor(n){this.cams=[],n&&this.addCamsToBasket(n.cams)}addCamsToBasket(n){const e=this;(0,Zt.each)(n,i=>{if(!(0,Zt.find)(this.cams,{id:i.id})){const r=new Vee(i.id,i.title,i.dateAdded);e.cams.push(r)}}),e.sortCams()}addCamToBasket(n,e){if((0,Zt.find)(this.cams,{id:n}))return null;const r=new Vee(n,e,new Date);return this.cams.push(r),this.sortCams(),r}removeCamFromBasket(n){(0,Zt.remove)(this.cams,{id:n})}clearBasket(){this.cams=[]}sortCams(){this.cams.sort(this._compareDateReviewAdded)}_compareDateReviewAdded(n,e){return n.dateAdded>e.dateAdded?-1:1}}const Xn="rgba(black, 0.87)",Mr="rgba(white, 0.87)",LN={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:Mr,A700:Mr}},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:Mr}},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:"white",A400:"white",A700:"white"}},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:"white",900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:"white"}},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:"white",900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:Mr,900:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:"white",900:"white",A100:Xn,A200:Xn,A400:Xn,A700:Xn}},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:Xn,900:"white",A100:Xn,A200:Xn,A400:Xn,A700:Xn}},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:Xn,900:Xn,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:Xn,900:Xn,A100:Xn,A200:Xn,A400:Xn,A700:Xn}},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Xn,700:Xn,800:"white",900:"white",A100:Xn,A200:Xn,A400:Xn,A700:"black"}},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:"white",600:"white",700:"white",800:"white",900:"white",A100:Xn,A200:Xn,A400:"white",A700:"white"}},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:Xn,A400:"white",A700:Mr}},grey:{0:"#ffffff",50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1e3:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrast:{0:Xn,50:Xn,100:Xn,200:Xn,300:Xn,400:Xn,500:Xn,600:Mr,700:Mr,800:Mr,900:Mr,1e3:Mr,A100:Xn,A200:Xn,A400:Xn,A700:Mr}},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrast:{50:Xn,100:Xn,200:Xn,300:Xn,400:"white",500:"white",600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:Xn,A400:"white",A700:Mr}},"noctua-dark":{50:"#ECECEE",100:"#C5C6CB",200:"#9EA1A9",300:"#7D818C",400:"#5C616F",500:"#3C4252",600:"#353A48",700:"#2D323E",800:"#262933",900:"#1E2129",A100:"#C5C6CB",A200:"#9EA1A9",A400:"#5C616F",A700:"#2D323E",contrast:{50:Xn,100:Xn,200:Xn,300:"white",400:"white",500:Mr,600:Mr,700:Mr,800:Mr,900:Mr,A100:Xn,A200:Mr,A400:Mr,A700:Mr}},white:{500:"white",contrast:{500:Xn}},black:{500:"black",contrast:{500:"white"}}},TBe=["#ffebee","#ffcdd2","#ef9a9a","#e57373","#ef5350","#f44336","#e53935","#d32f2f","#c62828","#b71c1c","#ff8a80","#ff5252","#ff1744","#d50000","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f","#ff80ab","#ff4081","#f50057","#c51162","#f3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c","#ea80fc","#e040fb","#d500f9","#aa00ff","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92","#b388ff","#7c4dff","#651fff","#6200ea","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e","#8c9eff","#536dfe","#3d5afe","#304ffe","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0d47a1","#82b1ff","#448aff","#2979ff","#2962ff","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b","#80d8ff","#40c4ff","#00b0ff","#0091ea","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064","#84ffff","#18ffff","#00e5ff","#00b8d4","#e0f2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40","#a7ffeb","#64ffda","#1de9b6","#00bfa5","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20","#b9f6ca","#69f0ae","#00e676","#00c853","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e","#ccff90","#b2ff59","#76ff03","#64dd17","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#cddc39","#c0ca33","#afb42b","#9e9d24","#827717","#f4ff81","#eeff41","#c6ff00","#aeea00","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17","#ffff8d","#ffff00","#ffea00","#ffd600","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00","#ffe57f","#ffd740","#ffc400","#ffab00","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100","#ffd180","#ffab40","#ff9100","#ff6d00","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c","#ff9e80","#ff6e40","#ff3d00","#dd2c00","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723","#d7ccc8","#bcaaa4","#8d6e63","#5d4037","#fafafa","#f5f5f5","#eeeeee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121","#ffffff","#eeeeee","#bdbdbd","#616161","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#607d8b","#546e7a","#455a64","#37474f","#263238","#cfd8dc","#b0bec5","#78909c","#455a64"];let DN=(()=>{class t{static getColor(e){return!!LN[e]&&LN[e]}}return t.all=LN,t.presets=TBe,t})(),pm=(()=>{class t{constructor(e,i){this.httpClient=e,this.noctuaUserService=i,this.baristaUrl=Er.globalBaristaLocation,this.searchApi=Er.searchApi,this.onOrganismsChanged=new Io(null)}setup(){const e=this;Ah([this.getUsers(),this.getGroups()]).subscribe(o=>!!o&&(e.noctuaUserService.contributors=e.loadContributors(o[0]),e.noctuaUserService.groups=e.loadGroups(o[1]),!0))}getUsers(){return this.httpClient.get(`${this.baristaUrl}/users`)}getUserInfo(e){const o=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/user_info_by_id/${o}`)}getGroups(){return this.httpClient.get(`${this.baristaUrl}/groups`)}getOrganisms(){return this.httpClient.get(`${this.searchApi}/taxa`).pipe(it(i=>i.taxa))}loadContributors(e){const i=this;return e.map(r=>{const a=new h_;return a.name=r.nickname,a.orcid=r.uri,a.group=r.group,a.initials=i.getInitials(r.nickname),a.color=i.getColor(a.initials),a}).sort(vVe)}loadGroups(e){return e.map(o=>({name:o.label,url:o.id})).sort(xVe)}loadOrganisms(){this.getOrganisms().subscribe(e=>{if(!e)return;const i=e.map(o=>({taxonName:o.label?o.label:"",taxonIri:o.id}));this.onOrganismsChanged.next(i.sort(qVe))})}getInitials(e){const i=e.split(" ");let o=i[0].substring(0,1).toUpperCase();return i.length>1&&(o+=i[i.length-1].substring(0,1).toUpperCase()),o}getColor(e){const i=Object.keys(DN.all),o=(e.charCodeAt(0)-65)%(i.length-5);return o&&o>0?DN.getColor(i[o])[100]:"##bbc9cc"}}return t.\u0275fac=function(e){return new(e||t)(qt(ru),qt(yr))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ld=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.httpClient=e,this.noctuaDataService=i,this._bbopGraphService=o,this.noctuaLookupService=r,this.camService=a,this.noctuaFormConfigService=l,this.noctuaUserService=u,this.noctuaSearchMenuService=f,this.curieService=M,this.searchHistory=[],this.contributors=[],this.groups=[],this.organisms=[],this.states=[],this.cams=[],this.searchApi=Er.searchApi,this.separator="@@",this.loading=!1,this.searchSummary={},this.onDetailTermChanged=new Io(null),this.onCamsChanged=new Io([]),this.onCamsPageChanged=new Io(null),this.onSearchHistoryChanged=new Io(null),this.states=this.noctuaFormConfigService.modelState.options,this.searchCriteria=new cd,this.onSearchCriteriaChanged=new Io(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSearchCriteriaChanged.subscribe(T=>{!T||(this.getCams(T).subscribe(U=>{this.cams=U,this.camService.updateDisplayNumber(this.cams),this.onCamsChanged.next(this.cams)}),this.getCamsCount(T).subscribe(U=>{this.camPage=new AN,this.camPage.total=U.n,this.onCamsPageChanged.next(this.camPage)}),this.noctuaSearchMenuService.selectedMiddlePanel===fa.cams&&this.noctuaSearchMenuService.scrollToTop())}),this.loadCamRebuild()}setup(){this.noctuaDataService.loadOrganisms(),this.noctuaDataService.onOrganismsChanged.subscribe(o=>{o&&(this.organisms=o)}),this.searchCriteria.terms.length>0?this.searchFormUrl():this.updateSearch()}searchFormUrl(){const e=this,i=[],o=[...this.searchCriteria.gps,...this.searchCriteria.terms];o.forEach(r=>{i.push(e.noctuaLookupService.getTermDetail(r.id))}),Ah(i).subscribe(r=>{r&&(o.forEach(a=>{const l=(0,Zt.find)(r,{id:a.id});Object.assign(a,l)}),this.updateSearch())})}loadCamRebuild(){const e=this;e._bbopGraphService.onCamRebuildChange.subscribe(i=>{if(!i)return;const o=(0,Zt.find)(e.cams,{id:i.id});!o||!o.expanded||(this.camService.loadCam(o),this.camService.onCamChanged.next(o))})}search(e){this.searchCriteria=new cd,e.title&&this.searchCriteria.titles.push(e.title),e.contributor&&this.searchCriteria.contributors.push(e.contributor),e.group&&this.searchCriteria.groups.push(e.group),e.pmid&&this.searchCriteria.pmids.push(e.pmid),e.term&&this.searchCriteria.terms.push(e.term),e.obsoleteTerm&&this.searchCriteria.obsoleteTerms.push(e.obsoleteTerm),e.id&&this.searchCriteria.ids.push(e.id),e.gp&&this.searchCriteria.gps.push(e.gp),e.organism&&this.searchCriteria.organisms.push(e.organism),e.state&&this.searchCriteria.states.push(e.state),e.exactdate&&this.searchCriteria.exactdates.push(e.exactdate),e.startdate&&this.searchCriteria.exactdates.push(e.startdate),e.enddate&&this.searchCriteria.exactdates.push(e.enddate),this.updateSearch()}getPage(e,i){this.searchCriteria.camPage.pageNumber=e,this.searchCriteria.camPage.size=i,this.updateSearch()}paramsToSearch(e){this.searchCriteria.titles=this.makeArray(e.title),this.searchCriteria.contributors=this.makeArray(e.contributor,sd.contributors),this.searchCriteria.groups=this.makeArray(e.group,sd.groups),this.searchCriteria.pmids=this.makeArray(e.pmid),this.searchCriteria.terms=this.makeArray(e.term,sd.terms),this.searchCriteria.obsoleteTerms=this.makeArray(e.term,sd.obsoleteTerms),this.searchCriteria.gps=this.makeArray(e.gp,sd.gps),this.searchCriteria.organisms=this.makeArray(e.organism,sd.organisms),this.searchCriteria.states=this.makeArray(e.state),this.searchCriteria.exactdates=this.makeArray(e.exactdate),this.searchCriteria.startdates=this.makeArray(e.startdate),this.searchCriteria.enddates=this.makeArray(e.enddate)}makeArray(e,i){let o;switch(Array.isArray(e)&&(o=e),o="string"==typeof e?[e]:[],i){case sd.terms:case sd.gps:return o.map(r=>({id:r,label:r}));case sd.contributors:return o.map(r=>({orcid:r,name:r}));case sd.groups:return o.map(r=>({url:r,name:r}));case sd.organisms:return o.map(r=>({taxonIri:r,taxonName:r}));default:return o}}updateSearch(e=!0,i=!0){if(this.searchCriteria.updateFiltersCount(),this.onSearchCriteriaChanged.next(this.searchCriteria),i&&this.saveHistory(),e)if(this.searchCriteria.filtersCount>0){const o=this.searchCriteria.build(),r=`${window.location.origin}${window.location.pathname}?${o}`;history.pushState({},"",r)}else{const o=`${window.location.origin}${window.location.pathname}`;history.replaceState({},"",o)}}filter(e,i){this.searchCriteria[e].push(i),this.updateSearch()}removeFilterType(e){this.searchCriteria[e]=[],this.updateSearch()}removeFilter(e){this.searchCriteria[e]=null}clearSearchCriteria(){this.searchCriteria=new cd,this.updateSearch()}saveHistory(){const e=new Hee(this.searchCriteria);this.searchHistory.unshift(e),this.onSearchHistoryChanged.next(this.searchHistory)}clearHistory(){this.searchHistory=[],this.onSearchHistoryChanged.next(this.searchHistory)}downloadSearchConfig(){const e=new Blob([JSON.stringify(this.searchCriteria,void 0,2)],{type:"application/json"});(0,Fee.saveAs)(e,"search-filter.json")}uploadSearchConfig(e){this.searchCriteria=new cd,e.titles&&(this.searchCriteria.titles=e.titles),e.ids&&(this.searchCriteria.ids=e.ids),e.contributors&&(this.searchCriteria.contributors=e.contributors),e.groups&&(this.searchCriteria.groups=e.groups),e.pmids&&(this.searchCriteria.pmids=e.pmids),e.terms&&(this.searchCriteria.terms=e.terms),e.obsoleteTerms&&(this.searchCriteria.obsoleteTerms=e.obsoleteTerms),e.gps&&(this.searchCriteria.gps=e.gps),e.organisms&&(this.searchCriteria.organisms=e.organisms),e.states&&(this.searchCriteria.states=e.states),e.exactdates&&(this.searchCriteria.exactdates=e.exactdates),e.startdates&&(this.searchCriteria.startdates=e.startdates),e.enddates&&(this.searchCriteria.enddates=e.enddates),this.updateSearch()}getCams(e){const i=this,o=e.build(),r=`${this.searchApi}/models?${o}`;return i.loading=!0,this.httpClient.get(r).pipe(it(a=>this.addCam(a)),Yu(()=>{i.loading=!1}))}getCamsCount(e){const o=e.build();return this.httpClient.get(`${this.searchApi}/models?${o}&count`).pipe()}addCam(e){const i=this,o=[];return e.models.forEach(r=>{const a=r.id,l=new LO;l.graph=null,l.id=a,l.state=i.noctuaFormConfigService.findModelState(r.state),l.title=r.title,l.date=r.date,l.modified=r["modified-p"],l.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(a)}),l.groups=r.groups.map(u=>(0,Zt.find)(i.noctuaUserService.groups,M=>M.url===u)||{url:u}),l.contributors=r.contributors.map(u=>(0,Zt.find)(i.noctuaUserService.contributors,M=>M.orcid===u)||{orcid:u}),o.push(l)}),o}addCamTerms(e){const i=this,o=[];return e.forEach(r=>{const a=new Pi(i.curieUtil.getCurie(r.id.value),r.label.value);o.push(a)}),o}groupContributors(){return(0,Zt.groupBy)(this.contributors,function(e){return e.group})}filterOrganisms(e){const i=e.toLowerCase();return this.organisms.filter(o=>0===o.taxonName.toLowerCase().indexOf(i))}filterStates(e){const i=e.toLowerCase();return this.states.filter(o=>0===o.name.toLowerCase().indexOf(i))}}return t.\u0275fac=function(e){return new(e||t)(qt(ru),qt(pm),qt(Yc),qt(Sd),qt(Zr),qt(Co),qt(yr),qt(pl),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function EBe(t,n){if(1&t){const e=Ln();H(0,"div",7),Qe(1,"span",3),H(2,"button",8),et("click",function(){return Dt(e),Ae().cancel()}),de(3),G(),H(4,"button",9),et("click",function(){return Dt(e),Ae().confirm()}),de(5),G()()}if(2&t){const e=Ae();W(3),Nt(" ",e.cancelLabel,""),W(2),Nt(" ",e.confirmLabel," ")}}function ABe(t,n){if(1&t){const e=Ln();H(0,"div",7),Qe(1,"span",3),H(2,"button",10),et("click",function(){return Dt(e),Ae().cancel()}),de(3,"Close"),G()()}}let kN=(()=>{class t{constructor(e,i){this.dialogRef=e,this._data=i,this.readonlyDialog=!1,this.cancelLabel="Cancel",this.confirmLabel="Confirm",i&&(this.cancelLabel=i.cancelLabel?i.cancelLabel:"Cancel",this.confirmLabel=i.confirmLabel?i.confirmLabel:"Confirm")}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2))},t.\u0275cmp=vn({type:t,selectors:[["noctua-confirm-dialog"]],decls:13,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","",1,"noc-dialog-body"],["mat-dialog-actions","","class","m-0 p-16 noc-dialog-footer","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-raised-button","","color","",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.cancel()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),de(10),G(),ke(11,EBe,6,2,"div",6),ke(12,ABe,4,0,"div",6),G()),2&e&&(W(3),Nt(" ",i.title,""),W(7),Nt(" ",i.message," "),W(1),J("ngIf",!i.readonlyDialog),W(1),J("ngIf",i.readonlyDialog))},directives:[Oo,So,ko,Fo,Ir,oC,Yi,rC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:24px 12px;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-height:90%;display:flex;flex-direction:column}']}),t})(),dd=(()=>{class t{constructor(e,i){this.snackBar=e,this._matDialog=i}openInfoToast(e,i){this.snackBar.open(e,i,{duration:5e3,verticalPosition:"top"})}openConfirmDialog(e,i,o,r){let a=this._matDialog.open(kN,{panelClass:"noc-confirm-dialog",disableClose:!1,width:"600px",data:r});a.componentInstance.title=e,a.componentInstance.message=i,o||(a.componentInstance.readonlyDialog=!0),a.afterClosed().subscribe(l=>{l&&o(l),a=null})}}return t.\u0275fac=function(e){return new(e||t)(qt(vM),qt(iC))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k1=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.zone=e,this.noctuaUserService=i,this._bbopGraphService=o,this._noctuaSearchService=r,this.noctuaSearchMenuService=a,this.confirmDialogService=l,this.httpClient=u,this.camService=f,this.curieService=M,this.artBasket=new C_,this.searchHistory=[],this.searchApi=Er.searchApi,this.loading=!1,this.matchedEntities=[],this.matchedCountCursor=0,this.matchedCount=0,this.filterType={gps:"gps",terms:"terms",pmids:"pmids"};const T=this;this.onArtBasketChanged=new Io(null),this.onResetReview=new Io(!1),this.onClearForm=new Io(!1),this.onReplaceChanged=new Io(!1),this.onCamsPageChanged=new Io(null),this.onCamChanged=new Io([]),this.onCamTermSearch=new Io(null),this.onCamReplaceTermSearch=new Io(null),this.onSearchHistoryChanged=new Io(null),this.searchCriteria=new cd,this.onSearchCriteriaChanged=new Io(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSearchCriteriaChanged.subscribe(U=>{!U||(T.camService.resetMatch(),U.ids.length>0&&T.getCams(U).subscribe(()=>{T.matchedCountCursor=0,T.calculateMatched(),T.camService.applyMatchWeights(T.camService.cams),T.sortMatched(),T.goto(0)}))}),this.camService.onCamsChanged.subscribe(U=>{if(!U)return;const ie=U.map(se=>se.id);this.searchCriteria.ids=ie}),T.loadCamRebuild()}setup(){if(!this.noctuaUserService.user)return void this.clearBasket();const e=localStorage.getItem("artBasket");e&&(this.artBasket=new C_(JSON.parse(e)),this.camService.cams=[],this.addCamsToReview(this.artBasket.cams,this.camService.cams),this.onArtBasketChanged.next(this.artBasket))}loadCamRebuild(){const e=this;e._bbopGraphService.onCamRebuildChange.subscribe(i=>{!i||e.updateStoredCams([i],e.camService.cams)})}addCamsToReview(e,i){const o=this;if(!e||0===e.length)return;const r=e.reduce((a,l)=>((0,Zt.find)(i,{id:l.id})||a.push(l.id),a),[]);o.updateSearch(!0,[...r,...i.map(a=>a.id)]),0!==r.length&&o.searchCamsByIds(r).pipe(Z1(a=>{const l=[];return(0,Zt.each)(a,u=>{const f=(0,Zt.find)(e,{id:u.id});u.expanded=!0,u.dateReviewAdded=f?f.dateAdded:Date.now(),u.title=null==f?void 0:f.title,i.push(u),o.camService.loadCamMeta(u),u.loading=new Md(!0,"Loading Model Activities ..."),l.push(u)}),Ra(l)}),da(a=>o.camService.getStoredModel(a)),Yu(()=>{o.camService.sortCams(),o.camService.updateDisplayNumber(i),o.camService.onCamsChanged.next(i)})).subscribe({next:a=>{if(!a||!a.storedModel||!a.activeModel)return;const l=(0,Zt.find)(i,{id:a.activeModel.id});!l||(o._bbopGraphService.rebuildFromStoredApi(l,a.activeModel),o.camService.populateStoredModel(l,a.storedModel),l.loading.status=!1,o.camService.sortCams(),o.camService.updateDisplayNumber(i),o.camService.onCamsChanged.next(i),o.updateSearch())}})}removeCamFromReview(e){(0,Zt.remove)(this.camService.cams,{id:e.id}),this.updateSearch(),this.artBasket.removeCamFromBasket(e.id),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.camService.updateDisplayNumber(this.camService.cams),this.camService.onCamsChanged.next(this.camService.cams),this.onArtBasketChanged.next(this.artBasket)}reloadCams(e,i,o,r=!1){const a=this;!e||0===e.length||0===e.map(u=>u.id).length||Ra(e).pipe(da(u=>o===Cu.RESET?(u.loading=new Md(!0,"Resetting Model ..."),a.camService.resetCams([u])):o===Cu.STORE?(u.loading=new Md(!0,"Saving Model ..."),a.camService.storeCams([u])):Na),Yu(()=>{a.camService.updateDisplayNumber(i),a.camService.onCamsChanged.next(i),a.camService.resetLoading(e),a._noctuaSearchService.updateSearch(!1,!1),a.onReplaceChanged.next(!0),a.updateSearch(),a.zone.run(()=>{a.camService.resetLoading(i),a.confirmDialogService.openInfoToast("Changes successfully saved.","OK"),a.camService.reviewChangesCams(),r&&a.confirmAfterSave()})})).subscribe({next:u=>{if(!u||!u.data())return;const f=(0,Zt.find)(i,{id:u.data().id});!f||(a.camService.populateStoredModel(f,u.data()),f.loading.status=!1,a.camService.updateDisplayNumber(i),a.camService.onCamsChanged.next(i),a.updateSearch())}})}updateStoredCams(e,i){const o=this;if(!e||0===e.length)return;const r=e.map(a=>a.id);0!==r.length&&o.searchCamsByIds(r).pipe(Z1(a=>{const l=[];return(0,Zt.each)(a,u=>{u.expanded=!0,o.camService.loadCamMeta(u),u.loading.status=!0,l.push(u)}),Ra(l)}),da(a=>((0,Zt.find)(i,{id:a.id}).loading=new Md(!0,"Reloading Model ..."),o.camService.getStoredModel(a))),Yu(()=>{})).subscribe({next:a=>{if(!a||!a.storedModel||!a.activeModel)return;const l=(0,Zt.find)(i,{id:a.activeModel.id});!l||(l.rebuildRule.reset(),o._bbopGraphService.rebuildFromStoredApi(l,a.activeModel),o.camService.populateStoredModel(l,a.storedModel),l.loading.status=!1,o.camService.sortCams(),o.camService.updateDisplayNumber(i),o.camService.onCamsChanged.next(i),o.updateSearch())}})}confirmAfterSave(){const e=this;this.confirmDialogService.openConfirmDialog("Changes successfully saved.","Do you want to clear all your selected models from ART",r=>{r&&(e.noctuaSearchMenuService.selectMiddlePanel(fa.cams),e.noctuaSearchMenuService.selectLeftPanel(Is.filter),e.clear(),e.camService.clearCams(),e.clearBasket(),e.onResetReview.next(!0),e.noctuaSearchMenuService.scrollToTop())},{cancelLabel:"No",confirmLabel:"Yes"})}searchCamsByIds(e){const o=new cd;return o.ids=e,this.camService.resetMatch(),this._noctuaSearchService.getCams(o)}search(e){this.searchCriteria=new cd,e.pmid&&this.searchCriteria.pmids.push(e.pmid),e.term&&this.searchCriteria.terms.push(e.term),e.id&&this.searchCriteria.ids.push(e.id),e.gp&&this.searchCriteria.gps.push(e.gp),this.updateSearch()}findNext(){if(0!==this.matchedCount)return this.matchedCountCursor=(this.matchedCountCursor+1)%this.matchedCount,this.currentMatchedEnity=this.matchedEntities[this.matchedCountCursor],this.camService.expandMatch(this.currentMatchedEnity.uuid),this.camService.currentMatch=this.currentMatchedEnity,!this.currentMatchedEnity.activityDisplayId&&this.matchedCountCursor0)this.searchCriteria.ids=i;else{const o=this.camService.cams.map(r=>r.id);this.searchCriteria.ids=o}this.searchCriteria.updateFiltersCount(),this.onSearchCriteriaChanged.next(this.searchCriteria),e&&this.saveHistory()}filter(e,i){this.searchCriteria[e].push(i),this.updateSearch()}removeFilterType(e){this.searchCriteria[e]=[],this.updateSearch()}removeFilter(e){this.searchCriteria[e]=null}clearSearchCriteria(){this.searchCriteria=new cd,this.updateSearch()}saveHistory(){const e=new Hee(this.searchCriteria);this.searchHistory.unshift(e),this.onSearchHistoryChanged.next(this.searchHistory)}clearHistory(){this.searchHistory=[],this.onSearchHistoryChanged.next(this.searchHistory)}addToArtBasket(e,i){this.artBasket.addCamToBasket(e,i),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.onArtBasketChanged.next(this.artBasket)}clearBasket(){this.artBasket.clearBasket(),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.onArtBasketChanged.next(this.artBasket),this.noctuaSearchMenuService.scrollToTop()}downloadSearchConfig(){const e=new Blob([JSON.stringify(this.searchCriteria,void 0,2)],{type:"application/json"});(0,Fee.saveAs)(e,"search-filter.json")}uploadSearchConfig(e){this.searchCriteria=new cd,e.ids&&(this.searchCriteria.ids=e.ids),e.pmids&&(this.searchCriteria.pmids=e.pmids),e.terms&&(this.searchCriteria.terms=e.terms),e.gps&&(this.searchCriteria.gps=e.gps),this.updateSearch()}getCams(e){const i=this;e.expand=!1;const o=e.build(!1),r=`${this.searchApi}/models?${o}`;return i.loading=!0,this.httpClient.get(r).pipe(it(a=>this.addCam(a)),Yu(()=>{i.loading=!1}))}addCam(e){const i=this,o=[];return(0,Zt.each)(i.camService.cams,r=>r.clearHighlight()),e.models.forEach(r=>{const a=r.id,l=(0,Zt.find)(i.camService.cams,u=>u.id===a);l&&(l.queryMatch=new SN,(0,Zt.each)(r.query_match,(u,f)=>{l.queryMatch.terms.push(...u.map(M=>new Pi(i.curieUtil.getCurie(f),"",null,i.curieUtil.getCurie(M),l.id)))}),l.applyFilter()),o.push(l)}),o}addCamTerms(e){const i=this,o=[];return e.forEach(r=>{const a=new Pi(i.curieUtil.getCurie(r.id.value),r.label.value);o.push(a)}),o}calculateMatchedCountNumber(){return this.camService.cams.reduce((i,o)=>i+o.matchedCount,0)}calculateMatched(){this.matchedEntities=this.camService.cams.reduce((e,i)=>(i.queryMatch&&i.queryMatch.terms&&e.push(...i.queryMatch.terms),e),[]),this.matchedCount=this.matchedEntities.length,this.matchedCountCursor=0}sortMatched(){this.matchedEntities=this.matchedEntities.sort(LHe)}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(yr),qt(Yc),qt(ld),qt(pl),qt(dd),qt(ru),qt(Zr),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const LBe=function R8e(t,n=null){return{type:8,animation:t,options:n}}([ti({opacity:"{{opacity}}",transform:"scale({{scale}}) translate3d({{x}}, {{y}}, {{z}})"}),Mo("{{duration}} {{delay}} cubic-bezier(0.0, 0.0, 0.2, 1)",ti("*"))],{params:{duration:"200ms",delay:"0ms",opacity:"0",scale:"1",x:"0",y:"0",z:"0"}}),sc=[na("animate",[Do("void => *",[function z8e(t,n=null){return{type:10,animation:t,options:n}}(LBe)])]),na("animateStagger",[cr("50",ti("*")),cr("100",ti("*")),cr("200",ti("*")),Do("void => 50",qa("@*",[VL("50ms",[Q1()])],{optional:!0})),Do("void => 100",qa("@*",[VL("100ms",[Q1()])],{optional:!0})),Do("void => 200",qa("@*",[VL("200ms",[Q1()])],{optional:!0}))]),na("fadeInOut",[cr("0",ti({display:"none",opacity:0})),cr("1",ti({display:"block",opacity:1})),Do("1 => 0",Mo("300ms ease-out")),Do("0 => 1",Mo("300ms ease-in"))]),na("slideInOut",[cr("0",ti({height:"0px",display:"none"})),cr("1",ti({height:"*",display:"block"})),Do("1 => 0",Mo("300ms ease-out")),Do("0 => 1",Mo("300ms ease-in"))]),na("slideIn",[Do("void => left",[ti({transform:"translateX(100%)"}),Mo("300ms ease-in",ti({transform:"translateX(0)"}))]),Do("left => void",[ti({transform:"translateX(0)"}),Mo("300ms ease-in",ti({transform:"translateX(-100%)"}))]),Do("void => right",[ti({transform:"translateX(-100%)"}),Mo("300ms ease-in",ti({transform:"translateX(0)"}))]),Do("right => void",[ti({transform:"translateX(0)"}),Mo("300ms ease-in",ti({transform:"translateX(100%)"}))])]),na("slideInLeft",[cr("void",ti({transform:"translateX(-100%)",display:"none"})),cr("*",ti({transform:"translateX(0)",display:"flex"})),Do("void => *",Mo("300ms")),Do("* => void",Mo("300ms"))]),na("slideInRight",[cr("void",ti({transform:"translateX(100%)",display:"none"})),cr("*",ti({transform:"translateX(0)",display:"flex"})),Do("void => *",Mo("300ms")),Do("* => void",Mo("300ms"))]),na("slideInTop",[cr("void",ti({transform:"translateY(-100%)",display:"none"})),cr("*",ti({transform:"translateY(0)",display:"flex"})),Do("void => *",Mo("300ms")),Do("* => void",Mo("300ms"))]),na("slideInBottom",[cr("void",ti({transform:"translateY(100%)",display:"none"})),cr("*",ti({transform:"translateY(0)",display:"flex"})),Do("void => *",Mo("300ms")),Do("* => void",Mo("300ms"))]),na("expandCollapse",[cr("void",ti({height:"0px"})),cr("*",ti({height:"*"})),Do("void => *",Mo("300ms ease-out")),Do("* => void",Mo("300ms ease-in"))]),na("routerTransitionLeft",[Do("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(100%)",opacity:0})],{optional:!0}),c9([Pg([qa("noctua-content > :leave",[ti({transform:"translateX(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(-100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])])]),na("routerTransitionRight",[Do("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(-100%)",opacity:0})],{optional:!0}),c9([Pg([qa("noctua-content > :leave",[ti({transform:"translateX(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateX(-100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])])]),na("routerTransitionUp",[Do("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(100%)",opacity:0})],{optional:!0}),Pg([qa("noctua-content > :leave",[ti({transform:"translateY(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(-100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])]),na("routerTransitionDown",[Do("* => *",[qa("noctua-content > :enter, noctua-content > :leave",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(-100%)",opacity:0})],{optional:!0}),c9([Pg([qa("noctua-content > :leave",[ti({transform:"translateY(0)",opacity:1}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(100%)",opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({transform:"translateY(-100%)"}),Mo("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),qa("noctua-content > :leave",Q1(),{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0})])])]),na("routerTransitionFade",[Do("* => *",Pg([qa("noctua-content > :enter, noctua-content > :leave ",[ti({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),qa("noctua-content > :enter",[ti({opacity:0})],{optional:!0}),qa("noctua-content > :leave",[ti({opacity:1}),Mo("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({opacity:0}))],{optional:!0}),qa("noctua-content > :enter",[ti({opacity:0}),Mo("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",ti({opacity:1}))],{optional:!0}),qa("noctua-content > :enter",Q1(),{optional:!0}),qa("noctua-content > :leave",Q1(),{optional:!0})]))])];function DBe(t,n){1&t&&(H(0,"th",21),de(1," Category "),G())}function kBe(t,n){if(1&t&&(H(0,"td",22),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.category," ")}}function IBe(t,n){1&t&&(H(0,"th",23),de(1,"Changes"),G())}function NBe(t,n){if(1&t&&(H(0,"td",24),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.count," ")}}function RBe(t,n){1&t&&Qe(0,"tr",25)}function zBe(t,n){1&t&&(H(0,"tr",26),et("click",function(i){return i.stopPropagation()}),G())}function FBe(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"button",28),et("click",function(){return Dt(e),Ae().cancel()}),de(2),G(),H(3,"button",29),et("click",function(){return Dt(e),Ae().confirm()}),de(4),G()()}if(2&t){const e=Ae();W(2),Nt(" ",e.cancelLabel,""),W(2),Nt(" ",e.confirmLabel," ")}}function HBe(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"button",28),et("click",function(){return Dt(e),Ae().cancel()}),de(2,"Close"),G()()}}const VBe=function(){return{value:"50"}};let BBe=(()=>{class t{constructor(e,i,o,r,a,l,u){this._matDialogRef=e,this._data=i,this.noctuaReviewSearchService=o,this.noctuaSearchMenuService=r,this.noctuaUserService=a,this.noctuaFormConfigService=l,this.noctuaActivityFormService=u,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.stats=[],this.title="Review Changes",this.readonlyDialog=!1,this.cancelLabel="Cancel",this.confirmLabel="Confirm",this.displayedColumns=["category","count"],this._unsubscribeAll=new N,i.options&&(this.cancelLabel=i.options.cancelLabel?i.options.cancelLabel:"Cancel",this.confirmLabel=i.options.confirmLabel?i.options.confirmLabel:"Confirm"),this.summary=this._data.summary,this.stats=this.generateStats(this.summary.stats)}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}confirm(){this._matDialogRef.close(!0)}cancel(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(k1),ue(pl),ue(yr),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-review-changes-dialog"]],decls:31,vars:11,consts:[[1,"dialog-content-wrapper","noc-dialog"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-dialog-body","noc-form-section"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"alert","alert-warning","w-100-p"],[1,"noc-stat-summary","w-100-p"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","250px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["class","m-0 p-16 noc-dialog-footer","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.cancel()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()()(),H(10,"div",6)(11,"div",7)(12,"div",8),de(13),H(14,"div",9)(15,"span",10),de(16),G(),de(17," unsaved changes across "),H(18,"span",10),de(19),G()()(),H(20,"table",11),er(21,12),ke(22,DBe,2,0,"th",13),ke(23,kBe,2,1,"td",14),tr(),er(24,15),ke(25,IBe,2,0,"th",16),ke(26,NBe,2,1,"td",17),tr(),ke(27,RBe,1,0,"tr",18),ke(28,zBe,1,0,"tr",19),G()()(),ke(29,FBe,5,2,"div",20),ke(30,HBe,3,0,"div",20),G()),2&e&&(W(4),Nt(" ",i.title," "),W(9),Nt(" ",i.message," "),W(3),Nt(" ",null==i.summary?null:i.summary.stats.totalChanges," "),W(3),Nt(" ",null==i.summary?null:i.summary.stats.camsCount," model(s) "),W(1),J("dataSource",i.stats)("@animateStagger",_i(10,VBe)),W(7),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns),W(1),J("ngIf",!i.readonlyDialog),W(1),J("ngIf",i.readonlyDialog))},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,ts,$g,Zf,Qf,Kf,Xf,Jf,Xg,Zg,Qg,Kg,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:400px;min-width:400px;max-width:400px}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}'],data:{animation:sc}}),t})();function GBe(t,n){if(1&t&&(H(0,"div",14),de(1," It looks like you have pending changes for Annotation Review Tool. .If you leave before saving, your basket changes will be lost. "),H(2,"div",15)(3,"span",16),de(4),G(),de(5," unsaved changes across "),H(6,"span",16),de(7),G()()()),2&t){const e=Ae();W(4),Nt(" ",null==e.summary?null:e.summary.stats.totalChanges," "),W(3),Nt(" ",null==e.summary?null:e.summary.stats.camsCount," models ")}}function YBe(t,n){1&t&&(H(0,"div",17),de(1," It looks like Annotation Review Tool Basket is not empty. .If you leave, your basket will be cleared. "),G())}function UBe(t,n){if(1&t&&(H(0,"div",29)(1,"div",23),de(2,"Modified Model: "),G(),de(3," ("),H(4,"strong",30),de(5),G(),de(6," change(s) ) "),Qe(7,"span",4),G()),2&t){const e=Ae().$implicit;W(5),qo(null==e.modifiedStats?null:e.modifiedStats.totalChanges)}}function jBe(t,n){if(1&t&&(H(0,"div",37),de(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function WBe(t,n){if(1&t&&(H(0,"span",38)(1,"div",39),de(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function qBe(t,n){if(1&t&&(H(0,"div",31)(1,"div",22)(2,"div",23),de(3,"Contributors:"),G(),ke(4,jBe,2,4,"div",32),G(),H(5,"div",22)(6,"div",23),de(7,"Groups:"),G(),ke(8,WBe,3,4,"span",33),G(),H(9,"div",24)(10,"div",23),de(11,"Open In:"),G(),H(12,"a",34),de(13," Pathway Editor "),G(),H(14,"span"),de(15,"\u2022"),G(),H(16,"a",35),de(17," Form Editor "),G(),H(18,"span"),de(19,"\u2022"),G(),H(20,"a",36),de(21," Graph Editor "),G()()()),2&t){const e=Ae().$implicit;W(4),J("ngForOf",e.contributors),W(4),J("ngForOf",e.groups),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)}}const $Be=function(){return["fas","angle-double-down"]};function XBe(t,n){1&t&&(H(0,"span"),de(1,"More Details "),Qe(2,"fa-icon",40),G()),2&t&&(W(2),J("icon",_i(1,$Be)))}const QBe=function(){return["fas","angle-double-up"]};function ZBe(t,n){1&t&&(H(0,"span"),de(1,"Less Details "),Qe(2,"fa-icon",40),G()),2&t&&(W(2),J("icon",_i(1,QBe)))}const KBe=function(t){return{"noc-selected":t}};function JBe(t,n){if(1&t){const e=Ln();H(0,"div",18),ke(1,UBe,8,1,"div",19),H(2,"div",20)(3,"div",21)(4,"div",22)(5,"div",23),de(6,"Title:"),G(),de(7),G(),H(8,"div",24)(9,"div",23),de(10,"State:"),G(),de(11),G(),ke(12,qBe,22,5,"div",25),H(13,"div",26)(14,"a",27),et("click",function(o){const a=Dt(e).$implicit;return o.stopPropagation(),a.moreDetail=!a.moreDetail}),ke(15,XBe,3,2,"span",28),ke(16,ZBe,3,2,"span",28),G()()(),Qe(17,"span",4),G()()}if(2&t){const e=n.$implicit,i=Ae();J("ngClass",wo(7,KBe,e.id===(null==i.camService.currentMatch?null:i.camService.currentMatch.modelId))),W(1),J("ngIf",e.modified),W(6),Nt(" ",e.title," "),W(4),Nt(" ",null==e.state?null:e.state.label," "),W(1),J("ngIf",e.moreDetail),W(3),J("ngIf",!e.moreDetail),W(1),J("ngIf",e.moreDetail)}}let eGe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T,U){this._matDialogRef=e,this.zone=i,this.camService=o,this.noctuaConfigService=r,this.confirmDialogService=a,this.noctuaSearchDialogService=l,this.noctuaUserService=u,this.noctuaSearchMenuService=f,this.noctuaSearchService=M,this.noctuaFormConfigService=T,this.noctuaReviewSearchService=U,this.cams=[],this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e)})}ngAfterViewInit(){setTimeout(()=>{this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e)})},1)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}reviewChanges(){const e=this;e.camService.reviewChangesCams(),e.noctuaSearchMenuService.selectLeftPanel(Is.artBasket),e.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview),e.noctuaSearchMenuService.reviewMode=hl.on,e.noctuaSearchMenuService.isReviewMode=!0,this.close()}logout(){this.noctuaReviewSearchService.clear(),this.camService.clearCams(),this.noctuaReviewSearchService.clearBasket(),this._matDialogRef.close(!0)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(oo),ue(Zr),ue(Co),ue(dd),ue(U0),ue(yr),ue(pl),ue(ld),ue(Co),ue(k1))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-unsaved-dialog"]],decls:22,vars:3,consts:[[1,"dialog-content-wrapper","noc-dialog"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-dialog-body"],["class","alert alert-danger w-100-p",4,"ngIf"],["class","alert alert-warning w-100-p",4,"ngIf"],["class","noc-group-row","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-raised-button","","color","warn",3,"click"],[1,"alert","alert-danger","w-100-p"],[1,"noc-stat-summary","w-100-p"],[1,"noc-number"],[1,"alert","alert-warning","w-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-row",3,"ngClass"],["class","noc-modified-header w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],["class","w-100-p",4,"ngIf"],[1,"noc-item"],[1,"noc-more-details-button",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-modified-header","w-100-p"],[1,"mr-4"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],[3,"icon"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Unsaved Changes (Annotation Review Tool) "),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()()(),H(10,"div",6),ke(11,GBe,8,2,"div",7),ke(12,YBe,2,0,"div",8),ke(13,JBe,18,9,"div",9),G(),H(14,"div",10)(15,"button",11),et("click",function(){return i.close()}),de(16,"Cancel"),G(),Qe(17,"span",4),H(18,"button",12),et("click",function(){return i.reviewChanges()}),de(19,"Review Changes"),G(),H(20,"button",13),et("click",function(){return i.logout()}),de(21,"Logout Anyway"),G()()()),2&e&&(W(11),J("ngIf",(null==i.summary?null:i.summary.stats.totalChanges)>0),W(1),J("ngIf",0===(null==i.summary?null:i.summary.stats.totalChanges)),W(1),J("ngForOf",i.cams))},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,ts,Yi,$o,ds,ac,Tl,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{min-height:40px;max-height:500px;border-bottom:#CCC solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}'],data:{animation:sc}}),t})(),U0=(()=>{class t{constructor(e,i){this.snackBar=e,this._matDialog=i}openInfoToast(e,i){this.snackBar.open(e,i,{duration:1e4,verticalPosition:"top"})}openConfirmDialog(e,i){this.dialogRef=this._matDialog.open(kN,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCamReviewChangesDialog(e,i,o){let r=this._matDialog.open(BBe,{panelClass:"noc-cams-review-changes-dialog",data:{summary:i,options:o}});o&&o.title&&(r.componentInstance.title=o.title),o&&o.message&&(r.componentInstance.message=o.message),e||(r.componentInstance.readonlyDialog=!0),r.afterClosed().subscribe(a=>{a&&e(a),r=null})}openCamsUnsavedDialog(e){this.dialogRef=this._matDialog.open(eGe,{panelClass:"noc-cams-unsaved-dialog",data:{}}),this.dialogRef.afterClosed().subscribe(i=>{i&&e(i)})}}return t.\u0275fac=function(e){return new(e||t)(qt(vM),qt(iC))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function tGe(t,n){1&t&&(H(0,"a",36),de(1," More Details "),G()),2&t&&Ro("href",Ae(2).announcement.descriptionUrl,ao)}function nGe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",31)(2,"div",32)(3,"div",33)(4,"strong"),de(5),G(),de(6),ke(7,tGe,2,1,"a",34),G(),H(8,"button",35),et("click",function(){return Dt(e),Ae().openAnnouncements()}),de(9," View More "),G()()(),tr()}if(2&t){const e=Ae();W(1),yf("noc-announcement alert alert-",e.announcement.level,""),W(4),qo(e.announcement.title),W(1),Nt(" ",e.announcement.description," "),W(1),J("ngIf",e.announcement.descriptionUrl),W(1),J("matTooltipPosition","below")("matTooltipShowDelay",1500)}}function iGe(t,n){1&t&&Qe(0,"mat-progress-bar",37)}function oGe(t,n){if(1&t&&(er(0),H(1,"a",38),de(2," Noctua "),G(),H(3,"a",39),de(4," Form Editor "),G(),tr()),2&t){const e=Ae();W(1),Ro("href",e.noctuaConfigService.noctuaUrl,ao),W(2),Ro("href",e.noctuaConfigService.homeUrl,ao)}}function rGe(t,n){if(1&t&&(H(0,"div",40)(1,"div",41)(2,"a",42),de(3," Noctua "),G(),H(4,"a",42),de(5," Form Editor "),G(),de(6),G(),H(7,"div",43),de(8," Testing Version. Visit "),H(9,"a",44),de(10," Noctua "),G(),de(11," for production version "),G()()),2&t){const e=Ae();W(2),Ro("href",e.noctuaConfigService.noctuaUrl,ao),W(2),Ro("href",e.noctuaConfigService.homeUrl,ao),W(2),Nt(" (",e.betaText,") ")}}function aGe(t,n){if(1&t&&(H(0,"button",45)(1,"div",46)(2,"div",47)(3,"div",48),de(4),G(),H(5,"div",49),de(6),G()(),H(7,"mat-icon"),de(8,"arrow_drop_down"),G()()()),2&t){const e=Ae();J("matMenuTriggerFor",Di(40)),W(4),Nt(" ",e.noctuaUserService.user.name," "),W(2),Nt(" ",null==e.noctuaUserService.user||null==e.noctuaUserService.user.group?null:e.noctuaUserService.user.group.label," ")}}function sGe(t,n){if(1&t&&(H(0,"div")(1,"a",50),de(2," Login "),G()()),2&t){const e=Ae();W(1),Ro("href",e.noctuaConfigService.loginUrl,ao)}}const cGe=function(t,n){return{"noc-dev":t,"noc-beta":n}},lGe=function(){return["fab","github"]},dGe=function(){return["fab","twitter"]},uGe=function(){return["fab","facebook"]};let hGe=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this.router=e,this.camService=i,this.noctuaCommonMenuService=o,this.noctuaAnnouncementService=r,this.noctuaUserService=a,this.noctuaSearchDialogService=l,this.noctuaConfigService=u,this.noctuaActivityFormService=f,this.noctuaReviewSearchService=M,this.noctuaSearchMenuService=T,this.ActivityType=so,this.noctuaFormUrl="",this.loginUrl="",this.logoutUrl="",this.noctuaUrl="",this.isBeta=Er.isBeta,this.isDev=Er.isDev,this.betaText="",this._unsubscribeAll=new N,this.router.events.pipe(Yn(this._unsubscribeAll)).subscribe(U=>{U instanceof g6&&(this.showLoadingBar=!0),U instanceof Gp&&(this.showLoadingBar=!1)})}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)}),this.noctuaAnnouncementService.onAnnouncementsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcements=e)}),this.noctuaAnnouncementService.onAnnouncementChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcement=e)}),this.isDev&&this.isBeta?this.betaText="beta dev":this.isDev?this.betaText="dev":this.isBeta&&(this.betaText="beta")}openApps(){this.noctuaCommonMenuService.selectLeftSidenav(a2.apps),this.noctuaCommonMenuService.openLeftSidenav()}openAnnouncements(){this.noctuaCommonMenuService.selectLeftSidenav(a2.announcement),this.noctuaCommonMenuService.openLeftSidenav()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(Uc.camForm),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(Uc.activityForm),this.noctuaCommonMenuService.openLeftDrawer()}logout(){var e;const i=this;(null===(e=i.artBasket)||void 0===e?void 0:e.cams.length)>0?this.noctuaSearchDialogService.openCamsUnsavedDialog(r=>{r&&(window.location.href=i.noctuaConfigService.logoutUrl)}):window.location.href=i.noctuaConfigService.logoutUrl}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(A1),ue(Zr),ue(ul),ue(Tee),ue(yr),ue(U0),ue(Co),ue(Ts),ue(k1),ue(pl))},t.\u0275cmp=vn({type:t,selectors:[["noctua-toolbar"]],decls:47,vars:20,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",3,"ngClass"],["class","loading-bar","color","accent","mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","200px",1,"noc-br","h-100-p"],["fxLayout","row","fxLayoutAlign","start",1,"noc-logo","pl-8"],["href","http://geneontology.org/","target","_blank"],["src","assets/images/logos/go-logo.large.png"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","180px",1,"noc-logo","pl-0","h-100-p"],["mat-icon-button","","matTooltip","Open Workbenches Menu",1,"noc-br","noc-apps-button",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,""],["class","noc-beta-logo","fxLayout","column","fxLayoutAlign","center start ",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-br","pr-12"],["mat-icon-button","","href","https://github.com/geneontology","target","blank"],[3,"icon"],["mat-icon-button","","href","https://twitter.com/news4go","target","blank"],["mat-icon-button","","href","https://www.facebook.com/pages/Gene-Ontology/305908656519","target","blank"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-br","pl-12","pr-12"],["mat-button","",1,"",3,"matMenuTriggerFor"],["aboutMenu","matMenu"],["href","http://geneontology.org/docs/introduction-to-go-resource/","target","_blank","mat-menu-item",""],["href","http://geneontology.org/docs/gocam-overview/","target","_blank","mat-menu-item",""],["helpMenu","matMenu"],["href","http://wiki.geneontology.org/index.php/Noctua","target","_blank","mat-menu-item",""],["mat-button","","class","noc-name-button",3,"matMenuTriggerFor",4,"ngIf"],["userMenu","matMenu"],["mat-button","",1,"red-500-fg","w-100-p",3,"click"],["fxLayout","row","fxLayoutAlign","start",1,"noc-bl","noc-logo"],["href","https://www.alliancegenome.org","target","_blank"],["src","assets/images/logos/alliance-logo.png"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-announcement-header"],["fxFlex",""],["target","_banl",3,"href",4,"ngIf"],["mat-stroked-button","","matTooltip","Open Announcements",1,"noc-rounded-button","ml-8","noc-sm",3,"matTooltipPosition","matTooltipShowDelay","click"],["target","_banl",3,"href"],["color","accent","mode","indeterminate",1,"loading-bar"],["target","_blank",1,"noc-main-logo",3,"href"],["target"," _blank",1,"noc-sub-logo",3,"href"],["fxLayout","column","fxLayoutAlign","center start ",1,"noc-beta-logo"],[1,"noc-title"],["target","_blank",1,"",3,"href"],[1,"noc-description"],["href","http://noctua.geneontology.org/","target","_blank",1,""],["mat-button","",1,"noc-name-button",3,"matMenuTriggerFor"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-info"],[1,"noc-name","text-truncate"],[1,"noc-group-name","text-truncate"],["mat-button","",1,"noc-login-button",3,"href"]],template:function(e,i){if(1&e&&(H(0,"div",0),ke(1,nGe,10,8,"ng-container",1),H(2,"mat-toolbar",2),ke(3,iGe,1,0,"mat-progress-bar",3),H(4,"div",4)(5,"div",5)(6,"a",6),Qe(7,"img",7),G()()(),H(8,"div",8)(9,"button",9),et("click",function(){return i.openApps()}),H(10,"mat-icon",10),de(11,"apps"),G()(),ke(12,oGe,5,2,"ng-container",1),ke(13,rGe,12,3,"div",11),G(),H(14,"div",12)(15,"div",13)(16,"a",14),Qe(17,"fa-icon",15),G(),H(18,"a",16),Qe(19,"fa-icon",15),G(),H(20,"a",17),Qe(21,"fa-icon",15),G()(),H(22,"div",18)(23,"a",19),de(24," About "),G(),H(25,"mat-menu",null,20)(27,"a",21),de(28," About The GO "),G(),H(29,"a",22),de(30," About GO-CAM "),G()(),H(31,"a",19),de(32," Help "),G(),H(33,"mat-menu",null,23)(35,"a",24),de(36," Noctua User's Guide "),G()()(),H(37,"div",13),ke(38,aGe,9,3,"button",25),H(39,"mat-menu",10,26)(41,"a",27),et("click",function(){return i.logout()}),de(42," Logout "),G()(),ke(43,sGe,3,1,"div",1),G()(),H(44,"div",28)(45,"a",29),Qe(46,"img",30),G()()()()),2&e){const o=Di(26),r=Di(34);W(1),J("ngIf",i.announcement),W(1),J("ngClass",x0(14,cGe,i.isDev,i.isBeta)),W(1),J("ngIf",i.showLoadingBar),W(6),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(3),J("ngIf",!i.isBeta&&!i.isDev),W(1),J("ngIf",i.isDev||i.isBeta),W(4),J("icon",_i(17,lGe)),W(2),J("icon",_i(18,dGe)),W(2),J("icon",_i(19,uGe)),W(2),J("matMenuTriggerFor",o),W(8),J("matMenuTriggerFor",r),W(7),J("ngIf",i.noctuaUserService.user),W(5),J("ngIf",!i.noctuaUserService.user)}},directives:[Oo,So,Yi,ko,Fo,Tl,Jp,ds,ac,G9,Ir,V9,ps,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{position:relative;display:flex;flex:0 0 auto;z-index:4;border-bottom:2px solid #3b5998}[_nghost-%COMP%] .noc-logo-filler[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-logo-filler[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-announcement[_ngcontent-%COMP%]{padding:0 10px 0 5px;height:50px;min-height:50px;max-height:50px;color:inherit;position:relative;padding:5px!important;margin-bottom:0!important}[_nghost-%COMP%] .noc-announcement[_ngcontent-%COMP%] noc-announcement-header[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:1000px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{padding:0 10px 0 5px;background-color:#fff;height:50px;min-height:50px;max-height:50px;color:inherit;position:relative}[_nghost-%COMP%] .mat-toolbar.noc-dev[_ngcontent-%COMP%]{background-color:#fad38a}[_nghost-%COMP%] .mat-toolbar.noc-beta[_ngcontent-%COMP%]{background-color:#fdcbbc}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;line-height:20px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#555}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:10px;font-style:italic}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row.noc-subtoolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;height:30px;line-height:30px;padding-left:8px;padding-right:8px;font-size:12px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-apps-button[_ngcontent-%COMP%]{margin-right:12px;border-radius:0!important;height:50px;min-height:50px;max-height:50px;width:50px;min-width:50px;max-width:50px;line-height:55px;color:#3b5998}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-apps-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:30px;width:30px;min-width:30px;max-width:30px;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;width:100%}[_nghost-%COMP%] .noc-announcement-button[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px;height:50px;min-height:50px;max-height:50px;font-size:28px;color:#3b599880}[_nghost-%COMP%] .noc-announcement-button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-announcement-button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:20px;height:20px;color:#fff;background-color:#2b463b;font-size:10px;text-align:center;line-height:20px}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;text-align:left;text-transform:initial;line-height:20px;font-size:12px}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%] .noc-info[_ngcontent-%COMP%]{margin-right:5px;max-width:150px;overflow:hidden}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%] .noc-info[_ngcontent-%COMP%] .noc-group-name[_ngcontent-%COMP%]{font-size:10px;color:#888}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%]{height:100%;padding:5px 0}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]{cursor:pointer;font-size:20px;text-decoration:none!important;text-align:left;color:#555}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]:hover{color:#000}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%]{margin-right:4px;font-weight:700}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{padding:0 12px}[_nghost-%COMP%] .noc-login-button[_ngcontent-%COMP%]{background-color:#52a16c;color:#fff}[_nghost-%COMP%] .noc-create-button[_ngcontent-%COMP%]{background-color:#3b5998b3!important}']}),t})();function pGe(t,n){1&t&&Qe(0,"router-outlet")}let fGe=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["noctua-content"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(e,i){1&e&&ke(0,pGe,1,0,"router-outlet",0),2&e&&J("ngIf",!0)},directives:[Yi,OD],styles:["content{position:relative;display:flex;z-index:1;flex:1 0 auto}content>*:not(router-outlet){display:flex;flex:1 0 auto;width:100%;min-width:100%}\n"],encapsulation:2}),t})(),IN=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["app-footer"]],decls:21,vars:0,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"footer"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","50%",1,"",2,"padding-left","0px"],[1,"mr-16"],["href","/",1,"",2,"color","white !important"],["href","http://help.geneontology.org","target","blank",1,"",2,"color","white !important"],["href","/docs/go-citation-policy/",1,"",2,"color","white !important"],["fxFlex",""],["fxFlex","40%",1,"",2,"text-align","right"],[1,""],["href"," http://www.obofoundry.org/","rel","external","title","Open Biological Ontologies","target","blank",1,"footer__link"],["href","https://projectreporter.nih.gov/project_info_details.cfm?aid=9209989","rel","external","title","National Human Genome Research Institute grant 2U41HG002273-17","target","blank",1,"footer__link"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),de(4,"Home"),G()(),H(5,"div",2)(6,"a",4),de(7,"Contact us"),G()(),H(8,"div",2)(9,"a",5),de(10,"Citation and Terms of Use"),G()()(),Qe(11,"span",6),H(12,"div",7)(13,"small",8),de(14," Copyright \xa9 1999-2020 Member of the "),H(15,"a",9),de(16,"Open Biological Ontologies Foundry"),G(),de(17," The Gene Ontology Consortium is supported by a P41 grant from the National Human Genome Research Institute (NHGRI) [grant "),H(18,"a",10),de(19," U41 HG002273"),G(),de(20,"] "),G()()())},directives:[Oo,So,ko],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%] .footer[_ngcontent-%COMP%]{background:#1A237E;background:linear-gradient(to right,#0E2A3B 0%,#34306B 100%);padding:20px;color:#fff}']}),t})(),gGe=(()=>{class t{constructor(e){this._httpClient=e,this.date=new Date,this._unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(ru))},t.\u0275cmp=vn({type:t,selectors:[["quick-panel"]],decls:23,vars:12,consts:[["cdkFocusRegionStart","",1,"date"],["matSubheader","","cdkFocusInit",""],[1,"secondary-text","mat-display-1","mb-0","p-16"],[1,"mb-12"],["fxLayout","row","fxLayoutAlign","start start"],[1,"mat-subheading-1"],["cdkFocusRegionEnd",""],["matSubheader",""]],template:function(e,i){1&e&&(H(0,"mat-list",0)(1,"h3",1)(2,"span"),de(3,"Today"),G()(),H(4,"div",2)(5,"div",3),de(6),y0(7,"date"),G(),H(8,"div",4)(9,"span"),de(10),y0(11,"date"),G(),H(12,"span",5),de(13,"th"),G(),H(14,"span"),de(15),y0(16,"date"),G()()()(),Qe(17,"mat-divider",6),H(18,"mat-list")(19,"h3",7)(20,"span"),de(21,"Events"),G()()(),Qe(22,"mat-divider")),2&e&&(W(6),Nt(" ",my(7,3,i.date,"EEEE")," "),W(4),Nt(" ",my(11,6,i.date,"d"),""),W(5),Nt(" ",my(16,9,i.date,"MMMM"),""))},directives:[sSe,dSe,Oo,So,VX],pipes:[iU],styles:["quick-panel{display:flex;width:280px;min-width:280px;max-width:280px;z-index:100;flex-direction:column}quick-panel .mat-slide-toggle-content{flex:1}\n"],encapsulation:2}),t})();const mGe=["leftSidenav"];function _Ge(t,n){1&t&&Qe(0,"noc-announcement-panel",10),2&t&&(Ae(),J("sidenav",Di(3)))}function CGe(t,n){1&t&&Qe(0,"noc-noctua-apps",10),2&t&&(Ae(),J("sidenav",Di(3)))}function vGe(t,n){1&t&&Qe(0,"app-footer",11)}function bGe(t,n){1&t&&Qe(0,"quick-panel")}let xGe=(()=>{class t{constructor(e,i){this._noctuaConfigService=e,this.noctuaCommonMenuService=i,this.LeftPanel=a2,this._unsubscribeAll=new N}ngOnInit(){this._noctuaConfigService.config.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.noctuaConfig=e}),this.noctuaCommonMenuService.setLeftSidenav(this.leftSidenav)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(Hw),ue(ul))},t.\u0275cmp=vn({type:t,selectors:[["layout-noctua"]],viewQuery:function(e,i){if(1&e&&_o(mGe,7),2&e){let o;fi(o=gi())&&(i.leftSidenav=o.first)}},decls:14,vars:5,consts:[["id","noctua-main"],[1,"h-100-p",3,"ngSwitch"],["leftSidenav",""],[3,"sidenav",4,"ngSwitchCase"],["id","noctua-main-content"],[1,"above"],["id","wrapper"],[1,"content-wrapper"],["id","footer",4,"ngIf"],[4,"ngIf"],[3,"sidenav"],["id","footer"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-sidenav-container")(2,"mat-sidenav",1,2),ke(4,_Ge,1,1,"noc-announcement-panel",3),ke(5,CGe,1,1,"noc-noctua-apps",3),G(),H(6,"div",4),er(7),Qe(8,"noctua-toolbar",5),tr(),H(9,"div",6)(10,"div",7),Qe(11,"noctua-content"),G()()()(),ke(12,vGe,1,0,"app-footer",8),ke(13,bGe,1,0,"quick-panel",9),G()),2&e&&(W(2),J("ngSwitch",i.noctuaCommonMenuService.selectedLeftSidenav),W(2),J("ngSwitchCase",i.LeftPanel.announcement),W(1),J("ngSwitchCase",i.LeftPanel.apps),W(7),J("ngIf",!1),W(1),J("ngIf",!1))},directives:[lq,cq,bd,iu,fBe,SBe,hGe,fGe,Yi,IN,gGe],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}vertical-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1}vertical-layout-1 #main.boxed{max-width:1200px;margin:0 auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}vertical-layout-1 #main>.container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0}vertical-layout-1 #main>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0}vertical-layout-1 #main>.container>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;transform:translateZ(0);overflow-x:hidden;overflow-y:auto}vertical-layout-1 #main>.container>.container>.container content.inner-scroll{flex:1 1 0%;min-height:0}vertical-layout-1 #main>.container>.container>.container content.inner-scroll>*:not(router-outlet){flex:1 1 0%}\n'],encapsulation:2}),t})(),yGe=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaSplashScreen=e,this._renderer=i,this._elementRef=o,this.noctuaConfigService=r,this.noctuaUserService=a,this.platform=l,this.document=u,(this.platform.ANDROID||this.platform.IOS)&&(this.document.body.className+=" is-mobile"),this._unsubscribeAll=new N}onFocus(e){this.noctuaUserService.getUser()}ngOnInit(){this.noctuaConfigService.config.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.noctuaConfig=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}addClass(e){this._renderer.addClass(this._elementRef.nativeElement,e)}removeClass(e){this._renderer.removeClass(this._elementRef.nativeElement,e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Tq),ue(yl),ue(Ti),ue(Hw),ue(yr),ue(rc),ue(vr))},t.\u0275cmp=vn({type:t,selectors:[["noctua-root"]],hostBindings:function(e,i){1&e&&et("focus",function(r){return i.onFocus(r)},!1,Tp)},decls:3,vars:0,template:function(e,i){1&e&&(Qe(0,"noctua-progress-bar"),er(1),Qe(2,"layout-noctua"),tr())},directives:[ZVe,xGe],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}#noctua-main{display:flex;flex-direction:column;width:100%;height:100%}#noctua-main>.mat-sidenav-container{display:flex;flex:1;overflow:auto}#noctua-main>.mat-sidenav-container>.mat-sidenav-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content{display:flex;flex:1;overflow:hidden;height:100vh}@media (max-width: 959px){#noctua-main>.mat-sidenav-container>.mat-sidenav-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content{height:auto!important}}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content{display:flex;flex:1;flex-direction:column;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper{display:flex;position:relative;flex:1;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content{position:relative;display:flex;flex:1;flex-direction:row;width:100%;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content>*:not(router-outlet):not(.ps__scrollbar-x-rail):not(.ps__scrollbar-y-rail),#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content>*:not(router-outlet):not(.ps__scrollbar-x-rail):not(.ps__scrollbar-y-rail){display:flex;flex:1;width:100%;min-width:100%}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content>*.ng-animating .mat-tab-body,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content>*.ng-animating .mat-tab-body{height:100vh}#noctua-main[noctua-layout-mode=boxed]{max-width:1200px;margin:0 auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.active{background-color:#777577}#footer{background:#efefef;height:10%}\n'],encapsulation:2}),t})(),wGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,L0,du,Ff,LM,D1]]}),t})(),MGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[xd,D1]]}),t})(),nv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[xd,D1]]}),t})(),OGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Yk,hM,_M,D1]]}),t})(),SGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[],imports:[[xd,du,L0,k6,qw,dI,D1]]}),t})(),PGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Yk,hM,_M,D1]]}),t})(),Bee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[xd,D1,MGe,nv,OGe,SGe,PGe,wGe]]}),t})(),TGe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[Bee],Bee]}),t})();var NN=function(t,n){return(NN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(t,n)};function Gee(t,n){function e(){this.constructor=t}NN(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var s2=function(){return s2=Object.assign||function(n){for(var e,i=1,o=arguments.length;i0)&&!(o=i.next()).done;)r.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}function RN(){for(var t=[],n=0;n2&&v3("box");var e=w_(n);return new g4(t,UO(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&v3("shallowBox"),vs.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&v3("array");var e=w_(n);return new x3(t,UO(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&v3("shallowArray"),vs.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&v3("map");var e=w_(n);return new JO(t,UO(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&v3("shallowMap"),vs.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&v3("set");var e=w_(n);return new tS(t,UO(e),e.name)},object:function(t,n,e){"string"==typeof arguments[1]&&v3("object");var i=w_(e);return Cte({},t,n,i)},shallowObject:function(t,n){return"string"==typeof arguments[1]&&v3("shallowObject"),vs.object(t,{},{name:n,deep:!1})},ref:Zee,shallow:WGe,deep:UN,struct:qGe},vs=function $Ge(t,n,e){if("string"==typeof arguments[1])return UN.apply(null,arguments);if(KO(t))return t;var i=b_(t)?vs.object(t,n,e):Array.isArray(t)?vs.array(t,n):x_(t)?vs.map(t,n):ov(t)?vs.set(t,n):t;if(i!==t)return i;Ea(!1)};function v3(t){Ea("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(Kee).forEach(function(t){return vs[t]=Kee[t]});var jO=$ee(!1,function(t,n,e,i,o){!function FYe(t,n,e){var i=eR(t);e.name=i.name+"."+n,e.context=t,i.values[n]=new m4(e),Object.defineProperty(t,n,function VYe(t){return Ate[t]||(Ate[t]={configurable:fo.computedConfigurable,enumerable:!1,get:function(){return Lte(this).read(this,t)},set:function(n){Lte(this).write(this,t,n)}})}(n))}(t,n,s2({get:e.get,set:e.set},o[0]||{}))}),XGe=jO({equals:y_.structural}),n1=function(n,e,i){if("string"==typeof e||null!==n&&"object"==typeof n&&1===arguments.length)return jO.apply(null,arguments);var o="object"==typeof e?e:{};return o.get=n,o.set="function"==typeof e?e:o.set,o.name=o.name||n.name||"",new m4(o)};n1.struct=XGe;var bs=(()=>{return(t=bs||(bs={}))[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",bs;var t})(),th=(()=>{return(t=th||(th={}))[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",th;var t})(),WO=function t(n){this.cause=n};function cv(t){return t instanceof WO}function jN(t){switch(t.dependenciesState){case bs.UP_TO_DATE:return!1;case bs.NOT_TRACKING:case bs.STALE:return!0;case bs.POSSIBLY_STALE:for(var n=M_(),e=t.observing,i=e.length,o=0;o0;fo.computationDepth>0&&n&&Ea(!1),!fo.allowStateChanges&&(n||"strict"===fo.enforceActions)&&Ea(!1)}function Jee(t,n,e){var i=tte(!0);ite(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++fo.runId;var r,o=fo.trackingDerivation;if(fo.trackingDerivation=t,!0===fo.disableErrorBoundaries)r=n.call(e);else try{r=n.call(e)}catch(a){r=new WO(a)}return fo.trackingDerivation=o,function QGe(t){for(var n=t.observing,e=t.observing=t.newObserving,i=bs.UP_TO_DATE,o=0,r=t.unboundDepsCount,a=0;ai&&(i=l.dependenciesState);for(e.length=o,t.newObserving=null,r=n.length;r--;)0===(l=n[r]).diffValue&&ste(l,t),l.diffValue=0;for(;o--;){var l;1===(l=e[o]).diffValue&&(l.diffValue=0,oYe(l,t))}i!==bs.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}(t),nte(i),r}function WN(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)ste(n[e],t);t.dependenciesState=bs.NOT_TRACKING}function ete(t){var n=M_(),e=t();return p4(n),e}function M_(){var t=fo.trackingDerivation;return fo.trackingDerivation=null,t}function p4(t){fo.trackingDerivation=t}function tte(t){var n=fo.allowStateReads;return fo.allowStateReads=t,n}function nte(t){fo.allowStateReads=t}function ite(t){if(t.dependenciesState!==bs.UP_TO_DATE){t.dependenciesState=bs.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=bs.UP_TO_DATE}}var $O=0,ZGe=1;function f4(t,n){var e=function(){return ote(t,n,this,arguments)};return e.isMobxAction=!0,e}function ote(t,n,e,i){var o=function KGe(t,n,e){var i=ud()&&!!t,o=0;if(i){o=Date.now();var r=e&&e.length||0,a=new Array(r);if(r>0)for(var l=0;l0&&!t.__mobxGlobals&&(XO=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new lv).version&&(XO=!1),XO?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new lv):(setTimeout(function(){Ea("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new lv));function oYe(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function ste(t,n){if(1===t.observers.length)t.observers.length=0,cte(t);else{var e=t.observers,i=t.observersIndexes,o=e.pop();if(o!==n){var r=i[n.__mapid]||0;r?i[o.__mapid]=r:delete i[o.__mapid],e[r]=o}delete i[n.__mapid]}}function cte(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,fo.pendingUnobservations.push(t))}function Vh(){fo.inBatch++}function Bh(){if(0==--fo.inBatch){pte();for(var t=fo.pendingUnobservations,n=0;n0&&cte(t),!1)}function dte(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===th.BREAK){var e=[];ute(function CYe(t,n){return vte(Wh(t,n))}(t),e,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+n.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(t instanceof m4?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+e.join("\n")+"\n*/\n ")()}}function ute(t,n,e){n.length>=1e3?n.push("(and many more)"):(n.push(""+new Array(e).join("\t")+t.name),t.dependencies&&t.dependencies.forEach(function(i){return ute(i,n,e+1)}))}var QO=function(){function t(n,e,i,o){void 0===n&&(n="Reaction@"+c2()),void 0===o&&(o=!1),this.name=n,this.onInvalidate=e,this.errorHandler=i,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=bs.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+c2(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=th.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,fo.pendingReactions.push(this),pte())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Vh(),this._isScheduled=!1,jN(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&ud()&&_m({name:this.name,type:"scheduled-reaction"})}catch(n){this.reportExceptionInDerivation(n)}}Bh()}},t.prototype.track=function(n){Vh();var i,e=ud();e&&(i=Date.now(),Gh({name:this.name,type:"reaction"})),this._isRunning=!0;var o=Jee(this,n,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&WN(this),cv(o)&&this.reportExceptionInDerivation(o.cause),e&&Yh({time:Date.now()-i}),Bh()},t.prototype.reportExceptionInDerivation=function(n){var e=this;if(this.errorHandler)this.errorHandler(n,this);else{if(fo.disableErrorBoundaries)throw n;var i="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";fo.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(i,n),ud()&&_m({type:"error",name:this.name,message:i,error:""+n}),fo.globalReactionErrorHandlers.forEach(function(o){return o(n,e)})}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Vh(),WN(this),Bh()))},t.prototype.getDisposer=function(){var n=this.dispose.bind(this);return n.$mobx=this,n},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(n){void 0===n&&(n=!1),function PYe(){for(var t=[],n=0;n0||fo.isRunningReactions||function(t){t()}(cYe)}function cYe(){fo.isRunningReactions=!0;for(var t=fo.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var e=t.splice(0),i=0,o=e.length;i",n):2===arguments.length&&"function"==typeof e?f4(n,e):1===arguments.length&&"string"==typeof n?fte(n):!0!==o?fte(e).apply(null,arguments):void(n[e]=f4(n.name||e,i.value))};function QN(t,n,e){gm(t,n,f4(n,e.bind(t)))}function dv(t,n){void 0===n&&(n=zN);var o,e=n&&n.name||t.name||"Autorun@"+c2();if(n.scheduler||n.delay){var r=gte(n),a=!1;o=new QO(e,function(){a||(a=!0,r(function(){a=!1,o.isDisposed||o.track(l)}))},n.onError,n.requiresObservable)}else o=new QO(e,function(){this.track(l)},n.onError,n.requiresObservable);function l(){t(o)}return o.schedule(),o.getDisposer()}ns.bound=function fYe(t,n,e,i){return!0===i?(QN(t,n,e.value),null):e?{configurable:!0,enumerable:!1,get:function(){return QN(this,n,e.value||e.initializer.call(this)),this[n]},set:hYe}:{enumerable:!1,configurable:!0,set:function(o){QN(this,n,o)},get:function(){}}};var gYe=function(t){return t()};function gte(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:gYe}function S_(t,n,e){void 0===e&&(e=zN),"boolean"==typeof e&&(e={fireImmediately:e});var f,i=e.name||"Reaction@"+c2(),o=ns(i,e.onError?function mYe(t,n){return function(){try{return n.apply(this,arguments)}catch(e){t.call(this,e)}}}(e.onError,n):n),r=!e.scheduler&&!e.delay,a=gte(e),l=!0,u=!1,M=e.compareStructural?y_.structural:e.equals||y_.default,T=new QO(i,function(){l||r?U():u||(u=!0,a(U))},e.onError,e.requiresObservable);function U(){if(u=!1,!T.isDisposed){var ie=!1;T.track(function(){var se=t(T);ie=l||!M(f,se),f=se}),l&&e.fireImmediately&&o(f,T),!l&&!0===ie&&o(f,T),l&&(l=!1)}}return T.schedule(),T.getDisposer()}function mte(t,n,e){return _te("onBecomeUnobserved",t,n,e)}function _te(t,n,e,i){var o="function"==typeof i?Wh(n,e):Wh(n),r="function"==typeof i?i:e,a=o[t];return"function"!=typeof a?Ea(!1):(o[t]=function(){a.call(this),r.call(this)},function(){o[t]=a})}function Cte(t,n,e,i){var r=(i=w_(i)).defaultDecorator||(!1===i.deep?Zee:UN);mm(t),eR(t,i.name,r.enhancer),Vh();try{for(var o in n){var a=Object.getOwnPropertyDescriptor(n,o),u=(e&&o in e?e[o]:a.get?jO:r)(t,o,a,!0);u&&Object.defineProperty(t,o,u)}}finally{Bh()}return t}function vte(t){var n={name:t.name};return t.observing&&t.observing.length>0&&(n.dependencies=function LGe(t){var n=[];return t.forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}(t.observing).map(vte)),n}function wte(t,n){if(null==t)return!1;if(void 0!==n){if(z2(t)){var e=t.$mobx;return e.values&&!!e.values[n]}return!1}return z2(t)||!!t.$mobx||YN(t)||ZO(t)||O_(t)}function KO(t){return 1!==arguments.length&&Ea(!1),wte(t)}function TYe(t){switch(t.length){case 0:return fo.trackingDerivation;case 1:return Wh(t[0]);case 2:return Wh(t[0],t[1])}}function b3(t,n){void 0===n&&(n=void 0),Vh();try{return t.apply(n)}finally{Bh()}}function j0(t){return void 0!==t.interceptors&&t.interceptors.length>0}function hv(t,n){var e=t.interceptors||(t.interceptors=[]);return e.push(n),FN(function(){var i=e.indexOf(n);-1!==i&&e.splice(i,1)})}function W0(t,n){var e=M_();try{var i=t.interceptors;if(i)for(var o=0,r=i.length;o0}function pv(t,n){var e=t.changeListeners||(t.changeListeners=[]);return e.push(n),FN(function(){var i=e.indexOf(n);-1!==i&&e.splice(i,1)})}function jh(t,n){var e=M_(),i=t.changeListeners;if(i){for(var o=0,r=(i=i.slice()).length;o0?n.map(this.dehancer):n},t.prototype.intercept=function(n){return hv(this,n)},t.prototype.observe=function(n,e){return void 0===e&&(e=!1),e&&n({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),pv(this,n)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(n){if("number"!=typeof n||n<0)throw new Error("[mobx.array] Out of range: "+n);var e=this.values.length;if(n!==e)if(n>e){for(var i=new Array(n-e),o=0;o0&&n+e+1>ZN&&JN(n+e+1)},t.prototype.spliceWithArray=function(n,e,i){var o=this;qO(this.atom);var r=this.values.length;if(void 0===n?n=0:n>r?n=r:n<0&&(n=Math.max(0,r+n)),e=1===arguments.length?r-n:null==e?0:Math.max(0,Math.min(e,r-n)),void 0===i&&(i=VO),j0(this)){var a=W0(this,{object:this.array,type:"splice",index:n,removedCount:e,added:i});if(!a)return VO;e=a.removedCount,i=a.added}var l=(i=0===i.length?i:i.map(function(f){return o.enhancer(f,void 0)})).length-e;this.updateArrayLength(r,l);var u=this.spliceItemsIntoValues(n,e,i);return(0!==e||0!==i.length)&&this.notifyArraySplice(n,i,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(n,e,i){var o;if(i.length<1e4)return(o=this.values).splice.apply(o,RN([n,e],i));var r=this.values.slice(n,n+e);return this.values=this.values.slice(0,n).concat(i,this.values.slice(n+e)),r},t.prototype.notifyArrayChildUpdate=function(n,e,i){var o=!this.owned&&ud(),r=Uh(this),a=r||o?{object:this.array,type:"update",index:n,newValue:e,oldValue:i}:null;o&&Gh(s2({},a,{name:this.atom.name})),this.atom.reportChanged(),r&&jh(this,a),o&&Yh()},t.prototype.notifyArraySplice=function(n,e,i){var o=!this.owned&&ud(),r=Uh(this),a=r||o?{object:this.array,type:"splice",index:n,removed:i,added:e,removedCount:i.length,addedCount:e.length}:null;o&&Gh(s2({},a,{name:this.atom.name})),this.atom.reportChanged(),r&&jh(this,a),o&&Yh()},t}(),x3=function(t){function n(e,i,o,r){void 0===o&&(o="ObservableArray@"+c2()),void 0===r&&(r=!1);var a=t.call(this)||this,l=new Ote(o,i,a,r);if(iv(a,"$mobx",l),e&&e.length){var u=qN(!0);a.spliceWithArray(0,0,e),$N(u)}return LYe&&Object.defineProperty(l.array,"0",kYe),a}return Gee(n,t),n.prototype.intercept=function(e){return this.$mobx.intercept(e)},n.prototype.observe=function(e,i){return void 0===i&&(i=!1),this.$mobx.observe(e,i)},n.prototype.clear=function(){return this.splice(0)},n.prototype.concat=function(){for(var e=[],i=0;i-1&&(this.splice(i,1),!0)},n.prototype.move=function(e,i){function o(l){if(l<0)throw new Error("[mobx.array] Index out of bounds: "+l+" is negative");var u=this.$mobx.values.length;if(l>=u)throw new Error("[mobx.array] Index out of bounds: "+l+" is not smaller than "+u)}if(o.call(this,e),o.call(this,i),e!==i){var a,r=this.$mobx.values;a=e{class t{constructor(e,i){this.templateRef=e,this.viewContainer=i,this.templateBindings={}}ngOnInit(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.shouldDetach()&&this.view.detach(),this.autoDetect(this.view)}shouldDetach(){return this.treeMobxAutorun&&this.treeMobxAutorun.detach}autoDetect(e){this.dispose=dv(()=>e.detectChanges())}ngOnDestroy(){this.dispose&&this.dispose()}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc),ue(oc))},t.\u0275dir=St({type:t,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),t})();const I1={TOGGLE_ACTIVE:(t,n,e)=>n&&n.toggleActivated(),TOGGLE_ACTIVE_MULTI:(t,n,e)=>n&&n.toggleActivated(!0),TOGGLE_SELECTED:(t,n,e)=>n&&n.toggleSelected(),ACTIVATE:(t,n,e)=>n.setIsActive(!0),DEACTIVATE:(t,n,e)=>n.setIsActive(!1),SELECT:(t,n,e)=>n.setIsSelected(!0),DESELECT:(t,n,e)=>n.setIsSelected(!1),FOCUS:(t,n,e)=>n.focus(),TOGGLE_EXPANDED:(t,n,e)=>n.hasChildren&&n.toggleExpanded(),EXPAND:(t,n,e)=>n.expand(),COLLAPSE:(t,n,e)=>n.collapse(),DRILL_DOWN:(t,n,e)=>t.focusDrillDown(),DRILL_UP:(t,n,e)=>t.focusDrillUp(),NEXT_NODE:(t,n,e)=>t.focusNextNode(),PREVIOUS_NODE:(t,n,e)=>t.focusPreviousNode(),MOVE_NODE:(t,n,e,{from:i,to:o})=>{e.ctrlKey?t.copyNode(i,o):t.moveNode(i,o)}},A_={mouse:{click:I1.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:I1.TOGGLE_EXPANDED,checkboxClick:I1.TOGGLE_SELECTED,drop:I1.MOVE_NODE},keys:{39:I1.DRILL_DOWN,37:I1.DRILL_UP,40:I1.NEXT_NODE,38:I1.PREVIOUS_NODE,32:I1.TOGGLE_ACTIVE,13:I1.TOGGLE_ACTIVE}};class Rte{constructor(n={}){var e,i,o,r,a,l,u,f,M,T,U,ie,se,Me,we,He,Be,me,ze,qe,rt,xt,Ut,jt,an,pn,yn,Kt,kn,ri,Rn,ni,Jn,Oi,qn,Wi,Ai,Bi,lo,nr,Nr,ro,ki,jn,yi,Ii,Vn,Ei,Zo,Sa,$a,Cr,gs,Ec,Nl,dh,Ac,Js,H3,R4;this.options=n,this.actionMapping={mouse:{click:null!==(r=null===(o=null===(i=null===(e=this.options)||void 0===e?void 0:e.actionMapping)||void 0===i?void 0:i.mouse)||void 0===o?void 0:o.click)&&void 0!==r?r:A_.mouse.click,dblClick:null!==(f=null===(u=null===(l=null===(a=this.options)||void 0===a?void 0:a.actionMapping)||void 0===l?void 0:l.mouse)||void 0===u?void 0:u.dblClick)&&void 0!==f?f:A_.mouse.dblClick,contextMenu:null!==(ie=null===(U=null===(T=null===(M=this.options)||void 0===M?void 0:M.actionMapping)||void 0===T?void 0:T.mouse)||void 0===U?void 0:U.contextMenu)&&void 0!==ie?ie:A_.mouse.contextMenu,expanderClick:null!==(He=null===(we=null===(Me=null===(se=this.options)||void 0===se?void 0:se.actionMapping)||void 0===Me?void 0:Me.mouse)||void 0===we?void 0:we.expanderClick)&&void 0!==He?He:A_.mouse.expanderClick,checkboxClick:null!==(qe=null===(ze=null===(me=null===(Be=this.options)||void 0===Be?void 0:Be.actionMapping)||void 0===me?void 0:me.mouse)||void 0===ze?void 0:ze.checkboxClick)&&void 0!==qe?qe:A_.mouse.checkboxClick,drop:null!==(jt=null===(Ut=null===(xt=null===(rt=this.options)||void 0===rt?void 0:rt.actionMapping)||void 0===xt?void 0:xt.mouse)||void 0===Ut?void 0:Ut.drop)&&void 0!==jt?jt:A_.mouse.drop,dragStart:null!==(Kt=null===(yn=null===(pn=null===(an=this.options)||void 0===an?void 0:an.actionMapping)||void 0===pn?void 0:pn.mouse)||void 0===yn?void 0:yn.dragStart)&&void 0!==Kt?Kt:void 0,drag:null!==(ni=null===(Rn=null===(ri=null===(kn=this.options)||void 0===kn?void 0:kn.actionMapping)||void 0===ri?void 0:ri.mouse)||void 0===Rn?void 0:Rn.drag)&&void 0!==ni?ni:void 0,dragEnd:null!==(Wi=null===(qn=null===(Oi=null===(Jn=this.options)||void 0===Jn?void 0:Jn.actionMapping)||void 0===Oi?void 0:Oi.mouse)||void 0===qn?void 0:qn.dragEnd)&&void 0!==Wi?Wi:void 0,dragOver:null!==(nr=null===(lo=null===(Bi=null===(Ai=this.options)||void 0===Ai?void 0:Ai.actionMapping)||void 0===Bi?void 0:Bi.mouse)||void 0===lo?void 0:lo.dragOver)&&void 0!==nr?nr:void 0,dragLeave:null!==(jn=null===(ki=null===(ro=null===(Nr=this.options)||void 0===Nr?void 0:Nr.actionMapping)||void 0===ro?void 0:ro.mouse)||void 0===ki?void 0:ki.dragLeave)&&void 0!==jn?jn:void 0,dragEnter:null!==(Ei=null===(Vn=null===(Ii=null===(yi=this.options)||void 0===yi?void 0:yi.actionMapping)||void 0===Ii?void 0:Ii.mouse)||void 0===Vn?void 0:Vn.dragEnter)&&void 0!==Ei?Ei:void 0,mouseOver:null!==(Cr=null===($a=null===(Sa=null===(Zo=this.options)||void 0===Zo?void 0:Zo.actionMapping)||void 0===Sa?void 0:Sa.mouse)||void 0===$a?void 0:$a.mouseOver)&&void 0!==Cr?Cr:void 0,mouseOut:null!==(dh=null===(Nl=null===(Ec=null===(gs=this.options)||void 0===gs?void 0:gs.actionMapping)||void 0===Ec?void 0:Ec.mouse)||void 0===Nl?void 0:Nl.mouseOut)&&void 0!==dh?dh:void 0},keys:{39:I1.DRILL_DOWN,37:I1.DRILL_UP,40:I1.NEXT_NODE,38:I1.PREVIOUS_NODE,32:I1.TOGGLE_ACTIVE,13:I1.TOGGLE_ACTIVE}},(null===(Js=null===(Ac=this.options)||void 0===Ac?void 0:Ac.actionMapping)||void 0===Js?void 0:Js.keys)&&(this.actionMapping.keys=Object.assign(Object.assign({},this.actionMapping.keys),this.options.actionMapping.keys)),n.rtl&&(this.actionMapping.keys[39]=(null===(H3=n.actionMapping)||void 0===H3?void 0:H3.keys[39])||I1.DRILL_UP,this.actionMapping.keys[37]=(null===(R4=n.actionMapping)||void 0===R4?void 0:R4.keys[37])||I1.DRILL_DOWN)}get hasChildrenField(){return this.options.hasChildrenField||"hasChildren"}get childrenField(){return this.options.childrenField||"children"}get displayField(){return this.options.displayField||"name"}get idField(){return this.options.idField||"id"}get isExpandedField(){return this.options.isExpandedField||"isExpanded"}get getChildren(){return this.options.getChildren}get levelPadding(){return this.options.levelPadding||0}get useVirtualScroll(){return this.options.useVirtualScroll}get animateExpand(){return this.options.animateExpand}get animateSpeed(){return this.options.animateSpeed||1}get animateAcceleration(){return this.options.animateAcceleration||1.2}get scrollOnActivate(){return void 0===this.options.scrollOnActivate||this.options.scrollOnActivate}get rtl(){return!!this.options.rtl}get rootId(){return this.options.rootId}get useCheckbox(){return this.options.useCheckbox}get useTriState(){return void 0===this.options.useTriState||this.options.useTriState}get scrollContainer(){return this.options.scrollContainer}get allowDragoverStyling(){return void 0===this.options.allowDragoverStyling||this.options.allowDragoverStyling}getNodeClone(n){if(this.options.getNodeClone)return this.options.getNodeClone(n);const e=Object.assign({},n.data);return e.id&&delete e.id,e}allowDrop(n,e,i){return this.options.allowDrop instanceof Function?this.options.allowDrop(n,e,i):void 0===this.options.allowDrop||this.options.allowDrop}allowDrag(n){return this.options.allowDrag instanceof Function?this.options.allowDrag(n):this.options.allowDrag}nodeClass(n){return this.options.nodeClass?this.options.nodeClass(n):""}nodeHeight(n){if(n.data.virtual)return 0;let e=this.options.nodeHeight||22;return"function"==typeof e&&(e=e(n)),e+(0===n.index?2:1)*this.dropSlotHeight}get dropSlotHeight(){return"number"==typeof this.options.dropSlotHeight?this.options.dropSlotHeight:2}}const Dl={toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",initialized:"initialized",updateData:"updateData",moveNode:"moveNode",copyNode:"copyNode",event:"event",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",stateChange:"stateChange"};var Ad=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},Fs=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let zte=(()=>{class t{constructor(e,i,o,r){this.data=e,this.parent=i,this.treeModel=o,this.position=0,this.allowDrop=(a,l)=>this.options.allowDrop(a,{parent:this,index:0},l),this.allowDragoverStyling=()=>this.options.allowDragoverStyling,null==this.id&&(this.id=function xUe(){return Math.floor(1e13*Math.random())}()),this.index=r,this.getField("children")&&this._initChildren(),this.autoLoadChildren()}get isHidden(){return this.treeModel.isHidden(this)}get isExpanded(){return this.treeModel.isExpanded(this)}get isActive(){return this.treeModel.isActive(this)}get isFocused(){return this.treeModel.isNodeFocused(this)}get isSelected(){return this.isSelectable()?this.treeModel.isSelected(this):this.children.some(e=>e.isSelected)}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):this.children.every(e=>e.isAllSelected)}get isPartiallySelected(){return this.isSelected&&!this.isAllSelected}get level(){return this.parent?this.parent.level+1:0}get path(){return this.parent?[...this.parent.path,this.id]:[]}get elementRef(){throw"Element Ref is no longer supported since introducing virtual scroll\n\n You may use a template to obtain a reference to the element"}get originalNode(){return this._originalNode}get hasChildren(){return!!(this.getField("hasChildren")||this.children&&this.children.length>0)}get isCollapsed(){return!this.isExpanded}get isLeaf(){return!this.hasChildren}get isRoot(){return this.parent.data.virtual}get realParent(){return this.isRoot?null:this.parent}get options(){return this.treeModel.options}fireEvent(e){this.treeModel.fireEvent(e)}get displayField(){return this.getField("display")}get id(){return this.getField("id")}set id(e){this.setField("id",e)}getField(e){return this.data[this.options[`${e}Field`]]}setField(e,i){this.data[this.options[`${e}Field`]]=i}_findAdjacentSibling(e,i=!1){const o=this._getParentsChildren(i),r=o.indexOf(this);return o.length>r+e?o[r+e]:null}findNextSibling(e=!1){return this._findAdjacentSibling(1,e)}findPreviousSibling(e=!1){return this._findAdjacentSibling(-1,e)}getVisibleChildren(){return this.visibleChildren}get visibleChildren(){return(this.children||[]).filter(e=>!e.isHidden)}getFirstChild(e=!1){let i=e?this.visibleChildren:this.children;return null!=i&&i.length?i[0]:null}getLastChild(e=!1){let i=e?this.visibleChildren:this.children;return null!=i&&i.length?i[i.length-1]:null}findNextNode(e=!0,i=!1){return e&&this.isExpanded&&this.getFirstChild(i)||this.findNextSibling(i)||this.parent&&this.parent.findNextNode(!1,i)}findPreviousNode(e=!1){let i=this.findPreviousSibling(e);return i?i._getLastOpenDescendant(e):this.realParent}_getLastOpenDescendant(e=!1){const i=this.getLastChild(e);return this.isCollapsed||!i?this:i._getLastOpenDescendant(e)}_getParentsChildren(e=!1){return this.parent&&(e?this.parent.getVisibleChildren():this.parent.children)||[]}getIndexInParent(e=!1){return this._getParentsChildren(e).indexOf(this)}isDescendantOf(e){return this===e||this.parent&&this.parent.isDescendantOf(e)}getNodePadding(){return this.options.levelPadding*(this.level-1)+"px"}getClass(){return[this.options.nodeClass(this),`tree-node-level-${this.level}`].join(" ")}onDrop(e){this.mouseAction("drop",e.event,{from:e.element,to:{parent:this,index:0,dropOnNode:!0}})}allowDrag(){return this.options.allowDrag(this)}loadNodeChildren(){return this.options.getChildren?Promise.resolve(this.options.getChildren(this)).then(e=>{e&&(this.setField("children",e),this._initChildren(),this.options.useTriState&&this.treeModel.isSelected(this)&&this.setIsSelected(!0),this.children.forEach(i=>{i.getField("isExpanded")&&i.hasChildren&&i.expand()}))}).then(()=>{this.fireEvent({eventName:Dl.loadNodeChildren,node:this})}):Promise.resolve()}expand(){return this.isExpanded||this.toggleExpanded(),this}collapse(){return this.isExpanded&&this.toggleExpanded(),this}doForAll(e){Promise.resolve(e(this)).then(()=>{this.children&&this.children.forEach(i=>i.doForAll(e))})}expandAll(){this.doForAll(e=>e.expand())}collapseAll(){this.doForAll(e=>e.collapse())}ensureVisible(){return this.realParent&&(this.realParent.expand(),this.realParent.ensureVisible()),this}toggleExpanded(){return this.setIsExpanded(!this.isExpanded),this}setIsExpanded(e){return this.hasChildren&&this.treeModel.setExpandedNode(this,e),this}autoLoadChildren(){this.handler=S_(()=>this.isExpanded,e=>{!this.children&&this.hasChildren&&e&&this.loadNodeChildren()},{fireImmediately:!0})}dispose(){this.children&&this.children.forEach(e=>e.dispose()),this.handler&&this.handler(),this.parent=null,this.children=null}setIsActive(e,i=!1){return this.treeModel.setActiveNode(this,e,i),e&&this.focus(this.options.scrollOnActivate),this}isSelectable(){return this.isLeaf||!this.children||!this.options.useTriState}setIsSelected(e){return this.isSelectable()?this.treeModel.setSelectedNode(this,e):this.visibleChildren.forEach(i=>i.setIsSelected(e)),this}toggleSelected(){return this.setIsSelected(!this.isSelected),this}toggleActivated(e=!1){return this.setIsActive(!this.isActive,e),this}setActiveAndVisible(e=!1){return this.setIsActive(!0,e).ensureVisible(),setTimeout(this.scrollIntoView.bind(this)),this}scrollIntoView(e=!1){this.treeModel.virtualScroll.scrollIntoView(this,e)}focus(e=!0){let i=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(this),e&&this.scrollIntoView(),i&&this.fireEvent({eventName:Dl.blur,node:i}),this.fireEvent({eventName:Dl.focus,node:this}),this}blur(){let e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:Dl.blur,node:this}),this}setIsHidden(e){this.treeModel.setIsHidden(this,e)}hide(){this.setIsHidden(!0)}show(){this.setIsHidden(!1)}mouseAction(e,i,o=null){this.treeModel.setFocus(!0);const a=this.options.actionMapping.mouse[e];a&&a(this.treeModel,this,i,o)}getSelfHeight(){return this.options.nodeHeight(this)}_initChildren(){this.children=this.getField("children").map((e,i)=>new t(e,this,this.treeModel,i))}}return Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isHidden",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isExpanded",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isActive",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isFocused",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isSelected",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isAllSelected",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"isPartiallySelected",null),Ad([vs,Fs("design:type",Array)],t.prototype,"children",void 0),Ad([vs,Fs("design:type",Number)],t.prototype,"index",void 0),Ad([vs,Fs("design:type",Object)],t.prototype,"position",void 0),Ad([vs,Fs("design:type",Number)],t.prototype,"height",void 0),Ad([n1,Fs("design:type",Number),Fs("design:paramtypes",[])],t.prototype,"level",null),Ad([n1,Fs("design:type",Array),Fs("design:paramtypes",[])],t.prototype,"path",null),Ad([n1,Fs("design:type",Object),Fs("design:paramtypes",[])],t.prototype,"visibleChildren",null),Ad([ns,Fs("design:type",Function),Fs("design:paramtypes",[Object]),Fs("design:returntype",void 0)],t.prototype,"setIsSelected",null),Ad([ns,Fs("design:type",Function),Fs("design:paramtypes",[]),Fs("design:returntype",void 0)],t.prototype,"_initChildren",null),t})();var xs=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},vo=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let is=(()=>{class t{constructor(){this.options=new Rte,this.eventNames=Object.keys(Dl),this.expandedNodeIds={},this.selectedLeafNodeIds={},this.activeNodeIds={},this.hiddenNodeIds={},this.focusedNodeId=null,this.firstUpdate=!0,this.subscriptions=[]}fireEvent(e){e.treeModel=this,this.events[e.eventName].emit(e),this.events.event.emit(e)}subscribe(e,i){const o=this.events[e].subscribe(i);this.subscriptions.push(o)}getFocusedNode(){return this.focusedNode}getActiveNode(){return this.activeNodes[0]}getActiveNodes(){return this.activeNodes}getVisibleRoots(){return this.virtualRoot.visibleChildren}getFirstRoot(e=!1){const i=e?this.getVisibleRoots():this.roots;return null!=i&&i.length?i[0]:null}getLastRoot(e=!1){const i=e?this.getVisibleRoots():this.roots;return null!=i&&i.length?i[i.length-1]:null}get isFocused(){return t.focusedTree===this}isNodeFocused(e){return this.focusedNode===e}isEmptyTree(){return this.roots&&0===this.roots.length}get focusedNode(){return this.focusedNodeId?this.getNodeById(this.focusedNodeId):null}get expandedNodes(){return Object.keys(this.expandedNodeIds).filter(i=>this.expandedNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get activeNodes(){return Object.keys(this.activeNodeIds).filter(i=>this.activeNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get hiddenNodes(){return Object.keys(this.hiddenNodeIds).filter(i=>this.hiddenNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get selectedLeafNodes(){return Object.keys(this.selectedLeafNodeIds).filter(i=>this.selectedLeafNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}getNodeByPath(e,i=null){if(!e)return null;if(i=i||this.virtualRoot,0===e.length)return i;if(!i.children)return null;const o=e.shift(),r=i.children.find(a=>a.id===o);return r?this.getNodeByPath(e,r):null}getNodeById(e){const i=e.toString();return this.getNodeBy(o=>o.id.toString()===i)}getNodeBy(e,i=null){if(!(i=i||this.virtualRoot).children)return null;const o=i.children.find(e);if(o)return o;for(let r of i.children){const a=this.getNodeBy(e,r);if(a)return a}}isExpanded(e){return this.expandedNodeIds[e.id]}isHidden(e){return this.hiddenNodeIds[e.id]}isActive(e){return this.activeNodeIds[e.id]}isSelected(e){return this.selectedLeafNodeIds[e.id]}ngOnDestroy(){this.dispose(),this.unsubscribeAll()}dispose(){this.virtualRoot&&this.virtualRoot.dispose()}unsubscribeAll(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions=[]}setData({nodes:e,options:i=null,events:o=null}){i&&(this.options=new Rte(i)),o&&(this.events=o),e&&(this.nodes=e),this.update()}update(){let e={id:this.options.rootId,virtual:!0,[this.options.childrenField]:this.nodes};this.dispose(),this.virtualRoot=new zte(e,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:Dl.updateData})}setFocusedNode(e){this.focusedNodeId=e?e.id:null}setFocus(e){t.focusedTree=e?this:null}doForAll(e){this.roots.forEach(i=>i.doForAll(e))}focusNextNode(){let e=this.getFocusedNode(),i=e?e.findNextNode(!0,!0):this.getFirstRoot(!0);i&&i.focus()}focusPreviousNode(){let e=this.getFocusedNode(),i=e?e.findPreviousNode(!0):this.getLastRoot(!0);i&&i.focus()}focusDrillDown(){let e=this.getFocusedNode();if(e&&e.isCollapsed&&e.hasChildren)e.toggleExpanded();else{let i=e?e.getFirstChild(!0):this.getFirstRoot(!0);i&&i.focus()}}focusDrillUp(){let e=this.getFocusedNode();if(e)if(e.isExpanded)e.toggleExpanded();else{let i=e.realParent;i&&i.focus()}}setActiveNode(e,i,o=!1){o?this._setActiveNodeMulti(e,i):this._setActiveNodeSingle(e,i),i?(e.focus(this.options.scrollOnActivate),this.fireEvent({eventName:Dl.activate,node:e}),this.fireEvent({eventName:Dl.nodeActivate,node:e})):(this.fireEvent({eventName:Dl.deactivate,node:e}),this.fireEvent({eventName:Dl.nodeDeactivate,node:e}))}setSelectedNode(e,i){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[e.id]:i}),i?(e.focus(),this.fireEvent({eventName:Dl.select,node:e})):this.fireEvent({eventName:Dl.deselect,node:e})}setExpandedNode(e,i){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:i}),this.fireEvent({eventName:Dl.toggleExpanded,node:e,isExpanded:i})}expandAll(){this.roots.forEach(e=>e.expandAll())}collapseAll(){this.roots.forEach(e=>e.collapseAll())}setIsHidden(e,i){this.hiddenNodeIds=Object.assign({},this.hiddenNodeIds,{[e.id]:i})}setHiddenNodeIds(e){this.hiddenNodeIds=e.reduce((i,o)=>Object.assign(i,{[o]:!0}),{})}performKeyAction(e,i){const o=this.options.actionMapping.keys[i.keyCode];return!!o&&(i.preventDefault(),o(this,e,i),!0)}filterNodes(e,i=!0){let o;if(!e)return this.clearFilter();if(e&&"string"==typeof e.valueOf())o=a=>-1!==a.displayField.toLowerCase().indexOf(e.toLowerCase());else{if(!e||"function"!=typeof e)return console.error("Don't know what to do with filter",e),void console.error("Should be either a string or function");o=e}const r={};this.roots.forEach(a=>this._filterNode(r,a,o,i)),this.hiddenNodeIds=r,this.fireEvent({eventName:Dl.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:Dl.changeFilter})}moveNode(e,i){const o=e.getIndexInParent(),r=e.parent;if(!this.canMoveNode(e,i,o))return;const a=r.getField("children");i.parent.getField("children")||i.parent.setField("children",[]);const l=i.parent.getField("children"),u=a.splice(o,1)[0];let f=r===i.parent&&i.index>o?i.index-1:i.index;l.splice(f,0,u),r.treeModel.update(),i.parent.treeModel!==r.treeModel&&i.parent.treeModel.update(),this.fireEvent({eventName:Dl.moveNode,node:u,to:{parent:i.parent.data,index:f},from:{parent:r.data,index:o}})}copyNode(e,i){const o=e.getIndexInParent();if(!this.canMoveNode(e,i,o))return;i.parent.getField("children")||i.parent.setField("children",[]);const r=i.parent.getField("children"),a=this.options.getNodeClone(e);r.splice(i.index,0,a),e.treeModel.update(),i.parent.treeModel!==e.treeModel&&i.parent.treeModel.update(),this.fireEvent({eventName:Dl.copyNode,node:a,to:{parent:i.parent.data,index:i.index}})}getState(){return{expandedNodeIds:this.expandedNodeIds,selectedLeafNodeIds:this.selectedLeafNodeIds,activeNodeIds:this.activeNodeIds,hiddenNodeIds:this.hiddenNodeIds,focusedNodeId:this.focusedNodeId}}setState(e){!e||Object.assign(this,{expandedNodeIds:e.expandedNodeIds||{},selectedLeafNodeIds:e.selectedLeafNodeIds||{},activeNodeIds:e.activeNodeIds||{},hiddenNodeIds:e.hiddenNodeIds||{},focusedNodeId:e.focusedNodeId})}subscribeToState(e){dv(()=>e(this.getState()))}canMoveNode(e,i,o){return o||e.getIndexInParent(),(e.parent!==i.parent||o!==i.index)&&!i.parent.isDescendantOf(e)}calculateExpandedNodes(){this._calculateExpandedNodes()}_filterNode(e,i,o,r){let a=o(i);return i.children&&i.children.forEach(l=>{this._filterNode(e,l,o,r)&&(a=!0)}),a||(e[i.id]=!0),r&&a&&i.ensureVisible(),a}_calculateExpandedNodes(e=null){(e=e||this.virtualRoot).data[this.options.isExpandedField]&&(this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:!0})),e.children&&e.children.forEach(i=>this._calculateExpandedNodes(i))}_setActiveNodeSingle(e,i){this.activeNodes.filter(o=>o!==e).forEach(o=>{this.fireEvent({eventName:Dl.deactivate,node:o}),this.fireEvent({eventName:Dl.nodeDeactivate,node:o})}),this.activeNodeIds=i?{[e.id]:!0}:{}}_setActiveNodeMulti(e,i){this.activeNodeIds=Object.assign({},this.activeNodeIds,{[e.id]:i})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t.focusedTree=null,t})();xs([vs,vo("design:type",Array)],is.prototype,"roots",void 0),xs([vs,vo("design:type",Object)],is.prototype,"expandedNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"selectedLeafNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"activeNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"hiddenNodeIds",void 0),xs([vs,vo("design:type",Object)],is.prototype,"focusedNodeId",void 0),xs([vs,vo("design:type",zte)],is.prototype,"virtualRoot",void 0),xs([n1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"focusedNode",null),xs([n1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"expandedNodes",null),xs([n1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"activeNodes",null),xs([n1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"hiddenNodes",null),xs([n1,vo("design:type",Object),vo("design:paramtypes",[])],is.prototype,"selectedLeafNodes",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setData",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"update",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setFocusedNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setFocus",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"doForAll",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusNextNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusPreviousNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusDrillDown",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"focusDrillUp",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object,Object]),vo("design:returntype",void 0)],is.prototype,"setActiveNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"setSelectedNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"setExpandedNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"expandAll",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"collapseAll",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"setIsHidden",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setHiddenNodeIds",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"filterNodes",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[]),vo("design:returntype",void 0)],is.prototype,"clearFilter",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"moveNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object,Object]),vo("design:returntype",void 0)],is.prototype,"copyNode",null),xs([ns,vo("design:type",Function),vo("design:paramtypes",[Object]),vo("design:returntype",void 0)],is.prototype,"setState",null);let iR=(()=>{class t{constructor(){this._draggedElement=null}set(e){this._draggedElement=e}get(){return this._draggedElement}isDragging(){return!!this.get()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({factory:function(){return new t},token:t,providedIn:"root"}),t})();var w3=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},f1=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let qh=(()=>{class t{constructor(e){this.treeModel=e,this.yBlocks=0,this.x=0,this.viewportHeight=null,this.viewport=null,e.virtualScroll=this,this._dispose=[dv(()=>this.fixScroll())]}get y(){return 150*this.yBlocks}get totalHeight(){return this.treeModel.virtualRoot?this.treeModel.virtualRoot.height:0}fireEvent(e){this.treeModel.fireEvent(e)}init(){const e=this.recalcPositions.bind(this);e(),this._dispose=[...this._dispose,S_(()=>this.treeModel.roots,e),S_(()=>this.treeModel.expandedNodeIds,e),S_(()=>this.treeModel.hiddenNodeIds,e)],this.treeModel.subscribe(Dl.loadNodeChildren,e)}isEnabled(){return this.treeModel.options.useVirtualScroll}_setYBlocks(e){this.yBlocks=e}recalcPositions(){this.treeModel.virtualRoot.height=this._getPositionAfter(this.treeModel.getVisibleRoots(),0)}_getPositionAfter(e,i){let o=i;return e.forEach(r=>{r.position=o,o=this._getPositionAfterNode(r,o)}),o}_getPositionAfterNode(e,i){let o=e.getSelfHeight()+i;return e.children&&e.isExpanded&&(o=this._getPositionAfter(e.visibleChildren,o)),e.height=o-i,o}clear(){this._dispose.forEach(e=>e())}setViewport(e){Object.assign(this,{viewport:e,x:e.scrollLeft,yBlocks:Math.round(e.scrollTop/150),viewportHeight:e.getBoundingClientRect?e.getBoundingClientRect().height:0})}scrollIntoView(e,i,o=!0){if(e.options.scrollContainer){const r=e.options.scrollContainer,a=r.getBoundingClientRect().height,l=r.getBoundingClientRect().top,u=this.viewport.getBoundingClientRect().top+e.position-l;(i||ur.scrollTop+a)&&(r.scrollTop=o?u-a/2:u)}else(i||e.positionthis.y+this.viewportHeight)&&this.viewport&&(this.viewport.scrollTop=o?e.position-this.viewportHeight/2:e.position,this._setYBlocks(Math.floor(this.viewport.scrollTop/150)))}getViewportNodes(e){if(!e)return[];const i=e.filter(u=>!u.isHidden);if(!this.isEnabled())return i;if(!this.viewportHeight||!i.length)return[];const o=i.slice(-1)[0];if(!o.height&&0===o.position)return[];const r=Hte(i,u=>u.position+500>this.y||u.position+u.height>this.y),a=Hte(i,u=>u.position-500>this.y+this.viewportHeight,r),l=[];for(let u=r;u<=a;u++)l.push(i[u]);return l}fixScroll(){const e=Math.max(0,this.totalHeight-this.viewportHeight);this.y<0&&this._setYBlocks(0),this.y>e&&this._setYBlocks(e/150)}}return t.\u0275fac=function(e){return new(e||t)(qt(is))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();function Hte(t,n,e=0){let i=e,o=t.length-1;for(;i!==o;){let r=Math.floor((i+o)/2);n(t[r])?o=r:i=i===r?o:r}return i}w3([vs,f1("design:type",Object)],qh.prototype,"yBlocks",void 0),w3([vs,f1("design:type",Object)],qh.prototype,"x",void 0),w3([vs,f1("design:type",Object)],qh.prototype,"viewportHeight",void 0),w3([n1,f1("design:type",Object),f1("design:paramtypes",[])],qh.prototype,"y",null),w3([n1,f1("design:type",Object),f1("design:paramtypes",[])],qh.prototype,"totalHeight",null),w3([ns,f1("design:type",Function),f1("design:paramtypes",[Object]),f1("design:returntype",void 0)],qh.prototype,"_setYBlocks",null),w3([ns,f1("design:type",Function),f1("design:paramtypes",[]),f1("design:returntype",void 0)],qh.prototype,"recalcPositions",null),w3([ns,f1("design:type",Function),f1("design:paramtypes",[Object]),f1("design:returntype",void 0)],qh.prototype,"setViewport",null),w3([ns,f1("design:type",Function),f1("design:paramtypes",[Object,Object,Object]),f1("design:returntype",void 0)],qh.prototype,"scrollIntoView",null);let yUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-loading-component"]],inputs:{template:"template",node:"node"},decls:2,vars:5,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ke(0,WYe,2,0,"span",0),Fc(1,1)),2&e&&(J("ngIf",!i.template),W(1),J("ngTemplateOutlet",i.template)("ngTemplateOutletContext",wo(3,qYe,i.node)))},directives:[Yi,Sg],encapsulation:2}),t})(),wUe=(()=>{class t{constructor(e,i){this.elementRef=e,this.virtualScroll=i,this.setViewport=this.throttle(()=>{this.virtualScroll.setViewport(this.elementRef.nativeElement)},17),this.scrollEventHandler=this.setViewport.bind(this)}ngOnInit(){this.virtualScroll.init()}ngAfterViewInit(){setTimeout(()=>{this.setViewport(),this.virtualScroll.fireEvent({eventName:Dl.initialized})}),this.elementRef.nativeElement.addEventListener("scroll",this.scrollEventHandler)}ngOnDestroy(){this.virtualScroll.clear(),this.elementRef.nativeElement.removeEventListener("scroll",this.scrollEventHandler)}getTotalHeight(){return this.virtualScroll.isEnabled()&&this.virtualScroll.totalHeight+"px"||"auto"}throttle(e,i){let o=0;return function(){let r=Date.now();r-o>=i&&(e(),o=r)}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(qh))},t.\u0275cmp=vn({type:t,selectors:[["tree-viewport"]],features:[mo([qh])],ngContentSelectors:XYe,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(e,i){1&e&&(ls(),ke(0,$Ye,3,2,"ng-container",0)),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_],encapsulation:2}),t})(),oR=(()=>{class t{constructor(e,i){this.treeModel=e,this.treeDraggedElement=i,e.eventNames.forEach(o=>this[o]=new In),e.subscribeToState(o=>this.stateChange.emit(o))}set nodes(e){}set options(e){}set focused(e){this.treeModel.setFocus(e)}set state(e){this.treeModel.setState(e)}onKeydown(e){if(!this.treeModel.isFocused||["input","textarea"].includes(document.activeElement.tagName.toLowerCase()))return;const i=this.treeModel.getFocusedNode();this.treeModel.performKeyAction(i,e)}onMousedown(e){(function i(o,r){return!o||o.localName!==r&&i(o.parentElement,r)})(e.target,"tree-root")&&this.treeModel.setFocus(!1)}ngOnChanges(e){(e.options||e.nodes)&&this.treeModel.setData({options:e.options&&e.options.currentValue,nodes:e.nodes&&e.nodes.currentValue,events:this.pick(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}pick(e,i){return i.reduce((o,r)=>(e&&e.hasOwnProperty(r)&&(o[r]=e[r]),o),{})}}return t.\u0275fac=function(e){return new(e||t)(ue(is),ue(iR))},t.\u0275cmp=vn({type:t,selectors:[["Tree"],["tree-root"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,QYe,5),mr(o,ZYe,5),mr(o,KYe,5),mr(o,JYe,5)),2&e){let r;fi(r=gi())&&(i.loadingTemplate=r.first),fi(r=gi())&&(i.treeNodeTemplate=r.first),fi(r=gi())&&(i.treeNodeWrapperTemplate=r.first),fi(r=gi())&&(i.treeNodeFullTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&_o(eUe,5),2&e){let o;fi(o=gi())&&(i.viewportComponent=o.first)}},hostBindings:function(e,i){1&e&&et("keydown",function(r){return i.onKeydown(r)},!1,D5)("mousedown",function(r){return i.onMousedown(r)},!1,D5)},inputs:{nodes:"nodes",options:"options",focused:"focused",state:"state"},outputs:{toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",updateData:"updateData",initialized:"initialized",moveNode:"moveNode",copyNode:"copyNode",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",event:"event",stateChange:"stateChange"},features:[mo([is]),Yo],decls:5,vars:6,consts:[["viewport",""],[1,"angular-tree-component"],[3,"nodes","treeModel","templates",4,"ngIf"],["class","empty-tree-drop-slot",3,"dropIndex","node",4,"ngIf"],[3,"nodes","treeModel","templates"],[1,"empty-tree-drop-slot",3,"dropIndex","node"]],template:function(e,i){1&e&&(H(0,"tree-viewport",null,0)(2,"div",1),ke(3,nUe,1,8,"tree-node-collection",2),ke(4,iUe,1,2,"tree-node-drop-slot",3),G()()),2&e&&(W(2),po("node-dragging",i.treeDraggedElement.isDragging())("angular-tree-component-rtl",i.treeModel.options.rtl),W(1),J("ngIf",i.treeModel.roots),W(1),J("ngIf",i.treeModel.isEmptyTree()))},directives:function(){return[wUe,Yi,L_,Vte]},encapsulation:2}),t})(),MUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["TreeNode"],["tree-node"]],inputs:{node:"node",index:"index",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"class","tree-node","tree-node-expanded","tree-node-collapsed","tree-node-leaf","tree-node-active","tree-node-focused",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"dropIndex","node",4,"ngIf"],[3,"node","index","templates"],[3,"node","templates"],[3,"dropIndex","node"]],template:function(e,i){1&e&&ke(0,aUe,3,8,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:function(){return[E_,Yi,Vte,kUe,PUe,Sg]},encapsulation:2}),t})(),OUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-content"]],inputs:{node:"node",index:"index",template:"template"},decls:2,vars:7,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ke(0,sUe,2,1,"span",0),Fc(1,1)),2&e&&(J("ngIf",!i.template),W(1),J("ngTemplateOutlet",i.template)("ngTemplateOutletContext",M2(3,cUe,i.node,i.node,i.index)))},directives:[Yi,Sg],encapsulation:2}),t})(),Vte=(()=>{class t{onDrop(e){this.node.mouseAction("drop",e.event,{from:e.element,to:{parent:this.node,index:this.dropIndex}})}allowDrop(e,i){return this.node.options.allowDrop(e,{parent:this.node,index:this.dropIndex},i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["TreeNodeDropSlot"],["tree-node-drop-slot"]],inputs:{node:"node",dropIndex:"dropIndex"},decls:1,vars:2,consts:[[1,"node-drop-slot",3,"treeAllowDrop","allowDragoverStyling","treeDrop"]],template:function(e,i){1&e&&(H(0,"div",0),et("treeDrop",function(r){return i.onDrop(r)}),G()),2&e&&J("treeAllowDrop",i.allowDrop.bind(i))("allowDragoverStyling",!0)},directives:function(){return[fv]},encapsulation:2}),t})(),SUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-expander"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["class","toggle-children-wrapper",3,"toggle-children-wrapper-expanded","toggle-children-wrapper-collapsed","click",4,"ngIf"],["class","toggle-children-placeholder",4,"ngIf"],[1,"toggle-children-wrapper",3,"click"],[1,"toggle-children"],[1,"toggle-children-placeholder"]],template:function(e,i){1&e&&ke(0,uUe,3,2,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_,Yi],encapsulation:2}),t})(),PUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-children"]],inputs:{node:"node",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"tree-children","tree-children-no-padding",4,"treeAnimateOpen","treeAnimateOpenSpeed","treeAnimateOpenAcceleration","treeAnimateOpenEnabled"],[3,"nodes","templates","treeModel",4,"ngIf"],["class","tree-node-loading",3,"padding-left","template","node",4,"ngIf"],[3,"nodes","templates","treeModel"],[1,"tree-node-loading",3,"template","node"]],template:function(e,i){1&e&&ke(0,gUe,2,4,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:function(){return[E_,NUe,Yi,L_,yUe]},encapsulation:2}),t})();const EUe=Object.assign(function TUe(...t){return ns(...t)},ns),LUe=Object.assign(function AUe(...t){return n1(...t)},n1),Bte=Object.assign(function DUe(...t){return vs(...t)},vs);var iS=function(t,n,e,i){var a,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(n,e,r):a(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r},Cm=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let L_=(()=>{class t{constructor(){this._dispose=[]}get nodes(){return this._nodes}set nodes(e){this.setNodes(e)}get marginTop(){const e=this.viewportNodes&&this.viewportNodes.length&&this.viewportNodes[0];return(e&&e.parent?e.position-e.parent.position-e.parent.getSelfHeight():0)+"px"}setNodes(e){this._nodes=e}ngOnInit(){this.virtualScroll=this.treeModel.virtualScroll,this._dispose=[S_(()=>this.virtualScroll.getViewportNodes(this.nodes).map(e=>e.index),e=>{this.viewportNodes=e.map(i=>this.nodes[i])},{compareStructural:!0,fireImmediately:!0}),S_(()=>this.nodes,e=>{this.viewportNodes=this.virtualScroll.getViewportNodes(e)})]}ngOnDestroy(){this._dispose.forEach(e=>e())}trackNode(e,i){return i.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-collection"]],inputs:{nodes:"nodes",treeModel:"treeModel",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"node","index","templates",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","index","templates"]],template:function(e,i){1&e&&ke(0,_Ue,3,4,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_,$o,MUe],encapsulation:2}),t})();iS([Bte,Cm("design:type",Object)],L_.prototype,"_nodes",void 0),iS([Bte,Cm("design:type",Array)],L_.prototype,"viewportNodes",void 0),iS([LUe,Cm("design:type",String),Cm("design:paramtypes",[])],L_.prototype,"marginTop",null),iS([EUe,Cm("design:type",Function),Cm("design:paramtypes",[Object]),Cm("design:returntype",void 0)],L_.prototype,"setNodes",null);let kUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-wrapper"]],inputs:{node:"node",index:"index",templates:"templates"},decls:2,vars:8,consts:[["class","node-wrapper",3,"padding-left",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node-wrapper"],[3,"node",4,"ngIf"],[3,"node"],[1,"node-content-wrapper",3,"treeAllowDrop","allowDragoverStyling","treeDrag","treeDragEnabled","click","dblclick","mouseover","mouseout","contextmenu","treeDrop","treeDropDragOver","treeDropDragLeave","treeDropDragEnter"],[3,"node","index","template"]],template:function(e,i){1&e&&(ke(0,vUe,5,15,"div",0),Fc(1,1)),2&e&&(J("ngIf",!i.templates.treeNodeWrapperTemplate),W(1),J("ngTemplateOutlet",i.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",gy(3,Nte,i.node,i.node,i.index,i.templates)))},directives:function(){return[Yi,IUe,SUe,oS,fv,OUe,Sg]},encapsulation:2}),t})(),IUe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["tree-node-checkbox"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["type","checkbox",1,"tree-node-checkbox",3,"checked","indeterminate","click"]],template:function(e,i){1&e&&ke(0,bUe,2,2,"ng-container",0),2&e&&J("treeMobxAutorun",_i(1,T_))},directives:[E_],encapsulation:2}),t})();const Gte="is-dragging-over",Yte="is-dragging-over-disabled";let fv=(()=>{class t{constructor(e,i,o,r){this.el=e,this.renderer=i,this.treeDraggedElement=o,this.ngZone=r,this.allowDragoverStyling=!0,this.onDropCallback=new In,this.onDragOverCallback=new In,this.onDragLeaveCallback=new In,this.onDragEnterCallback=new In,this._allowDrop=(a,l)=>!0,this.dragOverEventHandler=this.onDragOver.bind(this),this.dragEnterEventHandler=this.onDragEnter.bind(this),this.dragLeaveEventHandler=this.onDragLeave.bind(this)}set treeAllowDrop(e){this._allowDrop=e instanceof Function?e:(i,o)=>e}allowDrop(e){return this._allowDrop(this.treeDraggedElement.get(),e)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("dragover",this.dragOverEventHandler),e.addEventListener("dragenter",this.dragEnterEventHandler),e.addEventListener("dragleave",this.dragLeaveEventHandler)})}ngOnDestroy(){let e=this.el.nativeElement;e.removeEventListener("dragover",this.dragOverEventHandler),e.removeEventListener("dragenter",this.dragEnterEventHandler),e.removeEventListener("dragleave",this.dragLeaveEventHandler)}onDragOver(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.addDisabledClass():void 0;this.onDragOverCallback.emit({event:e,element:this.treeDraggedElement.get()}),e.preventDefault(),this.allowDragoverStyling&&this.addClass()}onDragEnter(e){!this.allowDrop(e)||(e.preventDefault(),this.onDragEnterCallback.emit({event:e,element:this.treeDraggedElement.get()}))}onDragLeave(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.removeDisabledClass():void 0;this.onDragLeaveCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass()}onDrop(e){!this.allowDrop(e)||(e.preventDefault(),this.onDropCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass(),this.treeDraggedElement.set(null))}addClass(){this.renderer.addClass(this.el.nativeElement,Gte)}removeClass(){this.renderer.removeClass(this.el.nativeElement,Gte)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,Yte)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,Yte)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(yl),ue(iR),ue(oo))},t.\u0275dir=St({type:t,selectors:[["","treeDrop",""]],hostBindings:function(e,i){1&e&&et("drop",function(r){return i.onDrop(r)})},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),t})(),oS=(()=>{class t{constructor(e,i,o,r){this.el=e,this.renderer=i,this.treeDraggedElement=o,this.ngZone=r,this.dragEventHandler=this.onDrag.bind(this)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("drag",this.dragEventHandler)})}ngDoCheck(){this.renderer.setAttribute(this.el.nativeElement,"draggable",this.treeDragEnabled?"true":"false")}ngOnDestroy(){this.el.nativeElement.removeEventListener("drag",this.dragEventHandler)}onDragStart(e){e.dataTransfer.setData("text",e.target.id),this.treeDraggedElement.set(this.draggedElement),this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragStart",e)}onDrag(e){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("drag",e)}onDragEnd(){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragEnd"),this.treeDraggedElement.set(null)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(yl),ue(iR),ue(oo))},t.\u0275dir=St({type:t,selectors:[["","treeDrag",""]],hostBindings:function(e,i){1&e&&et("dragstart",function(r){return i.onDragStart(r)})("dragend",function(){return i.onDragEnd()})},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),t})(),NUe=(()=>{class t{constructor(e,i,o){this.renderer=e,this.templateRef=i,this.viewContainerRef=o}set isOpen(e){e?(this._show(),this.isEnabled&&!1===this._isOpen&&this._animateOpen()):this.isEnabled?this._animateClose():this._hide(),this._isOpen=!!e}_show(){this.innerElement||(this.innerElement=this.viewContainerRef.createEmbeddedView(this.templateRef).rootNodes[0])}_hide(){this.viewContainerRef.clear(),this.innerElement=null}_animateOpen(){let e=this.animateSpeed,i=this.animateAcceleration,o=0;this.renderer.setStyle(this.innerElement,"max-height","0"),setTimeout(()=>{const r=setInterval(()=>{if(!this._isOpen||!this.innerElement)return clearInterval(r);o+=e;const a=Math.round(o);this.renderer.setStyle(this.innerElement,"max-height",`${a}px`);const l=this.innerElement.getBoundingClientRect?this.innerElement.getBoundingClientRect().height:0;e*=i,i*=1.005,l{if(this._isOpen||!this.innerElement)return clearInterval(r);o-=e,this.renderer.setStyle(this.innerElement,"max-height",`${o}px`),e*=i,i*=1.005,o<=0&&(this.viewContainerRef.clear(),this.innerElement=null,clearInterval(r))},17)}}return t.\u0275fac=function(e){return new(e||t)(ue(yl),ue(Oc),ue(oc))},t.\u0275dir=St({type:t,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),t})(),rS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[],imports:[[va]]}),t})();function RUe(t,n){if(1&t){const e=Ln();H(0,"div",19)(1,"button",20),et("click",function(){Dt(e);const o=Ae(2);return o.openActivityForm(o.ActivityType.default)}),H(2,"mat-icon",21),de(3," add "),G(),de(4," Create Activity "),G(),H(5,"button",22)(6,"mat-icon",21),de(7,"arrow_drop_down "),G()(),H(8,"mat-menu",23,24)(10,"a",25),et("click",function(){Dt(e);const o=Ae(2);return o.openActivityForm(o.ActivityType.bpOnly)}),de(11," Create New BP Annotation "),G(),H(12,"a",25),et("click",function(){Dt(e);const o=Ae(2);return o.openActivityForm(o.ActivityType.ccOnly)}),de(13," Create New CC Annotation "),G()()()}if(2&t){const e=Di(9);W(5),J("matMenuTriggerFor",e)}}const jte=function(){return["fas","pen"]};function zUe(t,n){if(1&t){const e=Ln();H(0,"div",26)(1,"div",27)(2,"strong"),de(3,"Title: "),G(),de(4),G(),H(5,"div",28),et("click",function(){return Dt(e),Ae(2).openCamForm()}),Qe(6,"fa-icon",6),G()()}if(2&t){const e=Ae(2);W(4),Nt("",e.cam.title," "),W(2),J("icon",_i(2,jte))}}const FUe=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},HUe=function(){return["fas","tasks"]};function VUe(t,n){if(1&t){const e=Ln();H(0,"div",29)(1,"mat-chip",30)(2,"div",31),Qe(3,"fa-icon",6),G(),H(4,"div",32),de(5),G(),H(6,"div",28),et("click",function(){return Dt(e),Ae(2).openCamForm()}),Qe(7,"fa-icon",6),G()()()}if(2&t){const e=Ae(2);W(1),J("ngClass",M2(4,FUe,"development"===e.cam.state.name,"production"===e.cam.state.name,"review"===e.cam.state.name)),W(2),J("icon",_i(8,HUe)),W(2),Nt(" ",e.cam.state.label," "),W(2),J("icon",_i(9,jte))}}const BUe=function(){return["fas","calendar-day"]};function GUe(t,n){if(1&t){const e=Ln();H(0,"div",33)(1,"mat-chip",34),et("click",function(){return Dt(e),Ae(2).openCamForm()}),H(2,"div",31),Qe(3,"fa-icon",6),G(),H(4,"div",32),de(5),G()()()}if(2&t){const e=Ae(2);W(3),J("icon",_i(2,BUe)),W(2),Nt(" ",e.cam.date," ")}}const YUe=function(){return["fas","user"]};function UUe(t,n){if(1&t){const e=Ln();H(0,"mat-chip",35),et("click",function(){return Dt(e),Ae(2).openCamForm()}),H(1,"div",31),Qe(2,"fa-icon",6),G(),H(3,"div",32),de(4),G()()}if(2&t){const e=n.$implicit;W(2),J("icon",_i(2,YUe)),W(2),Nt(" ",e.name," ")}}const jUe=function(){return["fas","comment"]},WUe=function(){return["fas","clone"]},qUe=function(){return["fas","cog"]};function $Ue(t,n){if(1&t){const e=Ln();H(0,"div",1),ke(1,RUe,14,1,"div",2),ke(2,zUe,7,3,"div",3),H(3,"div",4)(4,"button",5),et("click",function(){return Dt(e),Ae().openCamForm()}),Qe(5,"fa-icon",6),H(6,"div",7),de(7),G()()(),H(8,"div",8)(9,"button",9),et("click",function(){return Dt(e),Ae().openCopyModel()}),Qe(10,"fa-icon",6),G()(),ke(11,VUe,8,10,"div",10),ke(12,GUe,6,3,"div",11),H(13,"div",12)(14,"mat-chip-list"),ke(15,UUe,5,3,"mat-chip",13),G()(),H(16,"div",14)(17,"button",15),de(18," EXPORT AS "),G(),H(19,"mat-menu",null,16)(21,"a",17),de(22," GPAD "),G(),H(23,"a",17),de(24," OWL "),G()()(),H(25,"button",18),et("click",function(){return Dt(e),Ae().openSettings()}),Qe(26,"fa-icon",6),G()()}if(2&t){const e=Di(20),i=Ae();W(1),J("ngIf",i.noctuaCommonMenuService.selectedMiddlePanel===i.RightPanel.camTable&&i.camToolbarOptions.showCreateButton),W(1),J("ngIf",i.cam.title),W(2),Ro("matTooltip",null==i.cam?null:i.cam.comment),J("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(17,jUe)),W(2),Nt(" ",null==i.cam?null:i.cam.comments.length," "),W(2),J("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(18,WUe)),W(1),J("ngIf",i.cam.state),W(1),J("ngIf",i.cam.date),W(3),J("ngForOf",i.cam.contributors),W(2),J("matMenuTriggerFor",e),W(4),J("href",null==i.cam||null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.gpadUrl,ao),W(2),J("href",null==i.cam||null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.owlUrl,ao),W(3),J("icon",_i(19,qUe))}}let rR=(()=>{class t{constructor(e,i,o,r){this.camService=e,this.noctuaActivityFormService=i,this.noctuaFormConfigService=o,this.noctuaCommonMenuService=r,this.ActivityType=so,this.LeftPanel=a2,this.MiddlePanel=Ju,this.RightPanel=m3,this._unsubscribeAll=new N}ngOnInit(){}openGraph(){this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camGraph)}openTable(){this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camTable)}openPreview(){this.noctuaCommonMenuService.selectMiddlePanel(Ju.camPreview)}openLeftDrawer(e){this.noctuaCommonMenuService.selectLeftPanel(e)}selectMiddlePanel(e){this.noctuaCommonMenuService.selectMiddlePanel(e)}openRightDrawer(e){this.noctuaCommonMenuService.selectRightPanel(e),this.noctuaCommonMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaCommonMenuService.toggleLeftDrawer(e)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openSettings(){this.openRightDrawer(m3.graphSettings)}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(a2.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(a2.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(a2.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(Ts),ue(Co),ue(ul))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-toolbar"]],inputs:{cam:"cam",camToolbarOptions:["options","camToolbarOptions"]},decls:1,vars:1,consts:[["class","noc-cam-heading","fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-heading"],["class","","fxFlex","180px",4,"ngIf"],["class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-br","noc-bl","px-4"],["mat-icon-button","",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],[1,"noc-comments-badge"],[1,"noc-br","px-4"],["mat-icon-button","","color","","matTooltip","Make a copy of this model",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltipPosition","matTooltipShowDelay","click"],["class","noc-model-state","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-date noc-br mr-8","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxFlex","115px","fxLayout","row","fxLayoutAlign","start center"],["mat-stroked-button","","color","primary",1,"noc-edit-button","noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],["exportMenu","matMenu"],["target","_blank","mat-menu-item","",3,"href"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"click"],["fxFlex","180px",1,""],["mat-flat-button","","color","primary",1,"noc-rounded-button","noc-half-button","noc-r","noc-sm",3,"click"],[1,""],["mat-flat-button","","fxFlex","35px","color","primary",1,"noc-rounded-button","noc-half-button","noc-l","noc-sm","mr-8","p-0",3,"matMenuTriggerFor"],["xPosition","before"],["createOptions","matMenu"],["mat-menu-item","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],[1,"text-truncate","pr-8"],[1,"noc-icon-action",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-state-chip",3,"ngClass"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date","noc-br","mr-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-date-chip",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"click"]],template:function(e,i){1&e&&ke(0,$Ue,27,20,"div",0),2&e&&J("ngIf",i.cam)},directives:[Yi,ko,Oo,So,Fo,Ir,il,Ql,nl,ps,Tl,T2,ds,ac,A6,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] noc-cam-table[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] noc-activity-connector[_ngcontent-%COMP%]{display:block;width:600px;min-width:600px;max-width:600px}[_nghost-%COMP%] noc-graph-settings[_ngcontent-%COMP%]{display:block;width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] noc-graph-activity-table[_ngcontent-%COMP%]{display:block;min-width:400px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]{font-size:18px;color:#5872a7}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]:hover{font-size:20px;color:#3b5998}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;margin-right:5px;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;color:#798fb84d}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}']}),t})();const vm="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function Wte(t,n,e,i){const o=n.querySelectorAll(t);if(o.length){const r=e.querySelectorAll(t);for(let a=0;a{i[o]=(e[o]||0)-(n[o]||0)}),i}const Kte="resize-active";let tje=(()=>{class t{constructor(e,i,o,r){this.platformId=e,this.renderer=i,this.elm=o,this.zone=r,this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Qte,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new In,this.resizing=new In,this.resizeEnd=new In,this.mouseup=new N,this.mousedown=new N,this.mousemove=new N,this.destroy$=new N,this.pointerEventListeners=D_.getInstance(i,r)}ngOnInit(){const e=kr(this.pointerEventListeners.pointerDown,this.mousedown),i=kr(this.pointerEventListeners.pointerMove,this.mousemove).pipe(Ps(({event:f})=>{if(r)try{f.preventDefault()}catch(M){}}),_l()),o=kr(this.pointerEventListeners.pointerUp,this.mouseup);let r;const a=()=>{r&&r.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(r.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},l=()=>Object.assign(Object.assign({},Qte),this.resizeCursors);e.pipe(da(f=>{function M(ie){return{clientX:ie.clientX-f.clientX,clientY:ie.clientY-f.clientY}}const T=()=>{const ie={x:1,y:1};return r&&(this.resizeSnapGrid.left&&r.edges.left?ie.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&r.edges.right&&(ie.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&r.edges.top?ie.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&r.edges.bottom&&(ie.y=+this.resizeSnapGrid.bottom)),ie};function U(ie,se){return{x:Math.ceil(ie.clientX/se.x),y:Math.ceil(ie.clientY/se.y)}}return kr(i.pipe(Ja(1)).pipe(it(ie=>[,ie])),i.pipe(function XUe(){return ve((t,n)=>{let e,i=!1;t.subscribe($e(n,o=>{const r=e;e=o,i&&n.next([r,o]),i=!0}))})}())).pipe(it(([ie,se])=>[ie&&M(ie),M(se)])).pipe(ca(([ie,se])=>{if(!ie)return!0;const Me=T(),we=U(ie,Me),He=U(se,Me);return we.x!==He.x||we.y!==He.y})).pipe(it(([,ie])=>{const se=T();return{clientX:Math.round(ie.clientX/se.x)*se.x,clientY:Math.round(ie.clientY/se.y)*se.y}})).pipe(Yn(kr(o,e)))})).pipe(ca(()=>!!r)).pipe(it(({clientX:f,clientY:M})=>Xte(r.startingRect,r.edges,f,M))).pipe(ca(f=>this.allowNegativeResizes||!!(f.height&&f.width&&f.height>0&&f.width>0))).pipe(ca(f=>!this.validateResize||this.validateResize({rectangle:f,edges:aS({edges:r.edges,initialRectangle:r.startingRect,newRectangle:f})})),Yn(this.destroy$)).subscribe(f=>{r&&r.clonedNode&&(this.renderer.setStyle(r.clonedNode,"height",`${f.height}px`),this.renderer.setStyle(r.clonedNode,"width",`${f.width}px`),this.renderer.setStyle(r.clonedNode,"top",`${f.top}px`),this.renderer.setStyle(r.clonedNode,"left",`${f.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:aS({edges:r.edges,initialRectangle:r.startingRect,newRectangle:f}),rectangle:f})}),r.currentRect=f}),e.pipe(it(({edges:f})=>f||{}),ca(f=>Object.keys(f).length>0),Yn(this.destroy$)).subscribe(f=>{r&&a();const M=function KUe(t,n){let e=0,i=0;const o=t.nativeElement.style,a=["transform","-ms-transform","-moz-transform","-o-transform"].map(l=>o[l]).find(l=>!!l);if(a&&a.includes("translate")&&(e=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),i=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===n)return{height:t.nativeElement.offsetHeight,width:t.nativeElement.offsetWidth,top:t.nativeElement.offsetTop-i,bottom:t.nativeElement.offsetHeight+t.nativeElement.offsetTop-i,left:t.nativeElement.offsetLeft-e,right:t.nativeElement.offsetWidth+t.nativeElement.offsetLeft-e};{const l=t.nativeElement.getBoundingClientRect();return{height:l.height,width:l.width,top:l.top-i,bottom:l.bottom-i,left:l.left-e,right:l.right-e,scrollTop:t.nativeElement.scrollTop,scrollLeft:t.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);r={edges:f,startingRect:M,currentRect:M};const T=l(),U=Zte(r.edges,T);this.renderer.setStyle(document.body,"cursor",U),this.setElementClass(this.elm,Kte,!0),this.enableGhostResize&&(r.clonedNode=function QUe(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();return n.removeAttribute("id"),e.forEach(o=>{o.removeAttribute("id")}),"canvas"===i?$te(t,n):("input"===i||"select"===i||"textarea"===i)&&qte(t,n),Wte("canvas",t,n,$te),Wte("input, textarea, select",t,n,qte),n}(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(r.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(r.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(r.clonedNode,"left",`${r.startingRect.left}px`),this.renderer.setStyle(r.clonedNode,"top",`${r.startingRect.top}px`),this.renderer.setStyle(r.clonedNode,"height",`${r.startingRect.height}px`),this.renderer.setStyle(r.clonedNode,"width",`${r.startingRect.width}px`),this.renderer.setStyle(r.clonedNode,"cursor",Zte(r.edges,T)),this.renderer.addClass(r.clonedNode,"resize-ghost-element"),r.clonedNode.scrollTop=r.startingRect.scrollTop,r.clonedNode.scrollLeft=r.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:aS({edges:f,initialRectangle:M,newRectangle:M}),rectangle:Xte(M,{},0,0)})})}),o.pipe(Yn(this.destroy$)).subscribe(()=>{r&&(this.renderer.removeClass(this.elm.nativeElement,Kte),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:aS({edges:r.edges,initialRectangle:r.startingRect,newRectangle:r.currentRect}),rectangle:r.currentRect})}),a(),r=null)})}ngOnDestroy(){ll(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(e,i,o){o?this.renderer.addClass(e.nativeElement,i):this.renderer.removeClass(e.nativeElement,i)}}return t.\u0275fac=function(e){return new(e||t)(ue(Hc),ue(yl),ue(Ti),ue(oo))},t.\u0275dir=St({type:t,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]}),t})();class D_{constructor(n,e){this.pointerDown=new Wt(i=>{let o,r;return e.runOutsideAngular(()=>{o=n.listen("document","mousedown",a=>{i.next({clientX:a.clientX,clientY:a.clientY,event:a})}),vm&&(r=n.listen("document","touchstart",a=>{i.next({clientX:a.touches[0].clientX,clientY:a.touches[0].clientY,event:a})}))}),()=>{o(),vm&&r()}}).pipe(_l()),this.pointerMove=new Wt(i=>{let o,r;return e.runOutsideAngular(()=>{o=n.listen("document","mousemove",a=>{i.next({clientX:a.clientX,clientY:a.clientY,event:a})}),vm&&(r=n.listen("document","touchmove",a=>{i.next({clientX:a.targetTouches[0].clientX,clientY:a.targetTouches[0].clientY,event:a})}))}),()=>{o(),vm&&r()}}).pipe(_l()),this.pointerUp=new Wt(i=>{let o,r,a;return e.runOutsideAngular(()=>{o=n.listen("document","mouseup",l=>{i.next({clientX:l.clientX,clientY:l.clientY,event:l})}),vm&&(r=n.listen("document","touchend",l=>{i.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}),a=n.listen("document","touchcancel",l=>{i.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}))}),()=>{o(),vm&&(r(),a())}}).pipe(_l())}static getInstance(n,e){return D_.instance||(D_.instance=new D_(n,e)),D_.instance}}let Jte=(()=>{class t{constructor(e,i,o,r){this.renderer=e,this.element=i,this.zone=o,this.resizableDirective=r,this.resizeEdges={},this.eventListeners={},this.destroy$=new N}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),vm&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),kr(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,i,o){e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",r=>{this.onMousemove(r,r.targetTouches[0].clientX,r.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",r=>{this.onMousemove(r,r.clientX,r.clientY)})),this.resizable.mousedown.next({clientX:i,clientY:o,edges:this.resizeEdges})}onMouseup(e,i){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:i,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(e,i,o){this.resizable.mousemove.next({clientX:i,clientY:o,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return Jc(this.element.nativeElement,e).pipe(Yn(this.destroy$))}}return t.\u0275fac=function(e){return new(e||t)(ue(yl),ue(Ti),ue(oo),ue(tje,8))},t.\u0275dir=St({type:t,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),t})(),nje=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();var ho=C(32960);const ije=C(61759),ene=C(33837),oje=C(99572).jquery,rje=C(42023);let aje=(()=>{class t{constructor(e,i,o){this.noctuaFormConfigService=e,this.noctuaUserService=i,this.curieService=o,this.minervaDefinitionName=Er.globalMinervaDefinitionName,this.separator="@@",this.cams=[],this.loading=!1,this.searchSummary={},this.onCamsChanged=new Io({}),this.onCamChanged=new Io({}),this.curieUtil=this.curieService.getCurieUtil()}registerManager(){let e=new oje(ije);e.method("POST");let i=new rje(Er.globalBaristaLocation,this.minervaDefinitionName,null,e,"async");return i.register("prerun",()=>{}),i.register("postrun",()=>{},9),i.register("manager_error",u=>{console.log("There was a manager error ("+u.message_type()+"): "+u.message())},10),i.register("warning",u=>{alert("Warning: "+u.message()+"; your operation was likely not performed")},10),i.register("error",u=>{u.message()&&-1!==u.message().indexOf("InsufficientPermissionsException")?alert("Error: it seems like you do not have permission to perform that operation. Did you remember to login?"):u.message()&&-1!==u.message().indexOf("token")?alert("Error: it seems like you have a bad token..."):(console.log("error:",u,u.message_type(),u.message()),u.message().includes("UnknownIdentifierException"))},10),i.register("meta",function(u){console.log("---------",u)},10),i}foo(e){let i=this.registerManager();var o=new ene.request("meta","sparql");o.special("query",e);var r=new ene.request_set("MYTOKEN",null);r.add(o),i.request_with(r)}}return t.\u0275fac=function(e){return new(e||t)(qt(Co),qt(yr),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const sje=C(6268);let cje=(()=>{class t{constructor(e,i,o,r,a){this.noctuaFormConfigService=e,this.noctuaUserService=i,this.httpClient=o,this.sparqlMinervaService=r,this.curieService=a,this.minervaDefinitionName=Er.globalMinervaDefinitionName,this.separator="@@",this.baseUrl=Er.spaqrlApiUrl,this.wikidataSparqlUrl=Er.wikidataSparqlUrl,this.cams=[],this.loading=!1,this.linker=new sje.linker,this.searchSummary={},this.curieUtil=this.curieService.getCurieUtil()}getPubmedInfo(e){const i=this,o=this.buildPubmedInfoQuery(e),r=`${this.wikidataSparqlUrl}?query=${encodeURIComponent(o)}&formart=json`;return this.httpClient.get(r).pipe(it(a=>a.results),it(a=>a.bindings),Ps(a=>console.dir(a)),it(a=>this.addArticles(a,e)),Ps(a=>console.dir(a)),Yu(()=>{i.loading=!1}))}addArticles(e,i){const o=this,r=[];return e.forEach(a=>{const l=new TN;l.title=a.title.value,l.author=a.author.value,l.link=o.linker.url(`${Ht.evidenceDB.options.pmid.name}:${i}`),a.date&&(l.date=a.date.value),r.push(l)}),r}getAllContributors(){const e=this.buildAllContributorsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(it(o=>o.results),it(o=>o.bindings),Ps(o=>console.dir(o)),it(o=>this.addContributor(o)),Ps(o=>console.dir(o)))}getAllOrganisms(){const e=this.buildOrganismsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(it(o=>o.results),it(o=>o.bindings),Ps(o=>console.dir(o)),it(o=>this.addOrganism(o)),Ps(o=>console.dir(o)))}getAllGroups(){const e=this.buildAllGroupsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(it(o=>o.results),it(o=>o.bindings),Ps(o=>console.dir(o)),it(o=>this.addGroup(o)),Ps(o=>console.dir(o)))}getModelMeta(e){const i=this.buildModelMetaQuery(e),o=`${this.baseUrl}?query=${encodeURIComponent(i)}`;return this.httpClient.get(o).pipe(it(r=>r.results),it(r=>r.bindings),Ps(r=>console.dir(r)),it(r=>this.addCam(r)),Ps(r=>console.dir(r)))}getModelTerms(e){const i=this.buildModelTermsQuery(e),o=`${this.baseUrl}?query=${encodeURIComponent(i)}`;return this.httpClient.get(o).pipe(it(r=>r.results),it(r=>r.bindings),Ps(r=>console.dir(r)),it(r=>this.addCamTerms(r)),Ps(r=>console.dir(r)))}addCam(e){const i=this,o=[];return e.forEach(r=>{const a=i.curieUtil.getCurie(r.model.value),l=new LO;l.graph=null,l.id=a,l.state=i.noctuaFormConfigService.findModelState(r.modelState.value),l.title=r.modelTitle.value,l.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(a)}),r.date&&(l.date=r.date.value),r.groups&&null!==r.groups.value&&(l.groups=r.groups.value.split(i.separator).map(function(u){return(0,Zt.find)(i.noctuaUserService.groups,M=>M.url===u)||{url:u}})),r.contributors&&""!==r.contributors.value&&(l.contributors=r.contributors.value.split(i.separator).map(u=>(0,Zt.find)(i.noctuaUserService.contributors,M=>M.orcid===u)||{orcid:u})),o.push(l)}),o}addCamTerms(e){const i=this,o=[];return e.forEach(r=>{const a=new Pi(i.curieUtil.getCurie(r.id.value),r.label.value);o.push(a)}),o}addContributor(e){const i=[];return e.forEach(o=>{const r=new h_;r.orcid=o.orcid.value,r.name=o.name.value,r.cams=o.cams.value,r.group={url:o.affiliations.value},i.push(r)}),i}addGroup(e){const i=[];return e.forEach(o=>{i.push({url:o.url.value,name:o.name.value,cams:o.cams.value,contributorsCount:o.contributors.value,contributors:o.orcids.value.split("@@").map(function(r){return{orcid:r}})})}),i}addOrganism(e){const i=[];return e.forEach(o=>{const r=new WVe;r.taxonIri=o.taxonIri.value,r.taxonName=o.taxonName.value,r.cams=o.cams.value,i.push(r)}),i}addGroupContributors(e,i){(0,Zt.each)(e,o=>{(0,Zt.each)(o.contributors,r=>{const a=(0,Zt.find)(i,{orcid:r.orcid});r.name=a.name,r.cams=a.cams})})}buildAllContributorsQuery(){const e=new ho.Query;return e.prefix((0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("has_affiliation","")).select("?orcid ?name",'(GROUP_CONCAT(distinct ?organization;separator="@@") AS ?organizations)','(GROUP_CONCAT(distinct ?affiliation;separator="@@") AS ?affiliations)',"(COUNT(distinct ?cam) AS ?cams)").where((0,ho.triple)("?cam","",""),(0,ho.triple)("?cam","dc:contributor","?orcid"),"BIND( IRI(?orcid) AS ?orcidIRI)",(0,ho.optional)((0,ho.triple)("?orcidIRI","rdfs:label","?name"),(0,ho.triple)("?orcidIRI","","?organization"),(0,ho.triple)("?orcidIRI","has_affiliation:","?affiliation")),"BIND(IF(bound(?name), ?name, ?orcid) as ?name)").groupBy("?orcid ?name").orderBy("?name","ASC"),e.build()}buildOrganismsQuery(){const e=new ho.Query,i=new ho.Query;return i.graph("?model","?model metago:graphType metago:noctuaCam",(0,ho.triple)("?s","enabled_by:","?entity"),(0,ho.triple)("?entity","rdf:type","?identifier"),"FILTER(?identifier != owl:NamedIndividual)"),e.prefix((0,ho.prefix)("rdf",""),(0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("owl",""),(0,ho.prefix)("enabled_by",""),(0,ho.prefix)("in_taxon","")).select("distinct ?taxonIri ?taxonName","(COUNT(distinct ?model) AS ?cams)").where(i,(0,ho.triple)("?identifier","rdfs:subClassOf","?v0"),(0,ho.triple)("?v0","owl:onProperty","in_taxon:"),(0,ho.triple)("?v0","owl:someValuesFrom","?taxonIri"),(0,ho.triple)("?taxonIri","rdfs:label","?taxonName")).groupBy("?taxonIri ?taxonName").orderBy("?taxonName","ASC"),e.build()}buildAllGroupsQuery(){return'\n PREFIX metago: \n PREFIX dc: \n PREFIX rdfs: \n PREFIX has_affiliation: \n PREFIX hint: \n\n SELECT distinct ?name ?url (GROUP_CONCAT(distinct ?orcidIRI;separator="@@") AS ?orcids) \n (COUNT(distinct ?orcidIRI) AS ?contributors)\n (COUNT(distinct ?cam) AS ?cams)\n WHERE \n {\n ?cam metago:graphType metago:noctuaCam .\n ?cam dc:contributor ?orcid .\n BIND( IRI(?orcid) AS ?orcidIRI ). \n ?orcidIRI has_affiliation: ?url .\n ?url rdfs:label ?name . \n hint:Prior hint:runLast true .\n }\n GROUP BY ?url ?name'}buildPubmedInfoQuery(e){const i=new ho.Query;return i.prefix((0,ho.prefix)("wd",""),(0,ho.prefix)("wdt","")).select("?rtcl ?title ?author ?journal ?date").where((0,ho.triple)("?rtcl","wdt:P698",`"${e}"`),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P1476","?title")),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P2093","?author")),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P1433","?journal")),(0,ho.optional)((0,ho.triple)("?rtcl","wdt:P577","?date"))),i.build()}buildModelMetaQuery(e){const i=new ho.Query,o=new ho.Query;return o.graph("?model","?model dc:date ?date; dc:title ?modelTitle; modelState: ?modelState; providedBy: ?providedBy; dc:contributor ?orcid"),i.prefix((0,ho.prefix)("rdf",""),(0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("gomodel",""),(0,ho.prefix)("owl",""),(0,ho.prefix)("GO",""),(0,ho.prefix)("BP",""),(0,ho.prefix)("MF",""),(0,ho.prefix)("CC",""),(0,ho.prefix)("modelState",""),(0,ho.prefix)("providedBy",""),(0,ho.prefix)("vcard",""),(0,ho.prefix)("has_affiliation",""),(0,ho.prefix)("enabled_by",""),(0,ho.prefix)("evidence",""),(0,ho.prefix)("in_taxon",""),(0,ho.prefix)("obo","")).select("distinct ?model ?modelTitle ?modelState ?date",'(GROUP_CONCAT(distinct ?entity;separator="@@") as ?entities)','(GROUP_CONCAT(distinct ?orcid;separator="@@") as ?contributors)','(GROUP_CONCAT(distinct ?providedBy;separator="@@") as ?groups)').where(`VALUES ?model { ${e} }`,o).groupBy("?model ?modelTitle ?modelState ?date"),i.build()}buildModelTermsQuery(e){const i=new ho.Query,o=new ho.Query;return o.graph("?model",(0,ho.triple)("?entity","rdf:type","owl:NamedIndividual"),(0,ho.triple)("?entity","rdf:type","?id")),i.prefix((0,ho.prefix)("rdf",""),(0,ho.prefix)("rdfs",""),(0,ho.prefix)("dc",""),(0,ho.prefix)("metago",""),(0,ho.prefix)("gomodel",""),(0,ho.prefix)("definition",""),(0,ho.prefix)("owl",""),(0,ho.prefix)("GO",""),(0,ho.prefix)("BP",""),(0,ho.prefix)("MF",""),(0,ho.prefix)("CC",""),(0,ho.prefix)("modelState",""),(0,ho.prefix)("providedBy",""),(0,ho.prefix)("vcard",""),(0,ho.prefix)("has_affiliation",""),(0,ho.prefix)("enabled_by",""),(0,ho.prefix)("evidence",""),(0,ho.prefix)("in_taxon",""),(0,ho.prefix)("obo","")).select("distinct ?goclasses ?id ?label ?definition").where(`VALUES ?model { ${e} }`,o,"VALUES ?goclasses { BP: MF: CC: }",(0,ho.triple)("?id","rdfs:subClassOf+","?goclasses"),(0,ho.triple)("?id","rdfs:label","?label"),(0,ho.triple)("?id","definition:"," ?definition")).groupBy("?goclasses ?id ?label ?definition"),i.build()}getXSD(e){return'"'+e+'"^^xsd:string'}}return t.\u0275fac=function(e){return new(e||t)(qt(Co),qt(yr),qt(ru),qt(aje),qt(p_))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lje(t,n){1&t&&(H(0,"div",34),de(1," Log in to Continue "),G())}function dje(t,n){if(1&t&&(H(0,"mat-option",35),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function uje(t,n){if(1&t&&(H(0,"mat-option",35),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function hje(t,n){1&t&&(H(0,"div",36),de(1," No comments yet "),G())}const pje=function(){return["far","trash-alt"]};function fje(t,n){if(1&t){const e=Ln();H(0,"div",37)(1,"div",38)(2,"div",39)(3,"mat-form-field",40)(4,"mat-label"),de(5,"Comment"),G(),Qe(6,"textarea",41),G(),H(7,"button",42),et("click",function(){const r=Dt(e).index;return Ae(2).deleteComment(r)}),Qe(8,"fa-icon",43),G()()()()}if(2&t){const e=n.index;W(6),J("formControlName",e),W(2),J("icon",_i(2,pje))}}function gje(t,n){if(1&t&&(H(0,"div",44),de(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function mje(t,n){if(1&t&&(H(0,"span",45)(1,"div",46),de(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function _je(t,n){if(1&t){const e=Ln();H(0,"div",7),ke(1,lje,2,0,"div",8),H(2,"div",9)(3,"div",10)(4,"div",11),de(5," Model Information "),G(),Qe(6,"span",3),G(),H(7,"div",12)(8,"div",13)(9,"mat-form-field",14)(10,"mat-label"),de(11,"Title"),G(),Qe(12,"textarea",15),G()(),H(13,"div",13)(14,"mat-form-field",14)(15,"mat-label"),de(16,"State"),G(),H(17,"mat-select",16),ke(18,dje,2,2,"mat-option",17),G()()(),H(19,"div",13)(20,"mat-form-field",14)(21,"mat-label"),de(22,"Group"),G(),H(23,"mat-select",18),ke(24,uje,2,2,"mat-option",17),G()()()()(),H(25,"div",9)(26,"div",19)(27,"div",11),de(28," Model Comments "),G(),Qe(29,"span",3),H(30,"button",20),et("click",function(){return Dt(e),Ae().addComment()}),de(31," Add "),G()(),H(32,"div",12),ke(33,hje,2,0,"div",21),H(34,"div",13),ke(35,fje,9,3,"div",22),G()()(),H(36,"div",9)(37,"div",10)(38,"div",11),de(39," Model Information "),G(),Qe(40,"span",3),G(),H(41,"div",12)(42,"div",23)(43,"div",24)(44,"div",25)(45,"div",26),de(46,"Title:"),G(),de(47),G(),H(48,"div",27)(49,"div",26),de(50,"State:"),G(),de(51),G(),H(52,"div",28)(53,"div",25)(54,"div",26),de(55,"Contributors:"),G(),ke(56,gje,2,4,"div",29),G(),H(57,"div",25)(58,"div",26),de(59,"Groups:"),G(),ke(60,mje,3,4,"span",30),G(),H(61,"div",27)(62,"div",26),de(63,"Open In:"),G(),H(64,"a",31),de(65," Pathway Editor "),G(),H(66,"span"),de(67,"\u2022"),G(),H(68,"a",32),de(69," Form Editor "),G(),H(70,"span"),de(71,"\u2022"),G(),H(72,"a",33),de(73," Graph Editor "),G()()()()()()()()}if(2&t){const e=Ae();W(1),J("ngIf",!e.noctuaUserService.user),W(17),J("ngForOf",e.noctuaFormConfigService.modelState.options),W(6),J("ngForOf",null==e.noctuaUserService.user?null:e.noctuaUserService.user.groups),W(9),J("ngIf",0===(null==e.cam?null:e.cam.comments.length)),W(2),J("ngForOf",null==e.commentFormArray?null:e.commentFormArray.controls),W(12),Nt(" ",e.cam.title," "),W(4),Nt(" ",null==e.cam.state?null:e.cam.state.label," "),W(5),J("ngForOf",e.cam.contributors),W(4),J("ngForOf",e.cam.groups),W(4),J("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.graphEditorUrl,ao)}}function Cje(t,n){if(1&t){const e=Ln();H(0,"div",47),Qe(1,"span",3),H(2,"button",48),et("click",function(){return Dt(e),Ae().save()}),de(3,"Save"),G()()}if(2&t){const e=Ae();W(2),J("disabled",!e.camFormGroup.valid)}}let sS=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.sparqlService=i,this.camService=o,this.bbopGraphService=r,this.noctuaFormConfigService=a,this._unsubscribeAll=new N}ngOnInit(){this.camFormSub=this.camService.camFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.camFormGroup=e,this.commentFormArray=e.get("commentFormArray"))}),this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)})}addComment(){this.commentFormArray.push(new Lo)}deleteComment(e){this.commentFormArray.removeAt(e),this.save()}save(){const e=this.camFormGroup.value,i={title:e.title,state:e.state.name,comments:e.commentFormArray};this.bbopGraphService.saveModelGroup(this.cam,e.group.id),this.bbopGraphService.saveCamAnnotations(this.cam,i)}termDisplayFn(e){return e?e.label:void 0}close(){this.panelDrawer.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(cje),ue(Zr),ue(Yc),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-form"]],inputs:{panelDrawer:"panelDrawer"},decls:11,vars:3,consts:[["name","camFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["class","noc-drawer-body w-100-p","noctuaPerfectScrollbar","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","noc-drawer-footer noc-submit-row",4,"ngIf"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["fxLayout","column",1,"p-4"],["appearance","outline",1,"noc-sm"],["type","text","matInput","","formControlName","title","rows","2"],["placeholder","","formControlName","state","required",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","","formControlName","group","required",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","pr-8"],["mat-stroked-button","","type","submit","color","primary",1,"noc-xs","noc-rounded-button",3,"click"],["class","noc-no-info",4,"ngIf"],["formArrayName","commentFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[3,"value"],[1,"noc-no-info"],["formArrayName","commentFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["fxFlex","",1,"noc-form-field-container"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","rows","2",3,"formControlName"],["mat-icon-button","",1,"noc-delete-float-button",3,"click"],[3,"icon"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"disabled","click"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Model Details"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),ke(9,_je,74,12,"div",5),ke(10,Cje,4,1,"div",6),G()),2&e&&(J("formGroup",i.camFormGroup),W(9),J("ngIf",i.camFormGroup),W(1),J("ngIf",i.camFormGroup))},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,Yi,ts,id,yd,E2,ed,Pl,Xl,qg,sM,$o,J1,k0,ps,Tl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:350px;min-width:350px;max-width:350px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%] .noc-delete-float-button[_ngcontent-%COMP%]{margin-top:5px;visibility:hidden}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]:hover .noc-delete-float-button[_ngcontent-%COMP%]{visibility:visible}']}),t})();function vje(t,n){if(1&t&&(H(0,"div",17)(1,"div",18)(2,"div"),de(3),G()(),H(4,"div",19)(5,"div",20),de(6),G()(),H(7,"div",18)(8,"div"),de(9),G()()()),2&t){const e=Ae().$implicit;W(3),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label,""),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," "),W(3),qo(null==e.meta||null==e.meta.objectNode?null:e.meta.objectNode.label)}}function bje(t,n){if(1&t&&(H(0,"div",21)(1,"div",18),de(2),G(),H(3,"div",22)(4,"div",20),de(5),G()()()),2&t){const e=Ae().$implicit;W(2),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label," "),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," ")}}function xje(t,n){if(1&t&&(H(0,"div",11)(1,"div",12),de(2),G(),H(3,"div",13)(4,"div",14)(5,"strong"),de(6),G(),de(7),G(),ke(8,vje,10,3,"div",15),ke(9,bje,6,2,"div",16),G()()),2&t){const e=n.$implicit,i=n.index,o=Ae();W(2),Nt(" ",i+1," "),W(4),qo(null==e.meta?null:e.meta.aspect),W(1),Nt(": ",e.message," "),W(1),J("ngIf",e.type===o.ErrorType.relation),W(1),J("ngIf",e.type===o.ErrorType.cardinality)}}let yje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.ErrorType=El,this.ErrorLevel=Al,this._unsubscribeAll=new N,this.errors=this._data.errors}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-activity-errors"]],decls:17,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start stretch",1,""],["class","noc-error-row","fxLayout","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["mat-raised-button","","color","",1,"mr-8",3,"click"],["fxLayout","row",1,"noc-error-row"],[1,"noc-number"],["fxFlex","",1,"noc-error-row-body"],[1,"noc-heading"],["class","pb-10","fxLayout","row",4,"ngIf"],["class","pb-10","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row",1,"pb-10"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-node-card"],["fxLayout","column","fxLayoutAlign","center stretch","fxFlex","",1,"noc-edge-card"],[1,"noc-line"],["fxLayout","row","fxLayoutAlign","center center",1,"pb-10"],["fxFlex","","fxLayout","column","fxLayoutAlign","center stretch",1,"noc-edge-card"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Errors"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()()(),H(10,"div",6)(11,"div",7),ke(12,xje,10,5,"div",8),G()(),H(13,"div",9),Qe(14,"span",4),H(15,"button",10),et("click",function(){return i.close()}),de(16,"Close"),G()()()),2&e&&(W(12),J("ngForOf",i.errors))},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,oC,ts,$o,Yi,rC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%]{border-bottom:#CCC double 1px;width:100%}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{padding:18px 2px;width:40px;min-width:40px;max-width:40px;background-color:#ddd;font-size:12px;text-align:center}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-error-row-body[_ngcontent-%COMP%]{padding:8px 10px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding:8px 0;font-size:14px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card[_ngcontent-%COMP%]{padding:5px;height:100px;min-height:100px;max-height:100px;width:250px;min-width:250px;max-width:250px;border:#AAA double 2px;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-lg[_ngcontent-%COMP%]{height:100px;min-height:100px;max-height:100px;width:150px;min-width:150px;max-width:150px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-long[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-edge-card[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding-top:15px;height:35px;min-height:35px;max-height:35px;width:100%;min-width:100%;max-width:100%;border-bottom:#AAA solid 2px;text-align:center}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})(),wje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.searchFormData={},this.cam={},this._unsubscribeAll=new N,this.cam=this._data.cam,this.searchForm=this.createAnswerForm()}ngOnInit(){}close(){this._matDialogRef.close()}createAnswerForm(){return new td({annotatedEntity:new Lo(this.cam.annotatedEntity.id),term:new Lo(this.cam.term.id),evidence:new Lo(this.cam.evidence.id),reference:new Lo(this.cam.reference.label),with:new Lo(this.cam.with)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-before-save"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start center",1,"w-100-p"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Add Evidence"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G()()()(),H(9,"div",6),Qe(10,"div",7),G(),H(11,"div",8),Qe(12,"span",4),H(13,"button",9),et("click",function(){return i.close()}),de(14,"Cancel"),G(),H(15,"button",10),de(16,"Save"),G()()())},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,oC,ts,rC],styles:[""]}),t})(),Mje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.searchFormData={},this.cam={},this._unsubscribeAll=new N,this.cam=this._data.cam,this.searchForm=this.createAnswerForm()}ngOnInit(){}close(){this._matDialogRef.close()}createAnswerForm(){return new td({annotatedEntity:new Lo(this.cam.annotatedEntity.id),term:new Lo(this.cam.term.id),evidence:new Lo(this.cam.evidence.id),reference:new Lo(this.cam.reference.label),with:new Lo(this.cam.with)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-create-from-existing"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start center",1,"w-100-p"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Add Evidence"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G()()()(),H(9,"div",6),Qe(10,"div",7),G(),H(11,"div",8),Qe(12,"span",4),H(13,"button",9),et("click",function(){return i.close()}),de(14,"Cancel"),G(),H(15,"button",10),de(16,"Save"),G()()())},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,oC,ts,rC],styles:[""]}),t})();function Oje(t,n){if(1&t&&(H(0,"mat-radio-button",18)(1,"div",19),de(2),G(),H(3,"div",20)(4,"small"),de(5),G()()()),2&t){const e=n.$implicit;J("value",e),W(2),Nt(" ",null==e.term?null:e.term.label," "),W(3),qo(null==e.term?null:e.term.id)}}function Sje(t,n){if(1&t&&(H(0,"div",15)(1,"div",16),de(2),G(),ke(3,Oje,6,3,"mat-radio-button",17),G()),2&t){const e=n.$implicit;W(2),Nt(" ",e.title," "),W(1),J("ngForOf",e.activityNodes)}}let Pje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this._unsubscribeAll=new N,this.nodes=this._data.nodes}ngOnInit(){}save(){this._matDialogRef.close({activityNode:this.selectedActivityNode})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-link-to-existing"]],decls:23,vars:2,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","noc-right-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngModel","ngModelChange"],["class","noc-radio-group-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-radio-group-section"],[1,"noc-title"],["class","mb-8",3,"value",4,"ngFor","ngForOf"],[1,"mb-8",3,"value"],[1,"h4"],[1,""]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Choose from Exisiting Node"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()()(),H(10,"div",6)(11,"div",7)(12,"div",8),de(13," Select Node "),G()(),H(14,"div",9)(15,"mat-radio-group",10),et("ngModelChange",function(r){return i.selectedActivityNode=r}),ke(16,Sje,4,2,"div",11),G()()(),H(17,"div",12),Qe(18,"span",4),H(19,"button",13),et("click",function(){return i.close()}),de(20,"Cancel"),G(),H(21,"button",14),et("click",function(){return i.save()}),de(22,"Done"),G()()()),2&e&&(W(15),J("ngModel",i.selectedActivityNode),W(1),J("ngForOf",i.nodes))},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,ts,gM,Pl,aM,$o,mM],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:16px;padding:8px 8px 8px 0}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%] radio-button[_ngcontent-%COMP%]{border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%;max-height:65vh;overflow:auto}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}']}),t})();function Tje(t,n){if(1&t){const e=Ln();H(0,"mat-header-cell",30)(1,"mat-checkbox",31),et("change",function(o){Dt(e);const r=Ae();return o?r.masterToggle():null}),G()()}if(2&t){const e=Ae();W(1),J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Eje(t,n){if(1&t){const e=Ln();H(0,"mat-cell",30)(1,"mat-checkbox",32),et("click",function(o){return o.stopPropagation()})("change",function(o){const a=Dt(e).$implicit,l=Ae();return o?l.selection.toggle(a):null}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("checked",i.selection.isSelected(e))}}function Aje(t,n){1&t&&(H(0,"mat-header-cell",33),de(1,"Evidence"),G())}function Lje(t,n){if(1&t&&(H(0,"mat-cell",33)(1,"p",34),de(2),G()()),2&t){const e=n.$implicit;W(2),qo(null==e.evidence?null:e.evidence.label)}}function Dje(t,n){1&t&&(H(0,"mat-header-cell",35),de(1,"Reference"),G())}function kje(t,n){if(1&t&&(H(0,"mat-cell",35)(1,"p",34),de(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.reference)}}function Ije(t,n){1&t&&(H(0,"mat-header-cell",35),de(1,"With"),G())}function Nje(t,n){if(1&t&&(H(0,"mat-cell",35)(1,"p",34),de(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.with)}}function Rje(t,n){1&t&&(H(0,"mat-header-cell",4),de(1,"Assigned By"),G())}function zje(t,n){if(1&t&&(H(0,"mat-cell",4)(1,"p",34),de(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.assignedBy)}}function Fje(t,n){1&t&&Qe(0,"mat-header-row")}function Hje(t,n){if(1&t){const e=Ln();H(0,"mat-row",36),et("click",function(){const r=Dt(e).$implicit;return Ae().selection.toggle(r)}),G()}}const Vje=function(){return{value:"50"}};let Bje=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.evidence=[],this.displayedColumns=["select","evidence","reference","with"],this.selection=new Qu(!0,[]),this._unsubscribeAll=new N,this.evidence=this._data.evidence,this.dataSource=new EM(this.evidence)}ngOnInit(){}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}save(){this._matDialogRef.close({evidences:this.selection.selected})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-select-evidence"]],decls:40,vars:5,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","noc-right-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["matSort","","noctuaPerfectScrollbar","",1,"noc-evidence-table","w-100-p",3,"dataSource"],["table",""],["matColumnDef","select",1,""],["fxFlex","30px",4,"matHeaderCellDef"],["fxFlex","30px",4,"matCellDef"],["cdkColumnDef","evidence"],["fxFlex","40%",4,"cdkHeaderCellDef"],["fxFlex","40%",4,"cdkCellDef"],["cdkColumnDef","reference"],["fxFlex","20%",4,"cdkHeaderCellDef"],["fxFlex","20%",4,"cdkCellDef"],["cdkColumnDef","with"],["cdkColumnDef","assignedBy"],["fxFlex","",4,"cdkHeaderCellDef"],["fxFlex","",4,"cdkCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxFlex","30px"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["fxFlex","40%"],[1,""],["fxFlex","20%"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Clone Evidence"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()()(),H(10,"div",6)(11,"div",7)(12,"div",8),de(13," Select Evidence "),G()(),H(14,"div",9)(15,"mat-table",10,11),er(17,12),ke(18,Tje,2,2,"mat-header-cell",13),ke(19,Eje,2,1,"mat-cell",14),tr(),er(20,15),ke(21,Aje,2,0,"mat-header-cell",16),ke(22,Lje,3,1,"mat-cell",17),tr(),er(23,18),ke(24,Dje,2,0,"mat-header-cell",19),ke(25,kje,3,1,"mat-cell",20),tr(),er(26,21),ke(27,Ije,2,0,"mat-header-cell",19),ke(28,Nje,3,1,"mat-cell",20),tr(),er(29,22),ke(30,Rje,2,0,"mat-header-cell",23),ke(31,zje,3,1,"mat-cell",24),tr(),ke(32,Fje,1,0,"mat-header-row",25),ke(33,Hje,1,0,"mat-row",26),G()()(),H(34,"div",27),Qe(35,"span",4),H(36,"button",28),et("click",function(){return i.close()}),de(37,"Cancel"),G(),H(38,"button",29),et("click",function(){return i.save()}),de(39,"Done"),G()()()),2&e&&(W(15),J("dataSource",i.dataSource)("@animateStagger",_i(4,Vje)),W(17),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns))},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,ts,$g,fQ,Zf,Qf,Kf,Xp,Xf,Jf,Ih,$f,qf,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%]{background-color:#eee;border-right:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%]{font-size:10px;color:#555;padding:10px 0;border-bottom:rgba(59,89,152,.2) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:12px;width:12px;min-width:12px;max-width:12px;height:12px;min-height:12px;max-height:12px;display:none}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%]{color:#000;font-weight:700}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:initial}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%;max-height:65vh;overflow:auto}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();const Gje=function(t){return{"noc-term-selected":t}};function Yje(t,n){if(1&t){const e=Ln();H(0,"div",34),et("click",function(){const r=Dt(e).$implicit;return Ae().selectActivityNode(r)}),H(1,"mat-icon",35),de(2,"check_circle"),G(),de(3),G()}if(2&t){const e=n.$implicit,i=Ae();J("ngClass",wo(2,Gje,e.getTerm().id===(null==i.selectedActivityNode?null:i.selectedActivityNode.getTerm().id))),W(3),Nt(" ",e.getTerm().label," ")}}function Uje(t,n){if(1&t){const e=Ln();H(0,"mat-header-cell",36)(1,"mat-checkbox",37),et("change",function(o){Dt(e);const r=Ae();return o?r.masterToggle():null}),G()()}if(2&t){const e=Ae();W(1),J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function jje(t,n){if(1&t){const e=Ln();H(0,"mat-cell",36)(1,"mat-checkbox",38),et("click",function(o){return o.stopPropagation()})("change",function(o){const a=Dt(e).$implicit,l=Ae();return o?l.selection.toggle(a):null}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("checked",i.selection.isSelected(e))}}function Wje(t,n){1&t&&(H(0,"mat-header-cell",39),de(1,"Evidence"),G())}function qje(t,n){if(1&t&&(H(0,"small"),de(1),G()),2&t){const e=n.$implicit,i=Ae().$implicit;W(1),cy(" ",null==e?null:e.label," : ",null==i.term?null:i.term.label," ")}}function $je(t,n){if(1&t&&(H(0,"span"),de(1," Ext: "),ke(2,qje,2,2,"small",41),Qe(3,"br"),G()),2&t){const e=n.$implicit;W(2),J("ngForOf",e.relations)}}function Xje(t,n){if(1&t&&(H(0,"mat-cell",39)(1,"p",40),de(2),Qe(3,"br"),ke(4,$je,4,1,"span",41),G()()),2&t){const e=n.$implicit;W(2),Nt(" ",null==e.evidence?null:e.evidence.label," "),W(2),J("ngForOf",e.evidenceExts)}}function Qje(t,n){1&t&&(H(0,"mat-header-cell",42),de(1,"Reference"),G())}function Zje(t,n){if(1&t&&(H(0,"mat-cell",42)(1,"p",40),de(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.reference)}}function Kje(t,n){1&t&&(H(0,"mat-header-cell",42),de(1,"With"),G())}function Jje(t,n){if(1&t&&(H(0,"mat-cell",42)(1,"p",40),de(2),G()()),2&t){const e=n.$implicit;W(2),qo(e.with)}}function eWe(t,n){1&t&&(H(0,"mat-header-cell",3),de(1,"Assigned By"),G())}function tWe(t,n){1&t&&(H(0,"span"),de(1,",\xa0"),G())}function nWe(t,n){if(1&t&&(H(0,"span")(1,"p",43),et("click",function(i){return i.stopPropagation()}),de(2),G(),ke(3,tWe,2,0,"span",44),G()),2&t){const e=n.$implicit,i=n.last;W(2),Nt(" ",e.name," "),W(1),J("ngIf",!i)}}function iWe(t,n){if(1&t&&(H(0,"mat-cell",3),ke(1,nWe,4,2,"span",41),G()),2&t){const e=n.$implicit;W(1),J("ngForOf",e.groups)}}function oWe(t,n){1&t&&Qe(0,"mat-header-row")}function rWe(t,n){if(1&t){const e=Ln();H(0,"mat-row",43),et("click",function(){const r=Dt(e).$implicit;return Ae().selection.toggle(r)}),G()}}const aWe=function(){return{value:"50"}};let sWe=(()=>{class t{constructor(e,i,o,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.noctuaLookupService=r,this.evidence=[],this.activityNodes=[],this.displayedColumns=["select","evidence","reference","with","assignedBy"],this.selection=new Qu(!0,[]),this._unsubscribeAll=new N,this.evidence=this._data.evidence,this.searchCriteria=this._data.searchCriteria,this.initialize()}ngOnInit(){}initialize(){this.noctuaLookupService.companionLookup(this.searchCriteria.gpNode.id,this.searchCriteria.aspect,this.searchCriteria.params).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{this.activityNodes=i})}selectActivityNode(e){this.selectedActivityNode=e,this.dataSource=new EM(e.predicate.evidence)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}save(){this._matDialogRef.close({term:this.selectedActivityNode,evidences:this.selection.selected})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co),ue(Sd))},t.\u0275cmp=vn({type:t,selectors:[["app-search-database"]],decls:54,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["fxFlex","200px","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-left-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading","w-100-p"],[1,"text-truncate"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["class","noc-term-box","fxLayout","row","fxLayoutAlign","start center",3,"ngClass","click",4,"ngFor","ngForOf"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-right-panel","noc-form-section"],[1,"noc-section-heading"],["matSort","","noctuaPerfectScrollbar","",1,"noc-evidence-table","w-100-p",3,"dataSource"],["table",""],["matColumnDef","select",1,""],["fxFlex","30px",4,"matHeaderCellDef"],["fxFlex","30px",4,"matCellDef"],["cdkColumnDef","evidence"],["fxFlex","40%",4,"cdkHeaderCellDef"],["fxFlex","40%",4,"cdkCellDef"],["cdkColumnDef","reference"],["fxFlex","20%",4,"cdkHeaderCellDef"],["fxFlex","20%",4,"cdkCellDef"],["cdkColumnDef","with"],["cdkColumnDef","assignedBy"],["fxFlex","",4,"cdkHeaderCellDef"],["fxFlex","",4,"cdkCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-term-box",3,"ngClass","click"],["fkFlex","25px",1,"green-300-fg","mr-4"],["fxFlex","30px"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["fxFlex","40%"],[1,""],[4,"ngFor","ngForOf"],["fxFlex","20%"],[3,"click"],[4,"ngIf"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Search Annotations"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),de(13," Select Term "),H(14,"div",9)(15,"small"),de(16,"Please select below"),G()()()(),H(17,"div",10),ke(18,Yje,4,4,"div",11),G()(),H(19,"div",12)(20,"div",7)(21,"div",13),de(22," Select Evidence "),H(23,"small"),de(24,"(optional)"),G(),H(25,"div",9)(26,"small"),de(27),G()()()(),H(28,"div",10)(29,"mat-table",14,15),er(31,16),ke(32,Uje,2,2,"mat-header-cell",17),ke(33,jje,2,1,"mat-cell",18),tr(),er(34,19),ke(35,Wje,2,0,"mat-header-cell",20),ke(36,Xje,5,2,"mat-cell",21),tr(),er(37,22),ke(38,Qje,2,0,"mat-header-cell",23),ke(39,Zje,3,1,"mat-cell",24),tr(),er(40,25),ke(41,Kje,2,0,"mat-header-cell",23),ke(42,Jje,3,1,"mat-cell",24),tr(),er(43,26),ke(44,eWe,2,0,"mat-header-cell",27),ke(45,iWe,2,1,"mat-cell",28),tr(),ke(46,oWe,1,0,"mat-header-row",29),ke(47,rWe,1,0,"mat-row",30),G()()()(),H(48,"div",31),Qe(49,"span",3),H(50,"button",32),et("click",function(){return i.close()}),de(51,"Cancel"),G(),H(52,"button",33),et("click",function(){return i.save()}),de(53,"Done"),G()()()),2&e&&(W(18),J("ngForOf",i.activityNodes),W(9),qo(null==i.selectedActivityNode?null:i.selectedActivityNode.getTerm().label),W(2),J("dataSource",i.dataSource)("@animateStagger",_i(6,aWe)),W(17),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns))},directives:[Oo,So,ko,Fo,Ir,ts,$o,ds,ac,$g,fQ,Zf,Qf,Kf,Xp,Xf,Jf,Ih,$f,qf,Yi,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%]{background-color:#eee;border-right:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%]{font-size:10px;color:#555;padding:10px 0;border-bottom:rgba(59,89,152,.2) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:12px;width:12px;min-width:12px;max-width:12px;height:12px;min-height:12px;max-height:12px;display:none}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%]{color:#000;font-weight:700}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:initial}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();function tne(t){this._context=t}function gv(t){return new tne(t)}function nne(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function cS(t){this._context=t}function ine(t,n){this._basis=new cS(t),this._beta=n}tne.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},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(){switch(this._point){case 3:nne(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:nne(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},ine.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var u,i=t[0],o=n[0],r=t[e]-i,a=n[e]-o,l=-1;++l<=e;)this._basis.point(this._beta*t[l]+(1-this._beta)*(i+(u=l/e)*r),this._beta*n[l]+(1-this._beta)*(o+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const cWe=function t(n){function e(i){return 1===n?new cS(i):new ine(i,n)}return e.beta=function(i){return t(+i)},e}(.85);function one(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function aR(t,n){this._context=t,this._k=(1-n)/6}aR.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:one(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:one(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const lWe=function t(n){function e(i){return new aR(i,n)}return e.tension=function(i){return t(+i)},e}(0),rne=Math.abs,Ld=Math.atan2,bm=Math.cos,dWe=Math.max,sR=Math.min,q0=Math.sin,k_=Math.sqrt,Dd=1e-12,mv=Math.PI,lS=mv/2,dS=2*mv;function uWe(t){return t>1?0:t<-1?mv:Math.acos(t)}function ane(t){return t>=1?lS:t<=-1?-lS:Math.asin(t)}function sne(t,n){this._context=t,this._alpha=n}sne.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:!function hWe(t,n,e){var i=t._x1,o=t._y1,r=t._x2,a=t._y2;if(t._l01_a>Dd){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Dd){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,M=3*t._l23_a*(t._l23_a+t._l12_a);r=(r*f+t._x1*t._l23_2a-n*t._l12_2a)/M,a=(a*f+t._y1*t._l23_2a-e*t._l12_2a)/M}t._context.bezierCurveTo(i,o,r,a,t._x2,t._y2)}(this,t,n)}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=n}};const pWe=function t(n){function e(i){return n?new sne(i,n):new aR(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function cne(t){return t<0?-1:1}function lne(t,n,e){var i=t._x1-t._x0,o=n-t._x1,r=(t._y1-t._y0)/(i||o<0&&-0),a=(e-t._y1)/(o||i<0&&-0),l=(r*o+a*i)/(i+o);return(cne(r)+cne(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(l))||0}function dne(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function cR(t,n,e){var i=t._x0,r=t._x1,a=t._y1,l=(r-i)/3;t._context.bezierCurveTo(i+l,t._y0+l*n,r-l,a-l*e,r,a)}function uS(t){this._context=t}function une(t){this._context=new hne(t)}function hne(t){this._context=t}function fWe(t){return new uS(t)}function gWe(t){return new une(t)}function pne(t){this._context=t}function fne(t){var n,i,e=t.length-1,o=new Array(e),r=new Array(e),a=new Array(e);for(o[0]=0,r[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)o[n]=(a[n]-o[n+1])/r[n];for(r[e-1]=(t[e]+o[e-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};let gne=(()=>{class t{constructor(){this.layout="dagre",this.curveType="Bundle",this.curve=gv,this.interpolationTypes=["Bundle","Cardinal","Catmull Rom","Linear","Monotone X","Monotone Y","Natural","Step","Step After","Step Before"],this.draggingEnabled=!0,this.panningEnabled=!0,this.zoomEnabled=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.panOnZoom=!1,this.autoZoom=!0,this.autoCenter=!0,this.update$=new N,this.center$=new N,this.zoomToFit$=new N,this.layoutSettings={edgePadding:100,nodePadding:100,orientation:"LR"}}set nodes(e){this._nodes=[...e],this.update$.next(!0)}get nodes(){return this._nodes}set edges(e){this._edges=[...e],this.update$.next(!0)}get edges(){return this._edges}ngOnInit(){this.setInterpolationType(this.curveType),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},10)}setInterpolationType(e){this.curveType=e,"Bundle"===e&&(this.curve=cWe.beta(1)),"Cardinal"===e&&(this.curve=lWe),"Catmull Rom"===e&&(this.curve=pWe),"Linear"===e&&(this.curve=gv),"Monotone X"===e&&(this.curve=fWe),"Monotone Y"===e&&(this.curve=gWe),"Natural"===e&&(this.curve=mWe),"Step"===e&&(this.curve=_We),"Step After"===e&&(this.curve=vWe),"Step Before"===e&&(this.curve=CWe)}getStyles(e){return{"background-color":e.data.backgroundColor}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["noc-graph-preview"]],inputs:{nodes:"nodes",edges:"edges"},decls:8,vars:20,consts:[[1,"w-100-p","h-100-p","noc-graph-holder"],[3,"links","nodes","curve","layout","nodeWidth","nodeHeight","layoutSettings","draggingEnabled","panningEnabled","enableZoom","zoomSpeed","minZoomLevel","maxZoomLevel","panOnZoom","autoZoom","autoCenter","update$","center$","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["xmlns","http://www.w3.org/2000/xhtml","width","120","height","50",1,"node"],["width","120","height","50"],["xmlns","http://www.w3.org/1999/xhtml",1,"cardContainer",3,"ngStyle"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"],["class","linkMidpoint",4,"ngIf"],[1,"linkMidpoint"],["alignment-baseline","central"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"ngx-graph",1),ke(2,bWe,2,0,"ng-template",null,2,tu),ke(4,xWe,4,2,"ng-template",null,3,tu),ke(6,wWe,5,4,"ng-template",null,4,tu),G()()),2&e&&(W(1),J("links",i.edges)("nodes",i.nodes)("curve",i.curve)("layout",i.layout)("nodeWidth",120)("nodeHeight",50)("layoutSettings",i.layoutSettings)("curve",i.curve)("draggingEnabled",i.draggingEnabled)("panningEnabled",i.panningEnabled)("enableZoom",i.zoomEnabled)("zoomSpeed",i.zoomSpeed)("minZoomLevel",i.minZoomLevel)("maxZoomLevel",i.maxZoomLevel)("panOnZoom",i.panOnZoom)("autoZoom",i.autoZoom)("autoCenter",i.autoCenter)("update$",i.update$)("center$",i.center$)("zoomToFit$",i.zoomToFit$))},directives:[YRe,Og,hI,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;height:100%;background-color:#f2f2f2;background-size:10px 10px;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px),linear-gradient(to bottom,rgba(0,0,0,.1) 1px,transparent 1px)}[_nghost-%COMP%] .noc-graph-holder[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .cardContainer[_ngcontent-%COMP%]{padding:4px;height:50px;width:120px;display:block;border:#3b5998 solid 1px;background-color:#cce3fa;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .cardContainer[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;text-align:center;font-size:20px;margin-top:4px;margin-bottom:8px}[_nghost-%COMP%] .linkMidpoint[_ngcontent-%COMP%] ellipse[_ngcontent-%COMP%]{fill:#fff;stroke:#000;stroke-width:1}[_nghost-%COMP%] .linkMidpoint[_ngcontent-%COMP%] text[_ngcontent-%COMP%]{stroke:transparent;fill:#000;text-anchor:middle;font-size:10px}']}),t})();function MWe(t,n){if(1&t&&Qe(0,"noc-graph-preview",9),2&t){const e=Ae();J("nodes",null==e.noctuaActivityFormService.activity?null:e.noctuaActivityFormService.activity.graphPreview.nodes)("edges",null==e.noctuaActivityFormService.activity?null:e.noctuaActivityFormService.activity.graphPreview.edges)}}let OWe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this.noctuaFormConfigService=i,this.noctuaActivityFormService=o,this.evidence=[],this.activityNodes=[],this.displayedColumns=["select","evidence","reference","with","assignedBy"],this.selection=new Qu(!0,[]),this._unsubscribeAll=new N}ngOnInit(){this.preview()}preview(){this.noctuaActivityFormService.activity.setPreview()}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["app-preview-activity"]],decls:15,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["class","noc-graph-preview",3,"nodes","edges",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],[1,"noc-graph-preview",3,"nodes","edges"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Preview"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),ke(10,MWe,1,2,"noc-graph-preview",6),G(),H(11,"div",7),Qe(12,"span",3),H(13,"button",8),et("click",function(){return i.close()}),de(14,"Close"),G()()()),2&e&&(W(10),J("ngIf",i.noctuaActivityFormService.activity))},directives:[Oo,So,ko,Fo,Ir,Yi,gne],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();class pS extends class SWe{constructor(){this.expansionModel=new Qu(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let o=this.dataNodes.indexOf(n)+1;othis._trackByValue(n)))}}const fS=new ui("CDK_TREE_NODE_OUTLET_NODE");let _v=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(fS,8))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class PWe{constructor(n){this.$implicit=n}}let gS=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ue(Oc))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),M3=(()=>{class t{constructor(e,i){this._differs=e,this._changeDetectorRef=i,this._onDestroy=new N,this._levels=new Map,this.viewChange=new Io({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const e=this._nodeDefs.filter(i=>!i.when);this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let e;lM(this._dataSource)?e=this._dataSource.connect(this):Kk(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=rr(this._dataSource)),e&&(this._dataSubscription=e.pipe(Yn(this._onDestroy)).subscribe(i=>this.renderNodeChanges(i)))}renderNodeChanges(e,i=this._dataDiffer,o=this._nodeOutlet.viewContainer,r){const a=i.diff(e);!a||(a.forEachOperation((l,u,f)=>{if(null==l.previousIndex)this.insertNode(e[f],f,o,r);else if(null==f)o.remove(u),this._levels.delete(l.item);else{const M=o.get(u);o.move(M,f)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(r=>r.when&&r.when(i,e))||this._defaultNodeDef}insertNode(e,i,o,r){const a=this._getNodeDef(e,i),l=new PWe(e);l.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==r&&this._levels.has(r)?this._levels.get(r)+1:0,this._levels.set(e,l.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,l,i),$0.mostRecentTreeNode&&($0.mostRecentTreeNode.data=e)}}return t.\u0275fac=function(e){return new(e||t)(ue(nu),ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["cdk-tree"]],contentQueries:function(e,i,o){if(1&e&&mr(o,gS,5),2&e){let r;fi(r=gi())&&(i._nodeDefs=r)}},viewQuery:function(e,i){if(1&e&&_o(_v,7),2&e){let o;fi(o=gi())&&(i._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[_v],encapsulation:2}),t})(),$0=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new N,this._dataChanges=new N,t.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(e){this._elementRef.nativeElement.setAttribute("role",e)}get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function TWe(t){let n=t.parentElement;for(;n&&!EWe(n);)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?Vc(n.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.mostRecentTreeNode=null,t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(M3))},t.\u0275dir=St({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(e,i){2&e&&Un("aria-expanded",i.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t})();function EWe(t){const n=t.classList;return!(!(null==n?void 0:n.contains("cdk-nested-tree-node"))&&!(null==n?void 0:n.contains("cdk-tree")))}const AWe=/([A-Za-z%]+)$/;let dR=(()=>{class t{constructor(e,i,o,r){this._treeNode=e,this._tree=i,this._element=o,this._dir=r,this._destroyed=new N,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(Yn(this._destroyed)).subscribe(()=>this._setPadding(!0)),e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?`${i*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){const i=this._paddingIndent();if(i!==this._currentPadding||e){const o=this._element.nativeElement,r=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",a="paddingLeft"===r?"paddingRight":"paddingLeft";o.style[r]=i||"",o.style[a]="",this._currentPadding=i}}_setLevelInput(e){this._level=Vc(e,null),this._setPadding()}_setIndentInput(e){let i=e,o="px";if("string"==typeof e){const r=e.split(AWe);i=r[0],o=r[1]||o}this.indentUnits=o,this._indent=Vc(i),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(ue($0),ue(M3),ue(Ti),ue(Sl,8))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),uR=(()=>{class t{constructor(e,i){this._tree=e,this._treeNode=i,this._recursive=!1}get recursive(){return this._recursive}set recursive(e){this._recursive=no(e)}_toggle(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(ue(M3),ue($0))},t.\u0275dir=St({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,i){1&e&&et("click",function(r){return i._toggle(r)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),LWe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({}),t})();const DWe=Hg(E0($0));let hR=(()=>{class t extends DWe{constructor(e,i,o){super(e,i),this.tabIndex=Number(o)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(M3),Yl("tabindex"))},t.\u0275dir=St({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[mo([{provide:$0,useExisting:t}]),ei]}),t})(),pR=(()=>{class t extends gS{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[mo([{provide:gS,useExisting:t}]),ei]}),t})(),fR=(()=>{class t extends dR{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[mo([{provide:dR,useExisting:t}]),ei]}),t})(),gR=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}}return t.\u0275fac=function(e){return new(e||t)(ue(oc),ue(fS,8))},t.\u0275dir=St({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[mo([{provide:_v,useExisting:t}])]}),t})(),mR=(()=>{class t extends M3{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["mat-tree"]],viewQuery:function(e,i){if(1&e&&_o(gR,7),2&e){let o;fi(o=gi())&&(i._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[mo([{provide:M3,useExisting:t}]),ei],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,i){1&e&&Fc(0,0)},directives:[gR],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),_R=(()=>{class t extends uR{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275dir=St({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[mo([{provide:uR,useExisting:t}]),ei]}),t})(),IWe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[LWe,Xo],Xo]}),t})();class NWe{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){const r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,o):a.pipe(Ja(1)).subscribe(l=>{this._flattenChildren(l,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,a)=>{let l=o.slice();l.push(a!=n.length-1),this._flattenNode(r,e+1,i,l)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let a=!0;for(let l=0;l<=this.getLevel(r);l++)a=a&&o[l];a&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}}class RWe extends oX{constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new Io([]),this._expandedData=new Io([]),this._data=new Io([]),i&&(this.data=i)}get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(n){return kr(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(it(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}const mne=function(t){return{"background-highlight":t}};function zWe(t,n){if(1&t){const e=Ln();H(0,"mat-tree-node",18)(1,"div",19),Qe(2,"button",20),H(3,"mat-checkbox",21),et("change",function(){const r=Dt(e).$implicit;return Ae(2).evidenceLeafItemSelectionToggle(r)}),G(),H(4,"div",22),de(5),G(),H(6,"div",23),de(7),G(),H(8,"div",23),de(9),G(),H(10,"div",3),de(11),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);J("ngClass",wo(6,mne,i.activeAnnotation===e.short_name)),W(3),J("checked",i.checklistSelection.isSelected(e)),W(2),Nt(" ",null==e.evidence||null==e.evidence.evidence?null:e.evidence.evidence.label," "),W(2),Nt(" ",null==e.evidence?null:e.evidence.reference," "),W(2),Nt(" ",null==e.evidence?null:e.evidence.with," "),W(2),Nt(" ",null==e.evidence||null==e.evidence.assignedBy?null:e.evidence.assignedBy.label," ")}}const FWe=function(){return["fas","chevron-right"]};function HWe(t,n){1&t&&Qe(0,"fa-icon",28),2&t&&J("icon",_i(1,FWe))}const VWe=function(){return["fas","chevron-down"]};function BWe(t,n){1&t&&Qe(0,"fa-icon",28),2&t&&J("icon",_i(1,VWe))}function GWe(t,n){if(1&t&&(H(0,"mat-tree-node",24)(1,"button",25),ke(2,HWe,1,2,"fa-icon",26),ke(3,BWe,1,2,"fa-icon",26),G(),de(4),H(5,"small"),de(6),G(),de(7,") "),Qe(8,"span",3),H(9,"div",27),de(10),G()()),2&t){const e=n.$implicit,i=Ae(2);J("ngClass",wo(6,mne,i.activeAnnotation===e.short_name)),W(2),J("ngIf",!i.treeControl.isExpanded(e)),W(1),J("ngIf",i.treeControl.isExpanded(e)),W(1),Nt(" ",null==e.activityNode||null==e.activityNode.term?null:e.activityNode.term.label," ("),W(2),qo(null==e.activityNode||null==e.activityNode.term?null:e.activityNode.term.id),W(4),Nt(" ",e.count," ")}}function YWe(t,n){if(1&t&&(H(0,"div",13)(1,"mat-tree",14,15),ke(3,zWe,12,8,"mat-tree-node",16),ke(4,GWe,11,8,"mat-tree-node",17),G()()),2&t){const e=Ae();W(1),J("dataSource",e.dataSource)("treeControl",e.treeControl),W(3),J("matTreeNodeDefWhen",e.hasChild)}}class _ne{}class UWe{constructor(){this.count=0}}let jWe=(()=>{class t{constructor(e,i,o,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.noctuaLookupService=r,this.activityNodes=[],this.selection=new Qu(!0,[]),this.selectedParent=null,this.checklistSelection=new Qu(!0),this.getLevel=a=>a.level,this.isExpandable=a=>a.expandable,this.getChildren=a=>a.children,this.hasChild=(a,l)=>l.expandable,this.transformer=(a,l)=>{const u=new UWe;return u.activityNode=a.activityNode,u.evidence=a.evidence,u.level=l,u.expandable=!!a.children,u.count=a.children?a.children.length:0,u},this._unsubscribeAll=new N,this.searchCriteria=this._data.searchCriteria}ngOnInit(){this.initialize(),this.treeFlattener=new NWe(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new pS(this.getLevel,this.isExpandable),this.dataSource=new RWe(this.treeControl,this.treeFlattener)}initialize(){this.noctuaLookupService.companionLookup(this.searchCriteria.gpNode.id,this.searchCriteria.aspect,this.searchCriteria.params).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{this.activityNodes=i,this.dataSource.data=this._buildAnnotationTree(this.activityNodes)})}save(){const e=[];(0,Zt.each)(this.checklistSelection.selected,i=>{i.evidence&&e.push(i.evidence)}),this._matDialogRef.close({evidences:e})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}descendantsAllSelected(e){return this.treeControl.getDescendants(e).every(r=>this.checklistSelection.isSelected(r))}descendantsPartiallySelected(e){return this.treeControl.getDescendants(e).some(r=>this.checklistSelection.isSelected(r))&&!this.descendantsAllSelected(e)}evidenceItemSelectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i),i.every(o=>this.checklistSelection.isSelected(o)),this.checkAllParentsSelection(e)}evidenceLeafItemSelectionToggle(e){this.checklistSelection.toggle(e),this.checkAllParentsSelection(e)}checkAllParentsSelection(e){let i=this.getParentNode(e);for(;i;)this.checkRootNodeSelection(i),i=this.getParentNode(i)}checkRootNodeSelection(e){const i=this.checklistSelection.isSelected(e),r=this.treeControl.getDescendants(e).every(a=>this.checklistSelection.isSelected(a));i&&!r?this.checklistSelection.deselect(e):!i&&r&&this.checklistSelection.select(e)}getParentNode(e){const i=this.getLevel(e);if(i<1)return null;for(let r=this.treeControl.dataNodes.indexOf(e)-1;r>=0;r--){const a=this.treeControl.dataNodes[r];if(this.getLevel(a){const r=new _ne;return r.activityNode=o,r.children=o.predicate.evidence.map(a=>{const l=new _ne;return l.evidence=a,l}),r})}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co),ue(Sd))},t.\u0275cmp=vn({type:t,selectors:[["app-search-evidence"]],decls:22,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["class","noc-section-body w-100-p","noctuaPerfectScrollbar","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],[3,"dataSource","treeControl"],["tree",""],["class","ann-tree-node","matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","10",3,"ngClass",4,"matTreeNodeDef"],["fxLayout","row","class","ann-tree-node text-truncate","matTreeNodePadding","","matTreeNodePaddingIndent","10",3,"ngClass",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","10",1,"ann-tree-node",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p"],["mat-icon-button","","disabled","",1,"ann-icon-button"],[1,"checklist-leaf-node","mr-8",3,"checked","change"],["fxFlex","30%"],["fxFlex","20%"],["fxLayout","row","matTreeNodePadding","","matTreeNodePaddingIndent","10",1,"ann-tree-node","text-truncate",3,"ngClass"],["mat-icon-button","","matTreeNodeToggle","",1,""],[3,"icon",4,"ngIf"],["fxFlex","100px",1,""],[3,"icon"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Search Evidence"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),de(13),Qe(14,"small"),G()(),ke(15,YWe,5,3,"div",9),G()(),H(16,"div",10),Qe(17,"span",3),H(18,"button",11),et("click",function(){return i.close()}),de(19,"Cancel"),G(),H(20,"button",12),et("click",function(){return i.save()}),de(21,"Done"),G()()()),2&e&&(W(13),Nt(" Selected Evidence : ",i.checklistSelection.selected.length," "),W(2),J("ngIf",i.dataSource.data))},directives:[Oo,So,ko,Fo,Ir,Yi,ts,mR,pR,hR,_R,fR,ds,ac,Xp,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{background-color:#eee}[_nghost-%COMP%] .noc-term-box[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-term-box[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%]{padding:12px 8px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:sc}}),t})();function WWe(t,n){if(1&t&&(H(0,"div",17)(1,"div",18)(2,"div"),de(3),G()(),H(4,"div",19)(5,"div",20),de(6),G()(),H(7,"div",18)(8,"div"),de(9),G()()()),2&t){const e=Ae().$implicit;W(3),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label,""),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," "),W(3),qo(null==e.meta||null==e.meta.objectNode?null:e.meta.objectNode.label)}}function qWe(t,n){if(1&t&&(H(0,"div",21)(1,"div",18),de(2),G(),H(3,"div",22)(4,"div",20),de(5),G()()()),2&t){const e=Ae().$implicit;W(2),Nt(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label," "),W(3),Nt(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," ")}}function $We(t,n){if(1&t&&(H(0,"div",11)(1,"div",12),de(2),G(),H(3,"div",13)(4,"div",14)(5,"strong"),de(6),G(),de(7),G(),ke(8,WWe,10,3,"div",15),ke(9,qWe,6,2,"div",16),G()()),2&t){const e=n.$implicit,i=n.index,o=Ae();W(2),Nt(" ",i+1," "),W(4),qo(null==e.meta?null:e.meta.aspect),W(1),Nt(": ",e.message," "),W(1),J("ngIf",e.type===o.ErrorType.relation),W(1),J("ngIf",e.type===o.ErrorType.cardinality)}}let XWe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=o,this.ErrorType=El,this.ErrorLevel=Al,this._unsubscribeAll=new N,this.errors=this._data.errors}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-cam-errors"]],decls:17,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start stretch",1,""],["class","noc-error-row","fxLayout","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["mat-raised-button","","color","",1,"mr-8",3,"click"],["fxLayout","row",1,"noc-error-row"],[1,"noc-number"],["fxFlex","",1,"noc-error-row-body"],[1,"noc-heading"],["class","pb-10","fxLayout","row",4,"ngIf"],["class","pb-10","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row",1,"pb-10"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-node-card"],["fxLayout","column","fxLayoutAlign","center stretch","fxFlex","",1,"noc-edge-card"],[1,"noc-line"],["fxLayout","row","fxLayoutAlign","center center",1,"pb-10"],["fxFlex","","fxLayout","column","fxLayoutAlign","center stretch",1,"noc-edge-card"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),de(4," Violations"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()()(),H(10,"div",6)(11,"div",7),ke(12,$We,10,5,"div",8),G()(),H(13,"div",9),Qe(14,"span",4),H(15,"button",10),et("click",function(){return i.close()}),de(16,"Close"),G()()()),2&e&&(W(12),J("ngForOf",i.errors))},directives:[Jp,Kp,ko,Oo,So,Fo,Ir,oC,ts,$o,Yi,rC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%]{border-bottom:#CCC double 1px;width:100%}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{padding:18px 2px;width:40px;min-width:40px;max-width:40px;background-color:#ddd;font-size:12px;text-align:center}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-error-row-body[_ngcontent-%COMP%]{padding:8px 10px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding:8px 0;font-size:14px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card[_ngcontent-%COMP%]{padding:5px;height:100px;min-height:100px;max-height:100px;width:250px;min-width:250px;max-width:250px;border:#AAA double 2px;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-lg[_ngcontent-%COMP%]{height:100px;min-height:100px;max-height:100px;width:150px;min-width:150px;max-width:150px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-long[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-edge-card[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding-top:15px;height:35px;min-height:35px;max-height:35px;width:100%;min-width:100%;max-width:100%;border-bottom:#AAA solid 2px;text-align:center}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})();function QWe(t,n){1&t&&Qe(0,"noc-activity-form",1),2&t&&J("closeDialog",Ae().closeDialog)}function ZWe(t,n){1&t&&Qe(0,"noc-activity-connector",1),2&t&&J("closeDialog",Ae().closeDialog)}let Cne=(()=>{class t{constructor(e,i,o,r){this._matDialogRef=e,this.activityFormService=i,this._data=o,this.noctuaFormConfigService=r,this.FormType=f_,this.closeDialog=this.close.bind(this),this._unsubscribeAll=new N,this.formType=o.formType}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(Ts),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-create-activity-dialog"]],decls:2,vars:2,consts:[[3,"closeDialog",4,"ngIf"],[3,"closeDialog"]],template:function(e,i){1&e&&(ke(0,QWe,1,1,"noc-activity-form",0),ke(1,ZWe,1,1,"noc-activity-connector",0)),2&e&&(J("ngIf",i.formType===i.FormType.ACTIVITY),W(1),J("ngIf",i.formType===i.FormType.ACTIVITY_CONNECTOR))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%]{position:relative;height:400px!important;min-height:400px!important;max-height:400px!important}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;width:100%;min-width:100%;max-width:100%;height:100%!important;min-height:100%!important;max-height:100%!important}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})();class CR{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const vne=new ui("referenceDropdownData");function KWe(t,n){if(1&t&&(H(0,"mat-option",9),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function JWe(t,n){if(1&t&&(H(0,"div",10)(1,"div",11)(2,"a",12),et("click",function(i){return i.stopPropagation()}),de(3),G()(),H(4,"div",13)(5,"mat-icon",14),de(6,"person"),G(),H(7,"span"),de(8),G()(),H(9,"div",15)(10,"mat-icon",14),de(11,"date_range"),G(),H(12,"span"),de(13),G()()()),2&t){const e=Ae();W(2),Ro("href",e.article.link,ao),W(1),Nt(" ",e.article.title," "),W(5),qo(e.article.author),W(5),qo(e.article.date)}}let eqe=(()=>{class t{constructor(e,i,o,r,a,l){this.dialogRef=e,this.data=i,this.noctuaLookupService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this._unsubscribeAll=new N,this.formControl=i.formControl}ngOnInit(){this.evidenceDBForm=this._createEvidenceDBForm(),this._onValueChange()}clearValues(){}save(){const e=this,i=this.evidenceDBForm.value.db,o=this.evidenceDBForm.value.accession,r=[];let a=!0;if(""===o.trim()){const l=new wd(Al.error,El.general,`${i.name} accession is required`);r.push(l),e.noctuaFormDialogService.openActivityErrorsDialog(r),a=!1}a&&(this.formControl.setValue(i.name+":"+o.trim()),this.close())}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}_createEvidenceDBForm(){return new td({db:new Lo(this.noctuaFormConfigService.evidenceDBs.selected),accession:new Lo("",[P6.required])})}_onValueChange(){const e=this;e.evidenceDBForm.valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(1e3)).subscribe(i=>{e.article=null,e._updateArticle(i)})}close(){this.dialogRef.close()}_updateArticle(e){const i=this;if(e.db.name===Ht.evidenceDB.options.pmid.name&&e.accession){const o=e.accession.trim();if(""===o)return;this.noctuaLookupService.getPubmedInfo(o).pipe(Yn(this._unsubscribeAll)).subscribe(r=>{i.article=r})}}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(CR),ue(vne),ue(Sd),ue(jc),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-reference-dropdown"]],decls:15,vars:3,consts:[["novalidate","","fxLayout","column","fxLayoutAlign","start stretch",1,"pl-8","pr-8","w-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["appearance","outline","fxFlex","100px",1,"noc-sm","mr-12"],["placeholder","","formControlName","db"],[3,"value",4,"ngFor","ngForOf"],["appearance","outline","fxFlex","",1,"noc-sm","w-100-p"],["matInput","","formControlName","accession","type","text","placeholder","Accession","autocomplete","off"],["mat-icon-button","",3,"click"],["class","noc-article-info","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],[3,"value"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-article-info"],[1,"noc-article-title","w-100-p"],["target","_blank",3,"href","click"],[1,"noc-article-author","w-100-p"],[1,"s-16","mr-4"],[1,"noc-article-date","w-100-p"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),ke(4,KWe,2,2,"mat-option",4),G()(),H(5,"mat-form-field",5),Qe(6,"input",6),G(),H(7,"button",7),et("click",function(){return i.close()}),H(8,"mat-icon"),de(9,"cancel"),G()(),H(10,"button",7),et("click",function(){return i.save()}),H(11,"mat-icon"),de(12,"check_circle"),G()()(),H(13,"div",1),ke(14,JWe,14,4,"div",8),G()()),2&e&&(J("formGroup",i.evidenceDBForm),W(4),J("ngForOf",i.noctuaFormConfigService.evidenceDBs.options),W(10),J("ngIf",i.article))},directives:[nd,tl,Oo,So,Gc,id,ko,qg,Pl,Xl,$o,J1,E2,ed,Fo,Ir,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const tqe={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let xm=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const o=Object.assign(Object.assign({},tqe),i);o.positionStrategy=this._getPosition(e);const a=this.createOverlay(o),l=new CR(a);return this.attachDialogContainer(a,o,l),a.backdropClick().subscribe(f=>l.close()),l}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(CR,i),o.set(vne,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(eqe,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}getLink(){}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function nqe(t,n){if(1&t&&(H(0,"a",31),et("click",function(i){return i.stopPropagation()}),de(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function iqe(t,n){if(1&t&&(H(0,"span"),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function oqe(t,n){if(1&t&&(H(0,"mat-option",25)(1,"div",6)(2,"div",26),de(3),G(),Qe(4,"span",3),H(5,"div",27)(6,"strong"),de(7),G()(),H(8,"div",28),ke(9,nqe,2,2,"a",29),ke(10,iqe,2,1,"span",30),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(4),Nt(" ",e.xref," "),W(2),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function rqe(t,n){if(1&t&&(H(0,"mat-option",25)(1,"div",6)(2,"div",26),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function aqe(t,n){if(1&t&&(H(0,"mat-option",25)(1,"div",6)(2,"div",26),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}let sqe=(()=>{class t{constructor(e,i,o,r,a,l){this._matDialogRef=e,this._noctuaActivityEntityService=i,this.camService=o,this.inlineReferenceService=r,this._data=a,this.noctuaFormConfigService=l,this._fb=new e2,this.searchFormData={},this.cam={},this._unsubscribeAll=new N,this.evidenceFormGroup=this.createEvidenceForm()}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createEvidenceForm(){return this.entity=mu([]),this.entityForm=this._noctuaActivityEntityService.createActivityEntityForm(this.entity),this._fb.group(this.entityForm).get("evidenceFormArray").at(0)}clearValues(){this.entity.clearValues()}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.evidenceFormGroup.controls[i]}})}updateEvidenceList(){this.camService.updateEvidenceList(null,this.entity)}updateReferenceList(){this.camService.updateReferenceList(null,this.entity)}updateWithList(){this.camService.updateWithList(null,this.entity)}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}save(){this.entityForm.populateTermEvidenceOnly(),this._matDialogRef.close(this.entity.predicate.evidence)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(Pd),ue(Zr),ue(xm),ue(t2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["app-add-evidence"]],decls:45,vars:8,consts:[[1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[3,"formGroup"],["fxFlex","250px",1,"noc-edit-field","p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"noc-term-label"],[1,"noc-term-id","mr-8"],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href","click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Add Evidence "),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5)(10,"div",6),er(11,7),H(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),de(15,"Evidence"),G(),H(16,"textarea",10),et("focus",function(){return i.updateEvidenceList()}),G(),H(17,"mat-autocomplete",11,12),ke(19,oqe,11,5,"mat-option",13),G()()(),H(20,"div",14)(21,"mat-form-field",9)(22,"mat-label"),de(23,"Reference"),G(),H(24,"textarea",15),et("focus",function(){return i.updateReferenceList()}),G(),H(25,"button",16),et("click",function(r){return i.openAddReference(r,"reference")}),H(26,"mat-icon"),de(27,"playlist_add"),G()(),H(28,"mat-autocomplete",17,18),ke(30,rqe,4,2,"mat-option",13),G()()(),H(31,"div",19)(32,"mat-form-field",9)(33,"mat-label"),de(34,"With"),G(),H(35,"textarea",20),et("focus",function(){return i.updateWithList()}),G(),H(36,"mat-autocomplete",17,21),ke(38,aqe,4,2,"mat-option",13),G()()(),tr(),G()(),H(39,"div",22),Qe(40,"span",3),H(41,"button",23),et("click",function(){return i.close()}),de(42,"Cancel"),G(),H(43,"button",24),et("click",function(){return i.save()}),de(44,"Save"),G()()()),2&e){const o=Di(18),r=Di(29),a=Di(37);W(11),J("formGroup",i.evidenceFormGroup),W(5),J("matAutocomplete",o),W(1),J("displayWith",i.evidenceDisplayFn),W(2),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.evidenceLookup.results),W(5),J("matAutocomplete",r),W(6),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.referenceLookup.results),W(5),J("matAutocomplete",a),W(3),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.withLookup.results)}},directives:[Oo,So,ko,Fo,Ir,tl,Gc,id,yd,E2,ed,kh,Pl,Xl,I0,$o,J1,Yi,E6],styles:[""]}),t})(),cqe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this.noctuaFormConfigService=i,this._data=o,this._unsubscribeAll=new N,this.cam=o.cam,this.camForm=this.createCamForm(this.cam)}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createCamForm(e){return new td({title:new Lo("Copy of "+(null==e?void 0:e.title))})}save(){this._matDialogRef.close(this.camForm.value)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(Co),ue(t2))},t.\u0275cmp=vn({type:t,selectors:[["app-confirm-copy-model"]],decls:23,vars:1,consts:[[1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-section","w-100-p"],[3,"formGroup"],["fxFlex","",1,"noc-edit-field","p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","title","rows","2"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Edit Title & Confirm Copy"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5)(10,"div",6),er(11,7),H(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),de(15,"Title"),G(),Qe(16,"textarea",10),G()(),tr(),G()(),H(17,"div",11),Qe(18,"span",3),H(19,"button",12),et("click",function(){return i.close()}),de(20,"Cancel"),G(),H(21,"button",13),et("click",function(){return i.save()}),de(22,"Save"),G()()()),2&e&&(W(11),J("formGroup",i.camForm))},directives:[Oo,So,ko,Fo,Ir,tl,Gc,id,yd,E2,ed,Pl,Xl],styles:[""]}),t})();function lqe(t,n){1&t&&(H(0,"div",17),de(1," No comments yet "),G())}const dqe=function(){return["far","trash-alt"]};function uqe(t,n){if(1&t){const e=Ln();H(0,"div",18)(1,"div",19)(2,"div",20)(3,"mat-form-field",21)(4,"mat-label"),de(5,"Comment"),G(),Qe(6,"textarea",22),G(),H(7,"button",23),et("click",function(){const r=Dt(e).index;return Ae().deleteComment(r)}),Qe(8,"fa-icon",24),G()()()()}if(2&t){const e=n.index;W(6),J("formControlName",e),W(2),J("icon",_i(2,dqe))}}let hqe=(()=>{class t{constructor(e,i,o){this._matDialogRef=e,this.noctuaFormConfigService=i,this._data=o,this._unsubscribeAll=new N,this.predicate=o.predicate,this.commentsFormGroup=this.createForm(),this.commentsFormArray=this.commentsFormGroup.get("commentsFormArray")}ngOnInit(){this.predicate.comments.forEach(e=>{this.commentsFormArray.push(new Lo(e))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createForm(){return new td({commentsFormArray:new Xu([])})}addComment(){this.commentsFormArray.push(new Lo)}deleteComment(e){this.commentsFormArray.removeAt(e),this.save()}save(){this._matDialogRef.close(this.commentsFormGroup.value.commentsFormArray)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(od),ue(Co),ue(t2))},t.\u0275cmp=vn({type:t,selectors:[["app-comments"]],decls:27,vars:3,consts:[["name","commentsFormGroup",1,"dialog-content-wrapper","noc-dialog",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","pr-8"],[1,"noc-section-heading"],["mat-stroked-button","","type","submit","color","primary",1,"noc-xs","noc-rounded-button",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["class","noc-no-info",4,"ngIf"],["fxLayout","column",1,"p-4"],["formArrayName","commentsFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[1,"noc-no-info"],["formArrayName","commentsFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["fxFlex","",1,"noc-form-field-container"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","rows","2",3,"formControlName"],["mat-icon-button","",1,"noc-delete-float-button",3,"click"],[3,"icon"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Comments"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),de(13," Comments "),G(),Qe(14,"span",3),H(15,"button",9),et("click",function(){return i.addComment()}),de(16," Add "),G()(),H(17,"div",10),ke(18,lqe,2,0,"div",11),H(19,"div",12),ke(20,uqe,9,3,"div",13),G()()()(),H(21,"div",14),Qe(22,"span",3),H(23,"button",15),et("click",function(){return i.close()}),de(24,"Cancel"),G(),H(25,"button",16),et("click",function(){return i.save()}),de(26,"Save"),G()()()),2&e&&(J("formGroup",i.commentsFormGroup),W(18),J("ngIf",0===(null==i.predicate?null:i.predicate.comments.length)),W(2),J("ngForOf",null==i.commentsFormArray?null:i.commentsFormArray.controls))},directives:[nd,tl,Gc,Oo,So,ko,Fo,Ir,Yi,$o,k0,id,yd,E2,ed,Pl,Xl,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%] .noc-delete-float-button[_ngcontent-%COMP%]{margin-top:5px;visibility:hidden}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]:hover .noc-delete-float-button[_ngcontent-%COMP%]{visibility:visible}']}),t})(),jc=(()=>{class t{constructor(e,i,o){this.zone=e,this.snackBar=i,this._matDialog=o}openInfoToast(e,i){this.zone.run(()=>{this.snackBar.open(e,i,{duration:1e4,verticalPosition:"top"})})}openConfirmDialog(e,i){this.dialogRef=this._matDialog.open(kN,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCreateActivityDialog(e){this.dialogRef=this._matDialog.open(Cne,{panelClass:"noc-activity-create-dialog",data:{formType:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openActivityErrorsDialog(e){this.dialogRef=this._matDialog.open(yje,{panelClass:"activity-errors-dialog",data:{errors:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openCamErrorsDialog(e){this.dialogRef=this._matDialog.open(XWe,{panelClass:"cam-errors-dialog",data:{errors:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openAddEvidenceDialog(e){this.dialogRef=this._matDialog.open(sqe,{panelClass:"noc-add-evidence-dialog",data:{},width:"600px"}),this.dialogRef.afterClosed().subscribe(i=>{i&&e(i)})}openBeforeSaveDialog(e){this.dialogRef=this._matDialog.open(wje,{panelClass:"before-save-dialog",data:{cam:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openConfirmCopyModelDialog(e,i){this.dialogRef=this._matDialog.open(cqe,{panelClass:"noc-confirm-copy-model-dialog",data:{cam:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCommentsDialog(e,i){this.dialogRef=this._matDialog.open(hqe,{panelClass:"noc-comments-dialog",data:{predicate:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openCreateFromExistingDialog(e){this.dialogRef=this._matDialog.open(Mje,{panelClass:"create-from-existing-dialog",data:{cam:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openLinkToExistingDialogComponent(e,i){this.dialogRef=this._matDialog.open(Pje,{panelClass:"noc-link-to-existing-dialog",data:e}),this.dialogRef.afterClosed().subscribe(o=>{i(o)})}openSelectEvidenceDialog(e,i){this.dialogRef=this._matDialog.open(Bje,{panelClass:"noc-select-evidence-dialog",data:{evidence:e}}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openSearchDatabaseDialog(e,i){this.dialogRef=this._matDialog.open(sWe,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openSearchEvidenceDialog(e,i){this.dialogRef=this._matDialog.open(jWe,{panelClass:"noc-search-evidence-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(o=>{o&&i(o)})}openPreviewActivityDialog(){this.dialogRef=this._matDialog.open(OWe,{panelClass:"noc-preview-activity-dialog",width:"600px"})}}return t.\u0275fac=function(e){return new(e||t)(qt(oo),qt(vM),qt(iC))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function pqe(t,n){1&t&&(H(0,"div",28),de(1," Log in to Continue "),G())}function fqe(t,n){if(1&t&&(H(0,"div",29),de(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function gqe(t,n){if(1&t&&(H(0,"span",30)(1,"div",31),de(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function mqe(t,n){1&t&&(H(0,"div",32),de(1," No info yet "),G())}function _qe(t,n){1&t&&(H(0,"div",32),de(1," Working on it ... "),G())}function Cqe(t,n){if(1&t&&(H(0,"div",29),de(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function vqe(t,n){if(1&t&&(H(0,"span",30)(1,"div",31),de(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function bqe(t,n){if(1&t&&(H(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15),de(4,"ID:"),G(),de(5),G(),H(6,"div",14)(7,"div",15),de(8,"Title:"),G(),de(9),G(),H(10,"div",16)(11,"div",15),de(12,"State:"),G(),de(13),G(),H(14,"div",17)(15,"div",14)(16,"div",15),de(17,"Contributors:"),G(),ke(18,Cqe,2,4,"div",18),G(),H(19,"div",14)(20,"div",15),de(21,"Groups:"),G(),ke(22,vqe,3,4,"span",19),G(),H(23,"div",16)(24,"div",15),de(25,"Open In:"),G(),H(26,"a",20),de(27," Pathway Editor "),G(),H(28,"span"),de(29,"\u2022"),G(),H(30,"a",21),de(31," Form Editor "),G(),H(32,"span"),de(33,"\u2022"),G(),H(34,"a",22),de(35," Graph Editor "),G()()()()()),2&t){const e=Ae();W(5),Nt(" ",e.duplicatedCam.id," "),W(4),Nt(" ",e.duplicatedCam.title," "),W(4),Nt(" ",null==e.duplicatedCam.state?null:e.duplicatedCam.state.label," "),W(5),J("ngForOf",e.duplicatedCam.contributors),W(4),J("ngForOf",e.duplicatedCam.groups),W(4),J("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.graphEditorUrl,ao)}}let mS=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaUserService=e,this.ngZone=i,this.camService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaSearchMenuService=l,this.noctuaCommonMenuService=u,this.loading=!1,this.includeEvidence=!1,this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCopyModelChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.loading=!1,this.ngZone.run(()=>{this.duplicatedCam=e})})}ngOnDestroy(){this.camService.onCopyModelChanged.next(null),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}copyModel(){this.noctuaFormDialogService.openConfirmCopyModelDialog(this.cam,o=>{o?(this.loading=!0,this.camService.copyModel(this.cam,null==o?void 0:o.title,this.includeEvidence)):this.loading=!1})}close(){"left"===this.panelSide?this.noctuaCommonMenuService.selectLeftPanel(Uc.camForm):"right"===this.panelSide&&this.noctuaSearchMenuService.selectRightPanel(null),this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(oo),ue(Zr),ue(jc),ue(Co),ue(pl),ue(ul))},t.\u0275cmp=vn({type:t,selectors:[["noc-copy-model"]],inputs:{panelDrawer:"panelDrawer",panelSide:"panelSide"},decls:70,vars:13,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","mb-20"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"example-margin",3,"ngModel","ngModelChange"],["class","noc-item noc-no-info","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-item-body w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"click"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item","noc-no-info"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Copy Model"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),ke(10,pqe,2,0,"div",6),H(11,"div",7)(12,"div",8)(13,"div",9),de(14," Model Information "),G(),Qe(15,"span",3),G()(),H(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"div",14)(21,"div",15),de(22,"ID:"),G(),de(23),G(),H(24,"div",14)(25,"div",15),de(26,"Title:"),G(),de(27),G(),H(28,"div",16)(29,"div",15),de(30,"State:"),G(),de(31),G(),H(32,"div",17)(33,"div",14)(34,"div",15),de(35,"Contributors:"),G(),ke(36,fqe,2,4,"div",18),G(),H(37,"div",14)(38,"div",15),de(39,"Groups:"),G(),ke(40,gqe,3,4,"span",19),G(),H(41,"div",16)(42,"div",15),de(43,"Open In:"),G(),H(44,"a",20),de(45," Pathway Editor "),G(),H(46,"span"),de(47,"\u2022"),G(),H(48,"a",21),de(49," Form Editor "),G(),H(50,"span"),de(51,"\u2022"),G(),H(52,"a",22),de(53," Graph Editor "),G()()(),H(54,"div")(55,"mat-checkbox",23),et("ngModelChange",function(r){return i.includeEvidence=r}),de(56,"Include Evidence"),G()()()()()(),H(57,"div",7)(58,"div",8)(59,"div",9),de(60," Duplicated Model Information "),G(),Qe(61,"span",3),G(),H(62,"div",11),ke(63,mqe,2,0,"div",24),ke(64,_qe,2,0,"div",24),ke(65,bqe,36,8,"div",25),G()()(),H(66,"div",26),Qe(67,"span",3),H(68,"button",27),et("click",function(){return i.copyModel()}),de(69,"Copy Model"),G()()()),2&e&&(W(10),J("ngIf",!i.noctuaUserService.user),W(13),Nt(" ",i.cam.id," "),W(4),Nt(" ",i.cam.title," "),W(4),Nt(" ",null==i.cam.state?null:i.cam.state.label," "),W(5),J("ngForOf",i.cam.contributors),W(4),J("ngForOf",i.cam.groups),W(4),J("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.graphEditorUrl,ao),W(3),J("ngModel",i.includeEvidence),W(8),J("ngIf",!i.duplicatedCam),W(1),J("ngIf",i.loading),W(1),J("ngIf",i.duplicatedCam))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,$o,Tl,Xp,Pl,aM],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:350px;min-width:350px;max-width:350px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}']}),t})();class vR{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const bne=new ui("withDropdownData");function xqe(t,n){if(1&t){const e=Ln();H(0,"div")(1,"div",10)(2,"mat-form-field",14),Qe(3,"input",15),G(),H(4,"button",7),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae().addNewProject(o.controls.projects)}),H(5,"mat-icon"),de(6,"add"),G()(),H(7,"button",7),et("click",function(){const r=Dt(e).index,a=Ae().$implicit;return Ae().deleteProject(a.controls.projects,r)}),H(8,"mat-icon"),de(9,"delete_forever"),G()()()()}if(2&t){const e=n.index;Ae(2);const i=Di(4);W(1),J("formGroupName",e),W(2),J("matAutocomplete",i)}}function yqe(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"a",17),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae().addNewProject(o.controls.projects)}),de(2," Add With/From "),G()()}}function wqe(t,n){if(1&t&&(H(0,"div",9)(1,"div",10)(2,"div",11),ke(3,xqe,10,2,"div",12),ke(4,yqe,3,0,"div",13),G()()()),2&t){const e=n.$implicit,i=n.index;W(1),J("formGroupName",i),W(2),J("ngForOf",e.get("projects").controls),W(1),J("ngIf",0===e.get("projects").controls.length)}}function Mqe(t,n){if(1&t&&(H(0,"mat-option",18),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e," ")}}let Oqe=(()=>{class t{constructor(e,i,o,r,a,l,u){this.fb=e,this.dialogRef=i,this.data=o,this.noctuaLookupService=r,this.noctuaFormDialogService=a,this.noctuaFormConfigService=l,this.noctuaActivityFormService=u,this.weeks=[],this.connectedTo=[],this.indata={companies:[{projects:[{projectName:"WB:145787"}]}]},this.options=$Ve,this._unsubscribeAll=new N,this.formControl=o.formControl,this.myForm=this.fb.group({companies:this.fb.array([])});const f=this.formControl.value;f&&f.split(",").map(U=>U.split("|")),this.weeks=[{id:"week-1",weeklist:["item 1","item 2","item 3","item 4","item 5"]},{id:"week-2",weeklist:["item 1","item 2","item 3","item 4","item 5"]}];for(let M of this.weeks)this.connectedTo.push(M.id)}_filter(e){const i=e.toLowerCase();return this.options.filter(o=>o.toLowerCase().includes(i))}ngOnInit(){this.evidenceDBForm=this._createEvidenceDBForm()}clearValues(){}addNewCompany(){this.myForm.controls.companies.push(this.fb.group({company:[""],projects:this.fb.array([])}))}deleteCompany(e){this.myForm.controls.companies.removeAt(e)}addNewProject(e,i){const o=new Lo(i);e.push(this.fb.group({projectName:o})),this._onValueChange(o)}deleteProject(e,i){e.removeAt(i)}setCompanies(){let e=this.myForm.controls.companies;this.indata.companies.forEach(i=>{e.push(this.fb.group({projects:this.setProjects(i)}))})}setProjects(e){let i=new Xu([]);return e.projects.forEach(o=>{this.addNewProject(i,o.projectName)}),i}drop(e){e.previousContainer===e.container?oZ(e.container.data,e.previousIndex,e.currentIndex):function $Le(t,n,e,i){const o=_C(e,t.length-1),r=_C(i,n.length);t.length&&n.splice(r,0,t.splice(o,1)[0])}(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}save(){const i=[];let o=!0;const r=this.myForm.value.companies.map(a=>a.projects.map(l=>{if(!l.projectName.includes(":")){const u=new wd(Al.error,El.general,`${l.projectName} wrong format, Did you forget ':'`);i.push(u),o=!1}return l.projectName}).join("|")).join(",");o?(this.formControl.setValue(r),this.close()):this.noctuaFormDialogService.openActivityErrorsDialog(i)}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}_createEvidenceDBForm(){return new td({db:new Lo(this.noctuaFormConfigService.evidenceDBs.selected),accession:new Lo("",[P6.required])})}_onValueChange(e){this.filteredOptions=e.valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400),Sc(""),it(o=>this._filter(o)))}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(e2),ue(vR),ue(bne),ue(Sd),ue(jc),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-with-dropdown"]],decls:16,vars:5,consts:[["novalidate","","fxLayout","column","fxLayoutAlign","start stretch",1,"pl-8","pr-8","w-100-p",3,"formGroup"],["formArrayName","companies","fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"noc-form-secion","w-100-p"],["class","noc-with-group",4,"ngFor","ngForOf"],["withAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",3,"click"],["fxLayout","row","fxLayoutAlign","end center",1,"w-100-p"],["mat-icon-button","",3,"click"],["mat-icon-button","","color","primary",3,"click"],[1,"noc-with-group"],[3,"formGroupName"],["formArrayName","projects"],[4,"ngFor","ngForOf"],["class","p-16",4,"ngIf"],["appearance","outline","fxFlex","",1,"noc-sm","w-100-p"],["matInput","","formControlName","projectName","type","text","placeholder","Accession","autocomplete","off",3,"matAutocomplete"],[1,"p-16"],[3,"click"],[3,"value"]],template:function(e,i){if(1&e&&(H(0,"form",0)(1,"div",1),ke(2,wqe,5,3,"div",2),H(3,"mat-autocomplete",null,3),ke(5,Mqe,2,2,"mat-option",4),y0(6,"async"),G(),H(7,"button",5),et("click",function(){return i.addNewCompany()}),de(8,"Add Group"),G(),Qe(9,"br")(10,"br"),G(),H(11,"div",6)(12,"button",7),et("click",function(){return i.close()}),de(13," Cancel "),G(),H(14,"button",8),et("click",function(){return i.save()}),de(15," Ok "),G()()()),2&e){let o;J("formGroup",i.myForm),W(2),J("ngForOf",null==(o=i.myForm.get("companies"))?null:o.controls),W(3),J("ngForOf",bg(6,3,i.filteredOptions))}},directives:[nd,tl,Oo,So,Gc,k0,ts,$o,Yf,id,ko,E2,ed,kh,Pl,Xl,Fo,Ir,Yi,I0,J1],pipes:[Iy],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-form-secion[_ngcontent-%COMP%]{max-height:500px}[_nghost-%COMP%] .noc-form-secion[_ngcontent-%COMP%] .noc-with-group[_ngcontent-%COMP%]{border:#74725c solid 1px;margin-bottom:16px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const Sqe={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let bR=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const o=Object.assign(Object.assign({},Sqe),i);o.positionStrategy=this._getPosition(e);const a=this.createOverlay(o),l=new vR(a);return this.attachDialogContainer(a,o,l),a.backdropClick().subscribe(f=>l.close()),l}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(vR,i),o.set(bne,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(Oqe,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}getLink(){}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class xR{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const xne=new ui("detailDropdownData");function Pqe(t,n){if(1&t){const e=Ln();H(0,"div"),de(1),H(2,"small"),de(3),G(),H(4,"a",12),et("click",function(){const r=Dt(e).$implicit;return Ae().useTerm(r)}),de(5," Use "),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label,""),W(2),Nt("(",e.id,")")}}let Tqe=(()=>{class t{constructor(e,i,o,r){this.dialogRef=e,this.data=i,this.noctuaFormDialogService=o,this.noctuaFormConfigService=r,this._unsubscribeAll=new N,this.formControl=i.formControl,this.termDetail=i.termDetail}ngOnInit(){}clearValues(){}save(){const i=this.evidenceDBForm.value.db,o=this.evidenceDBForm.value.accession;let a=!0;""===o.trim()&&(this.noctuaFormDialogService.openActivityErrorsDialog([]),a=!1),a&&(this.formControl.setValue(i.name+":"+o.trim()),this.close())}useTerm(e){this.formControl.setValue(e)}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(xR),ue(xne),ue(jc),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-detail-dropdown"]],decls:30,vars:5,consts:[[1,"noc-item-details","noc-drawer","w-100-p",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-header-title"],[1,"text-truncate"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close Selected Item",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-body","w-100-p"],[1,"noc-section-row"],[1,"noc-title"],[1,"noc-description"],[4,"ngFor","ngForOf"],[1,"noc-footer","w-100-p"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),et("click",function(r){return r.stopPropagation()}),H(1,"div",1)(2,"div",2)(3,"div",3),de(4),G()(),Qe(5,"span",4),H(6,"button",5),et("click",function(r){return r.stopPropagation(),i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," Close "),G()(),H(10,"div",6)(11,"div",7)(12,"div",8),de(13," Term "),G(),H(14,"div",9),de(15),H(16,"small"),de(17),G()()(),H(18,"div",7)(19,"div",8),de(20," Definition "),G(),H(21,"div",9),de(22),G()(),H(23,"div",7)(24,"div",8),de(25," Is A Type Of "),G(),H(26,"div",9),ke(27,Pqe,6,2,"div",10),G()()(),H(28,"div",11),Qe(29,"span",4),G()()),2&e&&(W(4),Nt(" ",i.termDetail.label," "),W(11),Nt(" ",i.termDetail.label," "),W(2),Nt("(",i.termDetail.id,")"),W(5),Nt(" ",i.termDetail.description," "),W(5),J("ngForOf",i.termDetail.rootTypes))},directives:[Oo,So,ko,Fo,Ir,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%]{max-height:500px;min-height:400px;background-color:#faf9e9}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:transparent;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;z-index:10001}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-header-title[_ngcontent-%COMP%]{max-width:200px;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:10px 8px;height:400px}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:transparent;border-top:1px solid #CCC;z-index:10002;box-shadow:none}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%]{padding:10px 0}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-bottom:8px;font-weight:700;font-size:14px;text-transform:uppercase}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const Eqe={hasBackdrop:!1,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let yR=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const o=Object.assign(Object.assign({},Eqe),i);this.dialogRef&&this.dialogRef.close(),o.positionStrategy=this._getPosition(e);const a=this.createOverlay(o),l=new xR(a);return this.attachDialogContainer(a,o,l),a.backdropClick().subscribe(f=>l.close()),this.dialogRef=l,l}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(xR,i),o.set(xne,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(Tqe,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center"}])}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Aqe=["evidenceDBreferenceMenuTrigger"];function Lqe(t,n){1&t&&Qe(0,"div",19)}function Dqe(t,n){if(1&t&&(H(0,"div",17),ke(1,Lqe,1,0,"div",18),G()),2&t){const e=Ae();W(1),J("ngIf",2===e.entity.treeLevel)}}function kqe(t,n){1&t&&Qe(0,"div",23)}function Iqe(t,n){1&t&&Qe(0,"div",24)}function Nqe(t,n){if(1&t&&(H(0,"div",20),ke(1,kqe,1,0,"div",21),ke(2,Iqe,1,0,"div",22),G()),2&t){const e=Ae();W(1),J("ngIf",3===e.entity.treeLevel),W(1),J("ngIf",e.entity.treeLevel<3)}}function Rqe(t,n){1&t&&Qe(0,"div",23)}function zqe(t,n){1&t&&Qe(0,"div",24)}function Fqe(t,n){if(1&t&&(H(0,"div",25),ke(1,Rqe,1,0,"div",21),ke(2,zqe,1,0,"div",22),G()),2&t){const e=Ae();W(1),J("ngIf",4===e.entity.treeLevel),W(1),J("ngIf",e.entity.treeLevel<4)}}function Hqe(t,n){1&t&&Qe(0,"div",23)}function Vqe(t,n){1&t&&Qe(0,"div",24)}function Bqe(t,n){if(1&t&&(H(0,"div",25),ke(1,Hqe,1,0,"div",21),ke(2,Vqe,1,0,"div",22),G()),2&t){const e=Ae();W(1),J("ngIf",5===e.entity.treeLevel),W(1),J("ngIf",e.entity.treeLevel<5)}}function Gqe(t,n){if(1&t&&(H(0,"a",35),et("click",function(i){return i.stopPropagation()}),de(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function Yqe(t,n){if(1&t&&(H(0,"span"),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}const Uqe=function(){return["fas","chevron-right"]};function jqe(t,n){if(1&t){const e=Ln();H(0,"mat-option",26)(1,"div",27)(2,"div",28),de(3),G(),Qe(4,"span",29),H(5,"div",30),ke(6,Gqe,2,2,"a",31),ke(7,Yqe,2,1,"span",32),G(),H(8,"button",33),et("click",function(o){const a=Dt(e).$implicit;return Ae().openTermDetails(o,a)}),Qe(9,"fa-icon",34),G()()()}if(2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),J("ngIf",e.link),W(1),J("ngIf",!e.link),W(2),J("icon",_i(5,Uqe))}}function Wqe(t,n){if(1&t&&(H(0,"a",35),et("click",function(i){return i.stopPropagation()}),de(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function qqe(t,n){if(1&t&&(H(0,"span"),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function $qe(t,n){if(1&t&&(H(0,"mat-option",26)(1,"div",27)(2,"div",28),de(3),G(),Qe(4,"span",29),H(5,"div",60)(6,"strong"),de(7),G()(),H(8,"div",30),ke(9,Wqe,2,2,"a",31),ke(10,qqe,2,1,"span",32),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(4),Nt(" ",e.xref," "),W(2),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function Xqe(t,n){if(1&t&&(H(0,"mat-option",26)(1,"div",27)(2,"div",28),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function Qqe(t,n){if(1&t&&(H(0,"mat-option",26)(1,"div",27)(2,"div",28),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function Zqe(t,n){1&t&&(H(0,"button",61)(1,"mat-icon"),de(2,"more_vert"),G()()),2&t&&(Ae(),J("matMenuTriggerFor",Di(32)))}function Kqe(t,n){if(1&t){const e=Ln();H(0,"button",55),et("click",function(){Dt(e);const o=Ae(2);return o.openSearchDatabaseDialog(o.entity)}),de(1," Search Annotations "),G()}}function Jqe(t,n){if(1&t){const e=Ln();H(0,"button",55),et("click",function(){Dt(e);const o=Ae(2);return o.toggleIsComplement(o.entity)}),de(1," NOT Qualifier "),G()}}function e$e(t,n){1&t&&(H(0,"button",54),de(1," Add an Extension "),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(42)))}function t$e(t,n){if(1&t){const e=Ln();H(0,"button",55),et("click",function(){return Dt(e),Ae(2).addRootTerm()}),de(1," Add Root Term "),G()}}function n$e(t,n){if(1&t){const e=Ln();H(0,"button",62),et("click",function(){const r=Dt(e).$implicit;return Ae(2).insertEntityShex(r)}),de(1),H(2,"div",63),de(3),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",null==e?null:e.label," "),W(2),Nt(" ",null==e?null:e.rangeLabel," ")}}function i$e(t,n){if(1&t){const e=Ln();H(0,"div",36)(1,"div",37)(2,"div",38)(3,"mat-form-field",5)(4,"mat-label"),de(5,"Evidence"),G(),H(6,"textarea",39),et("focus",function(){Dt(e);const o=Ae();return o.updateEvidenceList(o.entity)}),G(),H(7,"mat-autocomplete",40,41),ke(9,$qe,11,5,"mat-option",10),G()()(),H(10,"div",42)(11,"mat-form-field",5)(12,"mat-label"),de(13,"Reference"),G(),H(14,"textarea",43),et("focus",function(){return Dt(e),Ae().updateReferenceList()}),G(),H(15,"button",44),et("click",function(o){const a=Dt(e).$implicit;return Ae().openAddReference(o,a,"reference")}),H(16,"mat-icon"),de(17,"playlist_add"),G()(),H(18,"mat-autocomplete",45,46),ke(20,Xqe,4,2,"mat-option",10),G()()(),H(21,"div",47)(22,"mat-form-field",5)(23,"mat-label"),de(24,"With"),G(),H(25,"textarea",48),et("focus",function(){return Dt(e),Ae().updateWithList()}),G(),H(26,"mat-autocomplete",45,49),ke(28,Qqe,4,2,"mat-option",10),G()()(),Qe(29,"span",29),ke(30,Zqe,3,1,"button",13),H(31,"mat-menu",50,51),ke(33,Kqe,2,0,"button",52),ke(34,Jqe,2,0,"button",52),ke(35,e$e,2,1,"button",53),H(36,"button",54),de(37,"Evidence"),G(),ke(38,t$e,2,0,"button",52),H(39,"button",55),et("click",function(){return Dt(e),Ae().clearValues()}),de(40," Clear Values "),G()(),H(41,"mat-menu",14,56),ke(43,n$e,4,2,"button",16),G(),H(44,"mat-menu",57,58)(46,"button",55),et("click",function(){return Dt(e),Ae().addEvidence()}),de(47," Add Evidence "),G(),H(48,"button",59),et("click",function(){const r=Dt(e).index;return Ae().removeEvidence(r)}),de(49," Remove Evidence "),G(),H(50,"button",55),et("click",function(){return Dt(e),Ae().openSelectEvidenceDialog()}),de(51," Clone Evidence "),G()()()()}if(2&t){const e=n.index,i=Di(8),o=Di(19),r=Di(27),a=Di(45),l=Ae();W(1),J("formGroupName",e),W(5),J("matAutocomplete",i),W(1),J("displayWith",l.evidenceDisplayFn),W(2),J("ngForOf",null==l.entity||null==l.entity.predicate?null:l.entity.predicate.evidenceLookup.results),W(5),J("matAutocomplete",o),W(6),J("ngForOf",null==l.entity||null==l.entity.predicate?null:l.entity.predicate.referenceLookup.results),W(5),J("matAutocomplete",r),W(3),J("ngForOf",null==l.entity||null==l.entity.predicate?null:l.entity.predicate.withLookup.results),W(2),J("ngIf",!l.displayAddButton),W(3),J("ngIf",l.entity.aspect),W(1),J("ngIf",!0),W(1),J("ngIf",(null==l.entity.insertMenuNodes?null:l.entity.insertMenuNodes.length)>0),W(1),J("matMenuTriggerFor",a),W(2),J("ngIf",l.entity.aspect),W(5),J("ngForOf",l.entity.insertMenuNodes)}}const o$e=function(){return["fas","plus"]};function r$e(t,n){1&t&&(H(0,"button",61),Qe(1,"fa-icon",34),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(19)),W(1),J("icon",_i(2,o$e)))}function a$e(t,n){if(1&t){const e=Ln();H(0,"button",62),et("click",function(){const r=Dt(e).$implicit;return Ae().insertEntityShex(r)}),de(1),H(2,"div",63),de(3),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",null==e?null:e.label," "),W(2),Nt(" ",null==e?null:e.rangeLabel," ")}}let s$e=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaFormDialogService=e,this.camService=i,this.inlineReferenceService=o,this.inlineDetailService=r,this.inlineWithService=a,this.noctuaFormConfigService=l,this.noctuaActivityFormService=u,this.activityNodeType=$n,this.displayAddButton=!1,this.unsubscribeAll=new N}ngOnInit(){this.entity=this.noctuaActivityFormService.activity.getNode(this.entityFormGroup.get("id").value),this.friendNodes=this.camService.getNodesByType(this.entity.type),this.noctuaActivityFormService.activity.activityType===so.ccOnly&&1===this.entity.treeLevel&&(this.displayAddButton=!0),this.noctuaActivityFormService.activity.activityType===so.proteinComplex&&this.entity.type===$n.GoProteinContainingComplex&&(this.displayAddButton=!0)}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}addEvidence(){this.entity.predicate.addEvidence(),this.noctuaActivityFormService.initializeForm()}useTerm(e,i){const o=this;switch(o.entity.term=e.term,o.entity.type){case $n.GoBiologicalProcess:case $n.GoCellularComponent:o.entity.linkedNode=!0,o.entity.uuid=e.uuid,o.noctuaActivityFormService.activity.insertSubgraph(i,o.entity,e)}o.noctuaActivityFormService.initializeForm()}removeEvidence(e){this.entity.predicate.removeEvidence(e),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(e){const o=[];let r=!0;(0,Zt.each)(e.nodeGroup.nodes,function(a){if(a.isExtension){r=!1;const u=new wd(Al.error,El.general,`Cannot add 'NOT Qualifier', Remove Extension'${a.label}'`,{aspect:a.label});o.push(u)}}),r?(e.toggleIsComplement(),this.noctuaActivityFormService.initializeForm()):this.noctuaFormDialogService.openActivityErrorsDialog(o)}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o&&o.hasValue()){const a=l=>{l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&(e.predicate.setEvidence(l.evidences),l.evidences.forEach(u=>{u.evidenceExts.forEach(f=>{})})),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new wd(Al.error,El.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}openSearchEvidenceDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o){const a=function(l){l&&l.evidences&&(e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchEvidenceDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}linkNode(e){const i=this,o=this.camService.getNodesByType(e.type);i.noctuaFormDialogService.openLinkToExistingDialogComponent({entity:e,nodes:o},function(l){if(l.activityNode){const u=l.activityNode;e.uuid=u.uuid,e.term=u.term,e.linkedNode=!0,i.noctuaActivityFormService.initializeForm()}})}unlinkNode(e){e.linkedNode=!1,e.uuid=null}openSearchModels(){}insertEntityShex(e){this.noctuaFormConfigService.insertActivityNodeShex(this.noctuaActivityFormService.activity,this.entity,e),this.noctuaActivityFormService.initializeForm()}addRootTerm(){const e=this,i=(0,Zt.find)(Ht.rootNode,o=>o.aspect===e.entity.aspect);if(i){e.entity.term=new Pi(i.id,i.label),e.noctuaActivityFormService.initializeForm();const o=new Ll;o.setEvidence(new Pi(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ht.evidenceAutoPopulate.nd.reference,e.entity.predicate.setEvidence([o]),e.noctuaActivityFormService.initializeForm()}}clearValues(){this.entity.clearValues(),this.noctuaActivityFormService.initializeForm()}removeNode(){const e=this;e.noctuaActivityFormService.activity.removeNode(e.entity),e.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(){const e=this,i=this.camService.getUniqueEvidence(e.noctuaActivityFormService.activity);e.noctuaFormDialogService.openSelectEvidenceDialog(i,r=>{r.evidences&&r.evidences.length>0&&(e.entity.predicate.setEvidence(r.evidences),e.noctuaActivityFormService.initializeForm())})}updateMenu(e){this.noctuaActivityFormService.initializeForm(e.rootTypes)}updateTermList(){this.camService.updateTermList(this.noctuaActivityFormService.activity,this.entity)}updateEvidenceList(){this.camService.updateEvidenceList(this.noctuaActivityFormService.activity,this.entity)}updateReferenceList(){this.camService.updateReferenceList(this.noctuaActivityFormService.activity,this.entity)}updateWithList(){this.camService.updateWithList(this.noctuaActivityFormService.activity,this.entity)}openAddReference(e,i,o){e.stopPropagation(),this.inlineReferenceService.open(e.target,{data:{formControl:i.controls[o]}})}openAddWith(e,i,o){e.stopPropagation(),this.inlineWithService.open(e.target,{data:{formControl:i.controls[o]}})}unselectItemDisplay(){this.selectedItemDisplay=null}openTermDetails(e,i){e.stopPropagation(),this.inlineDetailService.open(e.target,{data:{termDetail:i,formControl:this.entityFormGroup.controls.term}})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}referenceDisplayFn(e){return"string"==typeof e?e:e&&e.reference?e.reference:void 0}withDisplayFn(e){return"string"==typeof e?e:e&&e.with?e.with:void 0}}return t.\u0275fac=function(e){return new(e||t)(ue(jc),ue(Zr),ue(xm),ue(yR),ue(bR),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-entity-form"]],viewQuery:function(e,i){if(1&e&&_o(Aqe,7,il),2&e){let o;fi(o=gi())&&(i.evidenceDBreferenceMenuTrigger=o.first)}},inputs:{entityFormGroup:"entityFormGroup"},decls:21,vars:12,consts:[["fxLayout","row","fxLayoutAlign","start stretch",1,"w-100-p",3,"formGroup"],["class","noc-tree-input noc-level-1","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","noc-tree-input noc-level-2","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["class","noc-tree-input noc-level-3","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","flex","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","term","row","2",3,"matAutocomplete","focus"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["termAuto","matAutocomplete"],["fxFlex","400px",1,""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60%","fxLayout","column","fxLayoutAlign","start stretch"],["formArrayName","evidenceFormArray",4,"ngFor","ngForOf"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor",4,"ngIf"],[1,"noc-extensions-menu-panel"],["ccOnlyAddMenu","matMenu"],["mat-menu-item","","fxLayout","column","fxLayoutAlign","start start","class","w-100-p",3,"click",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-tree-input","noc-level-1"],["class","noc-tree-line line-m","fxFlex","",4,"ngIf"],["fxFlex","",1,"noc-tree-line","line-m"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-tree-input","noc-level-2"],["class","noc-tree-line line-t","fxFlex","50%",4,"ngIf"],["class","noc-tree-line iine-b","fxFlex","50%",4,"ngIf"],["fxFlex","50%",1,"noc-tree-line","line-t"],["fxFlex","50%",1,"noc-tree-line","iine-b"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-tree-input","noc-level-3"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],["fxFlex",""],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"noc-term-detail-trigger","noc-rounded-button","noc-sm","ml-8",3,"click"],[3,"icon"],["target","_blank",3,"href","click"],["formArrayName","evidenceFormArray"],["fxLayout","row","fxLayoutAlign","start stretch",1,"w-100-p",3,"formGroupName"],["fxFlex","55",1,"p-4"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],["fxFlex","25",1,"p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","20",1,"p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],[1,"noc-dropdown-menu","noc-menu-panel"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"],["addMenu","matMenu"],[1,"noc-menu-panel"],["evidenceMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"noc-term-id","mr-8"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor"],["mat-menu-item","","fxLayout","column","fxLayoutAlign","start start",1,"w-100-p",3,"click"],[1,"noc-terms-description"]],template:function(e,i){if(1&e&&(H(0,"div",0),ke(1,Dqe,2,1,"div",1),ke(2,Nqe,3,2,"div",2),ke(3,Fqe,3,2,"div",3),ke(4,Bqe,3,2,"div",3),H(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),de(8),G(),H(9,"textarea",6),et("focus",function(){return i.updateTermList()}),de(10," "),G(),H(11,"mat-autocomplete",7,8),et("optionSelected",function(r){return i.updateMenu(r.option.value)}),H(13,"div",9),ke(14,jqe,10,6,"mat-option",10),G()()()(),H(15,"div",11),ke(16,i$e,52,15,"div",12),G(),ke(17,r$e,2,3,"button",13),H(18,"mat-menu",14,15),ke(20,a$e,4,2,"button",16),G()()),2&e){const o=Di(12);let r;J("formGroup",i.entityFormGroup),W(1),J("ngIf",i.entity.treeLevel>1),W(1),J("ngIf",i.entity.treeLevel>2),W(1),J("ngIf",i.entity.treeLevel>3),W(1),J("ngIf",i.entity.treeLevel>4),W(4),qo(i.entity.label),W(1),J("matAutocomplete",o),W(2),J("displayWith",i.termDisplayFn),W(3),J("ngForOf",null==i.entity?null:i.entity.termLookup.results),W(2),J("ngForOf",null==(r=i.entityFormGroup.get("evidenceFormArray"))?null:r.controls),W(1),J("ngIf",i.displayAddButton),W(3),J("ngForOf",i.entity.insertMenuNodes)}},directives:[Oo,So,tl,Gc,Yi,ko,id,yd,E2,ed,kh,Pl,Xl,I0,$o,J1,Fo,ps,k0,Yf,E6,Ir,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-tree-input.noc-level-1[_ngcontent-%COMP%]{border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line[_ngcontent-%COMP%]{width:100%;border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-t[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-left:rgba(0,0,0,.2) dotted 2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-m[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-form-chip-row[_ngcontent-%COMP%]{padding:8px 5px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%]{padding:0 0 0 8px;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-mf[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-mf[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-bp[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-bp[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-cc[_ngcontent-%COMP%]{border:rgba(211,181,245,.8) solid 1px;background-color:#d3b5f533}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-cc[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d3b5f5cc}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] textarea[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function c$e(t,n){1&t&&(H(0,"span"),de(1," Activity Unit Form "),G())}function l$e(t,n){1&t&&(H(0,"span"),de(1," BP Annotation Form "),G())}function d$e(t,n){1&t&&(H(0,"span"),de(1," CC Annotation Form "),G())}function u$e(t,n){1&t&&(H(0,"span"),de(1," Molecule Form "),G())}function h$e(t,n){1&t&&(H(0,"span"),de(1," Protein Complex Form "),G())}function p$e(t,n){1&t&&(H(0,"div",24),de(1," Log in to Continue "),G())}function f$e(t,n){1&t&&(H(0,"div",25),de(1," Note that this should be used rarely, and only in the case where the activity cannot be ascribed to a single subunit of a complex "),G())}function g$e(t,n){if(1&t&&(H(0,"div",28),Qe(1,"noc-entity-form",29),G()),2&t){const e=n.$implicit;J("formGroupName",Ae().index),W(1),J("entityFormGroup",e)}}function m$e(t,n){if(1&t&&(H(0,"div",26),ke(1,g$e,2,2,"div",27),G()),2&t){const e=n.$implicit;let i;yf("mat-elevation-z1 noc-term-group mb-4 px-8 pt-4 ",e.get("name").value,""),J("formArrayName","gp"),W(1),J("ngForOf",null==(i=e.get("entityGroup"))?null:i.controls)}}function _$e(t,n){if(1&t&&(H(0,"mat-option",37),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function C$e(t,n){if(1&t&&(H(0,"div",30)(1,"div",31)(2,"mat-form-field",32)(3,"mat-label")(4,"strong"),de(5,"(readonly)"),G(),de(6," Molecular Function "),G(),Qe(7,"input",33),G()(),H(8,"div",34)(9,"mat-form-field",32)(10,"mat-label"),de(11,"Choose Causal Relation"),G(),H(12,"mat-select",35),ke(13,_$e,2,2,"mat-option",36),G()()()()),2&t){const e=Ae();W(7),J("readonly",!0),W(6),J("ngForOf",e.noctuaFormConfigService.bpOnlyEdges.options)}}function v$e(t,n){1&t&&(H(0,"div",42)(1,"div"),de(2,"IS NOT"),G()())}function b$e(t,n){if(1&t&&(er(0,43),Qe(1,"noc-entity-form",44),tr()),2&t){const e=n.$implicit;J("formGroupName",Ae().index),W(1),J("entityFormGroup",e)}}function x$e(t,n){if(1&t&&(H(0,"div",38),ke(1,v$e,3,0,"div",39),H(2,"div",40),ke(3,b$e,2,2,"ng-container",41),G()()),2&t){const e=n.$implicit;let i,o;yf("mat-elevation-z1 noc-term-group mb-4 px-8 ",e.get("name").value,""),J("formArrayName","fd"),W(1),J("ngIf",null==(i=e.get("isComplement"))?null:i.value),W(2),J("ngForOf",null==(o=e.get("entityGroup"))?null:o.controls)}}function y$e(t,n){if(1&t){const e=Ln();H(0,"button",45),et("click",function(){return Dt(e),Ae().checkErrors()}),de(1,' Why is the "Save" button disabled? '),G()}}const w$e=function(){return{right:!0}};let wR=(()=>{class t{constructor(e,i,o,r){this.noctuaFormDialogService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaActivityFormService=r,this.ActivityState=d_,this.ActivityType=so,this.resizeStyle={},this.searchCriteria={},this.activityFormData=[],this.descriptionSectionTitle="Function Description",this.annotatedSectionTitle="Gene Product",this._unsubscribeAll=new N}ngOnInit(){this.activityFormSub=this.noctuaActivityFormService.activityFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.activityFormGroup=e,this.currentActivity=this.noctuaActivityFormService.currentActivity,this.activity=this.noctuaActivityFormService.activity,this.state=this.noctuaActivityFormService.state,this.molecularEntity=this.activityFormGroup.get("molecularEntity"),this.activity.activityType===so.ccOnly?this.descriptionSectionTitle="Localization Description":this.activity.activityType===so.molecule?(this.annotatedSectionTitle="Small Molecule",this.descriptionSectionTitle="Location (optional)"):this.descriptionSectionTitle="Function Description")})}resizeValidate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<50||e.rectangle.height<50))}onResizeEnd(e){this.resizeStyle={width:`${e.rectangle.width}px`}}checkErrors(){this.noctuaFormDialogService.openActivityErrorsDialog(this.noctuaActivityFormService.activity.submitErrors)}save(){const e=this;e.noctuaActivityFormService.saveActivity().subscribe(()=>{e.noctuaFormDialogService.openInfoToast("Annotation successfully created.","OK"),e.noctuaActivityFormService.clearForm(),this.closeDialog&&this.closeDialog()})}preview(){this.noctuaFormDialogService.openPreviewActivityDialog()}clear(){this.noctuaActivityFormService.clearForm()}createExample(){this.noctuaActivityFormService.initializeFormData()}termDisplayFn(e){return e?e.label:void 0}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(jc),ue(yr),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-form"]],inputs:{panelDrawer:"panelDrawer",closeDialog:"closeDialog"},decls:45,vars:18,consts:[[1,"h-100-p"],["name","activityFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["mwlResizeHandle","",1,"resize-handle-right",3,"resizeEdges"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],[3,"ngSwitch"],[4,"ngSwitchCase"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-activity-form"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["class","alert alert-warning w-100-p mb-0",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["mat-icon-button","",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-0"],[3,"formArrayName","class",4,"ngFor","ngForOf"],["class","mat-elevation-z1 noc-term-group mb-4 px-8 mf","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch",3,"formArrayName","class",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["mat-button","","color","warn","class","noc-rounded-button noc-sm",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","submit","mat-raised-button","","color","primary",1,"",3,"disabled","click"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[1,"alert","alert-warning","w-100-p","mb-0"],[3,"formArrayName"],["class","",3,"formGroupName",4,"ngFor","ngForOf"],[1,"",3,"formGroupName"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"entityFormGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"mat-elevation-z1","noc-term-group","mb-4","px-8","mf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","value","molecular_function (GO:0003674)",3,"readonly"],["fxFlex","600px","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["placeholder","","formControlName","bpOnlyEdge"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxLayout","row","fxLayoutAlign","start stretch",3,"formArrayName"],["class","noc-group-side-heading","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],[1,"w-100-p"],[3,"formGroupName",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-group-side-heading"],[3,"formGroupName"],[1,"",3,"entityFormGroup"],["mat-button","","color","warn",1,"noc-rounded-button","noc-sm",3,"click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"form",1),Qe(2,"div",2),H(3,"div",3)(4,"div",4),er(5,5),ke(6,c$e,2,0,"span",6),ke(7,l$e,2,0,"span",6),ke(8,d$e,2,0,"span",6),ke(9,u$e,2,0,"span",6),ke(10,h$e,2,0,"span",6),tr(),G(),Qe(11,"span",7),H(12,"button",8),et("click",function(){return i.close()}),H(13,"mat-icon"),de(14,"close"),G(),de(15," Close "),G()(),H(16,"div",9),ke(17,p$e,2,0,"div",10),H(18,"div",11),ke(19,f$e,2,0,"div",12),H(20,"div",13)(21,"div",14),de(22),G(),Qe(23,"span",7),H(24,"button",15),et("click",function(){return i.createExample()}),de(25," . "),G()(),H(26,"div",16),ke(27,m$e,2,5,"div",17),G()(),H(28,"div",11)(29,"div",13)(30,"div",14),de(31),G(),Qe(32,"span",7),G(),H(33,"div",16),ke(34,C$e,14,2,"div",18),ke(35,x$e,4,6,"div",19),G()()(),H(36,"div",20),ke(37,y$e,2,0,"button",21),Qe(38,"span",7),H(39,"button",22),et("click",function(){return i.preview()}),de(40,"Preview"),G(),H(41,"button",22),et("click",function(){return i.clear()}),de(42,"Clear"),G(),H(43,"button",23),et("click",function(){return i.save()}),de(44,"Save"),G()()()()),2&e){let o,r;W(1),J("formGroup",i.activityFormGroup),W(1),J("resizeEdges",_i(17,w$e)),W(3),J("ngSwitch",i.noctuaActivityFormService.activity.activityType),W(1),J("ngSwitchCase",i.ActivityType.default),W(1),J("ngSwitchCase",i.ActivityType.bpOnly),W(1),J("ngSwitchCase",i.ActivityType.ccOnly),W(1),J("ngSwitchCase",i.ActivityType.molecule),W(1),J("ngSwitchCase",i.ActivityType.proteinComplex),W(7),J("ngIf",!i.noctuaUserService.user),W(2),J("ngIf",i.noctuaActivityFormService.activity.activityType===i.ActivityType.proteinComplex),W(3),Nt(" ",i.annotatedSectionTitle," "),W(5),J("ngForOf",null==(o=i.activityFormGroup.get("gp"))?null:o.controls),W(4),Nt(" ",i.descriptionSectionTitle," "),W(3),J("ngIf",i.noctuaActivityFormService.activity.activityType===i.ActivityType.bpOnly),W(1),J("ngForOf",null==(r=i.activityFormGroup.get("fd"))?null:r.controls),W(2),J("ngIf",i.noctuaActivityFormService.activity.submitErrors.length>0),W(6),J("disabled",i.noctuaActivityFormService.activity.submitErrors.length>0)}},directives:[nd,tl,Oo,So,Gc,Jte,bd,iu,ko,Fo,Ir,ts,Yi,$o,k0,Yf,s$e,id,yd,E2,qg,Pl,Xl,J1],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:40px;min-width:40px;max-width:40px;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] noc-entity-form[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{padding-right:8px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px;background-color:#ddd;font-size:10px;text-align:center}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:250px;height:100px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:12px;color:#777}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{background-color:#fff;border-left:#fff solid 5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.mf[_ngcontent-%COMP%]{border-left-color:#7cd488cc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.bp[_ngcontent-%COMP%]{border-left-color:#f4c89ccc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.cc[_ngcontent-%COMP%]{border-left-color:#d3b5f5cc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;border-right:rgba(0,0,0,.12) solid 1px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-tree-input.noc-level-0[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%]{margin:0;padding-top:20px;padding-bottom:8px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:0;bottom:auto!important;left:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] .md-errors-spacer[_ngcontent-%COMP%]{visibility:hidden;display:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function M$e(t,n){if(1&t&&(H(0,"mat-option",29),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function O$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),de(2,"Find What "),H(3,"strong"),de(4,"(Ontology Term)"),G()(),Qe(5,"textarea",31),G()),2&t){Ae(2);const e=Di(3);W(5),J("matAutocomplete",e)}}function S$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),de(2,"Find What "),H(3,"strong"),de(4,"(Gene Product)"),G()(),Qe(5,"textarea",31),G()),2&t){Ae(2);const e=Di(3);W(5),J("matAutocomplete",e)}}function P$e(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",30)(1,"mat-label"),de(2,"Find What "),H(3,"strong"),de(4,"(Reference)"),G()(),Qe(5,"textarea",32),H(6,"button",33),et("click",function(o){return Dt(e),Ae(2).openAddReference(o,"findWhat")}),H(7,"mat-icon"),de(8,"playlist_add"),G()()()}}function T$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),de(2,"Replace With "),H(3,"strong"),de(4,"(Ontology Term)"),G()(),Qe(5,"textarea",34),G()),2&t){Ae(2);const e=Di(6);W(5),J("matAutocomplete",e)}}function E$e(t,n){if(1&t&&(H(0,"mat-form-field",30)(1,"mat-label"),de(2,"Replace With "),H(3,"strong"),de(4,"(Gene Product)"),G()(),Qe(5,"textarea",34),G()),2&t){Ae(2);const e=Di(6);W(5),J("matAutocomplete",e)}}function A$e(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",30)(1,"mat-label"),de(2,"Replace With "),H(3,"strong"),de(4,"(Reference)"),G()(),Qe(5,"textarea",35),H(6,"button",33),et("click",function(o){return Dt(e),Ae(2).openAddReference(o,"replaceWith")}),H(7,"mat-icon"),de(8,"playlist_add"),G()()()}}function L$e(t,n){1&t&&(H(0,"div",36),de(1," No Results "),G())}function D$e(t,n){if(1&t&&(H(0,"div",37),de(1),G()),2&t){const e=Ae(2);W(1),cy(" ",e.noctuaReviewSearchService.matchedCountCursor+1," of ",e.noctuaReviewSearchService.matchedCount," ")}}const yne=function(){return["far","times-circle"]},Cv=function(t){return{"noc-disabled":t}},k$e=function(){return["fas","angle-double-left"]},I$e=function(){return["fas","angle-left"]},N$e=function(){return["fas","angle-right"]},R$e=function(){return["fas","angle-double-right"]};function z$e(t,n){if(1&t){const e=Ln();H(0,"form",7)(1,"mat-form-field",8)(2,"mat-label"),de(3,"Category"),G(),H(4,"mat-select",9),ke(5,M$e,2,2,"mat-option",10),G()(),H(6,"div",11)(7,"button",12),et("click",function(o){Dt(e);const r=Ae();return o.stopPropagation(),r.clearFind()}),Qe(8,"fa-icon",13),G(),ke(9,O$e,6,1,"mat-form-field",14),ke(10,S$e,6,1,"mat-form-field",15),ke(11,P$e,9,0,"mat-form-field",15),G(),H(12,"div",16)(13,"button",12),et("click",function(o){Dt(e);const r=Ae();return o.stopPropagation(),r.clearReplace()}),Qe(14,"fa-icon",13),G(),ke(15,T$e,6,1,"mat-form-field",14),ke(16,E$e,6,1,"mat-form-field",15),ke(17,A$e,9,0,"mat-form-field",15),G(),H(18,"div",17)(19,"div",18),Qe(20,"span",19),ke(21,L$e,2,0,"div",20),ke(22,D$e,2,2,"div",21),H(23,"div",22)(24,"button",23),et("click",function(){return Dt(e),Ae().goto("first")}),Qe(25,"fa-icon",13),G(),H(26,"button",24),et("click",function(){return Dt(e),Ae().findPrevious()}),Qe(27,"fa-icon",13),G(),H(28,"button",25),et("click",function(){return Dt(e),Ae().findNext()}),Qe(29,"fa-icon",13),G(),H(30,"button",23),et("click",function(){return Dt(e),Ae().goto("last")}),Qe(31,"fa-icon",13),G()()(),H(32,"div",26)(33,"button",27),et("click",function(){return Dt(e),Ae().replace()}),de(34," Replace "),G(),H(35,"button",28),et("click",function(){return Dt(e),Ae().replaceAll()}),de(36," Replace All "),G()()()()}if(2&t){const e=Ae();J("formGroup",e.searchForm),W(4),J("compareWith",e.compareCategory),W(1),J("ngForOf",e.categories.options),W(3),J("icon",_i(22,yne)),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.term),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.gp),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.reference),W(1),J("ngClass",wo(23,Cv,0===e.noctuaReviewSearchService.matchedCount||!e.displayReplaceForm.replaceSection)),W(2),J("icon",_i(25,yne)),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.term),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.gp),W(1),J("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.reference),W(1),J("ngClass",wo(26,Cv,0===e.noctuaReviewSearchService.matchedCount)),W(3),J("ngIf",0===e.noctuaReviewSearchService.matchedCount),W(1),J("ngIf",e.noctuaReviewSearchService.matchedCount>0),W(2),J("ngClass",wo(28,Cv,0===e.noctuaReviewSearchService.matchedCountCursor)),W(1),J("icon",_i(30,k$e)),W(2),J("icon",_i(31,I$e)),W(2),J("icon",_i(32,N$e)),W(1),J("ngClass",wo(33,Cv,e.noctuaReviewSearchService.matchedCountCursor===e.noctuaReviewSearchService.matchedCount-1)),W(1),J("icon",_i(35,R$e)),W(1),J("ngClass",wo(36,Cv,!e.displayReplaceForm.replaceActions))}}function F$e(t,n){if(1&t&&(H(0,"mat-option",38)(1,"div",39)(2,"div",40),de(3),G(),Qe(4,"span",19),H(5,"div",41),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function H$e(t,n){if(1&t&&(H(0,"mat-option",38)(1,"div",39)(2,"div",40),de(3),G(),Qe(4,"span",19),H(5,"div",41),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}let wne=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this.zone=e,this.bbopGraphService=i,this.camService=o,this.confirmDialogService=r,this.noctuaReviewSearchService=a,this.noctuaUserService=l,this.noctuaLookupService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=M,this.inlineReferenceService=T,this.ActivityType=so,this.ArtReplaceCategory=RO,this.cams=[],this.displayReplaceForm={replaceSection:!1,replaceActions:!1},this.noctuaFormConfig=Ht,this.textboxDetail={placeholder:""},this._unsubscribeAll=new N,this.categories=(0,Zt.cloneDeep)(this.noctuaFormConfigService.findReplaceCategories),this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(U=>{!U||(this.cams=U)}),this.gpNode=mu([e1]),this.termNode=mu([p1,Jl,rd,jC,u3,l_])}ngOnInit(){this.selectedCategory=this.categories.selected,this.resetForm(this.selectedCategory),this.noctuaReviewSearchService.onCamTermSearch.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.clearFind(),this.searchForm.controls.findWhat.setValue(e),this.findSelected(e))}),this.noctuaReviewSearchService.onCamReplaceTermSearch.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.searchForm.controls.replaceWith.setValue(e)}),this.noctuaReviewSearchService.onClearForm.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.clearFind()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}resetForm(e){this.searchForm=this.createSearchForm(e),this.noctuaReviewSearchService.clear(),this.camService.clearHighlight(),this.calculateEnableReplace(this.selectedCategory),this.onValueChanges(),this.onNodeValueChange(e)}resetTermNode(){this.termNode=mu([p1,Jl,rd,jC,u3,l_])}createSearchForm(e){return this.selectedCategory=e,new td({findWhat:new Lo,replaceWith:new Lo,category:new Lo(e)})}getClosure(e){return[e1,p1,Jl,rd,jC,u3,l_,Kl,UC,xN].filter(r=>e.find(a=>a.id===r.category))}search(e){let i;this.noctuaReviewSearchService.clear(),this.selectedCategory.name===Ht.findReplaceCategory.options.term.name?i=this.noctuaReviewSearchService.filterType.terms:this.selectedCategory.name===Ht.findReplaceCategory.options.gp.name?i=this.noctuaReviewSearchService.filterType.gps:this.selectedCategory.name===Ht.findReplaceCategory.options.reference.name&&(i=this.noctuaReviewSearchService.filterType.pmids),this.noctuaReviewSearchService.searchCriteria[i]=[e],this.noctuaReviewSearchService.updateSearch()}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.searchForm.controls[i]}})}replace(){const e=this,r=e.camService.getReplaceObject([this.noctuaReviewSearchService.currentMatchedEnity],this.searchForm.value.replaceWith,e.selectedCategory);e.replaceCams(r)}replaceAll(){const e=this,i=this.searchForm.value,o=(0,Zt.groupBy)(this.noctuaReviewSearchService.matchedEntities,"modelId"),r=Object.keys(o).length;let l=i.replaceWith;this.confirmDialogService.openConfirmDialog("Confirm ReplaceAll?",`Replace ${this.noctuaReviewSearchService.matchedCount} occurrences across ${r} model(s)`,f=>{if(f){const M=e.camService.getReplaceObject(this.noctuaReviewSearchService.matchedEntities,l,e.selectedCategory);e.camService.resetLoading(M,new Md(!0,"Loading...")),e.replaceCams(M)}})}findNext(){this.noctuaReviewSearchService.findNext()}findPrevious(){this.noctuaReviewSearchService.findPrevious()}goto(e){this.noctuaReviewSearchService.goto(e)}findSelected(e){const i=this.getClosure(e.rootTypes);this.findNode.termLookup.results=[],i&&(this.replaceNode=mu(i)),this.search(this.searchForm.value.findWhat),this.searchForm.patchValue({replaceWith:null})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}clearFind(){const e=this;e.searchForm.patchValue({findWhat:null,replaceWith:null}),e.noctuaReviewSearchService.clear(),e.camService.clearHighlight(),e.calculateEnableReplace(e.selectedCategory)}clearReplace(){const e=this;e.searchForm.patchValue({replaceWith:null}),e.calculateEnableReplace(e.selectedCategory)}onValueChanges(){const e=this;this.searchForm.get("category").valueChanges.pipe(Yn(this._unsubscribeAll),Cs()).subscribe(i=>{i&&(e.selectedCategory=i,e.searchForm.patchValue({findWhat:null,replaceWith:null}),e.calculateEnableReplace(e.selectedCategory),e.resetForm(i))})}onNodeValueChange(e){const i=this,o=i.noctuaLookupService.lookupFunc();e.name===Ht.findReplaceCategory.options.term.name?(i.findNode=i.termNode,i.textboxDetail.placeholder="Ontology Term"):e.name===Ht.findReplaceCategory.options.gp.name?(i.findNode=i.gpNode,i.textboxDetail.placeholder="Gene Product"):e.name===Ht.findReplaceCategory.options.reference.name&&(i.findNode=null,i.textboxDetail.placeholder="Reference"),i.findNode?(this.findNode.termLookup.results=[],this.searchForm.get("findWhat").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400)).subscribe(r=>{if(r){const a=i.findNode.termLookup;o.termLookup(r,a.requestParams).subscribe(l=>{a.results=l}),i.searchForm.patchValue({replaceWith:null}),i.calculateEnableReplace(e)}}),this.searchForm.get("replaceWith").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400)).subscribe(r=>{if(r&&i.replaceNode){const a=i.replaceNode.termLookup;o.termLookup(r,a.requestParams).subscribe(l=>{a.results=l}),i.calculateEnableReplace(e)}})):(this.searchForm.get("findWhat").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(1e3)).subscribe(r=>{if(r&&r.includes(":")&&Ll.checkReference){const a=Ll.formatReference(r);i.search(a),i.calculateEnableReplace(e)}}),this.searchForm.get("replaceWith").valueChanges.pipe(Yn(this._unsubscribeAll),Cs(),Ks(400)).subscribe(r=>{r&&r.includes(":")&&i.calculateEnableReplace(e)}))}calculateEnableReplace(e){const i=this,o=i.searchForm.value,r=o.findWhat,a=o.replaceWith;e.name===Ht.findReplaceCategory.options.reference.name?(i.displayReplaceForm.replaceSection=r&&Ll.checkReference(r),i.displayReplaceForm.replaceActions=a&&Ll.checkReference(a)):(i.displayReplaceForm.replaceSection=r&&r.id,i.displayReplaceForm.replaceActions=a&&a.id)}compareCategory(e,i){return!(!e||!i)&&e.name===i.name}replaceCams(e){const i=this;this.camService.replace(e).pipe(Ja(1),Pf(o=>Na),Yu(()=>{i.zone.run(()=>{i.camService.resetLoading(e),i.noctuaReviewSearchService.onReplaceChanged.next(!0),i.camService.reviewChangesCams()})})).subscribe(()=>{})}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Yc),ue(Zr),ue(dd),ue(k1),ue(yr),ue(Sd),ue(Co),ue(Ts),ue(xm))},t.\u0275cmp=vn({type:t,selectors:[["noc-review-form"]],decls:8,vars:5,consts:[[1,"noc-search-form","w-100-p"],["class","noc-section-body pt-8 w-100-p","fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",3,"formGroup",4,"ngIf"],[1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["findAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],[1,"noc-term-autocomplete",3,"displayWith"],["replaceAuto","matAutocomplete"],["fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",1,"noc-section-body","pt-8","w-100-p",3,"formGroup"],["appearance","outline",1,"noc-sm","mb-4","noc-review-input"],["placeholder","","formControlName","category",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-activity-group-row","mb-4","w-100-p"],["mat-icon-button","","aria-label","Clear",1,"noc-text-clear",3,"click"],[3,"icon"],["appearance","outline","class","noc-sm noc-review-input",4,"ngIf"],["appearance","outline","class","noc-sm noc-review-input",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-activity-group-row","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-group-row","mt-8","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","",1,"noc-review-actions"],["fxFlex",""],["class","noc-matched-count",4,"ngIf"],["class","noc-matched-count mr-8",4,"ngIf"],[1,"mr-8"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"ngClass","click"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"click"],["mat-icon-button","","color","primary",1,"noc-icon-button","noc-rotate-90",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-review-actions",3,"ngClass"],["mat-raised-button","","color","warn",1,"noc-sm","mr-4","noc-review-btn",3,"click"],["mat-raised-button","","color","warn",1,"noc-sm","noc-review-btn",3,"click"],[3,"value"],["appearance","outline",1,"noc-sm","noc-review-input"],["type","text","matInput","","formControlName","findWhat",3,"matAutocomplete"],["type","text","matInput","","formControlName","findWhat"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],["type","text","matInput","","formControlName","replaceWith",3,"matAutocomplete"],["type","text","matInput","","formControlName","replaceWith"],[1,"noc-matched-count"],[1,"noc-matched-count","mr-8"],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,z$e,37,38,"form",1),G(),H(2,"mat-autocomplete",2,3),et("optionSelected",function(r){return i.findSelected(r.option.value)}),ke(4,F$e,7,3,"mat-option",4),G(),H(5,"mat-autocomplete",5,6),ke(7,H$e,7,3,"mat-option",4),G()),2&e&&(W(1),J("ngIf",i.searchForm),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.findNode?null:i.findNode.termLookup.results),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.replaceNode?null:i.replaceNode.termLookup.results))},directives:[Yi,nd,tl,Oo,So,Gc,id,yd,qg,Pl,Xl,$o,J1,Fo,ps,E2,ed,kh,E6,Ir,ds,ac,ko,I0],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{border-bottom:#ddd solid 1px}[_nghost-%COMP%] .noc-cams[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding:8px 12px;height:80px;min-height:80px;max-height:80px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff}[_nghost-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%] .noc-text-clear[_ngcontent-%COMP%]{background-color:#fff;position:absolute;right:10px;top:-5px;width:25px;min-width:25px;max-width:25px;height:15px;min-height:15px;max-height:15px;font-size:14px;line-height:14px;z-index:2}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%]{padding:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;margin-bottom:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#f2f2f2;font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-matched-count[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-items:center;align-items:center;padding:0 8px;height:100%;font-size:12px}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px;height:30px;min-height:30px;max-height:30px;line-height:28px;font-size:18px}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-review-btn[_ngcontent-%COMP%]{padding:0 8px;height:30px;line-height:28px;font-size:12px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}'],data:{animation:sc}}),t})();function V$e(t,n){1&t&&(H(0,"div",11),de(1," Log in to Continue "),G())}function B$e(t,n){1&t&&(H(0,"th",24),de(1," Category "),G())}function G$e(t,n){if(1&t&&(H(0,"td",25),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.category," ")}}function Y$e(t,n){1&t&&(H(0,"th",26),de(1,"Changes"),G())}function U$e(t,n){if(1&t&&(H(0,"td",27),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.count," ")}}function j$e(t,n){1&t&&Qe(0,"tr",28)}function W$e(t,n){1&t&&(H(0,"tr",29),et("click",function(i){return i.stopPropagation()}),G())}function q$e(t,n){if(1&t&&(H(0,"div",12)(1,"div",13)(2,"span",14),de(3),G(),de(4," changes on this model "),G(),H(5,"table",15),er(6,16),ke(7,B$e,2,0,"th",17),ke(8,G$e,2,1,"td",18),tr(),er(9,19),ke(10,Y$e,2,0,"th",20),ke(11,U$e,2,1,"td",21),tr(),ke(12,j$e,1,0,"tr",22),ke(13,W$e,1,0,"tr",23),G()()),2&t){const e=Ae();W(3),Nt(" ",null==e.summary?null:e.summary.stats.totalChanges," "),W(2),J("dataSource",e.stats),W(7),J("matHeaderRowDef",e.displayedColumns),W(1),J("matRowDefColumns",e.displayedColumns)}}let Mne=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.zone=e,this.camService=i,this.confirmDialogService=o,this.noctuaSearchDialogService=r,this.noctuaUserService=a,this.noctuaReviewSearchService=l,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=M,this.MiddlePanel=fa,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.displayedColumns=["category","count"],this._unsubscribeAll=new N}ngOnInit(){this.camService.onCamChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e,this.stats=this.generateStats(this.summary.stats))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}backToReview(){this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview)}close(){this.panelDrawer.close()}reviewCamChanges(e){const r=this.camService.reviewCamChanges(e);this.noctuaSearchDialogService.openCamReviewChangesDialog(a=>{},r)}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Zr),ue(dd),ue(U0),ue(yr),ue(k1),ue(pl),ue(ld),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-find-replace"]],inputs:{panelDrawer:"panelDrawer"},decls:15,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"pt-4","px-12"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["class","noc-stats-results","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"noc-stat-summary"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","200px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),de(4," Find and Replace"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," CLOSE "),G()(),Qe(10,"noc-review-form",6),G(),H(11,"div",7),ke(12,V$e,2,0,"div",8),ke(13,q$e,14,4,"div",9),G(),Qe(14,"div",10),G()),2&e&&(W(12),J("ngIf",!i.noctuaUserService.user),W(1),J("ngIf",(null==i.summary?null:i.summary.stats.totalChanges)>0))},directives:[Oo,So,ko,Fo,Ir,wne,ts,Yi,$g,Zf,Qf,Kf,Xf,Jf,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:280px;min-height:280px;max-height:280px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{position:relative;min-height:40px;max-height:500px;border-bottom:#ccc solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:100px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}']}),t})();const $$e=["tree"],X$e=function(){return["fas","caret-right"]};function Q$e(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,X$e))}const Z$e=function(){return["fas","caret-down"]};function K$e(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,Z$e))}function J$e(t,n){if(1&t){const e=Ln();H(0,"button",17),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,Q$e,1,2,"fa-icon",18),ke(2,K$e,1,2,"fa-icon",18),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function eXe(t,n){1&t&&Qe(0,"div",20)}function tXe(t,n){if(1&t){const e=Ln();H(0,"div",21)(1,"div"),de(2),G(),Qe(3,"span",3),H(4,"div",22),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae().openSearch(o.data)}),de(5),G()()}if(2&t){const e=Ae().$implicit;W(2),Nt(" ",e.data.label," "),W(3),Nt(" ",e.data.frequency," ")}}const _S=function(){return["fas","info-circle"]},nXe=function(){return["fas","bars"]};function iXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",26),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().search(o.data)}),de(2),G(),Qe(3,"span",3),H(4,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),de(5),G(),H(6,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(7,"fa-icon",19),G(),H(8,"button",29),Qe(9,"fa-icon",19),G(),H(10,"mat-menu",30,31)(12,"button",32),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),de(13," Find in Model "),G(),H(14,"button",32),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().searchModels(o.data)}),de(15," Search Models "),G(),H(16,"button",32),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().searchModelsByContributor(o.data)}),de(17," Search My Models "),G()(),tr()}if(2&t){const e=Di(11),i=Ae(2).$implicit;W(2),Nt(" ",null==i.data.term?null:i.data.term.label," "),W(3),Nt(" ",i.data.frequency," "),W(2),J("icon",_i(5,_S)),W(1),J("matMenuTriggerFor",e),W(1),J("icon",_i(6,nXe))}}function oXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",33)(2,"div",34),de(3),G(),H(4,"div",35)(5,"a",36),et("click",function(o){return o.stopPropagation()}),de(6),G()(),H(7,"div",35),de(8),G()(),H(9,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),de(10),G(),H(11,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(12,"fa-icon",19),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(3),Nt(" ",null==e.data.evidence?null:e.data.evidence.label," "),W(2),Ro("href",null==e.data.referenceEntity?null:e.data.referenceEntity.url,ao),W(1),Nt(" ",null==e.data.referenceEntity?null:e.data.referenceEntity.label," "),W(2),Nt(" ",null==e.data.withEntity?null:e.data.withEntity.label," "),W(2),Nt(" ",e.data.frequency," "),W(2),J("icon",_i(6,_S))}}function rXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",26),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().search(o.data)}),de(2),G(),Qe(3,"span",3),H(4,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),de(5),G(),H(6,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(7,"fa-icon",19),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(2),Nt(" ",e.data.label," "),W(3),Nt(" ",e.data.frequency," "),W(2),J("icon",_i(3,_S))}}function aXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",26),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().search(o.data)}),de(2),G(),Qe(3,"span",3),H(4,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),de(5),G(),H(6,"div",28),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openTermDetail(o.data)}),Qe(7,"fa-icon",19),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(2),Nt(" ",e.data.name," "),W(3),Nt(" ",e.data.frequency," "),W(2),J("icon",_i(3,_S))}}function sXe(t,n){if(1&t){const e=Ln();er(0),H(1,"div",33)(2,"div",37),de(3),G(),H(4,"div",35)(5,"a",36),et("click",function(o){return o.stopPropagation()}),de(6),G()(),H(7,"div",38)(8,"mat-icon",39),de(9,"person"),G(),H(10,"span",3),de(11),G()(),H(12,"div",40)(13,"mat-icon",39),de(14,"date_range"),G(),H(15,"span"),de(16),G()()(),H(17,"div",27),et("click",function(){Dt(e);const o=Ae(2).$implicit;return Ae().openSearch(o.data)}),de(18),G(),tr()}if(2&t){const e=Ae(2).$implicit;W(3),Nt(" ",e.data.title," "),W(2),Ro("href",e.data.link,ao),W(1),Nt(" ",e.data.id," "),W(5),qo(e.data.author),W(5),qo(e.data.date),W(2),Nt(" ",e.data.frequency," ")}}function cXe(t,n){if(1&t&&(H(0,"div",23),er(1,24),ke(2,iXe,18,7,"ng-container",25),ke(3,oXe,13,7,"ng-container",25),ke(4,rXe,8,4,"ng-container",25),ke(5,aXe,8,4,"ng-container",25),ke(6,sXe,19,6,"ng-container",25),tr(),G()),2&t){const e=Ae().$implicit,i=Ae();W(1),J("ngSwitch",e.data.entityType),W(1),J("ngSwitchCase",i.EntityType.ACTIVITY_NODE),W(1),J("ngSwitchCase",i.EntityType.EVIDENCE),W(1),J("ngSwitchCase",i.EntityType.ENTITY),W(1),J("ngSwitchCase",i.EntityType.CONTRIBUTOR),W(1),J("ngSwitchCase",i.EntityType.ARTICLE)}}function lXe(t,n){if(1&t){const e=Ln();H(0,"div",11),ke(1,J$e,3,2,"button",12),ke(2,eXe,1,0,"div",13),H(3,"div",14),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),ke(4,tXe,6,2,"div",15),ke(5,cXe,7,6,"div",16),G()()}if(2&t){const e=n.$implicit;Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(1),J("ngIf",e.data.isCategory),W(1),J("ngIf",!e.data.isCategory)}}let One=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this.noctuaLookupService=e,this._bbopGraphService=i,this.noctuaCommonMenuService=o,this.camService=r,this.noctuaSearchDialogService=a,this.noctuaUserService=l,this.noctuaReviewSearchService=u,this.noctuaSearchMenuService=f,this.noctuaSearchService=M,this.noctuaFormConfigService=T,this.MiddlePanel=fa,this.EntityType=H0,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.treeOptions={allowDrag:!1,allowDrop:!1},this._unsubscribeAll=new N}ngOnInit(){this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{if(!e)return;this.cam=e,this.termsSummary=this._bbopGraphService.getTerms(this.cam.graph),this.treeNodes=this.camService.buildTermsTree(this.termsSummary);const i=this.termsSummary.papers.nodes.map(o=>Ll.getReferenceNumber(o.id));this.noctuaLookupService.addPubmedInfos(i)}),this.noctuaLookupService.onArticleCacheReady.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.termsSummary.papers.nodes.forEach(i=>{const o=this.noctuaLookupService.articleCache[i.id];o&&(i.title=o.title,i.link=o.link,i.author=o.author,i.date=o.date)})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openSearch(e){this.noctuaLookupService.getTermDetail(e.term.id).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.openLeftDrawer())})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[e.term],this.noctuaReviewSearchService.updateSearch()}searchModels(e){const i=new cd;i.terms=[e.term];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}searchModelsByContributor(e){const i=new cd;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}openTermDetail(e){this.noctuaSearchService.onDetailTermChanged.next(e),this.noctuaCommonMenuService.selectRightPanel(um.termDetail),this.noctuaCommonMenuService.openRightDrawer()}onTreeLoad(){}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(Sd),ue(Yc),ue(ul),ue(Zr),ue(U0),ue(yr),ue(k1),ue(pl),ue(ld),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-terms"]],viewQuery:function(e,i){if(1&e&&_o($$e,5),2&e){let o;fi(o=gi())&&(i.tree=o.first)}},inputs:{panelDrawer:"panelDrawer"},decls:16,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],[1,"noc-tree-container"],[1,"noc-tree"],[3,"nodes","options","initialized"],["tree",""],["treeNodeWrapperTemplate",""],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["class","noc-term-row noc-category-row","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-term-row","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[3,"icon",4,"ngIf"],[3,"icon"],[1,"noc-expander-placeholder"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row","noc-category-row"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-aspect-badge",3,"click"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"noc-title",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-badge",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-icon",3,"click"],["mat-icon-button","",1,"noc-icon-button",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["optionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch"],[1,"noc-title"],[1,"noc-subtitle"],["target","_blank",3,"href","click"],[1,"noc-article-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-article-author"],[1,"s-16","mr-4"],[1,"noc-article-date"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Terms"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"tree-root",8,9),et("initialized",function(){return i.onTreeLoad()}),ke(14,lXe,6,13,"ng-template",null,10,tu),G()()()()()),2&e&&(W(12),J("nodes",i.treeNodes)("options",i.treeOptions))},directives:[Oo,So,ko,Fo,Ir,ts,oR,Yi,ps,oS,fv,bd,iu,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 30px)}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding:12px 8px;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-subtitle[_ngcontent-%COMP%]{font-size:10px;color:#777}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:10px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{font-size:10px;max-height:60px;color:#777;overflow:hidden}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-aspect-badge[_ngcontent-%COMP%]{margin:2px 5px;width:20px;min-width:20px;max-width:20px;color:#777;border-radius:6px;font-size:8px;font-weight:700;border:#000 solid 1px;border-top:none;border-bottom:none}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-aspect-badge[_ngcontent-%COMP%]{margin:2px 5px;width:30px;min-width:30px;max-width:30px;color:#777;border-radius:6px;font-size:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;color:#777}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-category-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function kl(t,n){const e=DN.getColor(t);return e?e[n]:null}function dXe(){}function MR(t){return null==t?dXe:function(){return this.querySelector(t)}}function hXe(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function pXe(){return[]}function Sne(t){return null==t?pXe:function(){return this.querySelectorAll(t)}}function Pne(t){return function(){return this.matches(t)}}function Tne(t){return function(n){return n.matches(t)}}var mXe=Array.prototype.find;function CXe(){return this.firstElementChild}var bXe=Array.prototype.filter;function xXe(){return Array.from(this.children)}function Ene(t){return new Array(t.length)}function CS(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function SXe(t){return function(){return t}}function PXe(t,n,e,i,o,r){for(var l,a=0,u=n.length,f=r.length;an?1:t>=n?0:NaN}CS.prototype={constructor:CS,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var OR="http://www.w3.org/1999/xhtml";const Ane={svg:"http://www.w3.org/2000/svg",xhtml:OR,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vS(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ane.hasOwnProperty(n)?{space:Ane[n],local:t}:t}function UXe(t){return function(){this.removeAttribute(t)}}function jXe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function WXe(t,n){return function(){this.setAttribute(t,n)}}function qXe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function $Xe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function XXe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Lne(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ZXe(t){return function(){this.style.removeProperty(t)}}function KXe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function JXe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function I_(t,n){return t.style.getPropertyValue(n)||Lne(t).getComputedStyle(t,null).getPropertyValue(n)}function tQe(t){return function(){delete this[t]}}function nQe(t,n){return function(){this[t]=n}}function iQe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Dne(t){return t.trim().split(/^|\s+/)}function SR(t){return t.classList||new kne(t)}function kne(t){this._node=t,this._names=Dne(t.getAttribute("class")||"")}function Ine(t,n){for(var e=SR(t),i=-1,o=n.length;++i=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function IQe(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,o=n.length;e=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Fne=[null];function vu(t,n){this._groups=t,this._parents=n}function Hne(){return new vu([[document.documentElement]],Fne)}vu.prototype=Hne.prototype={constructor:vu,select:function uXe(t){"function"!=typeof t&&(t=MR(t));for(var n=this._groups,e=n.length,i=new Array(e),o=0;o=me&&(me=Be+1);!(qe=we[me])&&++me=0;)(a=i[o])&&(r&&4^a.compareDocumentPosition(r)&&r.parentNode.insertBefore(a,r),r=a);return this},sort:function RXe(t){function n(T,U){return T&&U?t(T.__data__,U.__data__):!T-!U}t||(t=zXe);for(var e=this._groups,i=e.length,o=new Array(i),r=0;r1?this.each((null==n?ZXe:"function"==typeof n?JXe:KXe)(t,n,null==e?"":e)):I_(this.node(),t)},property:function oQe(t,n){return arguments.length>1?this.each((null==n?tQe:"function"==typeof n?iQe:nQe)(t,n)):this.node()[t]},classed:function cQe(t,n){var e=Dne(t+"");if(arguments.length<2){for(var i=SR(this.node()),o=-1,r=e.length;++o{}};function Vne(){for(var i,t=0,n=arguments.length,e={};t=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function UQe(t,n){for(var o,e=0,i=t.length;e0)for(var o,r,e=new Array(o),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?yS(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?yS(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=$Qe.exec(t))?new F2(n[1],n[2],n[3],1):(n=XQe.exec(t))?new F2(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=QQe.exec(t))?yS(n[1],n[2],n[3],n[4]):(n=ZQe.exec(t))?yS(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=KQe.exec(t))?Qne(n[1],n[2]/100,n[3]/100,1):(n=JQe.exec(t))?Qne(n[1],n[2]/100,n[3]/100,n[4]):Une.hasOwnProperty(t)?qne(Une[t]):"transparent"===t?new F2(NaN,NaN,NaN,0):null}function qne(t){return new F2(t>>16&255,t>>8&255,255&t,1)}function yS(t,n,e,i){return i<=0&&(t=n=e=NaN),new F2(t,n,e,i)}function nZe(t){return t instanceof bv||(t=ym(t)),t?new F2((t=t.rgb()).r,t.g,t.b,t.opacity):new F2}function wS(t,n,e,i){return 1===arguments.length?nZe(t):new F2(t,n,e,null==i?1:i)}function F2(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function $ne(){return`#${Mm(this.r)}${Mm(this.g)}${Mm(this.b)}`}function Xne(){const t=MS(this.opacity);return`${1===t?"rgb(":"rgba("}${wm(this.r)}, ${wm(this.g)}, ${wm(this.b)}${1===t?")":`, ${t})`}`}function MS(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function wm(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mm(t){return((t=wm(t))<16?"0":"")+t.toString(16)}function Qne(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new $h(t,n,e,i)}function Zne(t){if(t instanceof $h)return new $h(t.h,t.s,t.l,t.opacity);if(t instanceof bv||(t=ym(t)),!t)return new $h;if(t instanceof $h)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,o=Math.min(n,e,i),r=Math.max(n,e,i),a=NaN,l=r-o,u=(r+o)/2;return l?(a=n===r?(e-i)/l+6*(e0&&u<1?0:a,new $h(a,l,u,t.opacity)}function $h(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Kne(t){return(t=(t||0)%360)<0?t+360:t}function OS(t){return Math.max(0,Math.min(1,t||0))}function AR(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Jne(t,n,e,i,o){var r=t*t,a=r*t;return((1-3*t+3*r-a)*n+(4-6*r+3*a)*e+(1+3*t+3*r-3*a)*i+a*o)/6}ER(bv,ym,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:jne,formatHex:jne,formatHex8:function eZe(){return this.rgb().formatHex8()},formatHsl:function tZe(){return Zne(this).formatHsl()},formatRgb:Wne,toString:Wne}),ER(F2,wS,Yne(bv,{brighter(t){return t=null==t?xS:Math.pow(xS,t),new F2(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new F2(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new F2(wm(this.r),wm(this.g),wm(this.b),MS(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:$ne,formatHex:$ne,formatHex8:function iZe(){return`#${Mm(this.r)}${Mm(this.g)}${Mm(this.b)}${Mm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xne,toString:Xne})),ER($h,function oZe(t,n,e,i){return 1===arguments.length?Zne(t):new $h(t,n,e,null==i?1:i)},Yne(bv,{brighter(t){return t=null==t?xS:Math.pow(xS,t),new $h(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new $h(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,o=2*e-i;return new F2(AR(t>=240?t-240:t+120,o,i),AR(t,o,i),AR(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new $h(Kne(this.h),OS(this.s),OS(this.l),MS(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=MS(this.opacity);return`${1===t?"hsl(":"hsla("}${Kne(this.h)}, ${100*OS(this.s)}%, ${100*OS(this.l)}%${1===t?")":`, ${t})`}`}}));const LR=t=>()=>t;function tie(t,n){var e=n-t;return e?function eie(t,n){return function(e){return t+e*n}}(t,e):LR(isNaN(t)?n:t)}const SS=function t(n){var e=function cZe(t){return 1==(t=+t)?tie:function(n,e){return e-n?function sZe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):LR(isNaN(n)?e:n)}}(n);function i(o,r){var a=e((o=wS(o)).r,(r=wS(r)).r),l=e(o.g,r.g),u=e(o.b,r.b),f=tie(o.opacity,r.opacity);return function(M){return o.r=a(M),o.g=l(M),o.b=u(M),o.opacity=f(M),o+""}}return i.gamma=t,i}(1);function nie(t){return function(n){var a,l,e=n.length,i=new Array(e),o=new Array(e),r=new Array(e);for(a=0;a=1?(e=1,n-1):Math.floor(e*n),o=t[i],r=t[i+1];return Jne((e-i/n)*n,i>0?t[i-1]:2*o-r,o,r,ie&&(r=n.slice(e,r),l[a]?l[a]+=r:l[++a]=r),(i=i[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:Xh(i,o)})),e=kR.lastIndex;return e=0&&t._call.call(void 0,n),t=t._next;--R_}()}finally{R_=0,function vZe(){for(var t,e,n=PS,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:PS=e);Ov=t,NR(i)}(),Sm=0}}function CZe(){var t=Sv.now(),n=t-TS;n>1e3&&(ES-=n,TS=t)}function NR(t){R_||(wv&&(wv=clearTimeout(wv)),t-Sm>24?(t<1/0&&(wv=setTimeout(lie,t-Sv.now()-ES)),Mv&&(Mv=clearInterval(Mv))):(Mv||(TS=Sv.now(),Mv=setInterval(CZe,1e3)),R_=1,sie(lie)))}function die(t,n,e){var i=new AS;return i.restart(o=>{i.stop(),t(o+n)},n=null==n?0:+n,e),i}AS.prototype=cie.prototype={constructor:AS,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?IR():+e)+(null==n?0:+n),!this._next&&Ov!==this&&(Ov?Ov._next=this:PS=this,Ov=this),this._call=t,this._time=e,NR()},stop:function(){this._call&&(this._call=null,this._time=1/0,NR())}};var bZe=Gne("start","end","cancel","interrupt"),xZe=[];function kS(t,n,e,i,o,r){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function yZe(t,n,e){var o,i=t.__transition;function a(f){var M,T,U,ie;if(1!==e.state)return u();for(M in i)if((ie=i[M]).name===e.name){if(3===ie.state)return die(a);4===ie.state?(ie.state=6,ie.timer.stop(),ie.on.call("interrupt",t,t.__data__,ie.index,ie.group),delete i[M]):+M0)throw new Error("too late; already scheduled");return e}function Q0(t,n){var e=Qh(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Qh(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function HR(t,n){var i,o,a,e=t.__transition,r=!0;if(e){for(a in n=null==n?null:n+"",e)(i=e[a]).name===n?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[a]):r=!1;r&&delete t.__transition}}var IS,gie=180/Math.PI,VR={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mie(t,n,e,i,o,r){var a,l,u;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(u=t*e+n*i)&&(e-=t*u,i-=n*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i180?M+=360:M-f>180&&(f+=360),U.push({i:T.push(o(T)+"rotate(",null,i)-2,x:Xh(f,M)})):M&&T.push(o(T)+"rotate("+M+i)}(f.rotate,M.rotate,T,U),function l(f,M,T,U){f!==M?U.push({i:T.push(o(T)+"skewX(",null,i)-2,x:Xh(f,M)}):M&&T.push(o(T)+"skewX("+M+i)}(f.skewX,M.skewX,T,U),function u(f,M,T,U,ie,se){if(f!==T||M!==U){var Me=ie.push(o(ie)+"scale(",null,",",null,")");se.push({i:Me-4,x:Xh(f,T)},{i:Me-2,x:Xh(M,U)})}else(1!==T||1!==U)&&ie.push(o(ie)+"scale("+T+","+U+")")}(f.scaleX,f.scaleY,M.scaleX,M.scaleY,T,U),f=M=null,function(ie){for(var we,se=-1,Me=U.length;++se=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?FR:Q0;return function(){var a=r(this,t),l=a.on;l!==i&&(o=(i=l).copy()).on(n,e),a.on=o}}var cKe=vv.prototype.constructor;function vie(t){return function(){this.style.removeProperty(t)}}function gKe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function mKe(t,n,e){var i,o;function r(){var a=n.apply(this,arguments);return a!==o&&(i=(o=a)&&gKe(t,a,e)),i}return r._value=n,r}function xKe(t){return function(n){this.textContent=t.call(this,n)}}function yKe(t){var n,e;function i(){var o=t.apply(this,arguments);return o!==e&&(n=(e=o)&&xKe(o)),n}return i._value=t,i}var SKe=0;function O3(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function bie(){return++SKe}var S3=vv.prototype;O3.prototype=function PKe(t){return vv().transition(t)}.prototype={constructor:O3,select:function aKe(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=MR(t));for(var i=this._groups,o=i.length,r=new Array(o),a=0;a()=>t;function DKe(t,{sourceEvent:n,target:e,selection:i,mode:o,dispatch:r}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function kKe(t){t.stopImmediatePropagation()}function YR(t){t.preventDefault(),t.stopImmediatePropagation()}var xie={name:"drag"},UR={name:"space"},z_={name:"handle"},F_={name:"center"};const{abs:yie,max:kd,min:Id}=Math;function wie(t){return[+t[0],+t[1]]}function jR(t){return[wie(t[0]),wie(t[1])]}var NS={name:"x",handles:["w","e"].map(Pv),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},RS={name:"y",handles:["n","s"].map(Pv),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},P3=(["n","w","e","s","nw","ne","sw","se"].map(Pv),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),Mie={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Oie={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},NKe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},RKe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Pv(t){return{type:t}}function zKe(t){return!t.ctrlKey&&!t.button}function FKe(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function HKe(){return navigator.maxTouchPoints||"ontouchstart"in this}function WR(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function VKe(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Tv(t,n){return null==t||null==n?NaN:tn?1:t>=n?0:NaN}function GKe(t,n){return null==t||null==n?NaN:nt?1:n>=t?0:NaN}function $R(t){let n,e,i;function o(l,u,f=0,M=l.length){if(f>>1;e(l[T],u)<0?f=T+1:M=T}while(fTv(t(l),u),i=(l,u)=>t(l)-u):(n=t===Tv||t===GKe?t:YKe,e=t,i=t),{left:o,center:function a(l,u,f=0,M=l.length){const T=o(l,u,f,M-1);return T>f&&i(l[T-1],u)>-i(l[T],u)?T-1:T},right:function r(l,u,f=0,M=l.length){if(f>>1;e(l[T],u)<=0?f=T+1:M=T}while(f=UKe?10:r>=jKe?5:r>=WKe?2:1;let l,u,f;return o<0?(f=Math.pow(10,-o)/a,l=Math.round(t*f),u=Math.round(n*f),l/fn&&--u,f=-f):(f=Math.pow(10,o)*a,l=Math.round(t/f),u=Math.round(n/f),l*fn&&--u),u(t(r=new Date(+r)),r),o.ceil=r=>(t(r=new Date(r-1)),n(r,1),t(r),r),o.round=r=>{const a=o(r),l=o.ceil(r);return r-a(n(r=new Date(+r),null==a?1:Math.floor(a)),r),o.range=(r,a,l)=>{const u=[];if(r=o.ceil(r),l=null==l?1:Math.floor(l),!(r0))return u;let f;do{u.push(f=new Date(+r)),n(r,l),t(r)}while(fg1(a=>{if(a>=a)for(;t(a),!r(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;n(a,-1),!r(a););else for(;--l>=0;)for(;n(a,1),!r(a););}),e&&(o.count=(r,a)=>(JR.setTime(+r),ez.setTime(+a),t(JR),t(ez),Math.floor(e(JR,ez))),o.every=r=>(r=Math.floor(r),isFinite(r)&&r>0?r>1?o.filter(i?a=>i(a)%r==0:a=>o.count(0,a)%r==0):o:null)),o}const FS=g1(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);FS.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?g1(n=>{n.setTime(Math.floor(n/t)*t)},(n,e)=>{n.setTime(+n+e*t)},(n,e)=>(e-n)/t):FS:null);const H_=g1(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*T3)},(t,n)=>(n-t)/T3,t=>t.getUTCSeconds()),tz=g1(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*T3)},(t,n)=>{t.setTime(+t+n*nh)},(t,n)=>(n-t)/nh,t=>t.getMinutes()),Pie=g1(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*nh)},(t,n)=>(n-t)/nh,t=>t.getUTCMinutes()),nz=g1(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*T3-t.getMinutes()*nh)},(t,n)=>{t.setTime(+t+n*E3)},(t,n)=>(n-t)/E3,t=>t.getHours()),Tie=g1(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*E3)},(t,n)=>(n-t)/E3,t=>t.getUTCHours()),iz=g1(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nh)/A3,t=>t.getDate()-1),Eie=(g1(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/A3,t=>t.getUTCDate()-1),g1(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/A3,t=>Math.floor(t/A3)));function Pm(t){return g1(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,e)=>{n.setDate(n.getDate()+7*e)},(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*nh)/ZR)}const oz=Pm(0);function Tm(t){return g1(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+7*e)},(n,e)=>(e-n)/ZR)}Pm(1),Pm(2),Pm(3),Pm(4),Pm(5),Pm(6);const Aie=Tm(0),rz=(Tm(1),Tm(2),Tm(3),Tm(4),Tm(5),Tm(6),g1(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear()),t=>t.getMonth())),Lie=g1(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()),HS=g1(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());HS.every=t=>isFinite(t=Math.floor(t))&&t>0?g1(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e*t)}):null;const az=g1(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Die(t,n,e,i,o,r){const a=[[H_,1,T3],[H_,5,5e3],[H_,15,15e3],[H_,30,3e4],[r,1,nh],[r,5,5*nh],[r,15,15*nh],[r,30,30*nh],[o,1,E3],[o,3,3*E3],[o,6,6*E3],[o,12,12*E3],[i,1,A3],[i,2,2*A3],[e,1,ZR],[n,1,2592e6],[n,3,7776e6],[t,1,KR]];function u(f,M,T){const U=Math.abs(M-f)/T,ie=$R(([,,we])=>we).right(a,U);if(ie===a.length)return t.every(QR(f/KR,M/KR,T));if(0===ie)return FS.every(Math.max(QR(f,M,T),1));const[se,Me]=a[U/a[ie-1][2]isFinite(t=Math.floor(t))&&t>0?g1(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null;const[Yun,Uun]=Die(az,Lie,Aie,Eie,Tie,Pie),[aJe,sJe]=Die(HS,rz,oz,iz,nz,tz);var sz=new Date,cz=new Date;function L3(t,n,e,i){function o(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return o.floor=function(r){return t(r=new Date(+r)),r},o.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},o.round=function(r){var a=o(r),l=o.ceil(r);return r-a0))return u;do{u.push(f=new Date(+r)),n(r,l),t(r)}while(f=a)for(;t(a),!r(a);)a.setTime(a-1)},function(a,l){if(a>=a)if(l<0)for(;++l<=0;)for(;n(a,-1),!r(a););else for(;--l>=0;)for(;n(a,1),!r(a););})},e&&(o.count=function(r,a){return sz.setTime(+r),cz.setTime(+a),t(sz),t(cz),Math.floor(e(sz,cz))},o.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?o.filter(i?function(a){return i(a)%r==0}:function(a){return o.count(0,a)%r==0}):o:null}),o}function Em(t){return L3(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/6048e5})}var Iie=Em(0),VS=Em(1),V_=(Em(2),Em(3),Em(4)),Nie=(Em(5),Em(6),L3(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const Rie=Nie;function Am(t){return L3(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/6048e5})}var zie=Am(0),BS=Am(1),B_=(Am(2),Am(3),Am(4)),Fie=(Am(5),Am(6),L3(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1));const Hie=Fie;var dz=L3(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});dz.every=function(t){return isFinite(t=Math.floor(t))&&t>0?L3(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Av=dz;var uz=L3(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});uz.every=function(t){return isFinite(t=Math.floor(t))&&t>0?L3(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Lv=uz;function hz(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function pz(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Dv(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var G_,eoe,Vie={"-":"",_:" ",0:"0"},N1=/^\s*\d+/,_Je=/^%/,CJe=/[\\^$*+?|[\]().{}]/g;function Es(t,n,e){var i=t<0?"-":"",o=(i?-t:t)+"",r=o.length;return i+(r[n.toLowerCase(),e]))}function bJe(t,n,e){var i=N1.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function xJe(t,n,e){var i=N1.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function yJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function wJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function MJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function Bie(t,n,e){var i=N1.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function Gie(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function OJe(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function SJe(t,n,e){var i=N1.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function PJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function Yie(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function TJe(t,n,e){var i=N1.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function Uie(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function EJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function AJe(t,n,e){var i=N1.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function LJe(t,n,e){var i=N1.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function DJe(t,n,e){var i=N1.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function kJe(t,n,e){var i=_Je.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function IJe(t,n,e){var i=N1.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function NJe(t,n,e){var i=N1.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function jie(t,n){return Es(t.getDate(),n,2)}function RJe(t,n){return Es(t.getHours(),n,2)}function zJe(t,n){return Es(t.getHours()%12||12,n,2)}function FJe(t,n){return Es(1+Hie.count(Av(t),t),n,3)}function Wie(t,n){return Es(t.getMilliseconds(),n,3)}function HJe(t,n){return Wie(t,n)+"000"}function VJe(t,n){return Es(t.getMonth()+1,n,2)}function BJe(t,n){return Es(t.getMinutes(),n,2)}function GJe(t,n){return Es(t.getSeconds(),n,2)}function YJe(t){var n=t.getDay();return 0===n?7:n}function UJe(t,n){return Es(zie.count(Av(t)-1,t),n,2)}function qie(t){var n=t.getDay();return n>=4||0===n?B_(t):B_.ceil(t)}function jJe(t,n){return t=qie(t),Es(B_.count(Av(t),t)+(4===Av(t).getDay()),n,2)}function WJe(t){return t.getDay()}function qJe(t,n){return Es(BS.count(Av(t)-1,t),n,2)}function $Je(t,n){return Es(t.getFullYear()%100,n,2)}function XJe(t,n){return Es((t=qie(t)).getFullYear()%100,n,2)}function QJe(t,n){return Es(t.getFullYear()%1e4,n,4)}function ZJe(t,n){var e=t.getDay();return Es((t=e>=4||0===e?B_(t):B_.ceil(t)).getFullYear()%1e4,n,4)}function KJe(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Es(n/60|0,"0",2)+Es(n%60,"0",2)}function $ie(t,n){return Es(t.getUTCDate(),n,2)}function JJe(t,n){return Es(t.getUTCHours(),n,2)}function eet(t,n){return Es(t.getUTCHours()%12||12,n,2)}function tet(t,n){return Es(1+Rie.count(Lv(t),t),n,3)}function Xie(t,n){return Es(t.getUTCMilliseconds(),n,3)}function net(t,n){return Xie(t,n)+"000"}function iet(t,n){return Es(t.getUTCMonth()+1,n,2)}function oet(t,n){return Es(t.getUTCMinutes(),n,2)}function ret(t,n){return Es(t.getUTCSeconds(),n,2)}function aet(t){var n=t.getUTCDay();return 0===n?7:n}function set(t,n){return Es(Iie.count(Lv(t)-1,t),n,2)}function Qie(t){var n=t.getUTCDay();return n>=4||0===n?V_(t):V_.ceil(t)}function cet(t,n){return t=Qie(t),Es(V_.count(Lv(t),t)+(4===Lv(t).getUTCDay()),n,2)}function det(t){return t.getUTCDay()}function uet(t,n){return Es(VS.count(Lv(t)-1,t),n,2)}function het(t,n){return Es(t.getUTCFullYear()%100,n,2)}function pet(t,n){return Es((t=Qie(t)).getUTCFullYear()%100,n,2)}function fet(t,n){return Es(t.getUTCFullYear()%1e4,n,4)}function get(t,n){var e=t.getUTCDay();return Es((t=e>=4||0===e?V_(t):V_.ceil(t)).getUTCFullYear()%1e4,n,4)}function met(){return"+0000"}function Zie(){return"%"}function Kie(t){return+t}function Jie(t){return Math.floor(+t/1e3)}function toe(t){return null===t?NaN:+t}!function bet(t){G_=function mJe(t){var n=t.dateTime,e=t.date,i=t.time,o=t.periods,r=t.days,a=t.shortDays,l=t.months,u=t.shortMonths,f=kv(o),M=Iv(o),T=kv(r),U=Iv(r),ie=kv(a),se=Iv(a),Me=kv(l),we=Iv(l),He=kv(u),Be=Iv(u),me={a:function ni(jn){return a[jn.getDay()]},A:function Jn(jn){return r[jn.getDay()]},b:function Oi(jn){return u[jn.getMonth()]},B:function qn(jn){return l[jn.getMonth()]},c:null,d:jie,e:jie,f:HJe,g:XJe,G:ZJe,H:RJe,I:zJe,j:FJe,L:Wie,m:VJe,M:BJe,p:function Wi(jn){return o[+(jn.getHours()>=12)]},q:function Ai(jn){return 1+~~(jn.getMonth()/3)},Q:Kie,s:Jie,S:GJe,u:YJe,U:UJe,V:jJe,w:WJe,W:qJe,x:null,X:null,y:$Je,Y:QJe,Z:KJe,"%":Zie},ze={a:function Bi(jn){return a[jn.getUTCDay()]},A:function lo(jn){return r[jn.getUTCDay()]},b:function nr(jn){return u[jn.getUTCMonth()]},B:function Nr(jn){return l[jn.getUTCMonth()]},c:null,d:$ie,e:$ie,f:net,g:pet,G:get,H:JJe,I:eet,j:tet,L:Xie,m:iet,M:oet,p:function ro(jn){return o[+(jn.getUTCHours()>=12)]},q:function ki(jn){return 1+~~(jn.getUTCMonth()/3)},Q:Kie,s:Jie,S:ret,u:aet,U:set,V:cet,w:det,W:uet,x:null,X:null,y:het,Y:fet,Z:met,"%":Zie},qe={a:function an(jn,yi,Ii){var Vn=ie.exec(yi.slice(Ii));return Vn?(jn.w=se.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},A:function pn(jn,yi,Ii){var Vn=T.exec(yi.slice(Ii));return Vn?(jn.w=U.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},b:function yn(jn,yi,Ii){var Vn=He.exec(yi.slice(Ii));return Vn?(jn.m=Be.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},B:function Kt(jn,yi,Ii){var Vn=Me.exec(yi.slice(Ii));return Vn?(jn.m=we.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},c:function kn(jn,yi,Ii){return Ut(jn,n,yi,Ii)},d:Yie,e:Yie,f:DJe,g:Gie,G:Bie,H:Uie,I:Uie,j:TJe,L:LJe,m:PJe,M:EJe,p:function jt(jn,yi,Ii){var Vn=f.exec(yi.slice(Ii));return Vn?(jn.p=M.get(Vn[0].toLowerCase()),Ii+Vn[0].length):-1},q:SJe,Q:IJe,s:NJe,S:AJe,u:xJe,U:yJe,V:wJe,w:bJe,W:MJe,x:function ri(jn,yi,Ii){return Ut(jn,e,yi,Ii)},X:function Rn(jn,yi,Ii){return Ut(jn,i,yi,Ii)},y:Gie,Y:Bie,Z:OJe,"%":kJe};function rt(jn,yi){return function(Ii){var $a,Cr,gs,Vn=[],Ei=-1,Zo=0,Sa=jn.length;for(Ii instanceof Date||(Ii=new Date(+Ii));++Ei53)return null;"w"in Vn||(Vn.w=1),"Z"in Vn?(Sa=(Zo=pz(Dv(Vn.y,0,1))).getUTCDay(),Zo=Sa>4||0===Sa?VS.ceil(Zo):VS(Zo),Zo=Rie.offset(Zo,7*(Vn.V-1)),Vn.y=Zo.getUTCFullYear(),Vn.m=Zo.getUTCMonth(),Vn.d=Zo.getUTCDate()+(Vn.w+6)%7):(Sa=(Zo=hz(Dv(Vn.y,0,1))).getDay(),Zo=Sa>4||0===Sa?BS.ceil(Zo):BS(Zo),Zo=Hie.offset(Zo,7*(Vn.V-1)),Vn.y=Zo.getFullYear(),Vn.m=Zo.getMonth(),Vn.d=Zo.getDate()+(Vn.w+6)%7)}else("W"in Vn||"U"in Vn)&&("w"in Vn||(Vn.w="u"in Vn?Vn.u%7:"W"in Vn?1:0),Sa="Z"in Vn?pz(Dv(Vn.y,0,1)).getUTCDay():hz(Dv(Vn.y,0,1)).getDay(),Vn.m=0,Vn.d="W"in Vn?(Vn.w+6)%7+7*Vn.W-(Sa+5)%7:Vn.w+7*Vn.U-(Sa+6)%7);return"Z"in Vn?(Vn.H+=Vn.Z/100|0,Vn.M+=Vn.Z%100,pz(Vn)):hz(Vn)}}function Ut(jn,yi,Ii,Vn){for(var $a,Cr,Ei=0,Zo=yi.length,Sa=Ii.length;Ei=Sa)return-1;if(37===($a=yi.charCodeAt(Ei++))){if($a=yi.charAt(Ei++),!(Cr=qe[$a in Vie?yi.charAt(Ei++):$a])||(Vn=Cr(jn,Ii,Vn))<0)return-1}else if($a!=Ii.charCodeAt(Vn++))return-1}return Vn}return me.x=rt(e,me),me.X=rt(i,me),me.c=rt(n,me),ze.x=rt(e,ze),ze.X=rt(i,ze),ze.c=rt(n,ze),{format:function(jn){var yi=rt(jn+="",me);return yi.toString=function(){return jn},yi},parse:function(jn){var yi=xt(jn+="",!1);return yi.toString=function(){return jn},yi},utcFormat:function(jn){var yi=rt(jn+="",ze);return yi.toString=function(){return jn},yi},utcParse:function(jn){var yi=xt(jn+="",!0);return yi.toString=function(){return jn},yi}}}(t),eoe=G_.format}({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 xet=$R(Tv).right,ioe=($R(toe),xet);function yet(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Met(t){return+t}var ooe=[0,1];function Y_(t){return t}function fz(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function wet(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Pet(t,n,e){var i=t[0],o=t[1],r=n[0],a=n[1];return on&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[U-1])),l=U>2?Tet:Pet,u=f=null,T}function T(U){return null==U||isNaN(U=+U)?r:(u||(u=l(t.map(i),n,e)))(i(a(U)))}return T.invert=function(U){return a(o((f||(f=l(n,t.map(i),Xh)))(U)))},T.domain=function(U){return arguments.length?(t=Array.from(U,Met),M()):t.slice()},T.range=function(U){return arguments.length?(n=Array.from(U),M()):n.slice()},T.rangeRound=function(U){return n=Array.from(U),e=yet,M()},T.clamp=function(U){return arguments.length?(a=!!U||Y_,M()):a!==Y_},T.interpolate=function(U){return arguments.length?(e=U,M()):e},T.unknown=function(U){return arguments.length?(r=U,T):r},function(U,ie){return i=U,o=ie,M()}}()(Y_,Y_)}function Let(t){return new Date(t)}function Det(t){return t instanceof Date?+t:+new Date(+t)}function soe(t,n,e,i,o,r,a,l,u,f){var M=aoe(),T=M.invert,U=M.domain,ie=f(".%L"),se=f(":%S"),Me=f("%I:%M"),we=f("%I %p"),He=f("%a %d"),Be=f("%b %d"),me=f("%B"),ze=f("%Y");function qe(rt){return(u(rt)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function GS(t){if(!(n=ket.exec(t)))throw new Error("invalid format: "+t);var n;return new gz({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function gz(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 YS(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function U_(t){return(t=YS(Math.abs(t)))?t[1]:NaN}function doe(t,n){var e=YS(t,n);if(!e)return t+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}GS.prototype=gz.prototype,gz.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 uoe={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function Iet(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>doe(100*t,n),r:doe,s:function Het(t,n){var e=YS(t,n);if(!e)return t+"";var i=e[0],o=e[1],r=o-(loe=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=i.length;return r===a?i:r>a?i+new Array(r-a+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+YS(t,Math.max(0,n+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function hoe(t){return t}var US,goe,moe,poe=Array.prototype.map,foe=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function jet(t){var n=t.domain;return t.ticks=function(e){var i=n();return function qKe(t,n,e){if(!((e=+e)>0))return[];if((t=+t)==(n=+n))return[t];const i=n=o))return[];const l=r-o+1,u=new Array(l);if(i)if(a<0)for(let f=0;f0;){if((f=XR(a,l,e))===u)return i[o]=a,i[r]=l,n(i);if(f>0)a=Math.floor(a/f)*f,l=Math.ceil(l/f)*f;else{if(!(f<0))break;a=Math.ceil(a*f)/f,l=Math.floor(l*f)/f}u=f}return t},t}function D3(){var t=aoe();return t.copy=function(){return roe(t,D3())},AC.apply(t,arguments),jet(t)}function _oe(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),r=new Array(o);++i=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*n,r=Math.floor(o),a=+e(t[r],r,t);return a+(+e(t[r+1],r+1,t)-a)*(o-r)}}function boe(){var i,t=[],n=[],e=[];function o(){var a=0,l=Math.max(1,n.length);for(e=new Array(l-1);++a0?e[l-1]:t[0],l0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),r.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=t[a=(a+1)%t.length];return r.reverse().join(n)}}(poe.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?hoe:function zet(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(poe.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"\u2212":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(T){var U=(T=GS(T)).fill,ie=T.align,se=T.sign,Me=T.symbol,we=T.zero,He=T.width,Be=T.comma,me=T.precision,ze=T.trim,qe=T.type;"n"===qe?(Be=!0,qe="g"):uoe[qe]||(void 0===me&&(me=12),ze=!0,qe="g"),(we||"0"===U&&"="===ie)&&(we=!0,U="0",ie="=");var rt="$"===Me?e:"#"===Me&&/[boxX]/.test(qe)?"0"+qe.toLowerCase():"",xt="$"===Me?i:/[%p]/.test(qe)?a:"",Ut=uoe[qe],jt=/[defgprs%]/.test(qe);function an(pn){var kn,ri,Rn,yn=rt,Kt=xt;if("c"===qe)Kt=Ut(pn)+Kt,pn="";else{var ni=(pn=+pn)<0||1/pn<0;if(pn=isNaN(pn)?u:Ut(Math.abs(pn),me),ze&&(pn=function Fet(t){e:for(var o,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(o+1):t}(pn)),ni&&0==+pn&&"+"!==se&&(ni=!1),yn=(ni?"("===se?se:l:"-"===se||"("===se?"":se)+yn,Kt=("s"===qe?foe[8+loe/3]:"")+Kt+(ni&&"("===se?")":""),jt)for(kn=-1,ri=pn.length;++kn(Rn=pn.charCodeAt(kn))||Rn>57){Kt=(46===Rn?o+pn.slice(kn+1):pn.slice(kn))+Kt,pn=pn.slice(0,kn);break}}Be&&!we&&(pn=n(pn,1/0));var Jn=yn.length+pn.length+Kt.length,Oi=Jn>1)+yn+pn+Kt+Oi.slice(Jn);break;default:pn=Oi+yn+pn+Kt}return r(pn)}return me=void 0===me?6:/[gprs]/.test(qe)?Math.max(1,Math.min(21,me)):Math.max(0,Math.min(20,me)),an.toString=function(){return T+""},an}return{format:f,formatPrefix:function M(T,U){var ie=f(((T=GS(T)).type="f",T)),se=3*Math.max(-8,Math.min(8,Math.floor(U_(U)/3))),Me=Math.pow(10,-se),we=foe[8+se/3];return function(He){return ie(Me*He)+we}}}}(t),goe=US.format,moe=US.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const _z=Math.PI,Cz=2*_z,Lm=1e-6,qet=Cz-Lm;function xoe(t){this._+=t[0];for(let n=1,e=t.length;n=0))throw new Error(`invalid digits: ${t}`);if(n>15)return xoe;const e=10**n;return function(i){this._+=i[0];for(let o=1,r=i.length;oLm)if(Math.abs(T*u-f*M)>Lm&&r){let ie=i-a,se=o-l,Me=u*u+f*f,we=ie*ie+se*se,He=Math.sqrt(Me),Be=Math.sqrt(U),me=r*Math.tan((_z-Math.acos((Me+U-we)/(2*He*Be)))/2),ze=me/Be,qe=me/He;Math.abs(ze-1)>Lm&&this._append`L${n+ze*M},${e+ze*T}`,this._append`A${r},${r},0,0,${+(T*ie>M*se)},${this._x1=n+qe*u},${this._y1=e+qe*f}`}else this._append`L${this._x1=n},${this._y1=e}`}arc(n,e,i,o,r,a){if(n=+n,e=+e,a=!!a,(i=+i)<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(o),u=i*Math.sin(o),f=n+l,M=e+u,T=1^a,U=a?o-r:r-o;null===this._x1?this._append`M${f},${M}`:(Math.abs(this._x1-f)>Lm||Math.abs(this._y1-M)>Lm)&&this._append`L${f},${M}`,i&&(U<0&&(U=U%Cz+Cz),U>qet?this._append`A${i},${i},0,1,${T},${n-l},${e-u}A${i},${i},0,1,${T},${this._x1=f},${this._y1=M}`:U>Lm&&this._append`A${i},${i},0,${+(U>=_z)},${T},${this._x1=n+i*Math.cos(r)},${this._y1=e+i*Math.sin(r)}`)}rect(n,e,i,o){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function vz(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{const i=Math.floor(e);if(!(i>=0))throw new RangeError(`invalid digits: ${e}`);n=i}return t},()=>new jS(n)}function yoe(t){return t[0]}function woe(t){return t[1]}function Moe(t,n){var e=ys(!0),i=null,o=gv,r=null,a=vz(l);function l(u){var f,T,ie,M=(u=mz(u)).length,U=!1;for(null==i&&(r=o(ie=a())),f=0;f<=M;++f)!(f=ie;--se)l.point(me[se],ze[se]);l.lineEnd(),l.areaEnd()}He&&(me[U]=+t(we,U,T),ze[U]=+n(we,U,T),l.point(i?+i(we,U,T):me[U],e?+e(we,U,T):ze[U]))}if(Be)return l=null,Be+""||null}function M(){return Moe().defined(o).curve(a).context(r)}return t="function"==typeof t?t:void 0===t?yoe:ys(+t),n="function"==typeof n?n:ys(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?woe:ys(+e),f.x=function(T){return arguments.length?(t="function"==typeof T?T:ys(+T),i=null,f):t},f.x0=function(T){return arguments.length?(t="function"==typeof T?T:ys(+T),f):t},f.x1=function(T){return arguments.length?(i=null==T?null:"function"==typeof T?T:ys(+T),f):i},f.y=function(T){return arguments.length?(n="function"==typeof T?T:ys(+T),e=null,f):n},f.y0=function(T){return arguments.length?(n="function"==typeof T?T:ys(+T),f):n},f.y1=function(T){return arguments.length?(e=null==T?null:"function"==typeof T?T:ys(+T),f):e},f.lineX0=f.lineY0=function(){return M().x(t).y(n)},f.lineY1=function(){return M().x(t).y(e)},f.lineX1=function(){return M().x(i).y(n)},f.defined=function(T){return arguments.length?(o="function"==typeof T?T:ys(!!T),f):o},f.curve=function(T){return arguments.length?(a=T,null!=r&&(l=a(r)),f):a},f.context=function(T){return arguments.length?(null==T?r=l=null:l=a(r=T),f):r},f}function Qet(t){return t.innerRadius}function Zet(t){return t.outerRadius}function Ket(t){return t.startAngle}function Jet(t){return t.endAngle}function ett(t){return t&&t.padAngle}function ttt(t,n,e,i,o,r,a,l){var u=e-t,f=i-n,M=a-o,T=l-r,U=T*u-M*f;if(!(U*Ukn*kn+ri*ri&&(Ut=an,jt=pn),{cx:Ut,cy:jt,x01:-M,y01:-T,x11:Ut*(o/qe-1),y11:jt*(o/qe-1)}}function bz(){var t=Qet,n=Zet,e=ys(0),i=null,o=Ket,r=Jet,a=ett,l=null,u=vz(f);function f(){var M,T,U=+t.apply(this,arguments),ie=+n.apply(this,arguments),se=o.apply(this,arguments)-lS,Me=r.apply(this,arguments)-lS,we=rne(Me-se),He=Me>se;if(l||(l=M=u()),ieDd)if(we>dS-Dd)l.moveTo(ie*bm(se),ie*q0(se)),l.arc(0,0,ie,se,Me,!He),U>Dd&&(l.moveTo(U*bm(Me),U*q0(Me)),l.arc(0,0,U,Me,se,He));else{var Kt,kn,Be=se,me=Me,ze=se,qe=Me,rt=we,xt=we,Ut=a.apply(this,arguments)/2,jt=Ut>Dd&&(i?+i.apply(this,arguments):k_(U*U+ie*ie)),an=sR(rne(ie-U)/2,+e.apply(this,arguments)),pn=an,yn=an;if(jt>Dd){var ri=ane(jt/U*q0(Ut)),Rn=ane(jt/ie*q0(Ut));(rt-=2*ri)>Dd?(ze+=ri*=He?1:-1,qe-=ri):(rt=0,ze=qe=(se+Me)/2),(xt-=2*Rn)>Dd?(Be+=Rn*=He?1:-1,me-=Rn):(xt=0,Be=me=(se+Me)/2)}var ni=ie*bm(Be),Jn=ie*q0(Be),Oi=U*bm(qe),qn=U*q0(qe);if(an>Dd){var nr,Wi=ie*bm(me),Ai=ie*q0(me),Bi=U*bm(ze),lo=U*q0(ze);if(weDd?yn>Dd?(Kt=WS(Bi,lo,ni,Jn,ie,yn,He),kn=WS(Wi,Ai,Oi,qn,ie,yn,He),l.moveTo(Kt.cx+Kt.x01,Kt.cy+Kt.y01),ynDd&&rt>Dd?pn>Dd?(Kt=WS(Oi,qn,Wi,Ai,U,-pn,He),kn=WS(ni,Jn,Bi,lo,U,-pn,He),l.lineTo(Kt.cx+Kt.x01,Kt.cy+Kt.y01),pnt?1:n>=t?0:NaN}function itt(t){return t}var att=C(25126);const stt=["caretElm"];function ctt(t,n){}const ltt=function(t){return{model:t}};function dtt(t,n){if(1&t&&(H(0,"span"),ke(1,ctt,0,0,"ng-template",5),G()),2&t){const e=Ae();W(1),J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",wo(2,ltt,e.context))}}function utt(t,n){1&t&&Qe(0,"span",6),2&t&&J("innerHTML",Ae().title,A5)}function htt(t,n){if(1&t&&(H(0,"header",4)(1,"span",5),de(2),G()()),2&t){const e=Ae();W(2),qo(e.title)}}function ptt(t,n){if(1&t){const e=Ln();H(0,"li",6)(1,"ngx-charts-legend-entry",7),et("select",function(o){return Dt(e),Ae().labelClick.emit(o)})("activate",function(o){return Dt(e),Ae().activate(o)})("deactivate",function(o){return Dt(e),Ae().deactivate(o)}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}function ftt(t,n){if(1&t&&(bi(),gd(),Qe(0,"ngx-charts-scale-legend",4)),2&t){const e=Ae();J("horizontal",e.legendOptions&&e.legendOptions.position===e.LegendPosition.Below)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function gtt(t,n){if(1&t){const e=Ln();bi(),gd(),H(0,"ngx-charts-legend",5),et("labelClick",function(o){return Dt(e),Ae().legendLabelClick.emit(o)})("labelActivate",function(o){return Dt(e),Ae().legendLabelActivate.emit(o)})("labelDeactivate",function(o){return Dt(e),Ae().legendLabelDeactivate.emit(o)}),G()}if(2&t){const e=Ae();J("horizontal",e.legendOptions&&e.legendOptions.position===e.LegendPosition.Below)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const Soe=["*"],mtt=["ngx-charts-axis-label",""],Poe=["ticksel"],_tt=["ngx-charts-x-axis-ticks",""];function Ctt(t,n){1&t&&(bi(),Fc(0))}function vtt(t,n){if(1&t&&(bi(),H(0,"tspan",10),de(1),G()),2&t){const e=n.$implicit;Un("y",12*n.index),W(1),Nt(" ",e," ")}}function btt(t,n){if(1&t&&(bi(),er(0),ke(1,vtt,2,2,"tspan",9),tr()),2&t){const e=n.ngIf;W(1),J("ngForOf",e)}}function xtt(t,n){if(1&t&&(bi(),ke(0,btt,2,1,"ng-container",4)),2&t){const e=Ae(2).$implicit;J("ngIf",Ae().tickChunks(e))}}function ytt(t,n){if(1&t&&(bi(),de(0)),2&t){const e=Ae().ngIf;Nt(" ",Ae(2).tickTrim(e)," ")}}function wtt(t,n){if(1&t&&(bi(),er(0),H(1,"title"),de(2),G(),H(3,"text",5),ke(4,Ctt,1,0,"ng-container",6),G(),ke(5,xtt,1,1,"ng-template",null,7,tu),ke(7,ytt,1,1,"ng-template",null,8,tu),tr()),2&t){const e=n.ngIf,i=Di(6),o=Di(8),r=Ae(2);W(2),qo(e),W(1),Un("text-anchor",r.textAnchor)("transform",r.textTransform),W(1),J("ngIf",r.isWrapTicksSupported)("ngIfThen",i)("ngIfElse",o)}}function Mtt(t,n){if(1&t&&(bi(),H(0,"g",3),ke(1,wtt,9,6,"ng-container",4),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.tickTransform(e)),W(1),J("ngIf",i.tickFormat(e))}}function Ott(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"line",11),G()),2&t){const e=Ae(2);Un("transform",e.gridLineTransform()),W(1),Un("y1",-e.gridLineHeight)}}function Stt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Ott,2,2,"g",4),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.tickTransform(e)),W(1),J("ngIf",i.showGridLines)}}const Ptt=["ngx-charts-x-axis",""];function Ttt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("dimensionsChanged",function(o){return Dt(e),Ae().emitTicksHeight(o)}),G()}if(2&t){const e=Ae();J("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)("wrapTicks",e.wrapTicks)}}function Ett(t,n){if(1&t&&(bi(),Qe(0,"g",3)),2&t){const e=Ae();J("label",e.labelText)("offset",e.labelOffset)("orient",e.orientation.Bottom)("height",e.dims.height)("width",e.dims.width)}}const Att=["ngx-charts-y-axis-ticks",""];function Ltt(t,n){1&t&&(bi(),Fc(0))}function Dtt(t,n){if(1&t&&(bi(),H(0,"tspan",12),de(1),G()),2&t){const e=n.$implicit;Un("y",n.index*(8+Ae(6).tickSpacing)),W(1),Nt(" ",e," ")}}function ktt(t,n){if(1&t&&(bi(),er(0),ke(1,Dtt,2,2,"tspan",11),tr()),2&t){const e=Ae().ngIf;W(1),J("ngForOf",e)}}function Itt(t,n){if(1&t&&(bi(),er(0),ke(1,ktt,2,1,"ng-container",10),tr()),2&t){const e=n.ngIf;Ae(2);const i=Di(8);W(1),J("ngIf",e.length>1)("ngIfElse",i)}}function Ntt(t,n){if(1&t&&(bi(),ke(0,Itt,2,2,"ng-container",5)),2&t){const e=Ae(2).$implicit;J("ngIf",Ae().tickChunks(e))}}function Rtt(t,n){if(1&t&&(bi(),de(0)),2&t){const e=Ae().ngIf;Nt(" ",Ae(2).tickTrim(e)," ")}}function ztt(t,n){if(1&t&&(bi(),er(0),H(1,"title"),de(2),G(),H(3,"text",6),ke(4,Ltt,1,0,"ng-container",7),G(),ke(5,Ntt,1,1,"ng-template",null,8,tu),ke(7,Rtt,1,1,"ng-template",null,9,tu),tr()),2&t){const e=n.ngIf,i=Di(6),o=Di(8),r=Ae(2);W(2),qo(e),W(1),Br("font-size","12px"),Un("dy",r.dy)("x",r.x1)("y",r.y1)("text-anchor",r.textAnchor),W(1),J("ngIf",r.wrapTicks)("ngIfThen",i)("ngIfElse",o)}}function Ftt(t,n){if(1&t&&(bi(),H(0,"g",4),ke(1,ztt,9,10,"ng-container",5),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.transform(e)),W(1),J("ngIf",i.tickFormat(e))}}function Htt(t,n){if(1&t&&(bi(),Qe(0,"path",13)),2&t){const e=Ae();Un("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function Vtt(t,n){1&t&&(bi(),Qe(0,"line",15)),2&t&&Un("x2",Ae(3).gridLineWidth)}function Btt(t,n){1&t&&(bi(),Qe(0,"line",15)),2&t&&Un("x2",-Ae(3).gridLineWidth)}function Gtt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Vtt,1,1,"line",14),ke(2,Btt,1,1,"line",14),G()),2&t){const e=Ae(2);Un("transform",e.gridLineTransform()),W(1),J("ngIf",e.orient===e.Orientation.Left),W(1),J("ngIf",e.orient===e.Orientation.Right)}}function Ytt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Gtt,3,3,"g",5),G()),2&t){const e=n.$implicit,i=Ae();Un("transform",i.transform(e)),W(1),J("ngIf",i.showGridLines)}}function Utt(t,n){if(1&t&&(bi(),H(0,"g")(1,"title"),de(2),G(),H(3,"text",17),de(4),G()()),2&t){const e=Ae(2).$implicit,i=Ae();W(2),qo(i.tickTrim(i.tickFormat(e.value))),W(1),Un("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),W(1),Nt(" ",e.name," ")}}function jtt(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"line",16),ke(2,Utt,5,6,"g",5),G()),2&t){const e=Ae().$implicit,i=Ae();Un("transform",i.transform(e.value)),W(1),Un("x2",i.gridLineWidth)("transform",i.gridLineTransform()),W(1),J("ngIf",i.showRefLabels)}}function Wtt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,jtt,3,4,"g",5),G()),2&t){const e=Ae();W(1),J("ngIf",e.showRefLines)}}const qtt=["ngx-charts-y-axis",""];function $tt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("dimensionsChanged",function(o){return Dt(e),Ae().emitTicksWidth(o)}),G()}if(2&t){const e=Ae();J("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)("wrapTicks",e.wrapTicks)}}function Xtt(t,n){if(1&t&&(bi(),Qe(0,"g",3)),2&t){const e=Ae();J("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const Qtt=["ngx-charts-svg-linear-gradient",""];function Ztt(t,n){if(1&t&&(bi(),Qe(0,"stop")),2&t){const e=n.$implicit;Br("stop-color",e.color)("stop-opacity",e.opacity),Un("offset",e.offset+"%")}}const Ktt=["ngx-charts-circle",""],Jtt=["ngx-charts-circle-series",""];function ent(t,n){if(1&t&&(bi(),Qe(0,"rect",4)),2&t){const e=Ae(2);J("@animationState","active"),Un("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}function tnt(t,n){if(1&t&&(bi(),Qe(0,"rect",4)),2&t){const e=Ae(2);Un("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const nnt=function(t){return{name:t}};function int(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"defs"),Qe(2,"g",1),G(),ke(3,ent,1,6,"rect",2),ke(4,tnt,1,5,"rect",2),H(5,"g",3),et("select",function(){Dt(e);const o=Ae();return o.onClick(o.circle.data)})("activate",function(){return Dt(e),Ae().activateCircle()})("deactivate",function(){return Dt(e),Ae().deactivateCircle()}),G()()}if(2&t){const e=Ae();W(2),J("orientation",e.barOrientation.Vertical)("name",e.gradientId)("stops",e.circle.gradientStops),W(1),J("ngIf",!e.isSSR&&e.barVisible&&"standard"===e.type),W(1),J("ngIf",e.isSSR&&e.barVisible&&"standard"===e.type),W(1),po("active",e.isActive(wo(20,nnt,e.circle.seriesName))),J("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.placementTypes.Top)("tooltipType",e.styleTypes.tooltip)("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const snt=["ngx-charts-svg-radial-gradient",""];function cnt(t,n){if(1&t&&(bi(),Qe(0,"stop")),2&t){const e=n.$implicit;Br("stop-color",e.color)("stop-opacity",e.opacity),Un("offset",e.offset+"%")}}const lnt=["ngx-charts-area",""];function dnt(t,n){if(1&t&&(bi(),H(0,"defs"),Qe(1,"g",2),G()),2&t){const e=Ae();W(1),J("orientation",e.barOrientation.Vertical)("name",e.gradientId)("stops",e.gradientStops)}}const hnt=["tooltipAnchor"],pnt=["ngx-charts-tooltip-area",""];function fnt(t,n){if(1&t&&(H(0,"div",6),Qe(1,"span",7),de(2),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),Br("background-color",e.color),W(1),Nt(" ",i.getToolTipText(e)," ")}}function gnt(t,n){if(1&t&&(bi(),gd(),H(0,"div",4),ke(1,fnt,3,3,"div",5),G()),2&t){const e=n.model;W(1),J("ngForOf",e)}}const mnt=["ngx-charts-timeline",""],qS=["tooltipTemplate"],Mnt=["seriesTooltipTemplate"],C4=function(t,n){return[t,n]},$S=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",Lnt=["ngx-charts-bar",""];function Dnt(t,n){if(1&t&&(bi(),H(0,"defs"),Qe(1,"g",2),G()),2&t){const e=Ae();W(1),J("orientation",e.orientation)("name",e.gradientId)("stops",e.gradientStops)}}const knt=["ngx-charts-bar-label",""],Int=["ngx-charts-series-horizontal",""];function Nnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("select",function(o){return Dt(e),Ae().click(o)})("activate",function(o){return Dt(e),Ae().activate.emit(o)})("deactivate",function(o){return Dt(e),Ae().deactivate.emit(o)}),G()}if(2&t){const e=n.$implicit,i=Ae();J("@animationState","active")("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation",i.barOrientation.Horizontal)("roundEdges",e.roundEdges)("gradient",i.gradient)("isActive",i.isActive(e.data))("ariaLabel",e.ariaLabel)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)}}function Rnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",4),et("dimensionsChanged",function(o){const a=Dt(e).index;return Ae(2).dataLabelWidthChanged.emit({size:o,index:a})}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation",i.barOrientation.Horizontal)}}function znt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Rnt,1,7,"g",3),G()),2&t){const e=Ae();W(1),J("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}function Fnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",5),et("dimensionsChanged",function(o){return Dt(e),Ae().updateXAxisHeight(o)}),G()}if(2&t){const e=Ae();J("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("wrapTicks",e.wrapTicks)}}function Hnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",6),et("dimensionsChanged",function(o){return Dt(e),Ae().updateYAxisWidth(o)}),G()}if(2&t){const e=Ae();J("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("yAxisOffset",e.dataLabelMaxWidth.negative)("wrapTicks",e.wrapTicks)}}const Wnt=["ngx-charts-series-vertical",""];function qnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("select",function(o){return Dt(e),Ae(2).onClick(o)})("activate",function(o){return Dt(e),Ae(2).activate.emit(o)})("deactivate",function(o){return Dt(e),Ae(2).deactivate.emit(o)}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("@animationState","active")("@.disabled",!i.animations)("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation",i.barOrientation.Vertical)("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function $nt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,qnt,1,22,"g",1),G()),2&t){const e=Ae();W(1),J("ngForOf",e.bars)("ngForTrackBy",e.trackBy)}}function Xnt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",2),et("select",function(o){return Dt(e),Ae(2).onClick(o)})("activate",function(o){return Dt(e),Ae(2).activate.emit(o)})("deactivate",function(o){return Dt(e),Ae(2).deactivate.emit(o)}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation",i.barOrientation.Vertical)("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function Qnt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Xnt,1,20,"g",1),G()),2&t){const e=Ae();W(1),J("ngForOf",e.bars)("ngForTrackBy",e.trackBy)}}function Znt(t,n){if(1&t){const e=Ln();bi(),H(0,"g",4),et("dimensionsChanged",function(o){const a=Dt(e).index;return Ae(2).dataLabelHeightChanged.emit({size:o,index:a})}),G()}if(2&t){const e=n.$implicit,i=Ae(2);J("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation",i.barOrientation.Vertical)}}function Knt(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Znt,1,7,"g",3),G()),2&t){const e=Ae();W(1),J("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}function iit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",5),et("dimensionsChanged",function(o){return Dt(e),Ae().updateXAxisHeight(o)}),G()}if(2&t){const e=Ae();J("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)("wrapTicks",e.wrapTicks)}}function oit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",6),et("dimensionsChanged",function(o){return Dt(e),Ae().updateYAxisWidth(o)}),G()}if(2&t){const e=Ae();J("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("wrapTicks",e.wrapTicks)}}function rit(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"g",8),et("select",function(o){const a=Dt(e).$implicit;return Ae(2).onClick(o,a)})("activate",function(o){const a=Dt(e).$implicit;return Ae(2).onActivate(o,a)})("deactivate",function(o){const a=Dt(e).$implicit;return Ae(2).onDeactivate(o,a)})("dataLabelHeightChanged",function(o){const a=Dt(e).index;return Ae(2).onDataLabelMaxHeightChanged(o,a)}),G()()}if(2&t){const e=n.$implicit,i=Ae(2);J("@animationState","active"),Un("transform",i.groupTransform(e)),W(1),J("type",i.barChartType.Stacked)("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}function ait(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,rit,2,17,"g",7),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function sit(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"g",8),et("select",function(o){const a=Dt(e).$implicit;return Ae(2).onClick(o,a)})("activate",function(o){const a=Dt(e).$implicit;return Ae(2).onActivate(o,a)})("deactivate",function(o){const a=Dt(e).$implicit;return Ae(2).onDeactivate(o,a)})("dataLabelHeightChanged",function(o){const a=Dt(e).index;return Ae(2).onDataLabelMaxHeightChanged(o,a)}),G()()}if(2&t){const e=n.$implicit,i=Ae(2);Un("transform",i.groupTransform(e)),W(1),J("type",i.barChartType.Stacked)("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}function cit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,sit,2,16,"g",7),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const fit=["ngx-charts-line",""];function git(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"path",1),G()),2&t){const e=Ae();W(1),J("@animationState","active"),Un("d",e.initialPath)("fill",e.fill)("stroke",e.stroke)}}function mit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"path",1),G()),2&t){const e=Ae();W(1),Un("d",e.initialPath)("fill",e.fill)("stroke",e.stroke)}}const _it=["ngx-charts-line-series",""];function Cit(t,n){if(1&t&&(bi(),Qe(0,"g",4)),2&t){const e=Ae();J("orientation",e.barOrientation.Vertical)("name",e.gradientId)("stops",e.gradientStops)}}function vit(t,n){if(1&t&&(bi(),Qe(0,"g",5)),2&t){const e=Ae();po("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),J("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}function bit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",7),et("dimensionsChanged",function(o){return Dt(e),Ae().updateXAxisHeight(o)}),G()}if(2&t){const e=Ae();J("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("wrapTicks",e.wrapTicks)}}function xit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",8),et("dimensionsChanged",function(o){return Dt(e),Ae().updateYAxisWidth(o)}),G()}if(2&t){const e=Ae();J("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("wrapTicks",e.wrapTicks)}}function yit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"g",10),G()),2&t){const e=n.$implicit,i=Ae(2);J("@animationState","active"),W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function wit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,yit,2,11,"g",9),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Mit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"g",10),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function Oit(t,n){if(1&t&&(bi(),H(0,"g"),ke(1,Mit,2,10,"g",9),G()),2&t){const e=Ae();W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Sit(t,n){if(1&t){const e=Ln();bi(),H(0,"g")(1,"g",14),et("select",function(o){return Dt(e),Ae(2).onClick(o)})("activate",function(o){return Dt(e),Ae(2).onActivate(o)})("deactivate",function(o){return Dt(e),Ae(2).onDeactivate(o)}),G()()}if(2&t){const e=n.$implicit,i=Ae(2);W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Pit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",11),et("mouseleave",function(){return Dt(e),Ae().hideCircles()}),H(1,"g",12),et("hover",function(o){return Dt(e),Ae().updateHoveredVertical(o)}),G(),ke(2,Sit,2,9,"g",13),G()}if(2&t){const e=Ae();W(1),J("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),W(1),J("ngForOf",e.results)}}function Tit(t,n){if(1&t&&(bi(),H(0,"g"),Qe(1,"g",16),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function Eit(t,n){if(1&t){const e=Ln();bi(),H(0,"g",15),et("onDomainChange",function(o){return Dt(e),Ae().updateDomain(o)}),ke(1,Tit,2,8,"g",9),G()}if(2&t){const e=Ae();J("results",e.results)("view",x0(10,C4,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),Un("transform",e.timelineTransform),W(1),J("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const Ait=["ngx-charts-pie-label",""],Nit=["ngx-charts-pie-arc",""];function Rit(t,n){if(1&t&&(bi(),H(0,"defs"),Qe(1,"g",3),G()),2&t){const e=Ae();W(1),J("color",e.fill)("name",e.radialGradientId)("startOpacity",e.startOpacity)}}const zit=["ngx-charts-pie-series",""];function Fit(t,n){if(1&t&&(bi(),Qe(0,"g",3)),2&t){const e=Ae().$implicit,i=Ae();J("data",e)("radius",i.outerRadius)("color",i.color(e))("label",i.labelText(e))("labelTrim",i.trimLabels)("labelTrimSize",i.maxLabelLength)("max",i.max)("value",e.value)("explodeSlices",i.explodeSlices)("animations",i.animations)}}function Hit(t,n){if(1&t){const e=Ln();bi(),H(0,"g"),ke(1,Fit,1,10,"g",1),H(2,"g",2),et("select",function(o){return Dt(e),Ae().onClick(o)})("activate",function(o){return Dt(e),Ae().activate.emit(o)})("deactivate",function(o){return Dt(e),Ae().deactivate.emit(o)})("dblclick",function(o){return Dt(e),Ae().dblclick.emit(o)}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("ngIf",i.labelVisible(e)),W(1),J("startAngle",e.startAngle)("endAngle",e.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(e))("value",e.data.value)("gradient",i.gradient)("data",e.data)("max",i.max)("explodeSlices",i.explodeSlices)("isActive",i.isActive(e.data))("animate",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Top)("tooltipType",i.styleTypes.tooltip)("tooltipTitle",i.getTooltipTitle(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}function Xit(t,n,e){e=e||{};let i,o,r,a=null,l=0;function u(){l=!1===e.leading?0:+new Date,a=null,r=t.apply(i,o)}return function(){const f=+new Date;!l&&!1===e.leading&&(l=f);const M=n-(f-l);return i=this,o=arguments,M<=0?(clearTimeout(a),a=null,l=f,r=t.apply(i,o)):!a&&!1!==e.trailing&&(a=setTimeout(u,M)),r}}function Qit(t,n){return function(i,o,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,o,{configurable:!0,enumerable:r.enumerable,value:Xit(r.value,t,n)}),this[o]}}}}var Oa=(()=>(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center"}(Oa||(Oa={})),Oa))();function Toe(t,n,e){return e===Oa.Top?t.top-7:e===Oa.Bottom?t.top+t.height-n.height+7:e===Oa.Center?t.top+t.height/2-n.height/2:void 0}function Eoe(t,n,e){return e===Oa.Left?t.left-7:e===Oa.Right?t.left+t.width-n.width+7:e===Oa.Center?t.left+t.width/2-n.width/2:void 0}class bu{static calculateVerticalAlignment(n,e,i){let o=Toe(n,e,i);return o+e.height>window.innerHeight&&(o=window.innerHeight-e.height),o}static calculateVerticalCaret(n,e,i,o){let r;o===Oa.Top&&(r=n.height/2-i.height/2+7),o===Oa.Bottom&&(r=e.height-n.height/2-i.height/2-7),o===Oa.Center&&(r=e.height/2-i.height/2);const a=Toe(n,e,o);return a+e.height>window.innerHeight&&(r+=a+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let o=Eoe(n,e,i);return o+e.width>window.innerWidth&&(o=window.innerWidth-e.width),o}static calculateHorizontalCaret(n,e,i,o){let r;o===Oa.Left&&(r=n.width/2-i.width/2+7),o===Oa.Right&&(r=e.width-n.width/2-i.width/2-7),o===Oa.Center&&(r=e.width/2-i.width/2);const a=Eoe(n,e,o);return a+e.width>window.innerWidth&&(r+=a+e.width-window.innerWidth),r}static shouldFlip(n,e,i,o){let r=!1;return i===Oa.Right&&n.left+n.width+e.width+o>window.innerWidth&&(r=!0),i===Oa.Left&&n.left-e.width-o<0&&(r=!0),i===Oa.Top&&n.top-e.height-o<0&&(r=!0),i===Oa.Bottom&&n.top+n.height+e.height+o>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,o,r){let a=0,l=0;return n===Oa.Right?(l=-7,a=bu.calculateVerticalCaret(i,e,o,r)):n===Oa.Left?(l=e.width,a=bu.calculateVerticalCaret(i,e,o,r)):n===Oa.Top?(a=e.height,l=bu.calculateHorizontalCaret(i,e,o,r)):n===Oa.Bottom&&(a=-7,l=bu.calculateHorizontalCaret(i,e,o,r)),{top:a,left:l}}static positionContent(n,e,i,o,r){let a=0,l=0;return n===Oa.Right?(l=i.left+i.width+o,a=bu.calculateVerticalAlignment(i,e,r)):n===Oa.Left?(l=i.left-e.width-o,a=bu.calculateVerticalAlignment(i,e,r)):n===Oa.Top?(a=i.top-e.height-o,l=bu.calculateHorizontalAlignment(i,e,r)):n===Oa.Bottom&&(a=i.top+i.height+o,l=bu.calculateHorizontalAlignment(i,e,r)),{top:a,left:l}}static determinePlacement(n,e,i,o){if(bu.shouldFlip(i,e,n,o)){if(n===Oa.Right)return Oa.Left;if(n===Oa.Left)return Oa.Right;if(n===Oa.Top)return Oa.Bottom;if(n===Oa.Bottom)return Oa.Top}return n}}let Zit=(()=>{class t{constructor(e,i,o){this.element=e,this.renderer=i,this.platformId=o}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!ll(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const o=e.getBoundingClientRect();this.checkFlip(i,o),this.positionContent(e,i,o),this.showCaret&&this.positionCaret(i,o),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,o){const{top:r,left:a}=bu.positionContent(this.placement,o,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${a}px`)}positionCaret(e,i){const o=this.caretElm.nativeElement,r=o.getBoundingClientRect(),{top:a,left:l}=bu.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(o,"top",`${a}px`),this.renderer.setStyle(o,"left",`${l}px`)}checkFlip(e,i){this.placement=bu.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(yl),ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&_o(stt,5),2&e){let o;fi(o=gi())&&(i.caretElm=o.first)}},hostVars:2,hostBindings:function(e,i){1&e&&et("resize",function(){return i.onWindowResize()},!1,Tp),2&e&&PA(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(H(0,"div"),Qe(1,"span",0,1),H(3,"div",2),ke(4,dtt,2,4,"span",3),ke(5,utt,1,1,"span",4),G()()),2&e&&(W(1),yf("tooltip-caret position-",i.placement,""),J("hidden",!i.showCaret),W(3),J("ngIf",!i.title),W(1),J("ngIf",i.title))},directives:[Yi,Sg],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),An([Qit(100)],t.prototype,"onWindowResize",null),t})(),Aoe=(()=>{class t{constructor(e,i,o){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=o}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function Jit(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const o=Object.getOwnPropertyNames(i.inputs);for(const r of o)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const o=Object.getOwnPropertyNames(i.outputs);for(const r of o)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},o){o||(o=this.getRootViewContainer());const r=this.getComponentRootNode(o),a=new zq(r,this.componentFactoryResolver,this.applicationRef,this.injector),l=new uu(e),u=a.attach(l);return this.projectComponentBindings(u,i),u}}return t.globalRootViewContainer=null,t.\u0275fac=function(e){return new(e||t)(qt(K7),qt(wf),qt(zs))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})(),xz=(()=>{class t extends class Kit{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=Zit}}return t.\u0275fac=function(e){return new(e||t)(qt(Aoe))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();var ih=(()=>(function(t){t.Right="right",t.Below="below"}(ih||(ih={})),ih))(),Dm=(()=>(function(t){t.ScaleLegend="scaleLegend",t.Legend="legend"}(Dm||(Dm={})),Dm))(),No=(()=>(function(t){t.Time="time",t.Linear="linear",t.Ordinal="ordinal",t.Quantile="quantile"}(No||(No={})),No))();let Loe=(()=>{class t{constructor(){this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`}gradientString(e,i){i.push(1);const o=[];return e.reverse().forEach((r,a)=>{o.push(`${r} ${Math.round(100*i[a])}%`)}),o.join(", ")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[Yo],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span"),de(3),G()(),Qe(4,"div",2),H(5,"div",1)(6,"span"),de(7),G()()()),2&e&&(Br("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),po("horizontal-legend",i.horizontal),W(3),qo(i.valueRange[1].toLocaleString()),W(1),Br("background",i.gradient),W(3),qo(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),t})();function b4(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function Rv(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}let Doe=(()=>{class t{constructor(){this.isActive=!1,this.select=new In,this.activate=new In,this.deactivate=new In,this.toggle=new In}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&et("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(H(0,"span",0),et("click",function(){return i.select.emit(i.formattedLabel)}),H(1,"span",1),et("click",function(){return i.toggle.emit(i.formattedLabel)}),G(),H(2,"span",2),de(3),G()()),2&e&&(po("active",i.isActive),J("title",i.formattedLabel),W(1),Br("background-color",i.color),W(2),Nt(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),koe=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new In,this.labelActivate=new In,this.labelDeactivate=new In,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const o=b4(i);-1===e.findIndex(a=>a.label===o)&&e.push({label:i,formattedLabel:o,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.label===o.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Yo],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(H(0,"div"),ke(1,htt,3,1,"header",0),H(2,"div",1)(3,"ul",2),ke(4,ptt,2,4,"li",3),G()()()),2&e&&(Br("width",i.width,"px"),W(1),J("ngIf",(null==i.title?null:i.title.length)>0),W(2),Br("max-height",i.height-45,"px"),po("horizontal-legend",i.horizontal),W(1),J("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},directives:[Doe,Yi,$o],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})(),zv=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new In,this.legendLabelActivate=new In,this.legendLabelDeactivate=new In,this.LegendPosition=ih,this.LegendType=Dm}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===ih.Right)&&(e=this.legendType===Dm.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==ih.Right?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return this.legendOptions.scaleType===No.Linear?Dm.ScaleLegend:Dm.Legend}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[mo([xz]),Yo],ngContentSelectors:Soe,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(ls(),H(0,"div",0),bi(),H(1,"svg",1),Vr(2),G(),ke(3,ftt,1,5,"ngx-charts-scale-legend",2),ke(4,gtt,1,7,"ngx-charts-legend",3),G()),2&e&&(Br("width",i.view[0],"px")("height",i.view[1],"px"),W(1),Un("width",i.chartWidth)("height",i.view[1]),W(2),J("ngIf",i.showLegend&&i.legendType===i.LegendType.ScaleLegend),W(1),J("ngIf",i.showLegend&&i.legendType===i.LegendType.Legend))},directives:[Loe,koe,Yi],encapsulation:2,changeDetection:0}),t})(),eot=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new In,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:o}=this.element.nativeElement;i&&o?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo))},t.\u0275dir=St({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();function Ioe(t){return"[object Date]"===toString.call(t)}let Fv=(()=>{class t{constructor(e,i,o,r){this.chartElement=e,this.zone=i,this.cd=o,this.platformId=r,this.scheme="cool",this.schemeType=No.Ordinal,this.animations=!0,this.select=new In}ngOnInit(){ou(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new eot(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const o=this.chartElement.nativeElement;if(ll(this.platformId)&&null!==o.parentNode){const r=o.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;e{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const o of e){const r={};if(void 0!==o.name&&(r.name=o.name),void 0!==o.value&&(r.value=o.value),void 0!==o.series){r.series=[];for(const a of o.series){const l=Object.assign({},a);r.series.push(l)}}void 0!==o.extra&&(r.extra=JSON.parse(JSON.stringify(o.extra))),void 0!==o.source&&(r.source=o.source),void 0!==o.target&&(r.target=o.target),i.push(r)}return i}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(oo),ue(Xr),ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[Yo],decls:1,vars:0,template:function(e,i){1&e&&Qe(0,"div")},encapsulation:2}),t})();var m1=(()=>(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right"}(m1||(m1={})),m1))();let Noe=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case m1.Top:case m1.Bottom:this.y=this.offset,this.x=this.width/2;break;case m1.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case m1.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Yo],attrs:mtt,decls:2,vars:6,template:function(e,i){1&e&&(bi(),H(0,"text"),de(1),G()),2&e&&(Un("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),W(1),Nt(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function XS(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function Roe(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let o=0;o{const l=(r.pop()||"")+" ";return l.length+a.length>n?[...r,l.trim(),a.trim()]:[...r,l+a]},[]);else{let r=0;for(;re&&(o=o.splice(0,e),o[o.length-1]+="..."),o}var xu=(()=>(function(t){t.Start="start",t.Middle="middle",t.End="end"}(xu||(xu={})),xu))();let Foe=(()=>{class t{constructor(e){this.platformId=e,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.dimensionsChanged=new In,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=xu.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16}get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!ll(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(o){return this.scale(o)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor=xu.End,this.verticalSpacing=10):this.textAnchor=xu.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let T=0;Tthis.maxTicksLength&&(this.maxTicksLength=ie)}const a=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let l=a;const u=Math.floor(this.width/e.length);for(;l>u&&i>-90;)i-=30,l=Math.cos(i*(Math.PI/180))*a;let f=14;if(this.isWrapTicksSupported){const T=this.ticks.reduce((ie,se)=>se.length>ie.length?se:ie,"");f=14*(this.tickChunks(T).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(T)}const M=0!==i?Math.max(Math.abs(Math.sin(i*Math.PI/180))*this.maxTickLength*7,10):f;return this.approxHeight=Math.min(M,200),i}getTicks(){let e;const i=this.getMaxTicks(20),o=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[o]):(e=this.scale.domain(),e=Roe(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?XS(e,this.maxTickLength):e}getMaxPossibleLengthForTick(e){if(this.scale.bandwidth){const o=Math.floor(this.scale.bandwidth()/7),r=e.slice(0,o);return Math.max(r.length,this.maxTickLength)}return this.maxTickLength}tickChunks(e){if(e.toString().length>this.maxTickLength&&this.scale.bandwidth){let o=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(o<=1)return[this.tickTrim(e)];let r=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return ll(this.platformId)||(r=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),o=Math.min(o,5),zoe(e,r,o<1?1:o)}return[this.tickTrim(e)]}}return t.\u0275fac=function(e){return new(e||t)(ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&_o(Poe,5),2&e){let o;fi(o=gi())&&(i.ticksElement=o.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:_tt,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(bi(),H(0,"g",null,0),ke(2,Mtt,2,2,"g",1),G(),ke(3,Stt,2,2,"g",2)),2&e&&(W(2),J("ngForOf",i.ticks),W(1),J("ngForOf",i.ticks))},directives:[$o,Yi],encapsulation:2,changeDetection:0}),t})(),yz=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=m1.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new In,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=m1}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&_o(Foe,5),2&e){let o;fi(o=gi())&&(i.ticksComponent=o.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:Ptt,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(bi(),H(0,"g"),ke(1,Ttt,1,13,"g",0),ke(2,Ett,1,5,"g",1),G()),2&e&&(Un("class",i.xAxisClassName)("transform",i.transform),W(1),J("ngIf",i.xScale),W(1),J("ngIf",i.showLabel))},directives:[Foe,Noe,Yi],encapsulation:2,changeDetection:0}),t})();function x4(t,n,e,i,o,[r,a,l,u]){let f="";return f=`M${[t+o,n]}`,f+="h"+((e=0===(e=Math.floor(e))?1:e)-2*o),f+=a?`a${[o,o]} 0 0 1 ${[o,o]}`:`h${o}v${o}`,f+="v"+((i=0===(i=Math.floor(i))?1:i)-2*o),f+=u?`a${[o,o]} 0 0 1 ${[-o,o]}`:`v${o}h${-o}`,f+="h"+(2*o-e),f+=l?`a${[o,o]} 0 0 1 ${[-o,-o]}`:`h${-o}v${-o}`,f+="v"+(2*o-i),f+=r?`a${[o,o]} 0 0 1 ${[o,-o]}`:`v${-o}h${o}`,f+="z",f}let Hoe=(()=>{class t{constructor(e){this.platformId=e,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new In,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=xu.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=m1}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!ll(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale,i=this.orient===m1.Top||this.orient===m1.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleString()},this.adjustedScale=e.bandwidth?o=>{const r=e(o)+.5*e.bandwidth();if(this.wrapTicks&&o.toString().length>this.maxTickLength){const a=this.tickChunks(o).length;if(1===a)return r;const f=.5*e.bandwidth()-8*a*.5;return e(o)+f}return r}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case m1.Top:case m1.Bottom:this.transform=function(o){return"translate("+this.adjustedScale(o)+",0)"},this.textAnchor=xu.Middle,this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case m1.Left:this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor=xu.End,this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case m1.Right:this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor=xu.Start,this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=x4(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),o=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[o]):(e=this.scale.domain(),e=Roe(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?XS(e,this.maxTickLength):e}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(o=>this.tickTrim(this.tickFormat(o)).length))}tickChunks(e){if(e.toString().length>this.maxTickLength&&this.scale.bandwidth){const i=this.maxTickLength,o=Math.floor(this.scale.bandwidth()/15);return o<=1?[this.tickTrim(e)]:zoe(e,i,Math.min(o,5))}return[this.tickFormat(e)]}}return t.\u0275fac=function(e){return new(e||t)(ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&_o(Poe,5),2&e){let o;fi(o=gi())&&(i.ticksElement=o.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:Att,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(bi(),H(0,"g",null,0),ke(2,Ftt,2,2,"g",1),G(),ke(3,Htt,1,2,"path",2),ke(4,Ytt,2,2,"g",3),ke(5,Wtt,2,1,"g",3)),2&e&&(W(2),J("ngForOf",i.ticks),W(1),J("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),W(1),J("ngForOf",i.ticks),W(1),J("ngForOf",i.referenceLines))},directives:[$o,Yi],encapsulation:2,changeDetection:0}),t})(),wz=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient=m1.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new In,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===m1.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&this.yOrient===m1.Right?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&_o(Hoe,5),2&e){let o;fi(o=gi())&&(i.ticksComponent=o.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:qtt,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(bi(),H(0,"g"),ke(1,$tt,1,15,"g",0),ke(2,Xtt,1,5,"g",1),G()),2&e&&(Un("class",i.yAxisClassName)("transform",i.transform),W(1),J("ngIf",i.yScale),W(1),J("ngIf",i.showLabel))},directives:[Hoe,Noe,Yi],encapsulation:2,changeDetection:0}),t})(),Voe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va]]}),t})();var k3=(()=>(function(t){t.popover="popover",t.tooltip="tooltip"}(k3||(k3={})),k3))(),y4=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(y4||(y4={})),y4))();let Hv=(()=>{class t{constructor(e,i,o){this.tooltipService=e,this.viewContainerRef=i,this.renderer=o,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Oa.Top,this.tooltipAlignment=Oa.Center,this.tooltipType=k3.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=y4.all,this.tooltipImmediateExit=!1,this.show=new In,this.hide=new In}get listensForFocus(){return this.tooltipShowEvent===y4.all||this.tooltipShowEvent===y4.focus}get listensForHover(){return this.tooltipShowEvent===y4.all||this.tooltipShowEvent===y4.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const o=this.createBoundOptions();this.component=this.tooltipService.create(o),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(ue(xz),ue(oc),ue(yl))},t.\u0275dir=St({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&et("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(r){return i.onMouseLeave(r.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),t})(),Boe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[Aoe,xz],imports:[[va]]}),t})();const Goe={};function w4(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,Goe[t]?w4():(Goe[t]=!0,t)}var Wc=(()=>(function(t){t.Vertical="vertical",t.Horizontal="horizontal"}(Wc||(Wc={})),Wc))();let Vv=(()=>{class t{constructor(){this.orientation=Wc.Vertical}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Wc.Horizontal?this.x2="100%":this.orientation===Wc.Vertical&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Yo],attrs:Qtt,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(bi(),H(0,"linearGradient",0),ke(1,Ztt,1,5,"stop",1),G()),2&e&&(J("id",i.name),Un("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),W(1),J("ngForOf",i.stops))},directives:[$o],encapsulation:2,changeDetection:0}),t})(),Yoe=(()=>{class t{constructor(){this.select=new In,this.activate=new In,this.deactivate=new In}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&et("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",classNames:"classNames",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Yo],attrs:Ktt,decls:1,vars:8,template:function(e,i){1&e&&(bi(),Qe(0,"circle")),2&e&&Un("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})();var j_=(()=>(function(t){t.Standard="standard",t.Stacked="stacked"}(j_||(j_={})),j_))();let Mz,Uoe=(()=>{class t{constructor(e){this.platformId=e,this.type=j_.Standard,this.tooltipDisabled=!1,this.select=new In,this.activate=new In,this.deactivate=new In,this.barVisible=!1,this.barOrientation=Wc,this.placementTypes=Oa,this.styleTypes=k3,this.isSSR=!1}ngOnInit(){this.gradientId="grad"+w4().toString(),this.gradientFill=`url(#${this.gradientId})`,ou(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const o=i.name;return o&&this.visibleValue&&o.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const o=this.data.name,r=e.value,a=e.name,l=b4(a);let u;u=this.xScale(this.scaleType===No.Time?a:this.scaleType===No.Linear?Number(a):a);const f=this.yScale(this.type===j_.Standard?r:e.d1),T=this.yScale.range()[0]-f;let ie;return ie=this.colors.getColor(this.colors.scaleType===No.Linear?this.type===j_.Standard?r:e.d1:o),{classNames:[`circle-data-${i}`],value:r,label:a,data:Object.assign({},e,{series:o,value:r,name:a}),cx:u,cy:f,radius:5,height:T,tooltipLabel:l,color:ie,opacity:1,seriesName:o,gradientStops:this.getGradientStops(ie),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:o,min:r,max:a}){return`\n ${Rv(o)} \u2022 ${Rv(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(r,a)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let o=" (";return void 0!==e?(void 0===i&&(o+="\u2265"),o+=e.toLocaleString(),void 0!==i&&(o+=" - ")):void 0!==i&&(o+="\u2264"),void 0!==i&&(o+=i.toLocaleString()),o+=")",o}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)(ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{data:"data",type:"type",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Yo],attrs:Jtt,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&ke(0,int,6,22,"g",0),2&e&&J("ngIf",i.circle)},directives:[Vv,Yoe,Yi,Hv],encapsulation:2,data:{animation:[na("animationState",[Do(":enter",[ti({opacity:0}),Mo(250,ti({opacity:1}))])])]},changeDetection:0}),t})(),Woe=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(e){this.stopsInput=e}ngOnChanges(e){this.r="30%",("color"in e||"startOpacity"in e||"endOpacity"in e)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{color:"color",name:"name",startOpacity:"startOpacity",endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops"},features:[Yo],attrs:snt,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(bi(),H(0,"radialGradient",0),ke(1,cnt,1,5,"stop",1),G()),2&e&&(J("id",i.name),Un("cx",i.cx)("cy",i.cy)("r",i.r),W(1),J("ngForOf",i.stops))},directives:[$o],encapsulation:2,changeDetection:0}),t})(),qoe=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new In,this.animationsLoaded=!1,this.hasGradient=!1,this.barOrientation=Wc,this.element=e.nativeElement}ngOnChanges(){this.update(),this.animationsLoaded||(this.loadAnimation(),this.animationsLoaded=!0)}update(){this.gradientId="grad"+w4().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.updatePathEl.bind(this),100)}updatePathEl(){const e=l2(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{data:"data",path:"path",startingPath:"startingPath",fill:"fill",opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",stops:"stops",animations:"animations"},outputs:{select:"select"},features:[Yo],attrs:lnt,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(ke(0,dnt,2,3,"defs",0),bi(),Qe(1,"path",1)),2&e&&(J("ngIf",i.gradient),W(1),Br("opacity",i.opacity),Un("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},directives:[Vv,Yi],encapsulation:2,changeDetection:0}),t})();"undefined"!=typeof window?Mz=window:"undefined"!=typeof global&&(Mz=global);const Qoe=Mz.MouseEvent;function Oz(t,n=!1,e=!0){if("function"==typeof Qoe)return new Qoe(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let Zoe=(()=>{class t{constructor(e){this.platformId=e,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.placementTypes=Oa,this.styleTypes=k3,this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new In}getValues(e){const i=[];for(const o of this.results){const r=o.series.find(l=>l.name.toString()===e.toString());let a=o.name;if(a instanceof Date&&(a=a.toLocaleDateString()),r){const l=r.name;let f,u=r.value;if(this.showPercentage&&(u=(r.d1-r.d0).toFixed(2)+"%"),this.colors.scaleType===No.Linear){let T=u;r.d1&&(T=r.d1),f=this.colors.getColor(T)}else f=this.colors.getColor(o.name);const M=Object.assign({},r,{value:u,name:l,series:a,min:r.min,max:r.max,color:f});i.push(M)}}return i}mouseMove(e){if(!ll(this.platformId))return;const i=e.pageX-e.target.getBoundingClientRect().left,o=this.findClosestPointIndex(i),r=this.xSet[o];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){const a=Oz("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(a),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,o=this.xSet.length-1,r=Number.MAX_VALUE,a=0;for(;i<=o;){const l=(i+o)/2|0,u=this.xScale(this.xSet[l]),f=Math.abs(u-e);if(fe)){r=0,a=l;break}o=l-1}}return a}showTooltip(){const e=Oz("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=Oz("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)(ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&_o(hnt,5),2&e){let o;fi(o=gi())&&(i.tooltipAnchor=o.first)}},inputs:{dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:pnt,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(bi(),H(0,"g")(1,"rect",0),et("mousemove",function(r){return i.mouseMove(r)})("mouseleave",function(){return i.hideTooltip()}),G(),ke(2,gnt,2,1,"ng-template",null,1,tu),Qe(4,"rect",2,3),G()),2&e){const o=Di(3);W(1),Un("x",0)("width",i.dims.width)("height",i.dims.height),W(3),Br("opacity",i.anchorOpacity)("pointer-events","none"),J("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Right)("tooltipType",i.styleTypes.tooltip)("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:o)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),Un("x",i.anchorPos)("width",1)("height",i.dims.height)}},directives:[$o,Hv],encapsulation:2,data:{animation:[na("animationState",[Do("inactive => active",[ti({opacity:0}),Mo(250,ti({opacity:.7}))]),Do("active => inactive",[ti({opacity:.7}),Mo(250,ti({opacity:0}))])])]},changeDetection:0}),t})(),Koe=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new In,this.onDomainChange=new In,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+w4().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const o of this.results)for(const r of o.series)e.includes(r.name)||e.push(r.name);let i=[];return this.scaleType===No.Time?i=[Math.min(...e),Math.max(...e)]:this.scaleType===No.Linear?(e=e.map(a=>Number(a)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return this.scaleType===No.Time?e=coe().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===No.Linear?e=D3().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===No.Ordinal&&(e=voe().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function BKe(){return function qR(t){var l,n=FKe,e=zKe,i=HKe,o=!0,r=Gne("start","brush","end"),a=6;function u(we){var He=we.property("__brush",Me).selectAll(".overlay").data([Pv("overlay")]);He.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",P3.overlay).merge(He).each(function(){var me=WR(this).extent;l2(this).attr("x",me[0][0]).attr("y",me[0][1]).attr("width",me[1][0]-me[0][0]).attr("height",me[1][1]-me[0][1])}),we.selectAll(".selection").data([Pv("selection")]).enter().append("rect").attr("class","selection").attr("cursor",P3.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Be=we.selectAll(".handle").data(t.handles,function(me){return me.type});Be.exit().remove(),Be.enter().append("rect").attr("class",function(me){return"handle handle--"+me.type}).attr("cursor",function(me){return P3[me.type]}),we.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",U).filter(i).on("touchstart.brush",U).on("touchmove.brush",ie).on("touchend.brush touchcancel.brush",se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var we=l2(this),He=WR(this).selection;He?(we.selectAll(".selection").style("display",null).attr("x",He[0][0]).attr("y",He[0][1]).attr("width",He[1][0]-He[0][0]).attr("height",He[1][1]-He[0][1]),we.selectAll(".handle").style("display",null).attr("x",function(Be){return"e"===Be.type[Be.type.length-1]?He[1][0]-a/2:He[0][0]-a/2}).attr("y",function(Be){return"s"===Be.type[0]?He[1][1]-a/2:He[0][1]-a/2}).attr("width",function(Be){return"n"===Be.type||"s"===Be.type?He[1][0]-He[0][0]+a:a}).attr("height",function(Be){return"e"===Be.type||"w"===Be.type?He[1][1]-He[0][1]+a:a})):we.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function M(we,He,Be){var me=we.__brush.emitter;return!me||Be&&me.clean?new T(we,He,Be):me}function T(we,He,Be){this.that=we,this.args=He,this.state=we.__brush,this.active=0,this.clean=Be}function U(we){if((!l||we.touches)&&e.apply(this,arguments)){var an,pn,Kt,kn,Rn,ni,Oi,qn,Bi,nr,Nr,He=this,Be=we.target.__data__.type,me="selection"===(o&&we.metaKey?Be="overlay":Be)?xie:o&&we.altKey?F_:z_,ze=t===RS?null:NKe[Be],qe=t===NS?null:RKe[Be],rt=WR(He),xt=rt.extent,Ut=rt.selection,jt=xt[0][0],yn=xt[0][1],ri=xt[1][0],Jn=xt[1][1],Wi=0,Ai=0,lo=ze&&qe&&o&&we.shiftKey,ro=Array.from(we.touches||[we],Cr=>{const gs=Cr.identifier;return(Cr=rie(Cr,He)).point0=Cr.slice(),Cr.identifier=gs,Cr});HR(He);var ki=M(He,arguments,!0).beforestart();if("overlay"===Be){Ut&&(Bi=!0);const Cr=[ro[0],ro[1]||ro[0]];rt.selection=Ut=[[an=t===RS?jt:Id(Cr[0][0],Cr[1][0]),Kt=t===NS?yn:Id(Cr[0][1],Cr[1][1])],[Rn=t===RS?ri:kd(Cr[0][0],Cr[1][0]),Oi=t===NS?Jn:kd(Cr[0][1],Cr[1][1])]],ro.length>1&&Ei(we)}else an=Ut[0][0],Kt=Ut[0][1],Rn=Ut[1][0],Oi=Ut[1][1];pn=an,kn=Kt,ni=Rn,qn=Oi;var jn=l2(He).attr("pointer-events","none"),yi=jn.selectAll(".overlay").attr("cursor",P3[Be]);if(we.touches)ki.moved=Vn,ki.ended=Zo;else{var Ii=l2(we.view).on("mousemove.brush",Vn,!0).on("mouseup.brush",Zo,!0);o&&Ii.on("keydown.brush",Sa,!0).on("keyup.brush",$a,!0),jQe(we.view)}f.call(He),ki.start(we,me.name)}function Vn(Cr){for(const gs of Cr.changedTouches||[Cr])for(const Ec of ro)Ec.identifier===gs.identifier&&(Ec.cur=rie(gs,He));if(lo&&!nr&&!Nr&&1===ro.length){const gs=ro[0];yie(gs.cur[0]-gs[0])>yie(gs.cur[1]-gs[1])?Nr=!0:nr=!0}for(const gs of ro)gs.cur&&(gs[0]=gs.cur[0],gs[1]=gs.cur[1]);Bi=!0,YR(Cr),Ei(Cr)}function Ei(Cr){const gs=ro[0],Ec=gs.point0;var Nl;switch(Wi=gs[0]-Ec[0],Ai=gs[1]-Ec[1],me){case UR:case xie:ze&&(Wi=kd(jt-an,Id(ri-Rn,Wi)),pn=an+Wi,ni=Rn+Wi),qe&&(Ai=kd(yn-Kt,Id(Jn-Oi,Ai)),kn=Kt+Ai,qn=Oi+Ai);break;case z_:ro[1]?(ze&&(pn=kd(jt,Id(ri,ro[0][0])),ni=kd(jt,Id(ri,ro[1][0])),ze=1),qe&&(kn=kd(yn,Id(Jn,ro[0][1])),qn=kd(yn,Id(Jn,ro[1][1])),qe=1)):(ze<0?(Wi=kd(jt-an,Id(ri-an,Wi)),pn=an+Wi,ni=Rn):ze>0&&(Wi=kd(jt-Rn,Id(ri-Rn,Wi)),pn=an,ni=Rn+Wi),qe<0?(Ai=kd(yn-Kt,Id(Jn-Kt,Ai)),kn=Kt+Ai,qn=Oi):qe>0&&(Ai=kd(yn-Oi,Id(Jn-Oi,Ai)),kn=Kt,qn=Oi+Ai));break;case F_:ze&&(pn=kd(jt,Id(ri,an-Wi*ze)),ni=kd(jt,Id(ri,Rn+Wi*ze))),qe&&(kn=kd(yn,Id(Jn,Kt-Ai*qe)),qn=kd(yn,Id(Jn,Oi+Ai*qe)))}ni0&&(an=pn-Wi),qe<0?Oi=qn-Ai:qe>0&&(Kt=kn-Ai),me=UR,yi.attr("cursor",P3.selection),Ei(Cr));break;default:return}YR(Cr)}function $a(Cr){switch(Cr.keyCode){case 16:lo&&(nr=Nr=lo=!1,Ei(Cr));break;case 18:me===F_&&(ze<0?Rn=ni:ze>0&&(an=pn),qe<0?Oi=qn:qe>0&&(Kt=kn),me=z_,Ei(Cr));break;case 32:me===UR&&(Cr.altKey?(ze&&(Rn=ni-Wi*ze,an=pn+Wi*ze),qe&&(Oi=qn-Ai*qe,Kt=kn+Ai*qe),me=F_):(ze<0?Rn=ni:ze>0&&(an=pn),qe<0?Oi=qn:qe>0&&(Kt=kn),me=z_),yi.attr("cursor",P3[Be]),Ei(Cr));break;default:return}YR(Cr)}}function ie(we){M(this,arguments).moved(we)}function se(we){M(this,arguments).ended(we)}function Me(){var we=this.__brush||{selection:null};return we.extent=jR(n.apply(this,arguments)),we.dim=t,we}return u.move=function(we,He,Be){we.tween?we.on("start.brush",function(me){M(this,arguments).beforestart().start(me)}).on("interrupt.brush end.brush",function(me){M(this,arguments).end(me)}).tween("brush",function(){var me=this,ze=me.__brush,qe=M(me,arguments),rt=ze.selection,xt=t.input("function"==typeof He?He.apply(this,arguments):He,ze.extent),Ut=Om(rt,xt);function jt(an){ze.selection=1===an&&null===xt?null:Ut(an),f.call(me),qe.brush()}return null!==rt&&null!==xt?jt:jt(1)}):we.each(function(){var me=this,ze=arguments,qe=me.__brush,rt=t.input("function"==typeof He?He.apply(me,ze):He,qe.extent),xt=M(me,ze).beforestart();HR(me),qe.selection=null===rt?null:rt,f.call(me),xt.start(Be).brush(Be).end(Be)})},u.clear=function(we,He){u.move(we,null,He)},T.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(we,He){return this.starting?(this.starting=!1,this.emit("start",we,He)):this.emit("brush",we),this},brush:function(we,He){return this.emit("brush",we,He),this},end:function(we,He){return 0==--this.active&&(delete this.state.emitter,this.emit("end",we,He)),this},emit:function(we,He,Be){var me=l2(this.that).datum();r.call(we,this.that,new DKe(we,{sourceEvent:He,target:u,selection:t.output(this.state.selection),mode:Be,dispatch:r}),me)}},u.extent=function(we){return arguments.length?(n="function"==typeof we?we:GR(jR(we)),u):n},u.filter=function(we){return arguments.length?(e="function"==typeof we?we:GR(!!we),u):e},u.touchable=function(we){return arguments.length?(i="function"==typeof we?we:GR(!!we),u):i},u.handleSize=function(we){return arguments.length?(a=+we,u):a},u.keyModifiers=function(we){return arguments.length?(o=!!we,u):o},u.on=function(){var we=r.on.apply(r,arguments);return we===r?u:we},u}(NS)}().extent([[0,0],[i,e]]).on("brush end",({selection:o})=>{const a=(o||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(a),this.cd.markForCheck()}),l2(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),l2(this.element).select(".brush").call(this.brush),l2(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Xr))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{view:"view",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",autoScale:"autoScale",scaleType:"scaleType",height:"height"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Yo],attrs:mnt,ngContentSelectors:Soe,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(ls(),bi(),H(0,"g",0)(1,"filter"),Qe(2,"feColorMatrix",1),G(),H(3,"g",2),Vr(4),G(),Qe(5,"rect",3)(6,"g",4),G()),2&e&&(Un("transform",i.transform),W(1),Un("id",i.filterId),W(4),Un("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:#0000000d}.timeline .brush .selection{fill:#0000001a;stroke-width:1px;stroke:#888}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}\n"],encapsulation:2,changeDetection:0}),t})(),yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,Voe,Boe],va,Voe,Boe]}),t})();function QS({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:o=!1,xAxisHeight:r=0,yAxisWidth:a=0,showXLabel:l=!1,showYLabel:u=!1,showLegend:f=!1,legendType:M=No.Ordinal,legendPosition:T=ih.Right,columns:U=12}){let ie=e[3],se=t,Me=n-e[0]-e[2];return f&&T===ih.Right&&(U-=M===No.Ordinal?2:1),se=se*U/12,se=se-e[1]-e[3],i&&(Me-=5,Me-=r,l&&(Me-=30)),o&&(se-=5,se-=a,ie+=a,ie+=10,u&&(se-=30,ie+=30)),se=Math.max(0,se),Me=Math.max(0,Me),{width:Math.floor(se),height:Math.floor(Me),xOffset:Math.floor(ie)}}const Joe=[{name:"vivid",selectable:!0,group:No.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:No.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:No.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:No.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:No.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:No.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:No.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:No.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:No.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:No.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:No.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:No.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:No.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:No.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:No.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ZS{constructor(n,e,i,o){"string"==typeof n&&(n=Joe.find(r=>r.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=o,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let o;switch("string"==typeof n&&(n=Joe.find(r=>r.name===n)),e){case No.Quantile:o=boe().range(n.domain).domain(i);break;case No.Ordinal:o=ZM().range(n.domain).domain(i);break;case No.Linear:{const r=[...n.domain];1===r.length&&(r.push(r[0]),this.colorDomain=r);const a=_oe(0,1,1/r.length);o=D3().range(r).domain(a)}}return o}getColor(n){if(null==n)throw new Error("Value can not be null");if(this.scaleType===No.Linear){const e=D3().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(o=>o.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=D3().domain(this.domain).range([0,1]),o=Nv().domain(this.colorDomain).range([0,1]),r=this.getColor(n),a=i(e),l=this.getColor(e),u=i(n);let f=1,M=a;const T=[];for(T.push({color:l,offset:a,originalOffset:a,opacity:1});M=(u-o.bandwidth()).toFixed(4))break;T.push({color:U,offset:ie,opacity:1}),M=ie,f++}}if(T[T.length-1].offset<100&&T.push({color:r,offset:u,opacity:1}),u===a)T[0].offset=0,T[1].offset=100;else if(100!==T[T.length-1].offset)for(const U of T)U.offset=(U.offset-a)/(u-a)*100;return T}}let cot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),tre=(()=>{class t{constructor(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}ngOnChanges(e){e.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+w4().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const e=l2(this.element).select(".bar"),i=this.getPath();this.animations?e.transition().duration(500).attr("d",i):e.attr("d",i)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let i,e=this.getRadius();return this.roundEdges?this.orientation===Wc.Vertical?(e=Math.min(this.height,e),i=x4(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Wc.Horizontal&&(e=Math.min(this.width,e),i=x4(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Wc.Vertical?i=x4(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Wc.Horizontal&&(i=x4(this.x,this.y,1,this.height,0,this.edges)),i}getPath(){let i,e=this.getRadius();return this.roundEdges?this.orientation===Wc.Vertical?(e=Math.min(this.height,e),i=x4(this.x,this.y,this.width,this.height,e,this.edges)):this.orientation===Wc.Horizontal&&(e=Math.min(this.width,e),i=x4(this.x,this.y,this.width,this.height,e,this.edges)):i=x4(this.x,this.y,this.width,this.height,e,this.edges),i}getRadius(){let e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let e=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Wc.Vertical?e=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Wc.Horizontal&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Wc.Vertical&&0===this.height||this.orientation===Wc.Horizontal&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(e,i){1&e&&et("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Yo],attrs:Lnt,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(ke(0,Dnt,2,3,"defs",0),bi(),H(1,"path",1),et("click",function(){return i.select.emit(i.data)}),G()),2&e&&(J("ngIf",i.hasGradient),W(1),po("active",i.isActive)("hidden",i.hideBar),Un("d",i.path)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill))},directives:[Vv,Yi],encapsulation:2,changeDetection:0}),t})();var R1=(()=>(function(t){t.Standard="standard",t.Normalized="normalized",t.Stacked="stacked"}(R1||(R1={})),R1))(),wu=(()=>(function(t){t.positive="positive",t.negative="negative"}(wu||(wu={})),wu))();let nre=(()=>{class t{constructor(e){this.dimensionsChanged=new In,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):b4(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Yo],attrs:knt,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(e,i){1&e&&(bi(),H(0,"text",0),de(1),G()),2&e&&(Un("text-anchor",i.textAnchor)("transform",i.transform)("x",i.x)("y",i.y),W(1),Nt(" ",i.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),lot=(()=>{class t{constructor(){this.type=R1.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.dataLabelWidthChanged=new In,this.barsForDataLabels=[],this.barOrientation=Wc}ngOnChanges(e){this.update()}update(){this.updateTooltipSettings();const e={[wu.positive]:0,[wu.negative]:0};let i,o;i=wu.positive,this.type===R1.Normalized&&(o=this.series.map(a=>a.value).reduce((a,l)=>a+l,0));const r=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(a=>{let l=a.value;const u=this.getLabel(a),f=b4(u);i=l>0?wu.positive:wu.negative;const T={value:l,label:u,roundEdges:this.roundEdges,data:a,formattedLabel:f};if(T.height=this.yScale.bandwidth(),this.type===R1.Standard)T.width=Math.abs(this.xScale(l)-this.xScale(r)),T.x=this.xScale(l<0?l:r),T.y=this.yScale(u);else if(this.type===R1.Stacked){const ie=e[i],se=ie+l;e[i]+=l,T.width=this.xScale(se)-this.xScale(ie),T.x=this.xScale(ie),T.y=0,T.offset0=ie,T.offset1=se}else if(this.type===R1.Normalized){let ie=e[i],se=ie+l;e[i]+=l,o>0?(ie=100*ie/o,se=100*se/o):(ie=0,se=0),T.width=this.xScale(se)-this.xScale(ie),T.x=this.xScale(ie),T.y=0,T.offset0=ie,T.offset1=se,l=(se-ie).toFixed(2)+"%"}this.colors.scaleType===No.Ordinal?T.color=this.colors.getColor(u):this.type===R1.Standard?(T.color=this.colors.getColor(l),T.gradientStops=this.colors.getLinearGradientStops(l)):(T.color=this.colors.getColor(T.offset1),T.gradientStops=this.colors.getLinearGradientStops(T.offset1,T.offset0));let U=f;return T.ariaLabel=f+" "+l.toLocaleString(),null!=this.seriesName&&(U=`${this.seriesName} \u2022 ${f}`,T.data.series=this.seriesName,T.ariaLabel=this.seriesName+" "+T.ariaLabel),T.tooltipText=this.tooltipDisabled?void 0:`\n ${Rv(U)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(l):l.toLocaleString()}\n `,T}),this.updateDataLabels()}updateDataLabels(){if(this.type===R1.Stacked){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,a)=>a>0?r+a:r,0),o=this.series.map(r=>r.value).reduce((r,a)=>a<0?r+a:r,0);e.total=i+o,e.x=0,e.y=0,e.width=this.xScale(e.total>0?i:o),e.height=this.yScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{var i;const o={};return o.series=null!==(i=this.seriesName)&&void 0!==i?i:e.label,o.total=e.value,o.x=this.xScale(0),o.y=this.yScale(e.label),o.width=this.xScale(o.total)-this.xScale(0),o.height=this.yScale.bandwidth(),o})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Oa.Top,this.tooltipType=this.tooltipDisabled?void 0:k3.tooltip}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name&&e.value===o.value)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}click(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",tooltipDisabled:"tooltipDisabled",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[Yo],attrs:Int,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(ke(0,Nnt,1,21,"g",0),ke(1,znt,2,2,"g",1)),2&e&&(J("ngForOf",i.bars)("ngForTrackBy",i.trackBy),W(1),J("ngIf",i.showDataLabel))},directives:[tre,nre,$o,Hv,Yi],encapsulation:2,data:{animation:[na("animationState",[Do(":leave",[ti({opacity:1}),Mo(500,ti({opacity:0}))])])]},changeDetection:0}),t})(),KS=(()=>{class t extends Fv{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ih.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new In,this.deactivate=new In,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=QS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getXScale(){this.xDomain=this.getXDomain();const e=D3().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?e.nice():e}getYScale(){this.yDomain=this.getYDomain();const e=this.yDomain.length/(this.dims.height/this.barPadding+1);return Nv().rangeRound([0,this.dims.height]).paddingInner(e).domain(this.yDomain)}getXDomain(){const e=this.results.map(r=>r.value);return[this.xScaleMin?Math.min(this.xScaleMin,...e):Math.min(0,...e),this.xScaleMax?Math.max(this.xScaleMax,...e):Math.max(0,...e)]}getYDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){let e;e=this.schemeType===No.Ordinal?this.yDomain:this.xDomain,this.colors=new ZS(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.yDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.xDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxWidthChanged(e){e.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,e.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,e.size.width),e.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const o=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(o,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(e,i,o){if(1&e&&mr(o,qS,5),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ei],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","wrapTicks","dimensionsChanged"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)}),bi(),H(1,"g",1),ke(2,Fnt,1,11,"g",2),ke(3,Hnt,1,10,"g",3),H(4,"g",4),et("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)})("dataLabelWidthChanged",function(r){return i.onDataLabelMaxWidthChanged(r)}),G()()()),2&e&&(J("view",x0(22,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(1),Un("transform",i.transform),W(1),J("ngIf",i.xAxis),W(1),J("ngIf",i.yAxis),W(1),J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero))},directives:[zv,yz,wz,lot,Yi],styles:[$S],encapsulation:2,changeDetection:0}),t})(),dot=(()=>{class t{constructor(e){this.platformId=e,this.type=R1.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.dataLabelHeightChanged=new In,this.barsForDataLabels=[],this.barOrientation=Wc,this.isSSR=!1}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}ngOnChanges(e){this.update()}update(){let e;this.updateTooltipSettings(),this.series.length&&(e=this.xScale.bandwidth()),e=Math.round(e);const i=Math.max(this.yScale.domain()[0],0),o={[wu.positive]:0,[wu.negative]:0};let a,r=wu.positive;this.type===R1.Normalized&&(a=this.series.map(l=>l.value).reduce((l,u)=>l+u,0)),this.bars=this.series.map((l,u)=>{let f=l.value;const M=this.getLabel(l),T=b4(M);r=f>0?wu.positive:wu.negative;const ie={value:f,label:M,roundEdges:this.roundEdges,data:l,width:e,formattedLabel:T,height:0,x:0,y:0};if(this.type===R1.Standard)ie.height=Math.abs(this.yScale(f)-this.yScale(i)),ie.x=this.xScale(M),ie.y=this.yScale(f<0?0:f);else if(this.type===R1.Stacked){const Me=o[r],we=Me+f;o[r]+=f,ie.height=this.yScale(Me)-this.yScale(we),ie.x=0,ie.y=this.yScale(we),ie.offset0=Me,ie.offset1=we}else if(this.type===R1.Normalized){let Me=o[r],we=Me+f;o[r]+=f,a>0?(Me=100*Me/a,we=100*we/a):(Me=0,we=0),ie.height=this.yScale(Me)-this.yScale(we),ie.x=0,ie.y=this.yScale(we),ie.offset0=Me,ie.offset1=we,f=(we-Me).toFixed(2)+"%"}this.colors.scaleType===No.Ordinal?ie.color=this.colors.getColor(M):this.type===R1.Standard?(ie.color=this.colors.getColor(f),ie.gradientStops=this.colors.getLinearGradientStops(f)):(ie.color=this.colors.getColor(ie.offset1),ie.gradientStops=this.colors.getLinearGradientStops(ie.offset1,ie.offset0));let se=T;return ie.ariaLabel=T+" "+f.toLocaleString(),null!=this.seriesName&&(se=`${this.seriesName} \u2022 ${T}`,ie.data.series=this.seriesName,ie.ariaLabel=this.seriesName+" "+ie.ariaLabel),ie.tooltipText=this.tooltipDisabled?void 0:`\n ${Rv(se)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(f):f.toLocaleString()}\n `,ie}),this.updateDataLabels()}updateDataLabels(){if(this.type===R1.Stacked){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,a)=>a>0?r+a:r,0),o=this.series.map(r=>r.value).reduce((r,a)=>a<0?r+a:r,0);e.total=i+o,e.x=0,e.y=0,e.height=this.yScale(e.total>0?i:o),e.width=this.xScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{var i;const o={};return o.series=null!==(i=this.seriesName)&&void 0!==i?i:e.label,o.total=e.value,o.x=this.xScale(e.label),o.y=this.yScale(0),o.height=this.yScale(o.total)-this.yScale(0),o.width=this.xScale.bandwidth(),o})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Oa.Top,this.tooltipType=this.tooltipDisabled?void 0:k3.tooltip}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name&&e.value===o.value)}onClick(e){this.select.emit(e)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}}return t.\u0275fac=function(e){return new(e||t)(ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[Yo],attrs:Wnt,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(ke(0,$nt,2,2,"g",0),ke(1,Qnt,2,2,"g",0),ke(2,Knt,2,2,"g",0)),2&e&&(J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR),W(1),J("ngIf",i.showDataLabel))},directives:[tre,nre,Yi,$o,Hv],encapsulation:2,data:{animation:[na("animationState",[Do(":leave",[ti({opacity:1}),Mo(500,ti({opacity:0}))])])]},changeDetection:0}),t})(),uot=(()=>{class t extends Fv{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ih.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new In,this.deactivate=new In,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barChartType=R1,this.trackBy=(e,i)=>i.name}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=QS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const o of i.series)e.includes(o.label)||e.push(o.label);return e}getValueDomain(){const e=[];let i=0,o=0;for(const l of this.results){let u=0,f=0;for(const M of l.series)M.value<0?u+=M.value:f+=M.value,i=M.valueo?M.value:o;e.push(u),e.push(f)}return e.push(i),e.push(o),[Math.min(0,...e),this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(...e)]}getXScale(){const e=this.groupDomain.length/(this.dims.width/this.barPadding+1);return Nv().rangeRound([0,this.dims.width]).paddingInner(e).domain(this.groupDomain)}getYScale(){const e=D3().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?e.nice():e}onDataLabelMaxHeightChanged(e,i){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),i===this.results.length-1&&setTimeout(()=>this.update())}groupTransform(e){return`translate(${this.xScale(e.name)||0}, 0)`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}setColors(){let e;e=this.schemeType===No.Ordinal?this.innerDomain:this.valueDomain,this.colors=new ZS(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return e.scaleType===No.Ordinal?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,o=!1){const r=Object.assign({},e);i&&(r.series=i.name);const a=this.results.map(l=>l.series).flat().filter(l=>o?l.label===r.name:l.name===r.name&&l.series===r.series);this.activeEntries=[...a],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,o=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(a=>o?a.label!==r.name:!(a.name===r.name&&a.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(e,i,o){if(1&e&&mr(o,qS,5),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ei],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"type","xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),bi(),H(1,"g",1),ke(2,iit,1,11,"g",2),ke(3,oit,1,10,"g",3),ke(4,ait,2,2,"g",4),G(),ke(5,cit,2,2,"g",4),G()),2&e&&(J("view",x0(10,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(1),Un("transform",i.transform),W(1),J("ngIf",i.xAxis),W(1),J("ngIf",i.yAxis),W(1),J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR))},directives:[zv,yz,wz,dot,Yi,$o],styles:[$S],encapsulation:2,data:{animation:[na("animationState",[Do(":leave",[ti({opacity:1,transform:"*"}),Mo(500,ti({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),ire=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})();att();let hot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),pot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),fot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),got=(()=>{class t{constructor(e,i){this.element=e,this.platformId=i,this.fill="none",this.animations=!0,this.initialized=!1,this.isSSR=!1}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=l2(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti),ue(Hc))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{path:"path",stroke:"stroke",data:"data",fill:"fill",animations:"animations"},features:[Yo],attrs:fit,decls:2,vars:2,consts:[[4,"ngIf"],["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(ke(0,git,2,4,"g",0),ke(1,mit,2,3,"g",0)),2&e&&(J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR))},directives:[Yi],encapsulation:2,data:{animation:[na("animationState",[Do(":enter",[ti({strokeDasharray:2e3,strokeDashoffset:2e3}),Mo(1e3,ti({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),mot=(()=>{class t{constructor(){this.animations=!0,this.barOrientation=Wc}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const o=this.getAreaGenerator();if(this.areaPath=o(e)||"",this.hasRange){const r=this.getRangeGenerator();this.outerPath=r(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const r=this.data.series.map(u=>u.value),a=Math.max(...r);a===Math.min(...r)&&(this.stroke=this.colors.getColor(a))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return Moe().x(e=>{const i=e.name;let o;return o=this.xScale(this.scaleType===No.Time?i:this.scaleType===No.Linear?Number(i):i),o}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Ooe().x(e=>{const i=e.name;let o;return o=this.xScale(this.scaleType===No.Time?i:this.scaleType===No.Linear?Number(i):i),o}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Ooe().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return e=this.scaleType===No.Linear?function rot(t,n,e="asc"){return t.sort((i,o)=>"asc"===e?i[n]-o[n]:o[n]-i[n])}(e,"name"):this.scaleType===No.Time?function sot(t,n,e="asc"){return t.sort((i,o)=>{const r=i[n].getTime(),a=o[n].getTime();return"asc"===e?r>a?1:a>r?-1:0:r>a?-1:a>r?1:0})}(e,"name"):function aot(t,n,e="asc",i){return t.sort((o,r)=>{const l=r[n],u=i.indexOf(o[n]),f=i.indexOf(l);return"asc"===e?u-f:f-u})}(e,"name","asc",this.xScale.domain()),e}updateGradients(){if(this.colors.scaleType===No.Linear){this.hasGradient=!0,this.gradientId="grad"+w4().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(r=>r.value),i=Math.max(...e),o=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,o),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(o=>e.name===o.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange",animations:"animations"},features:[Yo],attrs:_it,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(bi(),H(0,"g")(1,"defs"),ke(2,Cit,1,3,"g",0),G(),Qe(3,"g",1)(4,"g",2),ke(5,vit,1,9,"g",3),G()),2&e&&(W(2),J("ngIf",i.hasGradient),W(1),po("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),J("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),W(1),po("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),J("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),W(1),J("ngIf",i.hasRange))},directives:[Vv,qoe,got,Yi],encapsulation:2,changeDetection:0}),t})(),_ot=(()=>{class t extends Fv{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=ih.Right,this.showGridLines=!0,this.curve=gv,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.wrapTicks=!1,this.activate=new In,this.deactivate=new In,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10,this.isSSR=!1}ngOnInit(){ou(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.dims=QS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+w4().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function oot(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function ere(t,n=!0){return n&&t.every(o=>o instanceof Date)?No.Time:t.every(i=>"number"==typeof i)?No.Linear:No.Ordinal}(e);let o,r,i=[];return this.scaleType===No.Linear&&(e=e.map(a=>Number(a))),(this.scaleType===No.Time||this.scaleType===No.Linear)&&(o=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),this.scaleType===No.Time?(i=[new Date(o),new Date(r)],this.xSet=[...e].sort((a,l)=>{const u=a.getTime(),f=l.getTime();return u>f?1:f>u?-1:0})):this.scaleType===No.Linear?(i=[o,r],this.xSet=[...e].sort((a,l)=>a-l)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const a of this.results)for(const l of a.series)e.indexOf(l.value)<0&&e.push(l.value),void 0!==l.min&&(this.hasRange=!0,e.indexOf(l.min)<0&&e.push(l.min)),void 0!==l.max&&(this.hasRange=!0,e.indexOf(l.max)<0&&e.push(l.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let o;return this.scaleType===No.Time?o=coe().range([0,i]).domain(e):this.scaleType===No.Linear?(o=D3().range([0,i]).domain(e),this.roundDomains&&(o=o.nice())):this.scaleType===No.Ordinal&&(o=voe().range([0,i]).padding(.1).domain(e)),o}getYScale(e,i){const o=D3().range([i,0]).domain(e);return this.roundDomains?o.nice():o}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return`${i.name}`}setColors(){let e;e=this.schemeType===No.Ordinal?this.seriesDomain:this.yDomain,this.colors=new ZS(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return e.scaleType===No.Ordinal?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(o=>o.name===e.name&&o.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(o=>o.name===e.name&&o.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,o){if(1&e&&(mr(o,qS,5),mr(o,Mnt,5)),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first),fi(r=gi())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&et("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ei],decls:12,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),bi(),H(1,"defs")(2,"clipPath"),Qe(3,"rect"),G()(),H(4,"g",1),ke(5,bit,1,11,"g",2),ke(6,xit,1,13,"g",3),H(7,"g"),ke(8,wit,2,2,"g",4),ke(9,Oit,2,2,"g",4),ke(10,Pit,3,9,"g",5),G()(),ke(11,Eit,2,13,"g",6),G()),2&e&&(J("view",x0(17,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(2),Un("id",i.clipPathId),W(1),Un("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),W(1),Un("transform",i.transform),W(1),J("ngIf",i.xAxis),W(1),J("ngIf",i.yAxis),W(1),Un("clip-path",i.clipPath),W(1),J("ngIf",!i.isSSR),W(1),J("ngIf",i.isSSR),W(1),J("ngIf",!i.tooltipDisabled),W(1),J("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:[zv,yz,wz,mot,Zoe,Uoe,Koe,Yi,$o],styles:[$S],encapsulation:2,data:{animation:[na("animationState",[Do(":leave",[ti({opacity:1}),Mo(500,ti({opacity:0}))])])]},changeDetection:0}),t})(),ore=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),Cot=(()=>{class t{constructor(e){this.platformId=e,this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.trimLabel=XS}ngOnChanges(e){this.setTransforms(),this.update()}setTransforms(){if(ou(this.platformId))this.styleTransform=`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=`translate(${this.textX},${this.textY})`,this.textTransition=this.animations?"transform 0.75s":null;else{const e=/(edge|msie|trident)/i.test(navigator.userAgent);this.styleTransform=e?null:`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=e?`translate(${this.textX},${this.textY})`:null,this.textTransition=e||!this.animations?null:"transform 0.75s"}}update(){let e=this.radius;this.explodeSlices&&(e=this.radius*this.value/this.max);const o=bz().innerRadius(e).outerRadius(e).centroid(this.data);let r=this.data.pos[1]/o[1];(0===this.data.pos[1]||0===o[1])&&(r=1),this.line=`M${o}L${[r*o[0],r*o[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}textAnchor(){return this.midAngle(this.data){class t{constructor(e){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new In,this.activate=new In,this.deactivate=new In,this.dblclick=new In,this.barOrientation=Wc,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const e=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+w4().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=e.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let e=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(e=this.outerRadius*this.value/this.max),bz().innerRadius(this.innerRadius).outerRadius(e).cornerRadius(this.cornerRadius)}loadAnimation(){const e=l2(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().attrTween("d",function(o){this._current=this._current||o;const r=Object.assign({},o);r.endAngle=r.startAngle;const a=Om(r,r);return this._current=a(0),function(l){return i(a(l))}}).transition().duration(750).attrTween("d",function(o){this._current=this._current||o;const r=Om(this._current,o);return this._current=r(0),function(a){return i(r(a))}})}updateAnimation(){const e=l2(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().duration(750).attrTween("d",function(o){this._current=this._current||o;const r=Om(this._current,o);return this._current=r(0),function(a){return i(r(a))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:e})}}return t.\u0275fac=function(e){return new(e||t)(ue(Ti))},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{fill:"fill",startAngle:"startAngle",endAngle:"endAngle",innerRadius:"innerRadius",outerRadius:"outerRadius",cornerRadius:"cornerRadius",value:"value",max:"max",data:"data",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[Yo],attrs:Nit,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity"]],template:function(e,i){1&e&&(bi(),H(0,"g",0),ke(1,Rit,2,3,"defs",1),H(2,"path",2),et("click",function(){return i.onClick()})("dblclick",function(r){return i.onDblClick(r)})("mouseenter",function(){return i.activate.emit(i.data)})("mouseleave",function(){return i.deactivate.emit(i.data)}),G()()),2&e&&(W(1),J("ngIf",i.gradient),W(1),Br("pointer-events",i.getPointerEvents()),po("active",i.isActive),Un("d",i.path)("fill",i.getGradient()))},directives:[Woe,Yi],encapsulation:2,changeDetection:0}),t})(),bot=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new In,this.activate=new In,this.deactivate=new In,this.dblclick=new In,this.placementTypes=Oa,this.styleTypes=k3}ngOnChanges(e){this.update()}update(){const i=function ott(){var t=itt,n=ntt,e=null,i=ys(0),o=ys(dS),r=ys(0);function a(l){var u,M,T,He,ze,f=(l=mz(l)).length,U=0,ie=new Array(f),se=new Array(f),Me=+i.apply(this,arguments),we=Math.min(dS,Math.max(-dS,o.apply(this,arguments)-Me)),Be=Math.min(Math.abs(we)/f,r.apply(this,arguments)),me=Be*(we<0?-1:1);for(u=0;u0&&(U+=ze);for(null!=n?ie.sort(function(qe,rt){return n(se[qe],se[rt])}):null!=e&&ie.sort(function(qe,rt){return e(l[qe],l[rt])}),u=0,T=U?(we-f*me)/U:0;u0?ze*T:0)+me,padAngle:Be};return se}return a.value=function(l){return arguments.length?(t="function"==typeof l?l:ys(+l),a):t},a.sortValues=function(l){return arguments.length?(n=l,e=null,a):n},a.sort=function(l){return arguments.length?(e=l,n=null,a):e},a.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:ys(+l),a):i},a.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:ys(+l),a):o},a.padAngle=function(l){return arguments.length?(r="function"==typeof l?l:ys(+l),a):r},a}().value(o=>o.value).sort(null)(this.series);this.max=function rtt(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e=i)&&(e=i);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(e=o)&&(e=o)}return e}(i,o=>o.value),this.data=this.calculateLabelPositions(i),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}outerArc(){return bz().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(e){const r=e;r.forEach(a=>{a.pos=this.outerArc().centroid(a),a.pos[0]=1.5*this.outerRadius*(this.midAngle(a)0){const M=10-Math.abs(f.pos[1]-l.pos[1]);M>0&&(f.pos[1]+=Math.sign(f.pos[0])*M)}}}return r}labelVisible(e){return this.showLabels&&e.endAngle-e.startAngle>Math.PI/30}getTooltipTitle(e){return this.tooltipTemplate?void 0:this.tooltipText(e)}labelText(e){return this.labelFormatting?this.labelFormatting(e.data.name):this.label(e)}label(e){return b4(e.data.name)}defaultTooltipText(e){const i=this.label(e),o=b4(e.data.value);return`\n ${Rv(i)}\n ${o}\n `}color(e){return this.colors.getColor(this.label(e))}trackBy(e,i){return i.data.name}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(o=>e.name===o.name&&e.series===o.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=vn({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{colors:"colors",series:"series",dims:"dims",innerRadius:"innerRadius",outerRadius:"outerRadius",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[Yo],attrs:zit,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(e,i){1&e&&ke(0,Hit,3,19,"g",0),2&e&&J("ngForOf",i.data)("ngForTrackBy",i.trackBy)},directives:[Cot,vot,$o,Yi,Hv],encapsulation:2,changeDetection:0}),t})(),Sz=(()=>{class t extends Fv{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition=ih.Right,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new In,this.select=new In,this.activate=new In,this.deactivate=new In}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=QS({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((o,r)=>this.domain.indexOf(o.name)-this.domain.indexOf(r.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new ZS(this.scheme,No.Ordinal,this.domain,this.customColors)}getLegendOptions(){return{scaleType:No.Ordinal,domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const o=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(o,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Zi(t)))(i||t)}}(),t.\u0275cmp=vn({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(e,i,o){if(1&e&&mr(o,qS,5),2&e){let r;fi(r=gi())&&(i.tooltipTemplate=r.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",margins:"margins"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(e,i){1&e&&(H(0,"ngx-charts-chart",0),et("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)})("legendLabelClick",function(r){return i.onClick(r)}),bi(),H(1,"g",1)(2,"g",2),et("dblclick",function(r){return i.dblclick.emit(r)})("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)}),G()()()),2&e&&(J("view",x0(21,C4,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),W(1),Un("transform",i.translation),W(1),J("colors",i.colors)("series",i.data)("showLabels",i.labels)("labelFormatting",i.labelFormatting)("trimLabels",i.trimLabels)("maxLabelLength",i.maxLabelLength)("activeEntries",i.activeEntries)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("explodeSlices",i.explodeSlices)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},directives:[zv,bot],styles:[$S,".pie-label{font-size:11px}.pie-label.animation{animation:.75s ease-in fadeIn}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{animation:3s linear drawOut;transition:d .75s}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}\n"],encapsulation:2,changeDetection:0}),t})(),Pz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),wot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu,Pz,ore]]}),t})(),Oot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),Sot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),Pot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu,Pz,ire]]}),t})(),Eot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[yu]]}),t})(),rre=(()=>{class t{constructor(){!function Tot(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[yu,cot,ire,hot,pot,fot,Eot,ore,wot,Oot,Pz,Sot,Pot]}),t})(),Aot=(()=>{class t{constructor(e){this._camStatsService=e,this.aspectOptions={view:[500,200],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,xAxisLabel:"Aspect",showYAxisLabel:!0,yAxisLabel:"Annotations",animations:!0,legendPosition:"below",colorScheme:{domain:["#AAAAAA"]},customColors:[]},this.aspectPieOptions={view:[500,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[kl("green",500),kl("brown",500),kl("purple",500)]}},this.termsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Terms",showYAxisLabel:!0,xAxisLabel:"Count"},this.stats={aspect:[],aspectPie:[],termsBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.aspect=this._camStatsService.buildTermsStats(this.termsSummary),this.stats.aspectPie=this._camStatsService.buildAspectPie([this.termsSummary.mf,this.termsSummary.bp,this.termsSummary.cc]),this.stats.termsBar=this._camStatsService.buildTermsDistribution([this.termsSummary.mf,this.termsSummary.bp,this.termsSummary.cc,this.termsSummary.other])}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(JC))},t.\u0275cmp=vn({type:t,selectors:[["noc-general-stats"]],inputs:{termsSummary:"termsSummary"},decls:21,vars:32,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","scheme","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","animations","customColors"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),de(3," Number of terms "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-vertical-stacked",5),G()(),H(7,"div",0)(8,"div",1)(9,"div",2),de(10," Number of terms by aspect "),G(),Qe(11,"span",3),G(),H(12,"div",4),Qe(13,"ngx-charts-pie-chart",6),G()(),H(14,"div",0)(15,"div",1)(16,"div",2),de(17," Terms Distribution (first 20) "),G(),Qe(18,"span",3),G(),H(19,"div",4),Qe(20,"ngx-charts-bar-horizontal",7),G()()),2&e&&(W(6),J("results",i.stats.aspect)("view",i.aspectOptions.view)("scheme",i.aspectOptions.colorScheme)("gradient",i.aspectOptions.gradient)("xAxis",i.aspectOptions.showXAxis)("yAxis",i.aspectOptions.showYAxis)("legend",i.aspectOptions.legend)("showXAxisLabel",i.aspectOptions.showXAxisLabel)("showYAxisLabel",i.aspectOptions.showYAxisLabel)("xAxisLabel",i.aspectOptions.xAxisLabel)("yAxisLabel",i.aspectOptions.yAxisLabel)("animations",i.aspectOptions.animations)("customColors",i.aspectOptions.customColors),W(7),J("results",i.stats.aspectPie)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut),W(7),J("results",i.stats.termsBar)("view",i.termsBarOptions.view)("gradient",i.termsBarOptions.gradient)("xAxis",i.termsBarOptions.showXAxis)("yAxis",i.termsBarOptions.showYAxis)("legend",i.termsBarOptions.legend)("showXAxisLabel",i.termsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.termsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.termsBarOptions.showYAxisLabel)("xAxisLabel",i.termsBarOptions.xAxisLabel)("yAxisLabel",i.termsBarOptions.yAxisLabel))},directives:[Oo,So,ko,uot,Sz,KS],styles:[""]}),t})(),Lot=(()=>{class t{constructor(e){this._camStatsService=e,this.aspectPieOptions={view:[500,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[kl("green",500),kl("brown",500),kl("purple",500)]}},this.termsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Gene Products",showYAxisLabel:!0,xAxisLabel:"Count"},this.stats={gpPie:[],termsBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.gpPie=this._camStatsService.buildTermsPie(this.termsSummary.gp.nodes),this.stats.termsBar=this._camStatsService.buildTermsDistribution([this.termsSummary.gp])}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(JC))},t.\u0275cmp=vn({type:t,selectors:[["noc-gp-stats"]],inputs:{termsSummary:"termsSummary"},decls:14,vars:19,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),de(3," Terms Distribution (first 20) "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-horizontal",5),G()(),H(7,"div",0)(8,"div",1)(9,"div",2),de(10," Gene Product "),G(),Qe(11,"span",3),G(),H(12,"div",4),Qe(13,"ngx-charts-pie-chart",6),G()()),2&e&&(W(6),J("results",i.stats.termsBar)("view",i.termsBarOptions.view)("gradient",i.termsBarOptions.gradient)("xAxis",i.termsBarOptions.showXAxis)("yAxis",i.termsBarOptions.showYAxis)("legend",i.termsBarOptions.legend)("showXAxisLabel",i.termsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.termsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.termsBarOptions.showYAxisLabel)("xAxisLabel",i.termsBarOptions.xAxisLabel)("yAxisLabel",i.termsBarOptions.yAxisLabel),W(7),J("results",i.stats.gpPie)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut))},directives:[Oo,So,ko,KS,Sz],styles:[""]}),t})();function Dot(t,n){if(1&t&&(H(0,"div",1)(1,"div",2)(2,"div",3),de(3),G(),Qe(4,"span",4),G(),H(5,"div",5),Qe(6,"ngx-charts-pie-chart",6),G()()),2&t){const e=n.$implicit,i=Ae();W(3),Nt(" ",e.label," "),W(3),J("results",e.data)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut)}}let kot=(()=>{class t{constructor(e,i){this._camStatsService=e,this._bbopGraphService=i,this.aspectPieOptions={view:[400,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[kl("green",500),kl("brown",500),kl("purple",500)]}},this.stats={mfPie:[],bpPie:[],ccPie:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.mfPie=this._camStatsService.buildTermsPie(this.termsSummary.mf.nodes),this.stats.bpPie=this._camStatsService.buildTermsPie(this.termsSummary.bp.nodes),this.stats.ccPie=this._camStatsService.buildTermsPie(this.termsSummary.cc.nodes),this.pies=[{label:"Molecular Function",data:this.stats.mfPie},{label:"Biological Process",data:this.stats.bpPie},{label:"Cellular Component",data:this.stats.ccPie}]}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(JC),ue(Yc))},t.\u0275cmp=vn({type:t,selectors:[["noc-aspect-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:1,vars:1,consts:[["class","noc-table-form noc-form-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"]],template:function(e,i){1&e&&ke(0,Dot,7,9,"div",0),2&e&&J("ngForOf",i.pies)},directives:[$o,Oo,So,ko,Sz],styles:[""]}),t})(),Iot=(()=>{class t{constructor(e,i){this._camStatsService=e,this._bbopGraphService=i,this.relationsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Relation",showYAxisLabel:!0,xAxisLabel:"Count"},this.datesLineOptions={view:[500,400],legend:!1,legendPosition:"below",showLabels:!0,animations:!0,xAxis:!0,yAxis:!0,showYAxisLabel:!0,showXAxisLabel:!0,xAxisLabel:"Curated Statements",yAxisLabel:"Statements",timeline:!0},this.stats={datesLine:[],relationsBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.relationsBar=this._camStatsService.buildRelationsPie(this.termsSummary.relations.nodes),this.stats.datesLine=this._camStatsService.buildContributionsStats(this.termsSummary.dates.nodes)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(JC),ue(Yc))},t.\u0275cmp=vn({type:t,selectors:[["noc-statement-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:14,vars:21,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"],[3,"results","view","legend","showXAxisLabel","showYAxisLabel","xAxis","yAxis","xAxisLabel","yAxisLabel","timeline"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),de(3," Relations "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-horizontal",5),G()(),H(7,"div",0)(8,"div",1)(9,"div",2),de(10," Statements over time "),G(),Qe(11,"span",3),G(),H(12,"div",4),Qe(13,"ngx-charts-line-chart",6),G()()),2&e&&(W(6),J("results",i.stats.relationsBar)("view",i.relationsBarOptions.view)("gradient",i.relationsBarOptions.gradient)("xAxis",i.relationsBarOptions.showXAxis)("yAxis",i.relationsBarOptions.showYAxis)("legend",i.relationsBarOptions.legend)("showXAxisLabel",i.relationsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.relationsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.relationsBarOptions.showYAxisLabel)("xAxisLabel",i.relationsBarOptions.xAxisLabel)("yAxisLabel",i.relationsBarOptions.yAxisLabel),W(7),J("results",i.stats.datesLine)("view",i.datesLineOptions.view)("legend",i.datesLineOptions.legend)("showXAxisLabel",i.datesLineOptions.showXAxisLabel)("showYAxisLabel",i.datesLineOptions.showYAxisLabel)("xAxis",i.datesLineOptions.xAxis)("yAxis",i.datesLineOptions.yAxis)("xAxisLabel",i.datesLineOptions.xAxisLabel)("yAxisLabel",i.datesLineOptions.yAxisLabel)("timeline",i.datesLineOptions.timeline))},directives:[Oo,So,ko,KS,_ot],styles:[""]}),t})(),Not=(()=>{class t{constructor(e){this._camStatsService=e,this.contributorBarOptions={view:[500,300],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:25,yAxisLabel:"Contributor",showYAxisLabel:!0,xAxisLabel:"Number of Statements"},this.stats={contributorBar:[]},this._unsubscribeAll=new N}ngOnInit(){this.stats.contributorBar=this._camStatsService.buildContributorBar(this.termsSummary.contributors.nodes)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(JC))},t.\u0275cmp=vn({type:t,selectors:[["noc-contribution-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:7,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),de(3," Contribution "),G(),Qe(4,"span",3),G(),H(5,"div",4),Qe(6,"ngx-charts-bar-horizontal",5),G()()),2&e&&(W(6),J("results",i.stats.contributorBar)("view",i.contributorBarOptions.view)("gradient",i.contributorBarOptions.gradient)("xAxis",i.contributorBarOptions.showXAxis)("yAxis",i.contributorBarOptions.showYAxis)("legend",i.contributorBarOptions.legend)("showXAxisLabel",i.contributorBarOptions.showXAxisLabel)("maxYAxisTickLength",i.contributorBarOptions.maxYAxisTickLength)("showYAxisLabel",i.contributorBarOptions.showYAxisLabel)("xAxisLabel",i.contributorBarOptions.xAxisLabel)("yAxisLabel",i.contributorBarOptions.yAxisLabel))},directives:[Oo,So,ko,KS],styles:[""]}),t})();const Rot=function(t){return{"noc-active":t}};function zot(t,n){if(1&t){const e=Ln();H(0,"button",8),et("click",function(){const r=Dt(e).$implicit;return Ae().selectStatsType(r.name)}),de(1),G()}if(2&t){const e=n.$implicit,i=Ae();Ro("matTooltip",e.tooltip),J("ngClass",wo(5,Rot,i.selectedStatsType===e.name))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),Nt(" ",e.label," ")}}function Fot(t,n){1&t&&Qe(0,"noc-general-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Hot(t,n){1&t&&Qe(0,"noc-gp-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Vot(t,n){1&t&&Qe(0,"noc-aspect-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Bot(t,n){1&t&&Qe(0,"noc-statement-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Got(t,n){1&t&&Qe(0,"noc-contribution-stats",12),2&t&&J("termsSummary",Ae(2).termsSummary)}function Yot(t,n){if(1&t&&(H(0,"div",9)(1,"div",10),ke(2,Fot,1,1,"noc-general-stats",11),ke(3,Hot,1,1,"noc-gp-stats",11),ke(4,Vot,1,1,"noc-aspect-stats",11),ke(5,Bot,1,1,"noc-statement-stats",11),ke(6,Got,1,1,"noc-contribution-stats",11),G()()),2&t){const e=Ae();W(1),J("ngSwitch",e.selectedStatsType),W(1),J("ngSwitchCase",e.StatsType.GENERAL),W(1),J("ngSwitchCase",e.StatsType.GP),W(1),J("ngSwitchCase",e.StatsType.TERM),W(1),J("ngSwitchCase",e.StatsType.STATEMENT),W(1),J("ngSwitchCase",e.StatsType.CONTRIBUTION)}}var Z0=(()=>(function(t){t.GENERAL="general",t.GP="GP",t.MF="MF",t.BP="BP",t.CC="CC",t.TERM="term",t.CONTRIBUTION="contribution",t.STATEMENT="statement"}(Z0||(Z0={})),Z0))();let Uot=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.zone=e,this.noctuaLookupService=i,this._bbopGraphService=o,this.noctuaCommonMenuService=r,this.camService=a,this.noctuaUserService=l,this.noctuaReviewSearchService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=M,this.EntityType=H0,this.StatsType=Z0,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.selectedStatsType=Z0.GENERAL,this.statsTypes=[{name:Z0.GENERAL,label:"General"},{name:Z0.GP,label:"GP"},{name:Z0.TERM,label:"Terms"},{name:Z0.STATEMENT,label:"Statements"},{name:Z0.CONTRIBUTION,label:"Contribution"}],this.pies=[],this._unsubscribeAll=new N}ngOnInit(){this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e,this.termsSummary=this._bbopGraphService.getTerms(this.cam.graph))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectStatsType(e){this.selectedStatsType=e}openSearch(e){this.noctuaLookupService.getTermDetail(e.term.id).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.openLeftDrawer())})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[e.term],this.noctuaReviewSearchService.updateSearch()}searchModels(e){const i=new cd;i.terms=[e.term];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}searchModelsByContributor(e){const i=new cd;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}openTermDetail(e){this.noctuaSearchService.onDetailTermChanged.next(e),this.noctuaCommonMenuService.selectRightPanel(um.termDetail),this.noctuaCommonMenuService.openRightDrawer()}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Sd),ue(Yc),ue(ul),ue(Zr),ue(yr),ue(k1),ue(ld),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-stats"]],inputs:{panelDrawer:"panelDrawer"},decls:12,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-tab-bar"],["mat-button","","color","","class","noc-tab-button",3,"ngClass","matTooltip","matTooltipPosition","matTooltipShowDelay","click",4,"ngFor","ngForOf"],["class","noc-drawer-body","noctuaPerfectScrollbar","",4,"ngIf"],["mat-button","","color","",1,"noc-tab-button",3,"ngClass","matTooltip","matTooltipPosition","matTooltipShowDelay","click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],[3,"ngSwitch"],[3,"termsSummary",4,"ngSwitchCase"],[3,"termsSummary"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Cam Details & Stats"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"div",5),ke(10,zot,2,7,"button",6),G(),ke(11,Yot,7,6,"div",7),G()),2&e&&(W(10),J("ngForOf",i.statsTypes),W(1),J("ngIf",i.termsSummary))},directives:[Oo,So,ko,Fo,Ir,$o,ds,ac,Tl,Yi,ts,bd,iu,Aot,Lot,kot,Iot,Not],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:520px;min-width:520px;max-width:520px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-top:10px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%] .noc-tab-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;min-width:20px;padding:0 16px;line-height:12px;font-size:12px;border-radius:10px 10px 0 0;border:#bbb solid 1px;border-bottom:#eee solid 3px;color:#777}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%] .noc-tab-button.noc-active[_ngcontent-%COMP%]{border-bottom:#3b5998 solid 3px;background-color:#ccc;color:#000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{border-top:#888 solid 1px;padding:24px 8 100px 0;min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();var ga=(()=>(function(t){t.relationship="relationship",t.term="term",t.evidence="evidence",t.reference="reference",t.with="with",t.evidenceAll="evidenceAll",t.all="all"}(ga||(ga={})),ga))();class Tz{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const are=new ui("editorDropdownData");function jot(t,n){if(1&t&&(H(0,"mat-option",15),de(1),G()),2&t){const e=n.$implicit;J("value",e),W(1),Nt(" ",e.label," ")}}function Wot(t,n){if(1&t&&(H(0,"div",10)(1,"div",11)(2,"mat-form-field",12)(3,"mat-label"),de(4,"Choose GP to Term Relation"),G(),H(5,"mat-select",13),ke(6,jot,2,2,"mat-option",14),G()()()()),2&t){const e=Ae();W(5),J("compareWith",e.compareEntity),W(1),J("ngForOf",e.relationshipChoices)}}function qot(t,n){if(1&t&&(H(0,"a",26),et("click",function(i){return i.stopPropagation()}),de(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function $ot(t,n){if(1&t&&(H(0,"span"),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function Xot(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),de(3),G(),Qe(4,"span",22),H(5,"div",23),ke(6,qot,2,2,"a",24),ke(7,$ot,2,1,"span",25),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function Qot(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"mat-form-field",12)(2,"mat-label"),de(3),G(),H(4,"textarea",17),et("focus",function(){return Dt(e),Ae().updateTermList()}),de(5," "),G(),H(6,"mat-autocomplete",18,19),ke(8,Xot,8,4,"mat-option",14),G()()()}if(2&t){const e=Di(7),i=Ae();W(3),qo(i.entity.label),W(1),J("matAutocomplete",e),W(2),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.entity?null:i.entity.termLookup.results)}}function Zot(t,n){if(1&t&&(H(0,"a",26),et("click",function(i){return i.stopPropagation()}),de(1),G()),2&t){const e=Ae().$implicit;Ro("href",e.link,ao),W(1),Nt(" ",e.id," ")}}function Kot(t,n){if(1&t&&(H(0,"span"),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.id," ")}}function Jot(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),de(3),G(),Qe(4,"span",22),H(5,"div",34)(6,"strong"),de(7),G()(),H(8,"div",23),ke(9,Zot,2,2,"a",24),ke(10,Kot,2,1,"span",25),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(4),Nt(" ",e.xref," "),W(2),J("ngIf",e.link),W(1),J("ngIf",!e.link)}}function ert(t,n){if(1&t){const e=Ln();H(0,"div",31)(1,"mat-form-field",12)(2,"mat-label"),de(3,"Evidence"),G(),H(4,"textarea",32),et("focus",function(){return Dt(e),Ae(2).updateEvidenceList()}),G(),H(5,"mat-autocomplete",18,33),ke(7,Jot,11,5,"mat-option",14),G()()()}if(2&t){const e=Di(6),i=Ae(2);W(4),J("matAutocomplete",e),W(1),J("displayWith",i.evidenceDisplayFn),W(2),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.evidenceLookup.results)}}function trt(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function nrt(t,n){if(1&t){const e=Ln();H(0,"div",35)(1,"mat-form-field",12)(2,"mat-label"),de(3,"Reference"),G(),H(4,"textarea",36),et("focus",function(){return Dt(e),Ae(2).updateReferenceList()}),G(),H(5,"button",37),et("click",function(o){return Dt(e),Ae(2).openAddReference(o,"reference")}),H(6,"mat-icon"),de(7,"playlist_add"),G()(),H(8,"mat-autocomplete",38,39),ke(10,trt,4,2,"mat-option",14),G()()()}if(2&t){const e=Di(9),i=Ae(2);W(4),J("matAutocomplete",e),W(6),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.referenceLookup.results)}}function irt(t,n){if(1&t&&(H(0,"mat-option",15)(1,"div",20)(2,"div",21),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e," ")}}function ort(t,n){if(1&t){const e=Ln();H(0,"div",40)(1,"mat-form-field",12)(2,"mat-label"),de(3,"With"),G(),H(4,"textarea",41),et("focus",function(){return Dt(e),Ae(2).updateWithList()}),G(),H(5,"mat-autocomplete",38,42),ke(7,irt,4,2,"mat-option",14),G()()()}if(2&t){const e=Di(6),i=Ae(2);W(4),J("matAutocomplete",e),W(3),J("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.withLookup.results)}}function rrt(t,n){if(1&t&&(er(0,27),ke(1,ert,8,3,"div",28),ke(2,nrt,11,2,"div",29),ke(3,ort,8,2,"div",30),tr()),2&t){const e=Ae();J("formGroup",e.evidenceFormGroup),W(1),J("ngIf",e.displaySection.evidence),W(1),J("ngIf",e.displaySection.reference),W(1),J("ngIf",e.displaySection.with)}}function art(t,n){1&t&&(H(0,"button",43)(1,"mat-icon"),de(2,"more_vert"),G()()),2&t&&(Ae(),J("matMenuTriggerFor",Di(6)))}function srt(t,n){if(1&t){const e=Ln();H(0,"button",44),et("click",function(){return Dt(e),Ae().addRootTerm()}),de(1," Add Root Term "),G()}}let crt=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.zone=e,this.dialogRef=i,this.data=o,this.noctuaFormDialogService=r,this.camService=a,this.noctuaActivityEntityService=l,this.inlineReferenceService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=M,this.EditorCategory=ga,this.insertEntity=!1,this.relationshipChoices=[],this.displaySection={relationship:!1,term:!1,evidence:!1,reference:!1,with:!1},this._unsubscribeAll=new N,this.cam=o.cam,this.activity=o.activity,this.entity=o.entity,this.category=o.category,this.evidenceIndex=o.evidenceIndex,this.insertEntity=o.insertEntity,this.relationshipChoices=o.relationshipChoices}ngOnInit(){this._displaySection(this.category),this.entityFormSub=this.noctuaActivityEntityService.entityFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{if(!e)return;const i=e.get("evidenceFormArray");this.entityFormGroup=e,this.evidenceFormGroup=i.at(this.evidenceIndex)})}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.evidenceFormGroup.controls[i]}})}save(){const e=this;switch(e.category){case ga.term:case ga.evidence:case ga.reference:case ga.with:case ga.relationship:this.close(),e.noctuaActivityEntityService.saveActivityReplace(e.cam).pipe(Ja(1),Pf(i=>Na),Yu(()=>{e.zone.run(()=>{e.cam.loading.status=!1,e.cam.reviewCamChanges()})})).subscribe(()=>{e.zone.run(()=>{})});break;case ga.evidenceAll:e.noctuaActivityEntityService.addEvidence().then(()=>{this.close(),e.noctuaFormDialogService.openInfoToast("Evidence successfully updated.","OK")});break;case ga.all:e.noctuaActivityEntityService.addIndividual().then(()=>{this.close(),e.noctuaFormDialogService.openInfoToast("Activity successfully updated.","OK")})}}openSearchDatabaseDialog(e){const i=this,o=this.activity.gpNode;if(o&&o.hasValue()){const a=l=>{if(l.term){const u=new Pi(l.term.term.id,l.term.term.label);l.evidences&&l.evidences.length>0&&i.noctuaActivityEntityService.reinitializeForm(u,l.evidences)}};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new wd(Al.error,El.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}addRootTerm(){const e=this,i=(0,Zt.find)(Ht.rootNode,o=>o.aspect===e.entity.aspect);if(i){const o=new Ll;o.setEvidence(new Pi(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ht.evidenceAutoPopulate.nd.reference,e.noctuaActivityEntityService.reinitializeForm(new Pi(i.id,i.label),[o])}}clearValues(){this.entity.clearValues(),this.noctuaActivityFormService.initializeForm()}updateTermList(){this.camService.updateTermList(this.noctuaActivityFormService.activity,this.entity)}updateEvidenceList(){this.camService.updateEvidenceList(this.noctuaActivityFormService.activity,this.entity)}updateReferenceList(){this.camService.updateReferenceList(this.noctuaActivityFormService.activity,this.entity)}updateWithList(){this.camService.updateWithList(this.noctuaActivityFormService.activity,this.entity)}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}compareEntity(e,i){return e.id===i.id}_displaySection(e){switch(e){case ga.relationship:this.displaySection.relationship=!0;break;case ga.term:this.displaySection.term=!0;break;case ga.evidence:this.displaySection.evidence=!0;break;case ga.reference:this.displaySection.reference=!0;break;case ga.with:this.displaySection.with=!0;break;case ga.evidenceAll:this.displaySection.evidence=!0,this.displaySection.reference=!0,this.displaySection.with=!0;break;case ga.all:this.displaySection.term=!0,this.displaySection.evidence=!0,this.displaySection.reference=!0,this.displaySection.with=!0}}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Tz),ue(are),ue(jc),ue(Zr),ue(Pd),ue(xm),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-editor-dropdown"]],decls:16,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"formGroup"],["class","noc-edit-field p-4","fxFlex","300px","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","250px","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],[3,"formGroup",4,"ngIf"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor",4,"ngIf"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["evidenceMenu","matMenu"],["mat-icon-button","",3,"click"],["fxFlex","300px","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-edit-field","p-4"],[1,"p-4","w-100-p"],["appearance","outline",1,"noc-sm","w-100-p"],["placeholder","","formControlName","relationship",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","250px","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-edit-field","p-4"],["type","text","matInput","","formControlName","term","row","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["termAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],["fxFlex",""],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href","click"],[3,"formGroup"],["class","noc-edit-field p-4","fxFlex","250px",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","150px",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","","fxFlex","150px",4,"ngIf"],["fxFlex","250px",1,"noc-edit-field","p-4"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],["evidenceAuto","matAutocomplete"],[1,"noc-term-id","mr-8"],["fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,Wot,7,2,"div",1),ke(2,Qot,9,4,"div",2),ke(3,rrt,4,4,"ng-container",3),ke(4,art,3,1,"button",4),H(5,"mat-menu",5,6),ke(7,srt,2,0,"button",7),G(),Qe(8,"mat-menu",null,8),H(10,"button",9),et("click",function(){return i.close()}),H(11,"mat-icon"),de(12,"cancel"),G()(),H(13,"button",9),et("click",function(){return i.save()}),H(14,"mat-icon"),de(15,"check_circle"),G()()()),2&e&&(J("formGroup",i.entityFormGroup),W(1),J("ngIf",i.displaySection.relationship),W(1),J("ngIf",i.displaySection.term),W(1),J("ngIf",i.evidenceFormGroup),W(1),J("ngIf",!0),W(3),J("ngIf",i.entity.aspect))},directives:[Oo,So,tl,Gc,Yi,ko,id,yd,qg,Pl,Xl,$o,J1,E2,ed,kh,I0,Fo,E6,Ir,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}']}),t})();const lrt={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let I3=(()=>{class t{constructor(e,i,o,r,a){this.injector=e,this.overlay=i,this.camService=o,this.noctuaActivityFormService=r,this.noctuaActivityEntityService=a}open(e,i={}){const o=Object.assign(Object.assign({},lrt),i);o.positionStrategy=this._getPosition(e);const r=this.createOverlay(o),a=new Tz(r);return this.attachDialogContainer(r,o,a),r.backdropClick().subscribe(u=>a.close()),a}close(e){}createInjector(e,i){const o=new WeakMap;return o.set(Tz,i),o.set(are,e.data),new Xw(this.injector,o)}attachDialogContainer(e,i,o){const r=this.createInjector(i,o),a=new uu(crt,null,r);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Lh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}}return t.\u0275fac=function(e){return new(e||t)(qt(zs),qt($l),qt(Zr),qt(Ts),qt(Pd))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const drt=["editorDropdownTrigger"];let km=(()=>{class t{constructor(e,i,o){this.inlineEditorService=e,this.camService=i,this.noctuaActivityEntityService=o,this.evidenceIndex=0,this.relationshipChoices=[],this._unsubscribeAll=new N}ngOnInit(){}openEditorDropdown(e){const i=(0,Zt.cloneDeep)(this.entity),o={cam:this.cam,activity:this.activity,entity:i,category:this.category,evidenceIndex:this.evidenceIndex,relationshipChoices:this.relationshipChoices};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,i),this.inlineEditorService.open(e.target,{data:o})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(I3),ue(Zr),ue(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noctua-inline-editor"]],viewQuery:function(e,i){if(1&e&&_o(drt,5,Ti),2&e){let o;fi(o=gi())&&(i.editorDropdownTrigger=o.first)}},inputs:{cam:"cam",activity:"activity",entity:"entity",category:"category",evidenceIndex:"evidenceIndex",relationshipChoices:"relationshipChoices"},decls:4,vars:0,consts:[["mat-icon-button","",1,"noc-trigger-button",3,"click"],["editorDropdownTrigger",""],[1,"s-12","secondary-text"]],template:function(e,i){1&e&&(H(0,"button",0,1),et("click",function(r){return i.openEditorDropdown(r)}),H(2,"mat-icon",2),de(3,"edit"),G()())},directives:[Fo,Ir],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;line-height:15px;background-color:#039be51a;border-radius:0}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]:hover{background-color:#039be5}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#fff}']}),t})();function urt(t,n){if(1&t&&(H(0,"span",15),de(1),H(2,"a",13),et("click",function(i){return i.stopPropagation()}),de(3),G()()),2&t){const e=Ae(2).$implicit;W(1),Nt(" ",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].label," "),W(1),Ro("href",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].url,ao),W(1),Nt(" ",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].id," ")}}function hrt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.evidence)("evidenceIndex",e)}}const sre=function(t){return{"noc-highlight-modified":t}};function prt(t,n){if(1&t&&(H(0,"div",10),ke(1,urt,4,3,"span",11),H(2,"span",12),de(3),Qe(4,"br"),H(5,"a",13),et("click",function(i){return i.stopPropagation()}),de(6),G()(),ke(7,hrt,1,5,"noctua-inline-editor",14),G()),2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(6,sre,null==e.evidence?null:e.evidence.modified)),W(1),J("ngIf",(null==e.evidence?null:e.evidence.modified)&&(null==e.evidence||null==e.evidence.termHistory?null:e.evidence.termHistory.length)>0),W(2),qo(null==e.evidence?null:e.evidence.label),W(2),Ro("href",null==e.evidence?null:e.evidence.url,ao),W(1),Nt(" ",null==e.evidence?null:e.evidence.id," "),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableEvidence)}}function frt(t,n){if(1&t&&(H(0,"span",15)(1,"a",13),et("click",function(i){return i.stopPropagation()}),de(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.referenceEntity||null==e.referenceEntity.termHistory[0]?null:e.referenceEntity.termHistory[0].url,ao),W(1),Nt(" ",null==e.referenceEntity||null==e.referenceEntity.termHistory[0]?null:e.referenceEntity.termHistory[0].id," ")}}function grt(t,n){if(1&t&&(H(0,"span",12),de(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.reference)}}function mrt(t,n){if(1&t&&(H(0,"span",12)(1,"a",13),et("click",function(i){return i.stopPropagation()}),de(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.referenceEntity?null:e.referenceEntity.url,ao),W(1),Nt(" ",e.reference," ")}}function _rt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.reference)("evidenceIndex",e)}}const Crt=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function vrt(t,n){if(1&t&&(H(0,"div",17),ke(1,frt,3,2,"span",11),ke(2,grt,2,1,"span",18),ke(3,mrt,3,2,"span",18),ke(4,_rt,1,5,"noctua-inline-editor",14),G()),2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",M2(5,Crt,null==e.referenceEntity?null:e.referenceEntity.highlight,null==e.referenceEntity?null:e.referenceEntity.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==e.referenceEntity?null:e.referenceEntity.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),W(1),J("ngIf",(null==e.referenceEntity?null:e.referenceEntity.modified)&&(null==e.referenceEntity||null==e.referenceEntity.termHistory?null:e.referenceEntity.termHistory.length)>0),W(1),J("ngIf",!(null!=e.referenceEntity&&e.referenceEntity.url)),W(1),J("ngIf",null==e.referenceEntity?null:e.referenceEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableReference)}}function brt(t,n){if(1&t&&(H(0,"span",15)(1,"a",13),et("click",function(i){return i.stopPropagation()}),de(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.withEntity||null==e.withEntity.termHistory[0]?null:e.withEntity.termHistory[0].url,ao),W(1),Nt(" ",null==e.withEntity||null==e.withEntity.termHistory[0]?null:e.withEntity.termHistory[0].id," ")}}function xrt(t,n){if(1&t&&(H(0,"span",12),de(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.with)}}function yrt(t,n){if(1&t&&(H(0,"span",12)(1,"a",13),et("click",function(i){return i.stopPropagation()}),de(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.withEntity?null:e.withEntity.url,ao),W(1),Nt(" ",e.with," ")}}function wrt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.with)("evidenceIndex",e)}}function Mrt(t,n){if(1&t&&(H(0,"div",19),ke(1,brt,3,2,"span",11),ke(2,xrt,2,1,"span",18),ke(3,yrt,3,2,"span",18),ke(4,wrt,1,5,"noctua-inline-editor",14),G()),2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(5,sre,null==e.withEntity?null:e.withEntity.modified)),W(1),J("ngIf",(null==e.withEntity?null:e.withEntity.modified)&&(null==e.withEntity||null==e.withEntity.termHistory?null:e.withEntity.termHistory.length)>0),W(1),J("ngIf",!(null!=e.withEntity&&e.withEntity.url)),W(1),J("ngIf",null==e.withEntity?null:e.withEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableWith)}}function Ort(t,n){1&t&&(H(0,"span"),de(1,",\xa0"),G())}function Srt(t,n){if(1&t&&(H(0,"span")(1,"a",13),et("click",function(i){return i.stopPropagation()}),de(2),G(),ke(3,Ort,2,0,"span",22),G()),2&t){const e=n.$implicit,i=n.last;W(1),Ro("href",e.url,ao),W(1),Nt(" ",e.name," "),W(1),J("ngIf",!i)}}function Prt(t,n){if(1&t&&(H(0,"div",20)(1,"span",12),ke(2,Srt,4,3,"span",21),G()()),2&t){const e=Ae().$implicit;W(2),J("ngForOf",e.groups)}}function Trt(t,n){1&t&&(H(0,"span"),de(1,",\xa0"),G())}function Ert(t,n){if(1&t&&(H(0,"span")(1,"a",13),et("click",function(i){return i.stopPropagation()}),de(2),G(),ke(3,Trt,2,0,"span",22),G()),2&t){const e=n.$implicit,i=n.last;W(1),Ro("href",e.urcid,ao),W(1),Nt(" ",e.name," "),W(1),J("ngIf",!i)}}function Art(t,n){if(1&t&&(H(0,"div",23)(1,"span",12),ke(2,Ert,4,3,"span",21),G()()),2&t){const e=Ae().$implicit;W(2),J("ngForOf",e.contributors)}}function Lrt(t,n){if(1&t&&(H(0,"div",4),ke(1,prt,8,8,"div",5),ke(2,vrt,5,9,"div",6),ke(3,Mrt,5,7,"div",7),ke(4,Prt,3,1,"div",8),ke(5,Art,3,1,"div",9),G()),2&t){const e=Ae(2);W(1),J("ngIf",e.settings.showEvidenceCode),W(1),J("ngIf",e.settings.showReference),W(1),J("ngIf",e.settings.showWith),W(1),J("ngIf",e.settings.showGroup),W(1),J("ngIf",e.settings.showContributor)}}function Drt(t,n){if(1&t&&(H(0,"div",2),ke(1,Lrt,6,5,"div",3),G()),2&t){const e=Ae();W(1),J("ngForOf",null==e.entity.predicate?null:e.entity.predicate.evidence)}}function krt(t,n){1&t&&(H(0,"div",24),de(1," no evidence present.\n"),G())}let cre=(()=>{class t{constructor(e,i,o,r){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaActivityEntityService=r,this.EditorCategory=ga,this.settings=new hm,this.options={},this.unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(yr),ue(Co),ue(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noc-evidence-table"]],inputs:{settings:"settings",options:"options",cam:"cam",entity:"entity"},decls:2,vars:2,consts:[["class","noc-evidence-table noctua-form-table w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-no-info",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-table","noctua-form-table","w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch","class","noc-row",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-row"],["class","noc-evidence-code-cell noc-box-cell","fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-reference-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-with-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-group-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-contributor-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-code-cell","noc-box-cell",3,"ngClass"],["class","noc-old-term",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category","evidenceIndex",4,"ngIf"],[1,"noc-old-term"],[1,"noc-edit-button",3,"cam","activity","entity","category","evidenceIndex"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-reference-cell","noc-box-cell",3,"ngClass"],["class","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-with-cell","noc-box-cell",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-cell","noc-box-cell"],[4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-contributor-cell","noc-box-cell"],[1,"noc-no-info"]],template:function(e,i){1&e&&(ke(0,Drt,2,1,"div",0),ke(1,krt,2,0,"div",1)),2&e&&(J("ngIf",(null==i.entity.predicate?null:i.entity.predicate.evidence.length)>0),W(1),J("ngIf",0===(null==i.entity.predicate?null:i.entity.predicate.evidence.length)))},directives:[Yi,Oo,So,$o,ko,ds,ac,km],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-qualifier[_ngcontent-%COMP%]{padding:5px;width:100%;font-size:12px;text-align:center;border-bottom:1px solid rgba(46,111,154,.3)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;margin:0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{padding:20px 10px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-row[_ngcontent-%COMP%]{border-bottom:#ddd solid 1px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{overflow:auto;background-color:transparent}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row.noc-hide-header[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0;visibility:hidden;display:none;overflow:hidden;border:none}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-evidence-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();function Irt(t,n){1&t&&(H(0,"strong"),de(1," NOT "),G())}function Nrt(t,n){if(1&t&&(H(0,"span"),de(1),G()),2&t){const e=Ae(2);W(1),qo(null==e.entity.predicate||null==e.entity.predicate.edge?null:e.entity.predicate.edge.label)}}function Rrt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",29),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.relationship)}}function zrt(t,n){if(1&t&&(H(0,"div",27)(1,"span",5),ke(2,Irt,2,0,"strong",7),ke(3,Nrt,2,1,"span",7),G(),ke(4,Rrt,1,4,"noctua-inline-editor",28),G()),2&t){const e=Ae();Ro("fxFlex",e.relationWidth),W(2),J("ngIf",null==e.entity.predicate?null:e.entity.predicate.isComplement),W(1),J("ngIf",e.entity.showEvidence),W(1),J("ngIf",e.noctuaUserService.user&&e.entity.relationEditable)}}function Frt(t,n){if(1&t&&(H(0,"span",30),de(1),H(2,"a",6),et("click",function(i){return i.stopPropagation()}),de(3),G()()),2&t){const e=Ae();W(1),Nt(" ",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].label," "),W(1),Ro("href",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].url,ao),W(1),Nt(" ",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].id," ")}}function Hrt(t,n){if(1&t&&Qe(0,"noctua-inline-editor",29),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.term)}}function Vrt(t,n){if(1&t&&(er(0),ke(1,Hrt,1,4,"noctua-inline-editor",28),tr()),2&t){const e=Ae();W(1),J("ngIf",e.noctuaUserService.user&&e.entity.term&&e.options.editableTerms)}}function Brt(t,n){if(1&t&&(H(0,"mat-chip",31)(1,"span"),de(2),G()()),2&t){const e=Ae();yf("noc-chip-xs noc-aspect ",e.entity.aspect,""),W(2),qo(e.entity.aspect)}}function Grt(t,n){1&t&&(H(0,"mat-chip",32)(1,"span"),de(2,"ext."),G()())}function Yrt(t,n){if(1&t&&Qe(0,"noc-evidence-table",33),2&t){const e=Ae();J("options",e.optionsDisplay)("cam",e.cam)("entity",e.entity)}}const Urt=function(){return["fas","comment"]};function jrt(t,n){if(1&t){const e=Ln();H(0,"button",34),et("click",function(){Dt(e);const o=Ae();return o.openCommentsForm(o.entity)}),Qe(1,"fa-icon",35),H(2,"div",36),de(3),G()()}if(2&t){const e=Ae();Ro("matTooltip",null==e.entity.predicate?null:e.entity.predicate.comments),J("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(5,Urt)),W(2),Nt(" ",null==e.entity.predicate?null:e.entity.predicate.comments.length," ")}}function Wrt(t,n){if(1&t){const e=Ln();H(0,"button",37),et("click",function(o){return Dt(e),Ae().updateCurrentMenuEvent(o)}),H(1,"mat-icon"),de(2,"more_vert"),G()()}2&t&&(Ae(),J("matMenuTriggerFor",Di(22)))}function qrt(t,n){if(1&t){const e=Ln();H(0,"button",23),et("click",function(){Dt(e);const o=Ae();return o.toggleIsComplement(o.entity)}),de(1," NOT Qualifier "),G()}}function $rt(t,n){1&t&&(H(0,"button",22),de(1,"Add"),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(30)))}function Xrt(t,n){if(1&t){const e=Ln();H(0,"button",23),et("click",function(){const r=Dt(e).$implicit,a=Ae();return a.insertEntity(a.entity,r)}),de(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}const Qrt=function(t){return{"noc-selected":t}},Zrt=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};let JS=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.camService=e,this.bbopGraphService=i,this.confirmDialogService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.noctuaFormDialogService=l,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.inlineEditorService=M,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ht.activityType.options,this.options={},this.relationWidth="0px",this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.termNotEditable=!0,this.unsubscribeAll=new N}ngOnInit(){var e;this.termNotEditable=this.activity.activityType===so.bpOnly&&this.entity.term.id===Ht.rootNode.mf.id,(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.relationWidth=150-16*this.entity.treeLevel+"px"}editEntity(e){const i={cam:this.cam,activity:this.activity,entity:e,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:i})}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}deleteEntity(e){const i=this,r=this.activity.descendants(e.id).map(l=>l.term.label).join(", ");let a=`You are about to delete an ${e.term.label}`;r&&(a+=` and its descendants ${r}`),this.confirmDialogService.openConfirmDialog("Confirm Delete?",`${a}`,()=>{this.noctuaActivityEntityService.deleteActivityNode(i.activity,e).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.term.label} successfully deleted.`,"OK")})})}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o){const a=function(l){l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ht.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}openCommentsForm(e){const i=this;i.noctuaFormDialogService.openCommentsDialog(e.predicate,r=>{r&&this.bbopGraphService.savePredicateComments(i.cam,e.predicate,r)})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(Yc),ue(dd),ue(yr),ue(Co),ue(jc),ue(Pd),ue(Ts),ue(I3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-tree-node"]],inputs:{cam:"cam",activity:"activity",entity:"entity",options:"options"},decls:36,vars:24,consts:[[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-node","noctua-form-table","w-100-p",3,"ngClass"],["class","noc-relation-cell noc-entity-cell",3,"fxFlex",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","",1,"noc-term-cell","noc-entity-cell",3,"ngClass"],["class","noc-old-term",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-aspect-cell","noc-entity-cell"],["fxLayout","column","fxLayoutAlign","center center",3,"class",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-extension-cell","noc-entity-cell"],["class","noc-chip-xs noc-extension","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-cell","p-0"],["class","w-100-p",3,"options","cam","entity",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-comments-cell","noc-entity-cell"],["mat-icon-button","","class","noc-toolbar-button noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor","click",4,"ngIf"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"],["addMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["evidenceMenu","matMenu"],[1,"noc-relation-cell","noc-entity-cell",3,"fxFlex"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category"],[1,"noc-old-term"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-chip-xs","noc-extension"],[1,"w-100-p",3,"options","cam","entity"],["mat-icon-button","",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],[1,"noc-comments-badge"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1),ke(2,zrt,5,4,"div",2),H(3,"div",3),ke(4,Frt,4,3,"span",4),H(5,"span",5),de(6),Qe(7,"br"),H(8,"a",6),et("click",function(r){return r.stopPropagation()}),de(9),G()(),ke(10,Vrt,2,1,"ng-container",7),G(),H(11,"div",8),ke(12,Brt,3,4,"mat-chip",9),G(),H(13,"div",10),ke(14,Grt,3,0,"mat-chip",11),G(),H(15,"div",12),ke(16,Yrt,1,3,"noc-evidence-table",13),G(),H(17,"div",14),ke(18,jrt,4,6,"button",15),G(),H(19,"div",16),ke(20,Wrt,3,1,"button",17),H(21,"mat-menu",18,19),ke(23,qrt,2,0,"button",20),ke(24,$rt,2,1,"button",21),H(25,"button",22),de(26,"Evidence"),G(),H(27,"button",23),et("click",function(){return i.openCommentsForm(i.entity)}),de(28," Add Comment "),G()(),H(29,"mat-menu",null,24),ke(31,Xrt,2,1,"button",25),G(),H(32,"mat-menu",null,26)(34,"button",23),et("click",function(){return i.addEvidence(i.entity)}),de(35," Add Evidence "),G()()()()()),2&e){const o=Di(33);W(1),J("ngClass",wo(18,Qrt,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),W(1),J("ngIf",!i.options.slimViewer),W(1),J("ngClass",M2(20,Zrt,null==i.entity.term?null:i.entity.term.highlight,null==i.entity.term?null:i.entity.term.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==i.entity.term?null:i.entity.term.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),Un("id",null==i.entity.term?null:i.entity.term.displayId),W(1),J("ngIf",(null==i.entity.term?null:i.entity.term.modified)&&(null==i.entity.term||null==i.entity.term.termHistory?null:i.entity.term.termHistory.length)>0),W(2),Nt(" ",null==i.entity.term?null:i.entity.term.label," "),W(2),Ro("href",null==i.entity.term?null:i.entity.term.url,ao),W(1),Nt(" ",null==i.entity.term?null:i.entity.term.id," "),W(1),J("ngIf",!i.termNotEditable),W(2),J("ngIf",i.entity.aspect),W(2),J("ngIf",i.entity.isExtension),W(2),J("ngIf",i.entity.showEvidence),W(2),J("ngIf",i.entity.showEvidence&&i.entity.predicate.comments.length>0),W(2),J("ngIf",i.noctuaUserService.user&&i.options.showMenu&&i.entity.showEvidence),W(3),J("ngIf",0===i.entity.treeLevel),W(1),J("ngIf",i.entity.insertMenuNodes),W(1),J("matMenuTriggerFor",o),W(6),J("ngForOf",i.entity.insertMenuNodes)}},directives:[Oo,So,ds,ac,Yi,ko,km,T2,cre,Fo,Tl,ps,il,Ir,Ql,nl,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#7cd488 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f4c89c solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-extension[_ngcontent-%COMP%]{border:#9bb1b6 solid 2px;height:20px;min-height:20px;max-height:20px;font-size:8px;padding:2px;text-align:center}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;height:25px;min-height:25px;max-height:25px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-align:center;height:20px;min-height:20px;max-height:20px;font-size:10px;font-weight:700;padding:2px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.F[_ngcontent-%COMP%]{border:#7cd488 solid 1px;color:#56c765}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.P[_ngcontent-%COMP%]{border:#f4c89c solid 1px;color:#efaf6e}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.C[_ngcontent-%COMP%]{border:#d3b5f5 solid 1px;color:#b888ef}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-relation-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-extension-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-node.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();const Krt=function(){return["fas","caret-right"]};function Jrt(t,n){1&t&&Qe(0,"fa-icon",14),2&t&&J("icon",_i(1,Krt))}const eat=function(){return["fas","caret-down"]};function tat(t,n){1&t&&Qe(0,"fa-icon",14),2&t&&J("icon",_i(1,eat))}function nat(t,n){if(1&t&&(H(0,"span",20),de(1),H(2,"a",21),et("click",function(i){return i.stopPropagation()}),de(3),G()()),2&t){const e=Ae(2);W(1),Nt(" ",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].label," "),W(1),Ro("href",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].url,ao),W(1),Nt(" ",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].id," ")}}function iat(t,n){if(1&t&&Qe(0,"noctua-inline-editor",22),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.gpNode)("category",e.EditorCategory.term)}}const oat=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function rat(t,n){if(1&t&&(H(0,"div",15),ke(1,nat,4,3,"span",16),H(2,"span",17),de(3),G(),H(4,"a",18),et("click",function(i){return i.stopPropagation()}),de(5),G(),ke(6,iat,1,4,"noctua-inline-editor",19),G()),2&t){const e=Ae();J("ngClass",M2(7,oat,null==e.gpNode.term?null:e.gpNode.term.highlight,null==e.gpNode.term?null:e.gpNode.term.modified,(null==e.camService.currentMatch?null:e.camService.currentMatch.uuid)&&(null==e.gpNode.term?null:e.gpNode.term.uuid)===(null==e.camService.currentMatch?null:e.camService.currentMatch.uuid))),Un("id",null==e.gpNode.term?null:e.gpNode.term.displayId),W(1),J("ngIf",(null==e.gpNode.term?null:e.gpNode.term.modified)&&(null==e.gpNode.term||null==e.gpNode.term.termHistory?null:e.gpNode.term.termHistory.length)>0),W(2),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),W(1),Ro("href",null==e.gpNode.term?null:e.gpNode.term.url,ao),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.id," "),W(1),J("ngIf",e.noctuaUserService.user&&e.gpNode.term&&e.options.editableTerms)}}const aat=function(){return["fas","exclamation-triangle"]};function sat(t,n){if(1&t){const e=Ln();H(0,"div",23)(1,"mat-chip",24),et("click",function(){Dt(e);const o=Ae();return o.displayActivityErrors(o.activity)}),H(2,"div",25),Qe(3,"fa-icon",14),G(),H(4,"div",26),de(5),G()()()}if(2&t){const e=Ae();W(3),J("icon",_i(2,aat)),W(2),Nt(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function cat(t,n){1&t&&(H(0,"div",42),de(1," Relationship "),G())}function lat(t,n){1&t&&(H(0,"div",43),de(1," Asp "),G())}function dat(t,n){if(1&t&&Qe(0,"noc-activity-tree-node",44),2&t){const e=n.$implicit,i=Ae(2);J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function uat(t,n){1&t&&(H(0,"div",45),de(1," no results yet. "),G())}const lre=function(t){return{"noc-selected":t}};function hat(t,n){if(1&t&&(H(0,"div",27)(1,"div",28),ke(2,cat,2,0,"div",29),H(3,"div",30),de(4," Term "),G(),ke(5,lat,2,0,"div",31),H(6,"div",32),de(7," Ext "),G(),H(8,"div",33)(9,"div",34),de(10," Evidence "),G(),H(11,"div",35),de(12," Reference "),G(),H(13,"div",36),de(14," With "),G(),H(15,"div",37),de(16," Assigned By "),G(),H(17,"div",38),de(18," Contributor "),G()(),Qe(19,"div",39),G(),ke(20,dat,1,4,"noc-activity-tree-node",40),ke(21,uat,2,0,"div",41),G()),2&t){const e=Ae();J("ngClass",wo(5,lre,e.activity.displayId===(null==e.camService.currentMatch?null:e.camService.currentMatch.activityDisplayId))),W(2),J("ngIf",!e.options.slimViewer),W(3),J("ngIf",!e.options.slimViewer),W(15),J("ngForOf",e.nodes),W(1),J("ngIf",0===(null==e.activity.nodes?null:e.activity.nodes.length))}}let pat=(()=>{class t{constructor(e,i,o,r,a,l,u){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaFormDialogService=r,this.noctuaActivityEntityService=a,this.noctuaActivityFormService=l,this.inlineEditorService=u,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ht.activityType.options,this.options={},this.optionsDisplay={},this.nodes=[],this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new N}ngOnInit(){var e;const i=this;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.gpNode=this.activity.gpNode,this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.nodes=this.activity.nodes.filter(o=>{var r;return o.id!==(null===(r=i.gpNode)||void 0===r?void 0:r.id)})}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.bpNode;if(o){const a=function(l){l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ht.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(yr),ue(Co),ue(jc),ue(Pd),ue(Ts),ue(I3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-table"]],inputs:{cam:"cam",activity:"activity",options:"options"},decls:20,vars:13,consts:[[1,"w-100-p"],[1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","noc-sm","mr-8",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title","mr-12"],[1,"noc-relation","mr-12"],["class","noc-gp","fxLayout","column","fxLayoutAlign","center start",3,"ngClass",4,"ngIf"],[1,"noc-chip-xs",3,"ngClass"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["class","noc-activity-table w-100-p","fxLayout","column","fxLayoutAlign","start start",3,"ngClass",4,"ngIf"],[3,"icon"],["fxLayout","column","fxLayoutAlign","center start",1,"noc-gp",3,"ngClass"],["class","noc-old-term text-truncate",4,"ngIf"],[1,"text-truncate"],["target","_blank",1,"text-truncate",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-old-term","text-truncate"],["target","_blank",3,"href","click"],[1,"noc-edit-button",3,"cam","activity","entity","category"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-activity-table","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["fxFlex","","class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],["class","noc-cell noc-aspect-cell",4,"ngIf"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],[1,"noc-cell","noc-action-cell"],["class","w-100-p",3,"options","cam","activity","entity",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"w-100-p",3,"options","cam","activity","entity"],[1,"noc-no-info"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),et("click",function(r){return r.stopPropagation()}),H(4,"button",4),et("click",function(){return i.toggleExpand(i.activity)}),ke(5,Jrt,1,2,"fa-icon",5),ke(6,tat,1,2,"fa-icon",5),G()(),H(7,"div",6),et("click",function(r){return r.stopPropagation()}),de(8),G(),H(9,"div",7)(10,"div",8)(11,"small"),de(12),G()(),ke(13,rat,7,11,"div",9),G(),H(14,"mat-chip",10)(15,"span"),de(16),G()(),ke(17,sat,6,3,"div",11),Qe(18,"span",12),G()(),ke(19,hat,22,7,"div",13),G()),2&e&&(W(1),J("ngClass",wo(11,lre,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",i.activity.displayId),W(4),J("ngIf",!i.activity.expanded),W(1),J("ngIf",i.activity.expanded),W(2),Nt(" ",i.activity.displayNumber," "),W(4),qo(null==i.gpNode||null==i.gpNode.predicate||null==i.gpNode.predicate.edge?null:i.gpNode.predicate.edge.label),W(1),J("ngIf",i.gpNode),W(1),J("ngClass",i.activity.activityType),W(2),qo(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),W(1),J("ngIf",i.activity.hasViolations),W(2),J("ngIf",i.activity.expanded))},directives:[ds,ac,Oo,So,ko,Fo,Yi,ps,km,T2,$o,JS],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:55px;min-height:55px;max-height:55px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:27px;left:-15px;width:25px;height:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:after{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:"";z-index:1}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:350px;line-height:12px;height:55px;min-height:55px;max-height:55px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 3px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;padding-bottom:4px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] noc-activity-tree-node[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;overflow:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row.noc-row-term[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row.noc-row-term[_ngcontent-%COMP%]:before{position:absolute;left:0;width:20px;height:2px;top:50%;transform:translateY(-50%);color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{padding-left:15px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-activity-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();const fat=["tree"],dre=function(){return["fas","caret-right"]};function gat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,dre))}const ure=function(){return["fas","caret-down"]};function mat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,ure))}function _at(t,n){1&t&&(H(0,"span",26),de(1,"GP info not available"),G())}function Cat(t,n){if(1&t&&(H(0,"span",27),de(1),H(2,"a",28),et("click",function(i){return i.stopPropagation()}),de(3),G()()),2&t){const e=Ae();Ip("matTooltip","GP: ",null==e.gpNode.term?null:e.gpNode.term.label," \r ( ",null==e.gpNode.term?null:e.gpNode.term.id,")"),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),W(1),Ro("href",null==e.gpNode.term?null:e.gpNode.term.url,ao),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.id," ")}}function vat(t,n){if(1&t&&(H(0,"mat-chip",29)(1,"div",30),de(2),G(),H(3,"div",31)(4,"span"),de(5),G()()()),2&t){const e=Ae();Ro("matTooltip",e.activity.summary.mf.tooltip),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.activity.summary.mf.shorthand," "),W(3),Nt(" ",null==e.activity.mfNode.term?null:e.activity.mfNode.term.label," ")}}function bat(t,n){if(1&t&&(H(0,"mat-chip",32)(1,"div",30),de(2),G(),H(3,"div",31)(4,"span"),de(5),G()()()),2&t){const e=Ae();Ro("matTooltip",e.activity.summary.bp.tooltip),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.activity.summary.bp.shorthand," "),W(3),Nt(" ",null==e.activity.bpNode.term?null:e.activity.bpNode.term.label," ")}}function xat(t,n){if(1&t&&(H(0,"mat-chip",33)(1,"div",30),de(2),G(),H(3,"div",31)(4,"span"),de(5),G()()()),2&t){const e=Ae();Ro("matTooltip",e.activity.summary.cc.tooltip),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.activity.summary.cc.shorthand," "),W(3),Nt(" ",null==e.activity.ccNode.term?null:e.activity.ccNode.term.label," ")}}const yat=function(){return["fas","exclamation-triangle"]};function wat(t,n){if(1&t){const e=Ln();H(0,"div",34)(1,"mat-chip",35),et("click",function(){Dt(e);const o=Ae();return o.displayActivityErrors(o.activity)}),H(2,"div",36),Qe(3,"fa-icon",25),G(),H(4,"div",31),de(5),G()()()}if(2&t){const e=Ae();W(3),J("icon",_i(2,yat)),W(2),Nt(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function Mat(t,n){if(1&t){const e=Ln();H(0,"div",37)(1,"button",38)(2,"mat-icon"),de(3,"more_vert"),G()(),H(4,"mat-menu",39,40)(6,"h6",41),de(7," Danger Zone"),G(),H(8,"button",42),et("click",function(){Dt(e);const o=Ae();return o.deleteActivity(o.activity)}),de(9," Delete Activity "),G()()()}if(2&t){const e=Di(5);W(1),J("matMenuTriggerFor",e)}}function Oat(t,n){1&t&&(H(0,"div",61),de(1," Relationship "),G())}function Sat(t,n){1&t&&Qe(0,"div",62)}function Pat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,dre))}function Tat(t,n){1&t&&Qe(0,"fa-icon",25),2&t&&J("icon",_i(1,ure))}function Eat(t,n){if(1&t){const e=Ln();H(0,"button",70),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,Pat,1,2,"fa-icon",4),ke(2,Tat,1,2,"fa-icon",4),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function Aat(t,n){1&t&&Qe(0,"div",71)}function Lat(t,n){if(1&t&&Qe(0,"noctua-inline-editor",74),2&t){const e=Ae(2).$implicit,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",e.data.node)("category",i.EditorCategory.relationship)}}function Dat(t,n){if(1&t&&(H(0,"div",72),de(1),ke(2,Lat,1,4,"noctua-inline-editor",73),G()),2&t){const e=Ae().$implicit,i=Ae(2);W(1),Nt(" ",null==e.data.node||null==e.data.node.predicate||null==e.data.node.predicate.edge?null:e.data.node.predicate.edge.label," "),W(1),J("ngIf",i.noctuaUserService.user&&e.data.node.relationEditable&&i.options.editableRelation)}}function kat(t,n){if(1&t){const e=Ln();H(0,"div",63),ke(1,Eat,3,2,"button",64),ke(2,Aat,1,0,"div",65),H(3,"div",66),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),H(4,"div",67),ke(5,Dat,3,2,"div",68),Qe(6,"noc-activity-tree-node",69),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(2),J("ngIf",i.options.slimViewer),W(1),J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function Iat(t,n){if(1&t){const e=Ln();H(0,"div",43)(1,"div",44),ke(2,Oat,2,0,"div",45),H(3,"div",46),de(4," Term "),G(),H(5,"div",47),de(6," Asp "),G(),H(7,"div",48),de(8," Ext "),G(),H(9,"div",49)(10,"div",50),de(11," Evidence "),G(),H(12,"div",51),de(13," Reference "),G(),H(14,"div",52),de(15," With "),G(),H(16,"div",53),de(17," Assigned By "),G(),H(18,"div",54),de(19," Contributor "),G()(),Qe(20,"div",55),ke(21,Sat,1,0,"div",56),G(),H(22,"div",57)(23,"tree-root",58,59),et("initialized",function(){return Dt(e),Ae().onTreeLoad()}),ke(25,kat,7,16,"ng-template",null,60,tu),G()()()}if(2&t){const e=Ae();W(2),J("ngIf",!e.options.slimViewer),W(19),J("ngIf",e.noctuaUserService.user&&e.options.showMenu),W(2),J("nodes",e.treeNodes)("options",e.treeOptions)}}const Nat=function(t){return{"noc-selected":t}},Rat=function(){return["fas","calendar-day"]};let zat=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=l,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=ga,this.ActivityType=so,this.ActivityNodeType=$n,this.activityTypeOptions=Ht.activityType.options,this.treeNodes=[],this.options={},this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.treeOptions={allowDrag:!1,allowDrop:!1,getNodeClone:M=>Object.assign(Object.assign({},M.data),{name:`Copy of ${M.data.name}`})},this.hasChild=(M,T)=>T.expandable,this._unsubscribeAll=new N}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.gpNode=this.activity.gpNode,this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.treeNodes=this.activity.buildTrees()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onTreeLoad(){this.tree.treeModel.expandAll()}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,o=this.noctuaActivityFormService.activity.gpNode;if(o){const a=function(l){l.term&&(e.term=new Pi(l.term.term.id,l.term.term.label),l.evidences&&l.evidences.length>0&&e.predicate.setEvidence(l.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ht.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(dd),ue(yr),ue(Co),ue(jc),ue(Pd),ue(Ts),ue(I3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-tree"]],viewQuery:function(e,i){if(1&e&&_o(fat,5),2&e){let o;fi(o=gi())&&(i.tree=o.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},decls:32,vars:20,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cell"],[1,"noc-display-number","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-gp","noc-cell"],["class","noc-no-info",4,"ngIf"],["class","text-truncate",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-type","noc-cell"],[1,"noc-chip-activity-type","noc-chip-xs"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-date","noc-cell"],[1,"noc-icon",3,"icon"],[1,"ml-4"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-coverage","noc-cell"],[3,"src"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"scard-title-summary"],["fxFlex","33%","fxLayout","row","fxLayoutAlign","start center",1,"noc-cell"],["class","noc-chip-xs noc-mf noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-chip-xs noc-bp noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-chip-xs noc-cc noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","","fxFlex","50px","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["class","noc-tree-container",4,"ngIf"],[3,"icon"],[1,"noc-no-info"],[1,"text-truncate",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["target","_blank",1,"ml-4",3,"href","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-mf","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-icon","noc-icon-initials"],["fxFlex","",1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-bp","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-cc","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","50px","fxLayout","row","fxLayoutAlign","end center",1,""],["mat-icon-button","","fxFlex","40px","color","primary",1,"noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["connectionOptionMenu","matMenu"],[1,"noc-menu-heading"],["mat-menu-item","",1,"",3,"click"],[1,"noc-tree-container"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],[1,"noc-cell","noc-comments-cell"],["class","noc-cell noc-action-cell",4,"ngIf"],[1,"noc-tree"],[3,"nodes","options","initialized"],["tree",""],["treeNodeWrapperTemplate",""],[1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-action-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"],["class","noc-cell-label","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"w-100-p",3,"options","cam","activity","entity"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[1,"noc-expander-placeholder"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cell-label"],["class","noc-edit-button ml-12",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button","ml-12",3,"cam","activity","entity","category"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),et("click",function(r){return r.stopPropagation()}),H(3,"button",3),et("click",function(){return i.toggleExpand(i.activity)}),ke(4,gat,1,2,"fa-icon",4),ke(5,mat,1,2,"fa-icon",4),G()(),H(6,"div",5)(7,"div",6),et("click",function(r){return r.stopPropagation()}),de(8),G()(),H(9,"div",7),ke(10,_at,2,0,"span",8),ke(11,Cat,4,7,"span",9),G(),H(12,"div",10)(13,"mat-chip",11)(14,"span"),de(15),G()()(),H(16,"div",12),Qe(17,"fa-icon",13),H(18,"span",14),de(19),G()(),H(20,"div",15),Qe(21,"img",16),G(),H(22,"div",17)(23,"div",18),ke(24,vat,6,5,"mat-chip",19),G(),H(25,"div",18),ke(26,bat,6,5,"mat-chip",20),G(),H(27,"div",18),ke(28,xat,6,5,"mat-chip",21),G()(),ke(29,wat,6,3,"div",22),ke(30,Mat,10,1,"div",23),G(),ke(31,Iat,27,4,"div",24),G()),2&e&&(J("ngClass",wo(17,Nat,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",i.activity.displayId),W(4),J("ngIf",!i.activity.expanded),W(1),J("ngIf",i.activity.expanded),W(3),Nt(" ",i.activity.displayNumber," "),W(2),J("ngIf",!i.gpNode),W(1),J("ngIf",i.gpNode),W(4),qo(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),W(2),J("icon",_i(19,Rat)),W(2),qo(i.activity.formattedDate),W(2),J("src","assets/images/activity/coverage-"+(null==i.activity.summary?null:i.activity.summary.coverage)+".png",ao),W(3),J("ngIf",i.activity.mfNode),W(2),J("ngIf",i.activity.bpNode),W(2),J("ngIf",i.activity.ccNode),W(1),J("ngIf",i.activity.hasViolations),W(1),J("ngIf",!i.options.reviewMode),W(1),J("ngIf",i.activity.expanded))},directives:[Oo,So,ds,ac,ko,Fo,Yi,ps,Tl,T2,il,Ir,Ql,nl,oR,oS,fv,km,JS],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .scard-title-summary[_ngcontent-%COMP%]{line-height:12px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;background-color:#fff;font-size:12px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:2px 8px;border-right:#aaa solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;max-width:170px;line-height:12px;padding:4px 8px;font-size:12px!important;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:0;font-size:10px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-coverage[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-coverage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%]{width:95px;min-width:95px;max-width:95px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%]{font-size:10px;color:#555;width:90px;min-width:90px;max-width:90px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%] noc-icon[_ngcontent-%COMP%]{color:#777}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding-left:29px;padding-right:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] mat-chip.noc-chip-activity-type[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px;font-size:8px}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%]{padding:0;height:20px;min-height:20px;max-height:20px;max-width:220px;font-size:10px;border:#bbb solid 1px;background-color:#bbb3}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;min-width:20px;max-width:20px;border-radius:50%;color:#777;font-size:10px;font-weight:700}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%] .noc-count[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%] .noc-count[_ngcontent-%COMP%]{margin-right:5px;font-size:10px;font-weight:400}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;max-width:200px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbb}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-mf[_ngcontent-%COMP%]{border:#81c784 solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-mf[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#c8e6c9}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-bp[_ngcontent-%COMP%]{border:#a1887f solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-bp[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d7ccc8}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-cc[_ngcontent-%COMP%]{border:#ba68c8 solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-cc[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e1bee7}'],data:{animation:sc}}),t})();const Fat=["tree"],Hat=function(){return["fas","caret-right"]};function Vat(t,n){1&t&&Qe(0,"fa-icon",12),2&t&&J("icon",_i(1,Hat))}const Bat=function(){return["fas","caret-down"]};function Gat(t,n){1&t&&Qe(0,"fa-icon",12),2&t&&J("icon",_i(1,Bat))}function Yat(t,n){if(1&t&&(H(0,"div",13)(1,"span",14),de(2),H(3,"a",15),et("click",function(i){return i.stopPropagation()}),de(4),G()()()),2&t){const e=Ae();W(2),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),W(1),Ro("href",null==e.gpNode.term?null:e.gpNode.term.url,ao),W(1),Nt(" ",null==e.gpNode.term?null:e.gpNode.term.id," ")}}const Uat=function(){return["fas","exclamation-triangle"]};function jat(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"mat-chip",17),et("click",function(){Dt(e);const o=Ae();return o.displayActivityErrors(o.activity)}),H(2,"div",18),Qe(3,"fa-icon",12),G(),H(4,"div",19),de(5),G()()()}if(2&t){const e=Ae();W(3),J("icon",_i(2,Uat)),W(2),Nt(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function Wat(t,n){1&t&&(H(0,"div",34),de(1," Relationship "),G())}function qat(t,n){1&t&&Qe(0,"div",35)}function $at(t,n){if(1&t&&(H(0,"div",46),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.label," ")}}const hre=function(t){return{"background-highlight":t}};function Xat(t,n){if(1&t&&(H(0,"mat-tree-node",40)(1,"div",41),Qe(2,"button",42),H(3,"div",43),ke(4,$at,2,1,"div",44),Qe(5,"noc-activity-tree-node",45),G()()()),2&t){const e=n.$implicit,i=Ae(3);J("ngClass",wo(6,hre,i.activeAnnotation===e.uuid)),W(4),J("ngIf",i.options.slimViewer),W(1),J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function Qat(t,n){if(1&t&&(H(0,"div",46),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.label," ")}}function Zat(t,n){if(1&t&&(H(0,"mat-tree-node",47)(1,"div",41)(2,"div",48),ke(3,Qat,2,1,"div",44),Qe(4,"noc-activity-tree-node",45),G()()()),2&t){const e=n.$implicit,i=Ae(3);J("ngClass",wo(6,hre,i.activeAnnotation===e.uuid)),W(3),J("ngIf",i.options.slimViewer),W(1),J("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function Kat(t,n){if(1&t&&(H(0,"mat-tree",36,37),ke(2,Xat,6,8,"mat-tree-node",38),ke(3,Zat,5,8,"mat-tree-node",39),G()),2&t){const e=Ae(2);J("dataSource",e.dataSource)("treeControl",e.treeControl),W(3),J("matTreeNodeDefWhen",e.hasChild)}}function Jat(t,n){if(1&t&&(H(0,"div",20)(1,"div",21),ke(2,Wat,2,0,"div",22),H(3,"div",23),de(4," Term "),G(),H(5,"div",24),de(6," Asp "),G(),H(7,"div",25),de(8," Ext "),G(),H(9,"div",26)(10,"div",27),de(11," Evidence "),G(),H(12,"div",28),de(13," Reference "),G(),H(14,"div",29),de(15," With "),G(),H(16,"div",30),de(17," Assigned By "),G(),H(18,"div",31),de(19," Contributor "),G()(),ke(20,qat,1,0,"div",32),G(),ke(21,Kat,4,3,"mat-tree",33),G()),2&t){const e=Ae();W(2),J("ngIf",!e.options.slimViewer),W(18),J("ngIf",e.noctuaUserService.user&&e.options.showMenu),W(1),J("ngIf",null==e.dataSource?null:e.dataSource.data)}}const est=function(t){return{"noc-selected":t}};let tst=(()=>{class t{constructor(e,i,o,r,a,l){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=o,this.noctuaFormDialogService=r,this.noctuaActivityEntityService=a,this.noctuaActivityFormService=l,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ht.activityType.options,this.options={},this.treeControl=new pS(u=>u.treeLevel,u=>u.expandable),this.hasChild=(u,f)=>f.expandable,this.dataSource=new EM,this.unsubscribeAll=new N}ngOnInit(){this.gpNode=this.activity.gpNode,this.dataSource.data=this.activity.nodes.sort(lee)}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}onTreeLoad(){this.tree.treeModel.expandAll()}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(yr),ue(Co),ue(jc),ue(Pd),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-tree-table"]],viewQuery:function(e,i){if(1&e&&_o(Fat,5),2&e){let o;fi(o=gi())&&(i.tree=o.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},decls:16,vars:12,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title","mr-12"],["class","noc-gp","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-chip-xs",3,"ngClass"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["class","noc-tree-container",4,"ngIf"],[3,"icon"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-gp"],[1,"text-truncate"],["target","_blank",1,"ml-4",3,"href","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],[1,"noc-tree-container"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],["class","noc-cell noc-action-cell",4,"ngIf"],[3,"dataSource","treeControl",4,"ngIf"],[1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-action-cell"],[3,"dataSource","treeControl"],["tree",""],["class","noc-tree-node","matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","16",3,"ngClass",4,"matTreeNodeDef"],["fxLayout","row","class","noc-tree-node","matTreeNodePadding","","matTreeNodePaddingIndent","16",3,"ngClass",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","16",1,"noc-tree-node",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["mat-icon-button","","disabled","",1,"noc-icon-button"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-annotation-row"],["class","noc-cell-label",4,"ngIf"],[1,"w-100-p",3,"options","cam","activity","entity"],[1,"noc-cell-label"],["fxLayout","row","matTreeNodePadding","","matTreeNodePaddingIndent","16",1,"noc-tree-node",3,"ngClass"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2),et("click",function(r){return r.stopPropagation()}),H(3,"button",3),et("click",function(){return i.toggleExpand(i.activity)}),ke(4,Vat,1,2,"fa-icon",4),ke(5,Gat,1,2,"fa-icon",4),G()(),H(6,"div",5),et("click",function(r){return r.stopPropagation()}),de(7),G(),H(8,"div",6),ke(9,Yat,5,3,"div",7),G(),H(10,"mat-chip",8)(11,"span"),de(12),G()(),ke(13,jat,6,3,"div",9),Qe(14,"span",10),G(),ke(15,Jat,22,3,"div",11),G()),2&e&&(J("ngClass",wo(10,est,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",i.activity.displayId),W(4),J("ngIf",!i.activity.expanded),W(1),J("ngIf",i.activity.expanded),W(2),Nt(" ",i.activity.displayNumber," "),W(2),J("ngIf",i.gpNode),W(1),J("ngClass",i.activity.activityType),W(2),qo(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),W(1),J("ngIf",i.activity.hasViolations),W(2),J("ngIf",i.activity.expanded))},directives:[Oo,So,ds,ac,ko,Fo,Yi,ps,T2,mR,pR,hR,_R,fR,JS],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-tree-input.noc-level-1[_ngcontent-%COMP%]{border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line[_ngcontent-%COMP%]{width:100%;border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-t[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-left:rgba(0,0,0,.2) dotted 2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-m[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:500px;line-height:12px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding-left:45px;padding-right:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .mat-tree[_ngcontent-%COMP%]{background:repeating-linear-gradient(to right,transparent,transparent 15px,rgba(121,143,184,.3) 16px,rgba(121,143,184,.3) 16px);background-color:transparent}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;background-color:transparent}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:0;left:55px}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();function nst(t,n){if(1&t&&(H(0,"div",6)(1,"span",7),de(2),G()()),2&t){const e=Ae();W(2),Nt(" ",null==e.cam.loading?null:e.cam.loading.message," ")}}const ist=function(){return["fas","caret-down"]};function ost(t,n){1&t&&Qe(0,"fa-icon",23),2&t&&J("icon",_i(1,ist))}const rst=function(){return["fas","sort-alpha-down"]};function ast(t,n){1&t&&Qe(0,"fa-icon",23),2&t&&J("icon",_i(1,rst))}const sst=function(){return["fas","sort-alpha-down-alt"]};function cst(t,n){1&t&&Qe(0,"fa-icon",23),2&t&&J("icon",_i(1,sst))}function lst(t,n){if(1&t){const e=Ln();H(0,"button",21),et("click",function(){const r=Dt(e).$implicit;return Ae(2).sortBy(r)}),de(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}function dst(t,n){if(1&t){const e=Ln();H(0,"span",24),de(1),H(2,"button",25),et("click",function(){Dt(e);const o=Ae(2);return o.reload(o.cam)}),de(3," Reload "),G()()}if(2&t){const e=Ae(2);W(1),Nt(" ",null==e.cam.rebuildRule?null:e.cam.rebuildRule.message," ")}}const ust=function(){return["fas","exclamation-triangle"]};function hst(t,n){if(1&t){const e=Ln();H(0,"div",26)(1,"mat-chip",27),et("click",function(){return Dt(e),Ae(2).displayCamErrors()}),H(2,"div",28),Qe(3,"fa-icon",23),G(),H(4,"div",29),de(5),G()()()}if(2&t){const e=Ae(2);W(3),J("icon",_i(2,ust)),W(2),Nt(" ",null==e.cam.violations?null:e.cam.violations.length," Errors Found ")}}function pst(t,n){if(1&t){const e=Ln();H(0,"button",30),et("click",function(){return Dt(e),Ae(2).close()}),H(1,"mat-icon"),de(2,"close"),G(),de(3," Close "),G()}}function fst(t,n){if(1&t){const e=Ln();H(0,"div",6)(1,"span",8)(2,"strong"),de(3),G(),de(4," Activities "),G(),H(5,"span",9)(6,"strong"),de(7,"Sort By"),G(),de(8," : "),G(),H(9,"button",10),de(10),ke(11,ost,1,2,"fa-icon",11),G(),H(12,"button",12),et("click",function(){return Dt(e),Ae().toggleSortDirection()}),ke(13,ast,1,2,"fa-icon",11),ke(14,cst,1,2,"fa-icon",11),G(),H(15,"mat-menu",13,14),ke(17,lst,2,1,"button",15),G(),ke(18,dst,4,1,"span",16),ke(19,hst,6,3,"div",17),Qe(20,"span",18),H(21,"button",19)(22,"mat-icon"),de(23,"more_vert"),G()(),H(24,"mat-menu",13,20)(26,"button",21),et("click",function(){return Dt(e),Ae().expandAll(!0)}),de(27," Expand All "),G(),H(28,"button",21),et("click",function(){return Dt(e),Ae().expandAll(!1)}),de(29," Collapse All "),G()(),ke(30,pst,4,0,"button",22),G()}if(2&t){const e=Di(16),i=Di(25),o=Ae();W(3),qo(o.cam.activities.length),W(6),J("matMenuTriggerFor",e),W(1),Nt(" ",o.cam.sortBy.label," "),W(1),J("ngIf",o.cam.expanded),W(2),J("ngIf",o.cam.sortBy.ascending),W(1),J("ngIf",!o.cam.sortBy.ascending),W(3),J("ngForOf",o.noctuaFormConfigService.activitySortField.options),W(1),J("ngIf",(null==o.cam.rebuildRule?null:o.cam.rebuildRule.signal)!==o.CamRebuildSignal.NONE),W(1),J("ngIf",(null==o.cam.violations?null:o.cam.violations.length)>0),W(2),J("matMenuTriggerFor",i),W(9),J("ngIf",o.panelDrawer)}}function gst(t,n){if(1&t&&Qe(0,"noc-activity-table",33),2&t){const e=Ae().$implicit,i=Ae();J("options",i.options)("cam",i.cam)("activity",e)}}function mst(t,n){if(1&t&&Qe(0,"noc-activity-tree",33),2&t){const e=Ae().$implicit,i=Ae();J("options",i.options)("cam",i.cam)("activity",e)}}function _st(t,n){if(1&t&&Qe(0,"noc-activity-tree-table",33),2&t){const e=Ae().$implicit,i=Ae();J("options",i.options)("cam",i.cam)("activity",e)}}const Cst=function(t){return{"noc-selected":t}};function vst(t,n){if(1&t&&(H(0,"div",31),ke(1,gst,1,3,"noc-activity-table",32),ke(2,mst,1,3,"noc-activity-tree",32),ke(3,_st,1,3,"noc-activity-tree-table",32),G()),2&t){const e=n.$implicit,i=Ae();J("ngClass",wo(5,Cst,e.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Un("id",e.displayId),W(1),J("ngIf",i.options.displayType===i.ActivityDisplayType.TABLE),W(1),J("ngIf",i.options.displayType===i.ActivityDisplayType.TREE),W(1),J("ngIf",i.options.displayType===i.ActivityDisplayType.TREE_TABLE)}}function bst(t,n){1&t&&(H(0,"div",34),de(1," no activities present. "),G())}function xst(t,n){if(1&t&&(H(0,"div",35),Qe(1,"mat-progress-spinner",36),G()),2&t){const e=Ae();W(1),J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}let eP=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.camService=e,this._bbopGraphService=i,this.noctuaCommonMenuService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.confirmDialogService=l,this.noctuaActivityConnectorService=u,this.noctuaActivityFormService=f,this.noctuaFormDialogService=M,this.ActivityDisplayType=k2,this.ActivityType=so,this.CamRebuildSignal=p3,this.searchCriteria={},this.searchFormData=[],this.activityTypeOptions=Ht.activityType.options,this.options={},this.searchResults=[],this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this._unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}addActivity(){this.openForm(location)}openForm(e){this.noctuaActivityFormService.mfLocation=e,this.noctuaActivityFormService.initializeForm()}reload(e){this.camService.reload(e)}search(){}expandAll(e){this.cam.expandAllActivities(e)}toggleExpand(e){e.expanded=!e.expanded}openActivityConnector(e){this.camService.onCamChanged.next(this.cam),this.camService.activity=e,this.noctuaActivityConnectorService.subjectActivity=e,this.noctuaActivityConnectorService.onActivityChanged.next(e)}sortBy(e){this.cam.updateSortBy(e.id,e.label)}toggleSortDirection(){this.cam.sortBy.ascending=!this.cam.sortBy.ascending}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}resetModel(e){this.camService.resetModel(e)}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}close(){this.panelDrawer&&this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(Yc),ue(ul),ue(yr),ue(Co),ue(dd),ue(IO),ue(Ts),ue(jc))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-table"]],inputs:{panelDrawer:"panelDrawer",cam:"cam",options:"options"},decls:7,vars:5,consts:[[1,"w-100-p","p-0","noc-cam-table"],["class","noc-summary-bar","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"w-100-p","noc-cam-table-body"],["class","w-100-p",3,"ngClass",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["class","noc-loading-container","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-cam-progress-message"],[1,"mr-12"],[1,"mr-4"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-half-button","noc-r","noc-xs",3,"matMenuTriggerFor"],[3,"icon",4,"ngIf"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-icon","noc-half-button","noc-l","noc-xs",3,"click"],[1,"noc-dropdown-menu"],["sortByOptionMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["class","noc-cam-rebuild",4,"ngIf"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["mat-icon-button","","fxFlex","40px","color","primary",1,"",3,"matMenuTriggerFor"],["activityOptionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-stroked-button","","class","noc-rounded-button noc-sm","color","primary","aria-label","Close dialog",3,"click",4,"ngIf"],[3,"icon"],[1,"noc-cam-rebuild"],["mat-button","","color","primary",1,"",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"w-100-p",3,"ngClass"],["class","noc-activities-table-body","fxLayout","row","fxLayoutAlign","start center",3,"options","cam","activity",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activities-table-body",3,"options","cam","activity"],[1,"noc-no-info"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-loading-container"],["diameter","70",1,"example-margin",3,"color","mode"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,nst,3,1,"div",1),ke(2,fst,31,11,"div",1),H(3,"div",2),ke(4,vst,4,7,"div",3),ke(5,bst,2,0,"div",4),ke(6,xst,2,2,"div",5),G()()),2&e&&(W(1),J("ngIf",null==i.cam.loading?null:i.cam.loading.status),W(1),J("ngIf",!(null!=i.cam.loading&&i.cam.loading.status)),W(2),J("ngForOf",i.cam.activities),W(1),J("ngIf",!(null!=i.cam.loading&&i.cam.loading.status)&&0===i.cam.activities.length),W(1),J("ngIf",null==i.cam?null:i.cam.loading.status))},directives:[Yi,Oo,So,Fo,il,ps,Ql,$o,nl,T2,ko,Ir,ds,ac,pat,zat,tst,Qp],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#eb9797 solid 1px;background-color:#eb979733}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#eb9797}[_nghost-%COMP%] .noc-cam-rebuild[_ngcontent-%COMP%]{color:#956339}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;padding-right:10px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:250px}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-cam-table-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-cam-table-body[_ngcontent-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;overflow:hidden;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#f2f2f2;font-size:12px;color:#555;overflow:hidden;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-summary-bar-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]{font-size:10px;border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-action-button.noc-icon[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-action-bar[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-selected[_ngcontent-%COMP%]{border:#768bb7 solid 5px;background-color:#fff}[_nghost-%COMP%] .noc-selected[_ngcontent-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]:before{left:37px;width:5px;background-color:#97dcfc;content:""}[_nghost-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]{position:relative;background-color:#fff}[_nghost-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]:before{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%;max-height:100%;padding-bottom:300px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .noc-cams-table-header[_ngcontent-%COMP%]{padding:0;margin-bottom:5px;height:50px;min-height:50px;max-height:50px;position:sticky;position:-webkit-sticky;top:0;z-index:1000;background-color:#f7f7f7}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .cam[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:[na("activityExpand",[cr("collapsed",ti({height:"0px",minHeight:"0",display:"none"})),cr("expanded",ti({height:"*"})),Do("expanded <=> collapsed",Mo("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();const yst=function(){return["fas","info-circle"]},wst=function(){return["fas","bars"]};function Mst(t,n){if(1&t){const e=Ln();H(0,"div",16)(1,"div",17)(2,"div",18),de(3),G(),Qe(4,"span",4),H(5,"div",19),et("click",function(){const r=Dt(e).$implicit;return Ae(3).loadTerm(r)}),Qe(6,"fa-icon",20),G(),H(7,"button",21),Qe(8,"fa-icon",20),G(),H(9,"mat-menu",22,23)(11,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae(3).openSearchReplace(r)}),de(12," Find/Replace in Model "),G(),H(13,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae(3).searchModels(r)}),de(14," Search Models "),G(),H(15,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae(3).searchModelsByContributor(r)}),de(16," Search My Models "),G()()()()}if(2&t){const e=n.$implicit,i=Di(10);W(3),Nt(" Replaced By ",e," "),W(3),J("icon",_i(4,yst)),W(1),J("matMenuTriggerFor",i),W(1),J("icon",_i(5,wst))}}function Ost(t,n){if(1&t&&(H(0,"div",10),ke(1,Mst,17,6,"div",15),G()),2&t){const e=Ae(2);W(1),J("ngForOf",e.termDetail.replacedBy)}}function Sst(t,n){if(1&t&&(H(0,"div",13)(1,"div",9),de(2," Term Is Obsolete "),G(),ke(3,Ost,2,1,"div",14),G()),2&t){const e=Ae();W(3),J("ngIf",e.termDetail.replacedBy)}}function Pst(t,n){if(1&t){const e=Ln();H(0,"div"),de(1),H(2,"small"),de(3),G(),H(4,"a",25),et("click",function(){const r=Dt(e).$implicit;return Ae().loadTerm(r.id)}),de(5," View "),G()()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label,""),W(2),Nt("(",e.id,")")}}let pre=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.noctuaLookupService=e,this.noctuaCommonMenuService=i,this.camService=o,this.noctuaSearchDialogService=r,this.noctuaUserService=a,this.noctuaReviewSearchService=l,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=M,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.termDetail={},this._unsubscribeAll=new N}ngOnInit(){this.noctuaSearchService.onDetailTermChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.loadTerm(e.term.id)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadTerm(e){this.noctuaLookupService.getTermDetail(e).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{this.termDetail=i})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[{id:e}],this.noctuaReviewSearchService.updateSearch()}openSearchReplace(e){this.noctuaLookupService.getTermDetail(this.termDetail.id).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.openLeftDrawer())}),this.noctuaLookupService.getTermDetail(e).pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||this.noctuaReviewSearchService.onCamReplaceTermSearch.next(i)})}searchModels(e){const i=new cd;i.terms=[e.term];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}searchModelsByContributor(e){const i=new cd;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const o=`${Er.noctuaLandingPageUrl}?${i.build()}`;window.open(o,"_blank")}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(Sd),ue(ul),ue(Zr),ue(U0),ue(yr),ue(k1),ue(pl),ue(ld),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-term-detail"]],inputs:{panelDrawer:"panelDrawer"},decls:30,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-item-details"],["class","noc-section-row alert alert-danger",4,"ngIf"],[1,"noc-section-row"],[1,"noc-title"],[1,"noc-description"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],[1,"noc-section-row","alert","alert-danger"],["class","noc-description",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row"],[1,""],["fxLayout","row","fxLayoutAlign","center center",1,"noc-icon",3,"click"],[3,"icon"],["mat-icon-button","",1,"noc-icon-button",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["optionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),de(4," Term Details"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," CLOSE "),G()()(),H(10,"div",6),ke(11,Sst,4,1,"div",7),H(12,"div",8)(13,"div",9),de(14," Term "),G(),H(15,"div",10),de(16),H(17,"small"),de(18),G()()(),H(19,"div",8)(20,"div",9),de(21," Definition "),G(),H(22,"div",10),de(23),G()(),H(24,"div",8)(25,"div",9),de(26," Is A Type Of "),G(),H(27,"div",10),ke(28,Pst,6,2,"div",11),G()()(),Qe(29,"div",12),G()),2&e&&(W(11),J("ngIf",i.termDetail.isObsolete),W(5),Nt(" ",i.termDetail.label," "),W(2),Nt("(",i.termDetail.id,")"),W(5),Nt(" ",i.termDetail.description," "),W(5),J("ngForOf",i.termDetail.rootTypes))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,$o,ps,il,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fbf9de;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%]{padding:12px 8px;background-color:#faf9e9}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:transparent;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;z-index:10001}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-header-title[_ngcontent-%COMP%]{max-width:200px;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:10px 8px}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:transparent;border-top:1px solid #ccc;z-index:10002;box-shadow:none}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%]{padding:10px 0}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-bottom:8px;font-weight:700;font-size:14px;text-transform:uppercase}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();const Tst=["leftDrawer"],Est=["rightDrawer"];function Ast(t,n){1&t&&(H(0,"div",27),de(1," Not Logged In: You can only view existing annotations "),G())}function Lst(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"small",28),de(2,"Not Saved"),G(),H(3,"button",29),et("click",function(){Dt(e);const o=Ae();return o.resetCam(o.cam)}),de(4," Reset "),G(),H(5,"button",30),et("click",function(){Dt(e);const o=Ae();return o.storeCam(o.cam)}),de(6," Save "),G()()}}function Dst(t,n){1&t&&Qe(0,"noc-cam-form",31),2&t&&(Ae(),J("panelDrawer",Di(28)))}function kst(t,n){1&t&&Qe(0,"noc-copy-model",32),2&t&&(Ae(),J("panelDrawer",Di(28))("panelSide","left"))}function Ist(t,n){1&t&&Qe(0,"noc-activity-form",31),2&t&&(Ae(),J("panelDrawer",Di(28)))}function Nst(t,n){if(1&t&&Qe(0,"noc-cam-table",14),2&t){const e=Ae(2);J("cam",e.cam)("options",e.tableOptions)}}function Rst(t,n){if(1&t&&(H(0,"div",33),ke(1,Nst,1,2,"noc-cam-table",34),G()),2&t){const e=Ae();J("ngSwitch",e.noctuaCommonMenuService.selectedMiddlePanel),W(1),J("ngSwitchCase",e.MiddlePanel.camTable)}}function zst(t,n){1&t&&Qe(0,"noc-term-detail",31),2&t&&(Ae(),J("panelDrawer",Di(40)))}const q_=function(t){return{"noc-active":t}},Fst=function(){return["fas","plus"]},Hst=function(){return["fas","info-circle"]},Vst=function(){return["fas","search"]},Bst=function(){return["fas","list"]},Gst=function(){return["fas","chart-bar"]},Yst=function(){return["fas","clone"]},Ust=function(){return{right:!0}};let jst=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this.route=e,this.camService=i,this._bbopGraphService=o,this.noctuaDataService=r,this.noctuaReviewSearchService=a,this.noctuaSearchDialogService=l,this.noctuaUserService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=M,this.noctuaCommonMenuService=T,this.ActivityType=so,this.LeftPanel=Uc,this.MiddlePanel=d4,this.RightPanel=um,this.camToolbarOptions={showCreateButton:!0},this.searchResults=[],this.modelId="",this.resizeStyle={},this.noctuaFormConfig=Ht,this.tableOptions={displayType:k2.TREE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,editableRelation:!0,showMenu:!0},this._unsubscribeAll=new N,this.route.queryParams.pipe(Yn(this._unsubscribeAll)).subscribe(U=>{this.modelId=U.model_id||null,this.noctuaUserService.getUser(U.barista_token||null)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(U=>{void 0!==U&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.loadCam(this.modelId))})}ngOnInit(){const e=this;this.noctuaCommonMenuService.selectedMiddlePanel=d4.camTable,e.noctuaCommonMenuService.setLeftDrawer(e.leftDrawer),e.noctuaCommonMenuService.setRightDrawer(e.rightDrawer),this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||i.id!==e.cam.id||(this.cam=i,i.activities.length>0&&(this.camService.addCamEdit(this.cam),this.camService.cams=[i]))}),this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.summary=i)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}resizeValidate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<50||e.rectangle.height<50))}onResizeEnd(e){this.resizeStyle={width:`${e.rectangle.width}px`}}loadCam(e){this.cam=this.camService.getCam(e)}openSearch(){this.noctuaCommonMenuService.selectLeftPanel(Uc.findReplace),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openTermsSummary(){this.noctuaCommonMenuService.selectLeftPanel(Uc.camTermsSummary),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCamStats(){this.noctuaCommonMenuService.selectLeftPanel(Uc.camStats),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(Uc.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(Uc.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(Uc.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}resetCam(e){const i=this,o=i.camService.reviewCamChanges(e);i.noctuaSearchDialogService.openCamReviewChangesDialog(l=>{l&&(e.loading=new Md(!0,"Resetting Model ..."),i.camService.reloadCam(e,Cu.RESET),i.noctuaReviewSearchService.onClearForm.next(!0),i.noctuaReviewSearchService.clear(),i.cam.clearHighlight())},o,{title:"Discard Unsaved Changes",message:`All your changes will be discarded for model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"OK"})}storeCam(e){const i=this,o=i.camService.reviewCamChanges(e);i.noctuaSearchDialogService.openCamReviewChangesDialog(l=>{l&&(e.loading=new Md(!0,"Saving Model ..."),i.camService.reloadCam(e,Cu.STORE),i.noctuaReviewSearchService.onClearForm.next(!0),i.noctuaReviewSearchService.clear(),i.cam.clearHighlight())},o,{title:"Save Changes?",message:`All your changes will be saved for model. Model Name:"${e.title}"`,cancelLabel:"Go Back",confirmLabel:"Submit"})}}return t.\u0275fac=function(e){return new(e||t)(ue(lu),ue(Zr),ue(Yc),ue(pm),ue(k1),ue(U0),ue(yr),ue(Co),ue(Ts),ue(ul))},t.\u0275cmp=vn({type:t,selectors:[["app-noctua-form"]],viewQuery:function(e,i){if(1&e&&(_o(Tst,7),_o(Est,7)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first)}},decls:43,vars:62,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","color","primary","matTooltip","Add New Activity/Annotation",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","matMenuTriggerFor"],[3,"icon"],["xPosition","before"],["createOptionsLeftMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","","matTooltip","Model Details",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Find and replace",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","terms summary",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","GO CAM Statistics",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Make a copy of this model",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-not-loggedin","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"cam","options"],["fxLayout","row","fxLayoutAlign","start start","autosize","",1,"noc-drawer-container","w-100-p","h-100-p"],["mode","side","position","start",1,"noc-left-drawer"],["leftDrawer",""],["mwlResizeHandle","",1,"resize-handle-right",3,"resizeEdges"],[1,"h-100-p",3,"ngSwitch"],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],[3,"panelDrawer","hidden"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p","h-100-p"],["class","w-100-p h-100-p","noctuaPerfectScrollbar","",3,"ngSwitch",4,"ngIf"],["mode","side","position","end",1,"noc-right-drawer"],["rightDrawer",""],["fxLayout","row","fxLayoutAlign","center center",1,"noc-not-loggedin"],[1,"mr-16"],["mat-raised-button","","fxFlex","100px","color","warn",1,"noc-rounded-button","noc-half-button","noc-r","noc-sm",3,"click"],["mat-raised-button","","fxFlex","100px","color","primary",1,"noc-rounded-button","noc-half-button","noc-l","noc-sm","mr-8","p-0",3,"click"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"],["noctuaPerfectScrollbar","",1,"w-100-p","h-100-p",3,"ngSwitch"],[3,"cam","options",4,"ngSwitchCase"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1)(2,"button",2),Qe(3,"fa-icon",3),G(),H(4,"mat-menu",4,5)(6,"a",6),et("click",function(){return i.openActivityForm(i.ActivityType.default)}),de(7," Create Activity "),G(),H(8,"a",6),et("click",function(){return i.openActivityForm(i.ActivityType.bpOnly)}),de(9," Create New BP Annotation "),G(),H(10,"a",6),et("click",function(){return i.openActivityForm(i.ActivityType.ccOnly)}),de(11," Create New CC Annotation "),G()(),H(12,"button",7),et("click",function(){return i.openCamForm()}),Qe(13,"fa-icon",3),G(),H(14,"button",8),et("click",function(){return i.openSearch()}),Qe(15,"fa-icon",3),G(),H(16,"button",9),et("click",function(){return i.openTermsSummary()}),Qe(17,"fa-icon",3),G(),H(18,"button",10),et("click",function(){return i.openCamStats()}),Qe(19,"fa-icon",3),G(),H(20,"button",11),et("click",function(){return i.openCopyModel()}),Qe(21,"fa-icon",3),G()(),H(22,"div",12),ke(23,Ast,2,0,"div",13),ke(24,Lst,7,0,"div",13),Qe(25,"noc-cam-toolbar",14),H(26,"mat-drawer-container",15)(27,"mat-drawer",16,17),Qe(29,"div",18),H(30,"div",19),ke(31,Dst,1,1,"noc-cam-form",20),ke(32,kst,1,2,"noc-copy-model",21),ke(33,Ist,1,1,"noc-activity-form",20),Qe(34,"noc-find-replace",22)(35,"noc-cam-terms",22)(36,"noc-cam-stats",22),G()(),H(37,"mat-drawer-content",23),ke(38,Rst,2,2,"div",24),G(),H(39,"mat-drawer",25,26)(41,"div",19),ke(42,zst,1,1,"noc-term-detail",20),G()()()()()),2&e){const o=Di(5),r=Di(28);W(2),J("ngClass",wo(43,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.activityForm))("matTooltipPosition","above")("matTooltipShowDelay",1500)("matMenuTriggerFor",o),W(1),J("icon",_i(45,Fst)),W(9),J("ngClass",wo(46,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camForm))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(48,Hst)),W(1),J("ngClass",wo(49,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.findReplace))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(51,Vst)),W(1),J("ngClass",wo(52,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camTermsSummary))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(54,Bst)),W(1),J("ngClass",wo(55,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camStats))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(57,Gst)),W(1),J("ngClass",wo(58,q_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.copyModel))("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(60,Yst)),W(2),J("ngIf",!i.noctuaUserService.user),W(1),J("ngIf",i.noctuaUserService.user&&(null==i.cam?null:i.cam.modified)&&(null==i.cam?null:i.cam.activities.length)>0),W(1),J("cam",i.cam)("options",i.camToolbarOptions),W(4),J("resizeEdges",_i(61,Ust)),W(1),J("ngSwitch",i.noctuaCommonMenuService.selectedLeftPanel),W(1),J("ngSwitchCase",i.LeftPanel.camForm),W(1),J("ngSwitchCase",i.LeftPanel.copyModel),W(1),J("ngSwitchCase",i.LeftPanel.activityForm),W(1),J("panelDrawer",r)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.findReplace),W(1),J("panelDrawer",r)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.camTermsSummary),W(1),J("panelDrawer",r)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.camStats),W(2),J("ngIf",i.cam),W(3),J("ngSwitch",i.noctuaCommonMenuService.selectedRightPanel),W(1),J("ngSwitchCase",i.RightPanel.termDetail)}},directives:[Oo,So,Fo,Tl,ds,ac,il,ps,Ql,nl,Yi,ko,rR,zf,Rf,Jte,bd,iu,sS,mS,wR,Mne,One,Uot,A0,ts,eP,pre],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;font-size:20px;color:#3b599880}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:sc}}),t})();function Wst(t,n){if(1&t&&(H(0,"div",31),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function qst(t,n){if(1&t&&(H(0,"div",28)(1,"mat-radio-button",29),de(2),G(),ke(3,Wst,2,1,"div",30),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.relationship?null:i.connectorActivity.rule.relationship.id))("value",e),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function $st(t,n){if(1&t&&(H(0,"div",28)(1,"mat-radio-button",35),de(2),G()()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.effectDirection?null:i.connectorActivity.rule.effectDirection.id)),W(1),Nt(" ",e.label," ")}}function Xst(t,n){if(1&t&&(H(0,"div",15)(1,"div",16)(2,"p"),de(3,"Effect Direction"),G()(),H(4,"mat-radio-group",32),ke(5,$st,3,3,"div",18),G(),H(6,"div",33)(7,"div",34),de(8," The mechanism regulation should be known, so it should be possible to pick the direction of the regulation. "),G()()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.effectDirection.options)}}function Qst(t,n){if(1&t&&(H(0,"div",31),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function Zst(t,n){if(1&t&&(H(0,"div",28)(1,"mat-radio-button",35),de(2),G(),ke(3,Qst,2,1,"div",30),G()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.directness?null:i.connectorActivity.rule.directness.id)),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function Kst(t,n){if(1&t&&(H(0,"div",15)(1,"div",16)(2,"p"),de(3,"Directness "),G()(),H(4,"mat-radio-group",36),ke(5,Zst,4,4,"div",18),G()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.directness.options)}}function Jst(t,n){if(1&t&&(H(0,"mat-option",49)(1,"div",50)(2,"div",51),de(3),G(),Qe(4,"span",3),H(5,"div",52),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function ect(t,n){if(1&t&&(H(0,"div",37)(1,"div",38)(2,"div",39)(3,"mat-form-field",40)(4,"mat-label"),de(5,"Evidence"),G(),Qe(6,"textarea",41),H(7,"mat-autocomplete",42,43),ke(9,Jst,7,3,"mat-option",44),G()()(),H(10,"div",45)(11,"mat-form-field",40)(12,"mat-label"),de(13,"Reference"),G(),Qe(14,"textarea",46),G()(),H(15,"div",47)(16,"mat-form-field",40)(17,"mat-label"),de(18,"With"),G(),Qe(19,"textarea",48),G()(),Qe(20,"span",3),G()()),2&t){const e=n.index,i=Di(8),o=Ae(2);W(1),J("formGroupName",e),W(5),J("matAutocomplete",i),W(1),J("displayWith",o.evidenceDisplayFn),W(2),J("ngForOf",null==o.connectorActivity||null==o.connectorActivity.predicate?null:o.connectorActivity.predicate.evidenceLookup.results)}}function tct(t,n){if(1&t&&(H(0,"div",10)(1,"div",11)(2,"div",12),Qe(3,"noc-graph-preview",13),G(),H(4,"div",14)(5,"div",15)(6,"div",16)(7,"p"),de(8,"Relationship"),G()(),H(9,"mat-radio-group",17),ke(10,qst,4,4,"div",18),G()(),ke(11,Xst,9,1,"div",19),ke(12,Kst,6,1,"div",19),G(),H(13,"div",20)(14,"div",21),de(15," Suggested Causal Relation "),G()(),H(16,"div",22)(17,"span",23),de(18),G()(),H(19,"div",24)(20,"div",21),de(21," Evidence "),G()(),H(22,"div",25)(23,"div",26),ke(24,ect,21,4,"div",27),G()()()()),2&t){const e=Ae();let i;W(3),J("nodes",null==e.connectorActivity?null:e.connectorActivity.graphPreview.nodes)("edges",null==e.connectorActivity?null:e.connectorActivity.graphPreview.edges),W(7),J("ngForOf",e.relationshipOptions),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.effectDirection),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.directness),W(6),Nt(" ",null==e.connectorActivity||null==e.connectorActivity.predicate.edge?null:e.connectorActivity.predicate.edge.label," "),W(6),J("ngForOf",null==(i=e.connectorFormGroup.get("evidenceFormArray"))?null:i.controls)}}function nct(t,n){if(1&t){const e=Ln();H(0,"button",53),et("click",function(){return Dt(e),Ae().checkErrors()}),de(1,' Why is the "Save" button disabled? '),G()}}let ict=(()=>{class t{constructor(e,i,o,r,a,l){this.confirmDialogService=e,this.noctuaActivityConnectorService=i,this.noctuaUserService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.ConnectorType=Od,this.connectorState=g3,this.searchCriteria={},this._unsubscribeAll=new N}ngOnInit(){this.connectorFormSub=this.noctuaActivityConnectorService.connectorFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.connectorFormGroup=e,this.connectorActivity=this.noctuaActivityConnectorService.connectorActivity,this.relationshipOptions=this.noctuaFormConfigService[this.connectorActivity.connectorType+"Relationship"].options)})}openActivityConnector(e){this.noctuaActivityConnectorService.initializeForm(this.noctuaActivityConnectorService.objectActivity.id,e.id)}save(){const e=this;this.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully created.","OK"),this.noctuaActivityConnectorService.initializeForm(e.noctuaActivityConnectorService.subjectActivity.id,e.noctuaActivityConnectorService.objectActivity.id),this.closeDialog&&this.closeDialog()})}editActivity(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully updated.","OK")})})}deleteConnectorEdge(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.deleteConnectorEdge(this.connectorActivity).then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully deleted.","OK")})})}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(dd),ue(IO),ue(yr),ue(jc),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-connector"]],inputs:{panelDrawer:"panelDrawer",closeDialog:"closeDialog"},decls:16,vars:4,consts:[["name","connectorFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-connector-form",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["mat-button","","color","warn","class","noc-rounded-button noc-sm",3,"click",4,"ngIf"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"disabled","click"],[1,"noc-connector-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","w-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-section-body","w-100-p","p-0"],[1,"noc-graph-preview",3,"nodes","edges"],[1,"noc-form-section","p-0","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"px-8","noc-group-row"],[1,"noc-title"],["fxFlex","","formControlName","relationship","fxLayout","column","fxLayoutAlign","start start"],["class","noc-radio-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","px-8 noc-group-row","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","noc-bt"],[1,"noc-section-heading"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-note","mb-4"],[1,"noc-description"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-0"],["fxLayout","column",1,"px-12","noc-group-row"],["formArrayName","evidenceFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-radio-row"],[1,"noc-radio-button-rounded","noc-label",3,"checked","value"],["fxFlex","","class","noc-hint",4,"ngIf"],["fxFlex","",1,"noc-hint"],["formControlName","effectDirection","fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","column","fxLayoutAlign","center start"],[1,"noc-hint","noc-sm"],[1,"noc-radio-button-rounded","noc-label",3,"value","checked"],["fxFlex","","formControlName","directness","fxLayout","column","fxLayoutAlign","start start"],["formArrayName","evidenceFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"formGroupName"],["fxFlex","55",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","25",1,"p-4"],["matInput","","formControlName","reference","rows","2"],["fxFlex","","fxFlex","20",1,"p-4"],["matInput","","formControlName","with","rows","2"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"],["mat-button","","color","warn",1,"noc-rounded-button","noc-sm",3,"click"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Causal Relation Form"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),ke(10,tct,25,7,"div",6),G(),H(11,"div",7),ke(12,nct,2,0,"button",8),Qe(13,"span",3),H(14,"button",9),et("click",function(){return i.save()}),de(15,"Save"),G()()()),2&e&&(J("formGroup",i.connectorFormGroup),W(10),J("ngIf",i.connectorFormGroup),W(2),J("ngIf",!i.connectorFormGroup.valid),W(2),J("disabled",!(null!=i.connectorActivity&&null!=i.connectorActivity.predicate.edge&&i.connectorActivity.predicate.edge.id)))},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,Yi,gne,gM,Pl,Xl,$o,mM,k0,Yf,id,yd,E2,ed,kh,I0,J1],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-radio-button-rounded[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .noc-connector-form[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:10px 0;border-bottom:rgba(59,89,152,.6) solid 1px;color:#000;font-size:12px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]{width:100%;padding:5px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-border-0[_ngcontent-%COMP%]{border:none!important}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{width:170px;min-width:170px;max-width:170px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint[_ngcontent-%COMP%]{margin-left:12px;font-size:12px;max-width:300px;color:#676767;font-style:italic}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint.noc-sm[_ngcontent-%COMP%]{max-width:260px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%]{margin-bottom:12px;width:100%;padding:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;background-color:#fff;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-bottom:12px;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-graph-preview[_ngcontent-%COMP%]{height:100px;width:100%}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%]{width:100%;background-color:#dfe3ee99}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%]{padding:20px 0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{padding-left:10px;font-size:12px}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%]{color:#bbb}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ccc}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:200px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{padding:4px;height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:14px;color:#777}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding:4px;font-size:12px;width:100%;border-bottom:#bbb solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%]{height:180px;min-height:180px;max-height:180px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:8px;width:180px;min-width:180px;max-width:180px;height:110px;min-height:110px;max-height:110px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:initial;background-color:#fff}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding:4px;height:55px;min-height:55px;max-height:55px;font-size:10px;text-align:center;border-bottom:2px solid #2e6f9a}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{color:#2e6f9a;margin-top:40px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%]{height:120px;min-height:120px;max-height:120px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:4px;width:150px;min-width:150px;max-width:150px;height:100px;min-height:100px;max-height:100px;font-size:10px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{height:50px;min-height:50px;max-height:50px;border-bottom:1px solid #2e6f9a}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{margin-top:35px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-row[_ngcontent-%COMP%]{height:150px;min-height:150px;max-height:150px;background-color:#f5f5f5;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}']}),t})(),fre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,EL,D6,du,L0,LM]]}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,xd,Uf,$p,D1]]}),t})(),$_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[va,xd,Uf,$p,D1,rS,Ez]]}),t})();const oct=[{path:"f",component:jst}];let M4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({providers:[jc],imports:[[D1,rS,va,xd.forChild(oct),fre,Ez,$_,rre,X9,du,Z9,K9,nC,D6,jg,L0,J9,k6,cC,lC,dC,Kd,Ff,F6,fC,R6,IWe,nje]]}),t})();!function Mc(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>n.map(rs),i.pipeDefs=()=>e.map($s)}(Cne,[Yi,wR,ict],[]),C(23652);var Nd=C(77795),As=C(73148);const{round:rct,floor:act,PI:gre}=Math,sct={linear:function(t,n,e){return(e-t[0])/(t[1]-t[0])*(n[1]-n[0])+n[0]||0}},K0=function(t){return t%360+(t<0?360:0)},Im=function(t,n){return n*rct(t/n)},tP=function(t){return 180*t/gre%360},H2=function(t,n){return(t=(n=n||!1)?t:t%360)*gre/180},Az=function(t,n){if(void 0===n)n=void 0===t?1:t,t=0;else if(ni||new Ho(t,e).length()>i)},divideAt:function(t){var n=this.pointAt(t);return[new Ho(this.start,n),new Ho(n,this.end)]},divideAtLength:function(t){var n=this.pointAtLength(t);return[new Ho(this.start,n),new Ho(n,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,n){if(t&&t.intersectionWithLine){var e=t.intersectionWithLine(this,n);return e&&t instanceof Ho&&(e=e[0]),e}return null},intersectionWithLine:function(t){var n=new wn(this.end.x-this.start.x,this.end.y-this.start.y),e=new wn(t.end.x-t.start.x,t.end.y-t.start.y),i=n.x*e.y-n.y*e.x,o=new wn(t.start.x-this.start.x,t.start.y-this.start.y),r=o.x*e.y-o.y*e.x,a=o.x*n.y-o.y*n.x;if(0===i||r*i<0||a*i<0)return null;if(i>0){if(r>i||a>i)return null}else if(r=1?e.clone():n.lerp(e,t)},pointAtLength:function(t){var n=this.start,e=this.end,i=!0;t<0&&(i=!1,t=-t);var o=this.length();return t>=o?i?e.clone():n.clone():this.pointAt((i?t:o-t)/o)},pointOffset:function(t){t=new wn(t);var n=this.start,e=this.end;return((e.x-n.x)*(t.y-n.y)-(e.y-n.y)*(t.x-n.x))/this.length()},rotate:function(t,n){return this.start.rotate(t,n),this.end.rotate(t,n),this},round:function(t){return this.start.round(t),this.end.round(t),this},scale:function(t,n,e){return this.start.scale(t,n,e),this.end.scale(t,n,e),this},setLength:function(t){var n=this.length();if(!n)return this;var e=t/n;return this.scale(e,e,this.start)},squaredLength:function(){return Dz(this.start,this.end)},tangentAt:function(t){if(!this.isDifferentiable())return null;var n=this.start,e=this.end,i=this.pointAt(t),o=new Ho(n,e);return o.translate(i.x-n.x,i.y-n.y),o},tangentAtLength:function(t){if(!this.isDifferentiable())return null;var n=this.start,e=this.end,i=this.pointAtLength(t),o=new Ho(n,e);return o.translate(i.x-n.x,i.y-n.y),o},toString:function(){return this.start.toString()+" "+this.end.toString()},serialize:function(){return this.start.serialize()+" "+this.end.serialize()},translate:function(t,n){return this.start.translate(t,n),this.end.translate(t,n),this},vector:function(){return new wn(this.end.x-this.start.x,this.end.y-this.start.y)}},Ho.prototype.intersection=Ho.prototype.intersect;const Nm=Ho,{sqrt:wre,round:oP,pow:uct}=Math,d2=function(t,n,e){return this instanceof d2?t instanceof d2?new d2(new wn(t.x,t.y),t.a,t.b):(t=new wn(t),this.x=t.x,this.y=t.y,this.a=n,void(this.b=e)):new d2(t,n,e)};d2.fromRect=function(t){return t=new Po(t),new d2(t.center(),t.width/2,t.height/2)},d2.prototype={type:Aa.Ellipse,bbox:function(){return new Po(this.x-this.a,this.y-this.b,2*this.a,2*this.b)},center:function(){return new wn(this.x,this.y)},clone:function(){return new d2(this)},containsPoint:function(t){return this.normalizedDistance(t)<=1},equals:function(t){return!!t&&t.x===this.x&&t.y===this.y&&t.a===this.a&&t.b===this.b},inflate:function(t,n){return void 0===t&&(t=0),void 0===n&&(n=t),this.a+=2*t,this.b+=2*n,this},intersectionWithLine:function(t){var n=[],e=t.start,i=t.end,o=this.a,r=this.b,a=t.vector(),l=e.difference(new wn(this)),u=new wn(a.x/(o*o),a.y/(r*r)),f=new wn(l.x/(o*o),l.y/(r*r)),M=a.dot(u),T=a.dot(f),ie=T*T-M*(l.dot(f)-1);if(ie<0)return null;if(ie>0){var se=wre(ie),Me=(-T-se)/M,we=(-T+se)/M;if((Me<0||1a.x+o/2||ea.x?i-30:i+30)-u)/(r*r*(e-l))+l:T=r*r/(i-u)-r*r*(e-l)*((U=i>a.y?e+30:e-30)-l)/(o*o*(i-u))+u,new wn(U,T).theta(t)},toString:function(){return new wn(this.x,this.y).toString()+" "+this.a+" "+this.b}};const hct=d2,{abs:Mre,cos:pct,sin:fct,min:Gv,max:Ore,round:rP,pow:gct}=Math,Po=function(t,n,e,i){if(!(this instanceof Po))return new Po(t,n,e,i);Object(t)===t&&(n=t.y,e=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===n?0:n,this.width=void 0===e?0:e,this.height=void 0===i?0:i};Po.fromEllipse=function(t){return t=new d2(t),new Po(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},Po.fromPointUnion=function(...t){if(0===t.length)return null;const n=new wn;let e,i,o,r;e=i=1/0,o=r=-1/0;for(let a=0;ao&&(o=l),ur&&(r=u)}return new Po(e,i,o-e,r-i)},Po.fromRectUnion=function(...t){if(0===t.length)return null;const n=new Po;let e,i,o,r;e=i=1/0,o=r=-1/0;for(let a=0;ao&&(o=f),ur&&(r=M)}return new Po(e,i,o-e,r-i)},Po.prototype={type:Aa.Rect,bbox:function(t){return this.clone().rotateAroundCenter(t)},rotateAroundCenter:function(t){if(!t)return this;const{width:n,height:e}=this,i=H2(t),o=Mre(fct(i)),r=Mre(pct(i)),a=n*r+e*o,l=n*o+e*r;return this.x+=(n-a)/2,this.y+=(e-l)/2,this.width=a,this.height=l,this},bottomLeft:function(){return new wn(this.x,this.y+this.height)},bottomLine:function(){return new Ho(this.bottomLeft(),this.bottomRight())},bottomMiddle:function(){return new wn(this.x+this.width/2,this.y+this.height)},center:function(){return new wn(this.x+this.width/2,this.y+this.height/2)},clone:function(){return new Po(this)},containsPoint:function(t){return(t=new wn(t)).x>=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var n=new Po(this).normalize(),e=new Po(t).normalize(),i=n.width,o=n.height,r=e.width,a=e.height;if(!(i&&o&&r&&a))return!1;var l=n.x,u=n.y,f=e.x,M=e.y;return r+=f,i+=l,a+=M,o+=u,l<=f&&r<=i&&u<=M&&a<=o},corner:function(){return new wn(this.x+this.width,this.y+this.height)},equals:function(t){var n=new Po(this).normalize(),e=new Po(t).normalize();return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height},inflate:function(t,n){return void 0===t&&(t=0),void 0===n&&(n=t),this.x-=t,this.y-=n,this.width+=2*t,this.height+=2*n,this},intersect:function(t){var n=this.origin(),e=this.corner(),i=t.origin(),o=t.corner();if(o.x<=n.x||o.y<=n.y||i.x>=e.x||i.y>=e.y)return null;var r=Ore(n.x,i.x),a=Ore(n.y,i.y);return new Po(r,a,Gv(e.x,o.x)-r,Gv(e.y,o.y)-a)},intersectionWithLine:function(t){var r,a,n=this,e=[n.topLine(),n.rightLine(),n.bottomLine(),n.leftLine()],i=[],o=[],l=e.length;for(a=0;a0?i:null},intersectionWithLineFromCenterToPoint:function(t,n){t=new wn(t);var i,e=new wn(this.x+this.width/2,this.y+this.height/2);n&&t.rotate(e,n);for(var o=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],r=new Ho(e,t),a=o.length-1;a>=0;--a){var l=o[a].intersection(r);if(null!==l){i=l;break}}return i&&n&&i.rotate(e,-n),i},leftLine:function(){return new Ho(this.topLeft(),this.bottomLeft())},leftMiddle:function(){return new wn(this.x,this.y+this.height/2)},maxRectScaleToFit:function(t,n){t=new Po(t),n||(n=t.center());var e,i,o,r,a,l,u,f,M=n.x,T=n.y;e=i=o=r=a=l=u=f=1/0;var U=t.topLeft();U.xM&&(i=(this.x+this.width-M)/(ie.x-M)),ie.y>T&&(l=(this.y+this.height-T)/(ie.y-T));var se=t.topRight();se.x>M&&(o=(this.x+this.width-M)/(se.x-M)),se.yT&&(f=(this.y+this.height-T)/(Me.y-T)),{sx:Gv(e,i,o,r),sy:Gv(a,l,u,f)}},maxRectUniformScaleToFit:function(t,n){var e=this.maxRectScaleToFit(t,n);return Gv(e.sx,e.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,n=this.y,e=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,e=-this.width),this.height<0&&(n=this.y+this.height,i=-this.height),this.x=t,this.y=n,this.width=e,this.height=i,this},offset:function(t,n){return wn.prototype.offset.call(this,t,n)},origin:function(){return new wn(this.x,this.y)},pointNearestToPoint:function(t){if(t=new wn(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new wn(this.x+this.width,t.y);case"left":return new wn(this.x,t.y);case"bottom":return new wn(t.x,this.y+this.height);case"top":return new wn(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new Ho(this.topRight(),this.bottomRight())},rightMiddle:function(){return new wn(this.x+this.width,this.y+this.height/2)},round:function(t){let n=1;if(t)switch(t){case 1:n=10;break;case 2:n=100;break;case 3:n=1e3;break;default:n=gct(10,t)}return this.x=rP(this.x*n)/n,this.y=rP(this.y*n)/n,this.width=rP(this.width*n)/n,this.height=rP(this.height*n)/n,this},scale:function(t,n,e){return e=this.origin().scale(t,n,e),this.x=e.x,this.y=e.y,this.width*=t,this.height*=n,this},sideNearestToPoint:function(t){t=new wn(t);var e=this.x+this.width-t.x,i=t.y-this.y,r=t.x-this.x,a="left";return er.x)&&(r=t[e]);var a=[];for(e=0;e2&&a.unshift(a[a.length-1]);for(var U,ie,se,Me,we,He,M={},T=[];0!==a.length;)if(ie=(U=a.pop())[0],!M.hasOwnProperty(U[0]+"@@"+U[1]))for(var Be=!1;!Be;)if(T.length<2)T.push(U),Be=!0;else{Me=(se=T.pop())[0];var me=(He=(we=T.pop())[0]).cross(Me,ie);if(me<0)T.push(we),T.push(se),T.push(U),Be=!0;else if(0===me){var qe=Me.angleBetween(He,ie);n(qe-180)<1e-10||Me.equals(ie)||He.equals(Me)?(M[se[0]+"@@"+se[1]]=Me,T.push(we)):n((qe+1)%360-1)<1e-10&&(T.push(we),a.push(se))}else M[se[0]+"@@"+se[1]]=Me,T.push(we)}T.length>2&&T.pop();var rt,xt=-1;for(i=T.length,e=0;e0){var an=T.slice(xt),pn=T.slice(0,xt);jt=an.concat(pn)}else jt=T;var yn=[];for(i=jt.length,e=0;en&&(n=u),fi&&(i=f)}return new Po(t,e,n-t,i-e)},clone:function(){return new cc(Pre(this.points))},closestPoint:function(t){var n=this.closestPointLength(t);return this.pointAtLength(n)},closestPointLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e||1===e)return 0;for(var i,o=1/0,r=0,a=e-1,l=0;lU.y||o>T.y&&o<=U.y){var ie=T.x-i>U.x-i?T.x-i:U.x-i;ie>=0&&(M.x=i+ie,M.y=o,f.start=t,f.end=M,u.intersect(f)&&l++)}r=a}return l%2==1},close:function(){const{start:t,end:n,points:e}=this;return t&&n&&!t.equals(n)&&e.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new cc(Tre(this.points))},equals:function(t){if(!t)return!1;var n=this.points,i=n.length;if(t.points.length!==i)return!1;for(var o=0;o0?e:null},isDifferentiable:function(){var t=this.points,n=t.length;if(0===n)return!1;for(var e=new Ho,i=n-1,o=0;o=1)return n[e-1].clone();var i=this.length();return this.pointAtLength(i*t)},pointAtLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e)return null;if(1===e)return n[0].clone();var i=!0;t<0&&(i=!1,t=-t);for(var o=0,r=e-1,a=0;a1&&(t=1);var i=this.length();return this.tangentAtLength(i*t)},tangentAtLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e||1===e)return null;var i=!0;t<0&&(i=!1,t=-t);for(var o,r=0,a=e-1,l=0;l=1)return this.divideAtT(1);var e=this.tAt(t,n);return this.divideAtT(e)},divideAtLength:function(t,n){var e=this.tAtLength(t,n);return this.divideAtT(e)},divideAtT:function(t){var n=this.start,e=this.controlPoint1,i=this.controlPoint2,o=this.end;if(t<=0)return[new Ls(n,n,n,n),new Ls(n,e,i,o)];if(t>=1)return[new Ls(n,e,i,o),new Ls(o,o,o,o)];var r=this.getSkeletonPoints(t),u=r.divider,f=r.dividerControlPoint1,M=r.dividerControlPoint2;return[new Ls(n,r.startControlPoint1,r.startControlPoint2,u),new Ls(u,f,M,o)]},endpointDistance:function(){return this.start.distance(this.end)},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.controlPoint1.x===t.controlPoint1.x&&this.controlPoint1.y===t.controlPoint1.y&&this.controlPoint2.x===t.controlPoint2.x&&this.controlPoint2.y===t.controlPoint2.y&&this.end.x===t.end.x&&this.end.y===t.end.y},getSkeletonPoints:function(t){var n=this.start,e=this.controlPoint1,i=this.controlPoint2,o=this.end;if(t<=0)return{startControlPoint1:n.clone(),startControlPoint2:n.clone(),divider:n.clone(),dividerControlPoint1:e.clone(),dividerControlPoint2:i.clone()};if(t>=1)return{startControlPoint1:e.clone(),startControlPoint2:i.clone(),divider:o.clone(),dividerControlPoint1:o.clone(),dividerControlPoint2:o.clone()};var r=new Ho(n,e).pointAt(t),a=new Ho(e,i).pointAt(t),l=new Ho(i,o).pointAt(t),u=new Ho(r,a).pointAt(t),f=new Ho(a,l).pointAt(t);return{startControlPoint1:r,startControlPoint2:u,divider:new Ho(u,f).pointAt(t),dividerControlPoint1:f,dividerControlPoint2:l}},getSubdivisions:function(t){var n=void 0===(t=t||{}).precision?this.PRECISION:t.precision,e=[new Ls(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===n)return e;for(var i=this.endpointDistance(),o=zz(10,-n),r=0;;){r+=1;for(var a=[],l=e.length,u=0;u1&&(0!==T?(T-i)/T:0)=1)return this.end.clone();var e=this.tAt(t,n);return this.pointAtT(e)},pointAtLength:function(t,n){var e=this.tAtLength(t,n);return this.pointAtT(e)},pointAtT:function(t){return t<=0?this.start.clone():t>=1?this.end.clone():this.getSkeletonPoints(t).divider},PRECISION:3,round:function(t){return this.start.round(t),this.controlPoint1.round(t),this.controlPoint2.round(t),this.end.round(t),this},scale:function(t,n,e){return this.start.scale(t,n,e),this.controlPoint1.scale(t,n,e),this.controlPoint2.scale(t,n,e),this.end.scale(t,n,e),this},tangentAt:function(t,n){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);var e=this.tAt(t,n);return this.tangentAtT(e)},tangentAtLength:function(t,n){if(!this.isDifferentiable())return null;var e=this.tAtLength(t,n);return this.tangentAtT(e)},tangentAtT:function(t){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);var n=this.getSkeletonPoints(t),e=n.startControlPoint2,o=n.divider,r=new Ho(e,n.dividerControlPoint1);return r.translate(o.x-e.x,o.y-e.y),r},tAt:function(t,n){if(t<=0)return 0;if(t>=1)return 1;var e=void 0===(n=n||{}).precision?this.PRECISION:n.precision,o={precision:e,subdivisions:void 0===n.subdivisions?this.getSubdivisions({precision:e}):n.subdivisions},r=this.length(o);return this.tAtLength(r*t,o)},tAtLength:function(t,n){var e=!0;t<0&&(e=!1,t=-t);for(var a,l,u,f,M,i=void 0===(n=n||{}).precision?this.PRECISION:n.precision,o=void 0===n.subdivisions?this.getSubdivisions({precision:i}):n.subdivisions,r={precision:i,subdivisions:o},T=0,U=o.length,ie=1/U,se=0;se1&&(t=1);var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.divideAtLength(l*t,a)},divideAtLength:function(t,n){var e=this.segments.length;if(0===e)return null;var i=!0;t<0&&(i=!1,t=-t);var a,l,f,M,T,U,o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,r=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions,u=0;for(a=0;a=e||t<0)throw new Error("Index out of range.");return n[t]},getSegmentSubdivisions:function(t){for(var n=this.segments,e=n.length,i=void 0===(t=t||{}).precision?this.PRECISION:t.precision,o=[],r=0;ri||t<0)throw new Error("Index out of range.");var o,r=null,a=null;if(0!==i&&(a=t>=1?(r=e[t-1]).nextSegment:e[0]),Array.isArray(n)){if(!(n=n.reduce(function(M,T){return M.concat(T)},[]))[0].isSegment)throw new Error("Segments required.");for(var l=n.length,u=0;u=i?(o=i-1,r=1):r<0?r=0:r>1&&(r=1);for(var a=void 0===(n=n||{}).precision?this.PRECISION:n.precision,l=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:a}):n.segmentSubdivisions,f=0,M=0;M=1)return this.end.clone();var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.pointAtLength(l*t,a)},pointAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;if(0===t)return this.start.clone();var o=!0;t<0&&(o=!1,t=-t);for(var l,r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,u=0,f=0;f=e)return n[e-1].pointAtT(1);var o=t.value;return o<0?o=0:o>1&&(o=1),n[i].pointAtT(o)},PRECISION:3,prepareSegment:function(t,n,e){t.previousSegment=n,t.nextSegment=e,n&&(n.nextSegment=t),e&&(e.previousSegment=t);var i=t;return t.isSubpathStart&&(t.subpathStartSegment=t,i=e),i&&this.updateSubpathStartSegment(i),t},removeSegment:function(t){var n=this.segments,e=n.length;if(0===e)throw new Error("Path has no segments.");if(t<0&&(t=e+t),t>=e||t<0)throw new Error("Index out of range.");var i=n.splice(t,1)[0],o=i.previousSegment,r=i.nextSegment;o&&(o.nextSegment=r),r&&(r.previousSegment=o),i.isSubpathStart&&r&&this.updateSubpathStartSegment(r)},replaceSegment:function(t,n){var e=this.segments,i=e.length;if(0===i)throw new Error("Path has no segments.");if(t<0&&(t=i+t),t>=i||t<0)throw new Error("Index out of range.");var o,r=e[t],a=r.previousSegment,l=r.nextSegment,u=r.isSubpathStart;if(Array.isArray(n)){if(!(n=n.reduce(function(U,ie){return U.concat(ie)},[]))[0].isSegment)throw new Error("Segments required.");e.splice(t,1);for(var f=n.length,M=0;M1&&(t=1);var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.segmentIndexAtLength(l*t,a)},segmentIndexAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;var o=!0;t<0&&(o=!1,t=-t);for(var r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,l=null,u=0,f=0;f1&&(t=1);var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:o,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions},l=this.length(a);return this.tangentAtLength(l*t,a)},tangentAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;var o=!0;t<0&&(o=!1,t=-t);for(var l,r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,u=0,f=0;f=e)return n[e-1].tangentAtT(1);var o=t.value;return o<0?o=0:o>1&&(o=1),n[i].tangentAtT(o)},toPoints:function(t){var n=this.segments,e=n.length;if(0===e)return null;for(var o=void 0===(t=t||{}).segmentSubdivisions?this.getSegmentSubdivisions({precision:void 0===t.precision?this.PRECISION:t.precision}):t.segmentSubdivisions,r=[],a=[],l=0;l0){var M=f.map(function(T){return T.start});Array.prototype.push.apply(a,M)}else a.push(u.start)}else a.length>0&&(a.push(n[l-1].end),r.push(a),a=[])}return a.length>0&&(a.push(this.end),r.push(a)),r},toPolylines:function(t){var n=[],e=this.toPoints(t);if(!e)return null;for(var i=0,o=e.length;i=0;e--){var i=t[e];if(i.isVisible)return i.end}return t[n-1].end}});var Rm={bbox:function(){throw new Error("Declaration missing for virtual function.")},clone:function(){throw new Error("Declaration missing for virtual function.")},closestPoint:function(){throw new Error("Declaration missing for virtual function.")},closestPointLength:function(){throw new Error("Declaration missing for virtual function.")},closestPointNormalizedLength:function(){throw new Error("Declaration missing for virtual function.")},closestPointT:function(t){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(t);throw new Error("Neither closestPointT() nor closestPointNormalizedLength() function is implemented.")},closestPointTangent:function(){throw new Error("Declaration missing for virtual function.")},divideAt:function(){throw new Error("Declaration missing for virtual function.")},divideAtLength:function(){throw new Error("Declaration missing for virtual function.")},divideAtT:function(t){if(this.divideAt)return this.divideAt(t);throw new Error("Neither divideAtT() nor divideAt() function is implemented.")},equals:function(){throw new Error("Declaration missing for virtual function.")},getSubdivisions:function(){throw new Error("Declaration missing for virtual function.")},isDifferentiable:function(){throw new Error("Declaration missing for virtual function.")},isSegment:!0,isSubpathStart:!1,isVisible:!0,length:function(){throw new Error("Declaration missing for virtual function.")},lengthAtT:function(t){if(t<=0)return 0;var n=this.length();return t>=1?n:n*t},nextSegment:null,pointAt:function(){throw new Error("Declaration missing for virtual function.")},pointAtLength:function(){throw new Error("Declaration missing for virtual function.")},pointAtT:function(t){if(this.pointAt)return this.pointAt(t);throw new Error("Neither pointAtT() nor pointAt() function is implemented.")},previousSegment:null,round:function(){throw new Error("Declaration missing for virtual function.")},subpathStartSegment:null,scale:function(){throw new Error("Declaration missing for virtual function.")},serialize:function(){throw new Error("Declaration missing for virtual function.")},tangentAt:function(){throw new Error("Declaration missing for virtual function.")},tangentAtLength:function(){throw new Error("Declaration missing for virtual function.")},tangentAtT:function(t){if(this.tangentAt)return this.tangentAt(t);throw new Error("Neither tangentAtT() nor tangentAt() function is implemented.")},toString:function(){throw new Error("Declaration missing for virtual function.")},translate:function(){throw new Error("Declaration missing for virtual function.")}};Object.defineProperty(Rm,"end",{configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(Rm,"start",{configurable:!0,enumerable:!0,get:function(){if(!this.previousSegment)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path; OR segment has not yet been added to a path.)");return this.previousSegment.end}}),Object.defineProperty(Rm,"type",{configurable:!0,enumerable:!0,get:function(){throw new Error("Bad segment declaration. No type specified.")}});var hd=function(){for(var t=[],n=arguments.length,e=0;e0)throw new Error("Closepath constructor expects no arguments.");return this},Hz={clone:function(){return new X_},divideAt:function(t){var e=new Ho(this.start,this.end).divideAt(t);return[e[1].isDifferentiable()?new hd(e[0]):this.clone(),new hd(e[1])]},divideAtLength:function(t){var e=new Ho(this.start,this.end).divideAtLength(t);return[e[1].isDifferentiable()?new hd(e[0]):this.clone(),new hd(e[1])]},getSubdivisions:function(){return[]},isDifferentiable:function(){return!(!this.previousSegment||!this.subpathStartSegment||this.start.equals(this.end))},round:function(){return this},scale:function(){return this},serialize:function(){return this.type},toString:function(){return this.type+" "+this.start+" "+this.end},translate:function(){return this}};Object.defineProperty(Hz,"end",{configurable:!0,enumerable:!0,get:function(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. Moveto); OR segment has not yet been added to a path.)");return this.subpathStartSegment.end}}),Object.defineProperty(Hz,"type",{configurable:!0,enumerable:!0,value:"Z"}),X_.prototype=Yv(Rm,Ho.prototype,Hz);var Cct=_r.segmentTypes={L:hd,C:Mu,M:zm,Z:X_,z:X_};_r.regexSupportedData=new RegExp("^[\\s\\d"+Object.keys(Cct).join("")+",.]*$"),_r.isDataSupported=function(t){return"string"==typeof t&&this.regexSupportedData.test(t)};const vct={curveThroughPoints:function(t){return console.warn("deprecated"),new _r(Ls.throughPoints(t)).serialize()},getCurveControlPoints:function(t){console.warn("deprecated");var o,n=[],e=[],i=t.length-1;if(1==i)return n[0]=new wn((2*t[0].x+t[1].x)/3,(2*t[0].y+t[1].y)/3),e[0]=new wn(2*n[0].x-t[0].x,2*n[0].y-t[0].y),[n,e];var r=[];for(o=1;o=0&&He<=1&&Be>=0&&Be<=1}function Vz(t,n){const e=t.a,i=t.b,o=t.x,r=t.y,a=n.start.x-o,u=n.start.y-r,M=e*e,T=i*i,U=n.end.x-o-a,ie=n.end.y-r-u,se=U*U/M+ie*ie/T,Me=2*a*U/M+2*u*ie/T,He=Me*Me-4*se*(a*a/M+u*u/T-1);if(0===He){const Be=-Me/2/se;return Be>=0&&Be<=1}if(He>0){const Be=Math.sqrt(He),me=(-Me+Be)/2/se,ze=(-Me-Be)/2/se;return me>=0&&me<=1||ze>=0&&ze<=1}return!1}function Ire(t,n){return function bct(t,n,e,i){const{cos:o,sin:r}=Math,a=r(n),l=o(n),u=r(i),f=o(i),M=a*a,T=l*l,ie=u*u,se=f*f,we=t.a*t.a,He=t.b*t.b,Be=e.a*e.a,me=e.b*e.b,ze=we*M+He*T,qe=Be*ie+me*se,rt=we*T+He*M,xt=Be*se+me*ie;let Ut=2*(He-we)*(a*l),jt=2*(me-Be)*(u*f),an=-2*ze*t.x-Ut*t.y,pn=-2*qe*e.x-jt*e.y,yn=-Ut*t.x-2*rt*t.y,Kt=-jt*e.x-2*xt*e.y;const kn=ze*t.x*t.x+rt*t.y*t.y+Ut*t.x*t.y-we*He,ri=qe*e.x*e.x+xt*e.y*e.y+jt*e.x*e.y-Be*me;Ut/=2,jt/=2,an/=2,pn/=2,yn/=2,Kt/=2;const Rn=O4([[ze,Ut,an],[Ut,rt,yn],[an,yn,kn]]),ni=O4([[qe,jt,pn],[jt,xt,Kt],[pn,Kt,ri]]),Jn=.33333333*(O4([[qe,Ut,an],[jt,rt,yn],[pn,yn,kn]])+O4([[ze,jt,an],[Ut,xt,yn],[an,Kt,kn]])+O4([[ze,Ut,pn],[Ut,rt,Kt],[an,yn,ri]])),Oi=.33333333*(O4([[ze,jt,pn],[Ut,xt,Kt],[an,Kt,ri]])+O4([[qe,Ut,pn],[jt,rt,Kt],[pn,yn,ri]])+O4([[qe,jt,an],[jt,xt,yn],[pn,Kt,kn]])),qn=uP([[Rn,Jn],[Jn,Oi]]),Wi=uP([[Rn,Oi],[Jn,ni]]),Ai=uP([[Jn,Oi],[Oi,ni]]);return!(uP([[2*qn,Wi],[Wi,2*Ai]])>0&&(Oi>0||Jn>0))}(t,0,n,0)}function Nre(t,n){const{start:e,end:i}=n,{x:o,y:r,width:a,height:l}=t;return!(e.x>o+a&&i.x>o+a||e.xr+l&&i.y>r+l||e.yn.x&&t.yn.y}function sP(t,n){return Wre(t,n,{interior:!1})}function Gz(t,n){return qre(t,n,{interior:!1})}function zre(t,n){return $re(t,n,{interior:!1})}function Fre(t,n){return dP(t,n,{interior:!1})}function Yz(t,n){return Wre(t,n,{interior:!0})}function cP(t,n){return qre(t,n,{interior:!0})}function Hre(t,n){return $re(t,n,{interior:!0})}function Vre(t,n){return dP(t,n,{interior:!0})}function Bre(t,n){return jz(t,n,{interior:!0})}function Gre(t,n,e){return t.getSubpaths().some(i=>{const[o]=i.toPolylines(e),{type:r}=i.getSegment(-1);return"Z"===r?Yz(o,n):sP(o,n)})}function Yre(t,n,e){return t.getSubpaths().some(i=>{const[o]=i.toPolylines(e),{type:r}=i.getSegment(-1);return"Z"===r?cP(o,n):Gz(o,n)})}function Ure(t,n,e){return lP(t,V2.fromRect(n),e)}function Uz(t,n,e){return Xre(t,n,e,{interior:!1})}function lP(t,n,e){return Xre(t,n,e,{interior:!0})}function jre(t,n,e,i){return t.getSubpaths().some(o=>{const[r]=o.toPolylines(e),{type:a}=o.getSegment(-1);return"Z"===a?lP(n,r,i):Uz(n,r,i)})}function Wre(t,n,e={}){const{interior:i=!1}=e;let o;if(i){if(t.containsPoint(n.start))return!0;const{start:l,end:u,points:f}=t;o=u.equals(l)?f:[...f,l]}else o=t.points;const{length:r}=o,a=new Ho;for(let l=0;l{const[r]=o.toPolylines(e),{type:a}=o.getSegment(-1);return"Z"===a?jz(n,r,i):dP(n,r,i)})}function dP(t,n,e={}){const{interior:i=!1}=e;let o;if(i){const{start:u}=n;if(t.containsPoint(u))return!0;o=t.clone().close()}else o=t;const r=n.points,{length:a}=r,l=new Ho;for(let u=0;u1){var Ut,jt,xt=[];for(Ut=0,jt=rt.childNodes.length;Utan&&(an=ri)}else xt&&Kt===yn&&(kn+=xt),Jn=document.createTextNode(kn||" "),jt&&jt>an&&(an=jt);me.appendChild(Jn)}return an&&(pn.maxFontSize=an),Ut?pn.lineHeight=Ut:an&&(pn.lineHeight=1.2*an),pn}Object.defineProperty(U,"id",{enumerable:!0,get:function(){return this.node.id},set:function(me){this.node.id=me}}),U.getTransformToElement=function(me){var ze=this.node;if(T.isSVGGraphicsElement(me)&&T.isSVGGraphicsElement(ze)){var qe=T.toNode(me).getScreenCTM(),rt=ze.getScreenCTM();if(qe&&rt)return qe.inverse().multiply(rt)}return T.createSVGMatrix()},U.transform=function(me,ze){var qe=this.node;if(T.isUndefined(me))return T.transformStringToMatrix(this.attr("transform"));if(ze&&ze.absolute)return this.attr("transform",T.matrixToTransformString(me));var rt=T.createSVGTransform(me);return qe.transform.baseVal.appendItem(rt),this},U.translate=function(me,ze,qe){qe=qe||{},ze=ze||0;var rt=this.attr("transform")||"",xt=T.parseTransformString(rt);return rt=xt.value,T.isUndefined(me)?xt.translate:(rt=rt.replace(/translate\([^)]*\)/g,"").trim(),this.attr("transform",("translate("+(qe.absolute?me:xt.translate.tx+me)+","+(qe.absolute?ze:xt.translate.ty+ze)+") "+rt).trim()),this)},U.rotate=function(me,ze,qe,rt){rt=rt||{};var xt=this.attr("transform")||"",Ut=T.parseTransformString(xt);return xt=Ut.value,T.isUndefined(me)?Ut.rotate:(xt=xt.replace(/rotate\([^)]*\)/g,"").trim(),me%=360,this.attr("transform",(xt+" rotate("+(rt.absolute?me:Ut.rotate.angle+me)+(void 0!==ze&&void 0!==qe?","+ze+","+qe:"")+")").trim()),this)},U.scale=function(me,ze){ze=T.isUndefined(ze)?me:ze;var qe=this.attr("transform")||"",rt=T.parseTransformString(qe);return qe=rt.value,T.isUndefined(me)?rt.scale:(qe=qe.replace(/scale\([^)]*\)/g,"").trim(),this.attr("transform",(qe+" scale("+me+","+ze+")").trim()),this)},U.bbox=function(me,ze){var qe,rt=this.node,xt=rt.ownerSVGElement;if(!xt)return new Po(0,0,0,0);try{qe=rt.getBBox()}catch(jt){qe={x:rt.clientLeft,y:rt.clientTop,width:rt.clientWidth,height:rt.clientHeight}}if(me)return new Po(qe);var Ut=this.getTransformToElement(ze||xt);return T.transformRect(qe,Ut)},U.getBBox=function(me){var qe,ze={},rt=this.node;if(!rt.ownerSVGElement||!T.isSVGGraphicsElement(rt))return new Po(0,0,0,0);if(me&&(me.target&&(ze.target=T.toNode(me.target)),me.recursive&&(ze.recursive=me.recursive)),ze.recursive){var jt=this.children(),an=jt.length;if(0===an)return this.getBBox({target:ze.target,recursive:!1});ze.target||(ze.target=this);for(var pn=0;pn0&&ro.setAttribute("dy",nr),(Bi>0||xt)&&ro.setAttribute("x",an),ro.className.baseVal=Nr,Jn.appendChild(ro),Oi+=ki.length+1}if(jt)if(yn)nr=function He(me,ze,qe,rt){if(!Array.isArray(ze))return 0;var xt=ze.length;if(!xt)return 0;for(var Ut=ze[0],jt=we(Ut.maxFontSize,qe)||qe,an=0,pn=we(rt,qe),yn=1;yn0?(Ei=parseFloat(ri)||1,Ei*=lo,Me.test(ri)||(Ei/=Rn)):Ei=0,Ut){case"middle":nr=.3-Ei/2+"em";break;case"bottom":nr=-Ei-.3+"em"}}else 0===Ut?nr="0em":Ut?nr=Ut:(nr=0,null===this.attr("y")&&this.attr("y",Ai||"0.8em"));return Jn.firstChild.setAttribute("dy",nr),this.append(Jn),this},U.removeAttr=function(me){var ze=T.qualifyAttr(me),qe=this.node;return ze.ns?qe.hasAttributeNS(ze.ns,ze.local)&&qe.removeAttributeNS(ze.ns,ze.local):qe.hasAttribute(me)&&qe.removeAttribute(me),this},U.attr=function(me,ze){if(T.isUndefined(me)){for(var qe=this.node.attributes,rt={},xt=0;xt1&&yn.push(yn[0]),new cc(yn);case"PATH":return Kt=this.attr("d"),_r.isDataSupported(Kt)||(Kt=T.normalizePathData(Kt)),new _r(Kt);case"LINE":return kn=parseFloat(this.attr("x1"))||0,Rn=parseFloat(this.attr("y1"))||0,ri=parseFloat(this.attr("x2"))||0,ni=parseFloat(this.attr("y2"))||0,new Ho({x:kn,y:Rn},{x:ri,y:ni})}return this.getBBox()},U.findIntersection=function(me,ze){var qe=this.svg().node,rt=this.getBBox({target:ze=ze||qe}),xt=rt.center();if(rt.intersectionWithLineFromCenterToPoint(me)){var Ut,jt=this.tagName();if("RECT"===jt){var an=new Po(parseFloat(this.attr("x")||0),parseFloat(this.attr("y")||0),parseFloat(this.attr("width")),parseFloat(this.attr("height"))),pn=this.getTransformToElement(ze),yn=T.decomposeMatrix(pn),Kt=qe.createSVGTransform();Kt.setRotate(-yn.rotation,xt.x,xt.y);var kn=T.transformRect(an,Kt.matrix.multiply(pn));Ut=new Po(kn).intersectionWithLineFromCenterToPoint(me,yn.rotation)}else if("PATH"===jt||"POLYGON"===jt||"POLYLINE"===jt||"CIRCLE"===jt||"ELLIPSE"===jt){var Oi,qn,Wi,Bi,lo,Rn=("PATH"===jt?this:this.convertToPath()).sample(),ni=1/0,Jn=[];for(Oi=0;Oi${me}`,{documentElement:rt}=T.parseXML(qe,{async:!1});return rt}const ze=document.createElementNS(n.svg,"svg");return ze.setAttributeNS(n.xmlns,"xmlns:xlink",n.xlink),ze.setAttribute("version","1.1"),ze},T.createSVGStyle=function(me){const{node:ze}=T("style",{type:"text/css"},[T.createCDATASection(me)]);return ze},T.createCDATASection=function(me=""){return document.implementation.createDocument(null,"xml",null).createCDATASection(me)},T.idCounter=0,T.uniqueId=function(){return"v-"+ ++T.idCounter},T.toNode=function(me){return T.isV(me)?me.node:me.nodeName&&me||me[0]},T.ensureId=function(me){return(me=T.toNode(me)).id||(me.id=T.uniqueId())},T.sanitizeText=function(me){return(me||"").replace(/ /g,"\xa0")},T.isUndefined=function(me){return void 0===me},T.isString=function(me){return"string"==typeof me},T.isObject=function(me){return me&&"object"==typeof me},T.isArray=Array.isArray,T.parseXML=function(me,ze){var qe;ze=ze||{};try{var rt=new DOMParser;T.isUndefined(ze.async)||(rt.async=ze.async),qe=rt.parseFromString(me,"text/xml")}catch(xt){qe=void 0}if(!qe||qe.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+me);return qe},T.qualifyAttr=function(me){if(-1!==me.indexOf(":")){var ze=me.split(":");return{ns:n[ze[0]],local:ze[1]}}return{ns:null,local:me}},T.transformRegex=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,T.transformSeparatorRegex=/[ ,]+/,T.transformationListRegex=/^(\w+)\((.*)\)/,T.transformStringToMatrix=function(me){var ze=T.createSVGMatrix(),qe=me&&me.match(T.transformRegex);if(!qe)return ze;for(var rt=0,xt=qe.length;rt=0){var Ut=T.transformStringToMatrix(me),jt=T.decomposeMatrix(Ut);rt=[jt.scaleX,jt.scaleY],qe=[jt.rotation];var an=[];(0!==(ze=[jt.translateX,jt.translateY])[0]||0!==ze[1])&&an.push("translate("+ze+")"),(1!==rt[0]||1!==rt[1])&&an.push("scale("+rt+")"),0!==qe[0]&&an.push("rotate("+qe+")"),me=an.join(" ")}else{var pn=me.match(/translate\((.*?)\)/);pn&&(ze=pn[1].split(xt));var yn=me.match(/rotate\((.*?)\)/);yn&&(qe=yn[1].split(xt));var Kt=me.match(/scale\((.*?)\)/);Kt&&(rt=Kt[1].split(xt))}}var kn=rt&&rt[0]?parseFloat(rt[0]):1;return{value:me,translate:{tx:ze&&ze[0]?parseInt(ze[0],10):0,ty:ze&&ze[1]?parseInt(ze[1],10):0},rotate:{angle:qe&&qe[0]?parseInt(qe[0],10):0,cx:qe&&qe[1]?parseInt(qe[1],10):void 0,cy:qe&&qe[2]?parseInt(qe[2],10):void 0},scale:{sx:kn,sy:rt&&rt[1]?parseFloat(rt[1]):kn}}},T.deltaTransformPoint=function(me,ze){return{x:ze.x*me.a+ze.y*me.c+0,y:ze.x*me.b+ze.y*me.d+0}},T.decomposeMatrix=function(me){var ze=T.deltaTransformPoint(me,{x:0,y:1}),qe=T.deltaTransformPoint(me,{x:1,y:0}),rt=180/o*r(ze.y,ze.x)-90,xt=180/o*r(qe.y,qe.x);return{translateX:me.e,translateY:me.f,scaleX:a(me.a*me.a+me.b*me.b),scaleY:a(me.c*me.c+me.d*me.d),skewX:rt,skewY:xt,rotation:rt}},T.matrixToScale=function(me){var ze,qe,rt,xt;return me?(ze=T.isUndefined(me.a)?1:me.a,xt=T.isUndefined(me.d)?1:me.d,qe=me.b,rt=me.c):ze=xt=1,{sx:qe?a(ze*ze+qe*qe):ze,sy:rt?a(rt*rt+xt*xt):xt}},T.matrixToRotate=function(me){var ze={x:0,y:1};return me&&(ze=T.deltaTransformPoint(me,ze)),{angle:K0(tP(r(ze.y,ze.x))-90)}},T.matrixToTranslate=function(me){return{tx:me&&me.e||0,ty:me&&me.f||0}},T.isV=function(me){return me instanceof T},T.isVElement=T.isV,T.isSVGGraphicsElement=function(me){return!!me&&(me=T.toNode(me))instanceof SVGElement&&"function"==typeof me.getScreenCTM};var Be=T("svg").node;return T.createSVGMatrix=function(me){var ze=Be.createSVGMatrix();for(var qe in me)ze[qe]=me[qe];return ze},T.createSVGTransform=function(me){return T.isUndefined(me)?Be.createSVGTransform():(me instanceof SVGMatrix||(me=T.createSVGMatrix(me)),Be.createSVGTransformFromMatrix(me))},T.createSVGPoint=function(me,ze){var qe=Be.createSVGPoint();return qe.x=me,qe.y=ze,qe},T.transformRect=function(me,ze){var qe=Be.createSVGPoint();qe.x=me.x,qe.y=me.y;var rt=qe.matrixTransform(ze);qe.x=me.x+me.width,qe.y=me.y;var xt=qe.matrixTransform(ze);qe.x=me.x+me.width,qe.y=me.y+me.height;var Ut=qe.matrixTransform(ze);qe.x=me.x,qe.y=me.y+me.height;var jt=qe.matrixTransform(ze),an=l(rt.x,xt.x,Ut.x,jt.x),pn=u(rt.x,xt.x,Ut.x,jt.x),yn=l(rt.y,xt.y,Ut.y,jt.y),Kt=u(rt.y,xt.y,Ut.y,jt.y);return new Po(an,yn,pn-an,Kt-yn)},T.transformPoint=function(me,ze){return new wn(T.createSVGPoint(me.x,me.y).matrixTransform(ze))},T.transformLine=function(me,ze){return new Ho(T.transformPoint(me.start,ze),T.transformPoint(me.end,ze))},T.transformPolyline=function(me,ze){var qe=me instanceof cc?me.points:me;T.isArray(qe)||(qe=[]);for(var rt=[],xt=0,Ut=qe.length;xt=xt?Ut?"M0,"+jt+"A"+jt+","+jt+" 0 1,1 0,"+-jt+"A"+jt+","+jt+" 0 1,1 0,"+jt+"M0,"+Ut+"A"+Ut+","+Ut+" 0 1,0 0,"+-Ut+"A"+Ut+","+Ut+" 0 1,0 0,"+Ut+"Z":"M0,"+jt+"A"+jt+","+jt+" 0 1,1 0,"+-jt+"A"+jt+","+jt+" 0 1,1 0,"+jt+"Z":Ut?"M"+jt*kn+","+jt*ri+"A"+jt+","+jt+" 0 "+Kt+",1 "+jt*Rn+","+jt*ni+"L"+Ut*Rn+","+Ut*ni+"A"+Ut+","+Ut+" 0 "+Kt+",0 "+Ut*kn+","+Ut*ri+"Z":"M"+jt*kn+","+jt*ri+"A"+jt+","+jt+" 0 "+Kt+",1 "+jt*Rn+","+jt*ni+"L0,0Z"},T.mergeAttrs=function(me,ze){for(var qe in ze)me[qe]="class"===qe?me[qe]?me[qe]+" "+ze[qe]:ze[qe]:"style"===qe?T.isObject(me[qe])&&T.isObject(ze[qe])?T.mergeAttrs(me[qe],ze[qe]):T.isObject(me[qe])?T.mergeAttrs(me[qe],T.styleToObject(ze[qe])):T.isObject(ze[qe])?T.mergeAttrs(T.styleToObject(me[qe]),ze[qe]):T.mergeAttrs(T.styleToObject(me[qe]),T.styleToObject(ze[qe])):ze[qe];return me},T.annotateString=function(me,ze,qe){ze=ze||[];for(var Ut,an,pn,rt=(qe=qe||{}).offset||0,xt=[],jt=[],yn=0;yn=kn.start+rt&&yn=xt.start&&zext.start&&qe<=xt.end||xt.start>=ze&&xt.end=ze?rt.end+=qe:rt.start>=ze&&(rt.start+=qe,rt.end+=qe)}),me},T.convertLineToPathData=function(me){return["M",(me=T(me)).attr("x1"),me.attr("y1"),"L",me.attr("x2"),me.attr("y2")].join(" ")},T.convertPolygonToPathData=function(me){var ze=T.getPointsFromSvgNode(me);return 0===ze.length?null:T.svgPointsToPath(ze)+" Z"},T.convertPolylineToPathData=function(me){var ze=T.getPointsFromSvgNode(me);return 0===ze.length?null:T.svgPointsToPath(ze)},T.svgPointsToPath=function(me){for(var ze=0,qe=me.length;ze1&&(Ai*=$a=yn($a),Bi*=$a);var Cr=Ai*Ai,gs=Bi*Bi,Ec=(nr==Nr?-1:1)*yn(Kt((Cr*gs-Cr*Sa*Sa-gs*Zo*Zo)/(Cr*Sa*Sa+gs*Zo*Zo))),Nl=Ec*Ai*Sa/Bi+(qn+ro)/2,dh=Ec*-Bi*Zo/Ai+(Wi+ki)/2,Ac=pn(((Wi-dh)/Bi).toFixed(9)),Js=pn(((ki-dh)/Bi).toFixed(9));(Ac=qnJs&&(Ac-=2*xt),!Nr&&Js>Ac&&(Js-=2*xt)}var H3=Js-Ac;if(Kt(H3)>yi){var R4=Js,o0=ro,z4=ki;Vn=Rn(ro=Nl+Ai*jt(Js=Ac+yi*(Nr&&Js>Ac?1:-1)),ki=dh+Bi*Ut(Js),Ai,Bi,lo,0,Nr,o0,z4,[Js,R4,Nl,dh])}H3=Js-Ac;var dT=jt(Ac),uT=Ut(Ac),hT=jt(Js),pT=Ut(Js),F4=an(H3/4),hb=4/3*(Ai*F4),pb=4/3*(Bi*F4),m8=[qn,Wi],V3=[qn+hb*uT,Wi-pb*dT],H4=[ro+hb*pT,ki-pb*hT],fb=[ro,ki];if(V3[0]=2*m8[0]-V3[0],V3[1]=2*m8[1]-V3[1],jn)return[V3,H4,fb].concat(Vn);for(var V4=[],oV=(Vn=[V3,H4,fb].concat(Vn).join().split(",")).length,ip=0;ip2&&(Ai.push([lo].concat(Nr.splice(0,2))),ro="l",lo="m"===lo?"l":"L");Nr.length>=Wi[ro]&&(Ai.push([lo].concat(Nr.splice(0,Wi[ro]))),Wi[ro]););}),Ai}(qn)),!qn||!qn.length)return[["M",0,0]];for(var ro,Wi=[],Ai=0,Bi=0,lo=0,nr=0,ki=qn.length,jn=0;jn7){Vn[Ei].shift();for(var Zo=Vn[Ei];Zo.length;)nr[Ei]="A",Vn.splice(Ei++,0,["C"].concat(Zo.splice(0,6)));Vn.splice(Ei,1),ki=Wi.length}}for(var nr=[],Nr="",ro="",ki=Wi.length,jn=0;jn0&&(ro=nr[jn-1])),Wi[jn]=Bi(Wi[jn],Ai,ro),"A"!==nr[jn]&&"C"===Nr&&(nr[jn]="C"),lo(Wi,jn);var yi=Wi[jn],Ii=yi.length;Ai.x=yi[Ii-2],Ai.y=yi[Ii-1],Ai.bx=parseFloat(yi[Ii-4])||Ai.x,Ai.by=parseFloat(yi[Ii-3])||Ai.y}return(!Wi[0][0]||"M"!==Wi[0][0])&&Wi.unshift(["M",0,0]),Wi}return function(qn){return Oi(qn).join(",").split(",").join(" ")}}(),T.namespace=n,T.g=_,T}(),oh={useCSSSelectors:!0,classNamePrefix:"joint-",defaultTheme:"default",doubleTapInterval:300},Zh=function(t){return t&&t.toString().split(" ").map(function(n){return n.substr(0,oh.classNamePrefix.length)!==oh.classNamePrefix&&(n=oh.classNamePrefix+n),n}).join(" ")},yct=function(t){return t&&t.toString().split(" ").map(function(n){return n.substr(0,oh.classNamePrefix.length)===oh.classNamePrefix&&(n=n.substr(oh.classNamePrefix.length)),n}).join(" ")},hP=function(t,n){for(var e={},i={},o=wi.namespace.svg,r=n||o,a=document.createDocumentFragment(),l=[t,a,r];l.length>0;){r=l.pop();for(var u=l.pop(),f=l.pop(),M=0,T=f.length;M=0){if(xt.length>1){for(var jt=xt.split(T),an=0,pn=jt.length-1;an""!==Ai)),ze--,rt=se.length;continue}we[++qe]="",Ut=!0}if(!Ut)if(f.data=we[qe]?we[qe]+" "+xt:xt,l.getComputedTextLength()<=o)we[qe]=f.data,(He||Be)&&(Me[qe++]=!0,He=0,Be=0);else{if(!we[qe]||He){var yn=!!He;if(He=xt.length-1,yn||!He){if(!He){if(!we[qe]){we=[];break}se.splice(ze,2,xt+se[ze+1]),rt--,Me[qe++]=!0,ze--;continue}se[ze]=xt.substring(0,He),se[ze+1]=xt.substring(He)+(void 0===se[ze+1]?"":se[ze+1])}else{if(Be)se.splice(ze,2,se[ze]+se[ze+1]),Be=0;else{var Kt=xt.search(U);Kt>-1&&Kt!==xt.length-1&&0!==Kt&&(Be=Kt+1,He=0),se.splice(ze,1,xt.substring(0,Be||He),xt.substring(Be||He)),rt++}qe&&!Me[qe-1]&&qe--}ze--;continue}qe++,ze--}var kn=null;if(we.length>ie)kn=ie-1;else if(void 0!==r){var ri;void 0===me&&(me=(ri="auto"===e.lineHeight?{value:1.5,unit:"em"}:Sct(e.lineHeight,["em"])||{value:1,unit:"em"}).value,"em"===ri.unit&&(me*=u.getBBox().height)),me*we.length>r&&(kn=Math.floor(r/me)-1)}if(null!==kn){we.splice(kn+1);var Rn=i.ellipsis;if(!Rn||kn<0)break;"string"!=typeof Rn&&(Rn="\u2026");var ni=we[kn];if(!ni&&!Ut)break;var Oi,qn,Jn=ni.length;do{if(qn=ni[Jn],Oi=ni.substring(0,Jn),qn?qn.match(M)&&(Oi+=qn):Oi+="string"==typeof M?M:" ",f.data=Oi+=Rn,l.getComputedTextLength()<=o){we[kn]=Oi;break}Jn--}while(Jn>=0);break}}}return i.svgDocument?a.removeChild(u):document.body.removeChild(a),we.join(T)},Pct=function(t){var n=As(As.parseHTML("
    "+t+"
    ",null,!1));return n.find("*").each(function(){var e=this;As.each(e.attributes,function(){var o=this.name,r=this.value;(o.startsWith("on")||r.startsWith("javascript:")||r.startsWith("data:")||r.startsWith("vbscript:"))&&As(e).removeAttr(o)})}),n.html()},Q_=function(t){if(Object(t)!==t){var n=0;return isFinite(t)&&(n=+t),{top:n,right:n,bottom:n,left:n}}var e,i,o,r;return e=i=o=r=0,isFinite(t.vertical)&&(e=o=+t.vertical),isFinite(t.horizontal)&&(i=r=+t.horizontal),isFinite(t.top)&&(e=+t.top),isFinite(t.right)&&(i=+t.right),isFinite(t.bottom)&&(o=+t.bottom),isFinite(t.left)&&(r=+t.left),{top:e,right:i,bottom:o,left:r}},Lct={linear:function(t){return t},quad:function(t){return t*t},cubic:function(t){return t*t*t},inout:function(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(t<.5?e:3*(t-n)+e-.75)},exponential:function(t){return Math.pow(2,10*(t-1))},bounce:function(t){for(var n=0,e=1;;n+=e,e/=2)if(t>=(7-4*n)/11){var i=(11-6*n-11*t)/4;return-i*i+e*e}},reverse:function(t){return function(n){return 1-t(1-n)}},reflect:function(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}},clamp:function(t,n,e){return n=n||0,e=e||1,function(i){var o=t(i);return oe?e:o}},back:function(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}},elastic:function(t){return t||(t=1.5),function(n){return Math.pow(2,10*(n-1))*Math.cos(20*Math.PI*t/3*n)}}},Jre={number:function(t,n){var e=n-t;return function(i){return t+e*i}},object:function(t,n){var e=Object.keys(t);return function(i){var o,r,a={};for(o=e.length-1;-1!=o;o--)a[r=e[o]]=t[r]+(n[r]-t[r])*i;return a}},hexColor:function(t,n){var e=parseInt(t.slice(1),16),i=parseInt(n.slice(1),16),o=255&e,r=(255&i)-o,a=65280&e,l=(65280&i)-a,u=16711680&e,f=(16711680&i)-u;return function(M){return"#"+(1<<24|o+r*M&255|a+l*M&65280|u+f*M&16711680).toString(16).slice(1)}},unit:function(t,n){var e=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=e.exec(t),o=e.exec(n),r=o[1].indexOf("."),a=r>0?o[1].length-r-1:0,l=+o[1]-(t=+i[1]),u=i[2];return function(f){return(t+l*f).toFixed(a)+u}}},Dct={outline:function(t){var e=Number.isFinite(t.margin)?t.margin:2,i=Number.isFinite(t.width)?t.width:1;return h2('')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+i,innerRadius:e})},highlight:function(t){return h2('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var n=Number.isFinite(t.x)?t.x:2;return h2('')({stdDeviation:Number.isFinite(t.y)?[n,t.y]:n})},dropShadow:function(t){var n="SVGFEDropShadowElement"in window?'':'';return h2(n)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({a:.2126+.7874*(1-n),b:.7152-.7152*(1-n),c:.0722-.0722*(1-n),d:.2126-.2126*(1-n),e:.7152+.2848*(1-n),f:.0722-.0722*(1-n),g:.2126-.2126*(1-n),h:.0722+.9278*(1-n)})},sepia:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({a:.393+.607*(1-n),b:.769-.769*(1-n),c:.189-.189*(1-n),d:.349-.349*(1-n),e:.686+.314*(1-n),f:.168-.168*(1-n),g:.272-.272*(1-n),h:.534-.534*(1-n),i:.131+.869*(1-n)})},saturate:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({amount:1-n})},hueRotate:function(t){return h2('')({angle:t.angle||0})},invert:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({amount:n,amount2:1-n})},brightness:function(t){return h2('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return h2('')({amount:n,amount2:.5-n/2})}},h2=function(t){var n=/<%= ([^ ]+) %>|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(e){return e=e||{},t.replace(n,function(i){for(var o=Array.from(arguments),r=o.slice(1,4).find(function(u){return!!u}),a=r.split("."),l=e[a.shift()];void 0!==l&&a.length;)l=l[a.shift()];return void 0!==l?l:""})}},Ar=Zt.assign,ah=Zt.defaults,Xz=Zt.defaultsDeep,Kh=Zt.invokeMap||Zt.invoke,eae=Zt.sortedIndexBy||Zt.sortedIndex,Z_=Zt.uniqBy||Zt.uniq,ep=Zt.clone,sh=Zt.cloneDeep,S4=Zt.isEmpty,Wv=Zt.isEqual,Hs=Zt.isFunction,z1=Zt.isPlainObject,Ba=Zt.toArray,kct=Zt.groupBy,Ict=Zt.flattenDeep,Qz=Zt.without,tae=Zt.difference,Zz=Zt.union,tp=Zt.has,_1=Zt.result,P4=Zt.omit,nae=Zt.pick,ch=Zt.forIn,Nct=Zt.camelCase,Rct=Zt.uniqueId,F1=function(){if(Zt.mergeWith){var t=Array.from(arguments),n=t[t.length-1],e=Hs(n)?n:K_;return t.push(function(i,o){var r=e(i,o);return void 0!==r?r:Array.isArray(i)&&!Array.isArray(o)?o:void 0}),Zt.mergeWith.apply(this,t)}return Zt.merge.apply(this,arguments)},qc=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},B2=function(t){return"number"==typeof t||!!t&&"object"==typeof t&&"[object Number]"===Object.prototype.toString.call(t)},pd=function(t){return"string"==typeof t||!!t&&"object"==typeof t&&"[object String]"===Object.prototype.toString.call(t)},K_=function(){};function iae(t){t=Z_(t);const n=Ba(t).reduce(function(e,i){return e[i.id]=i.clone(),e},{});return Ba(t).forEach(function(e){const i=n[e.id];if(i.isLink()){const a=i.source(),l=i.target();a.id&&n[a.id]&&i.prop("source/id",n[a.id].id),l.id&&n[l.id]&&i.prop("target/id",n[l.id].id)}const o=e.get("parent");o&&n[o]&&i.set("parent",n[o].id);const r=Ba(e.get("embeds")).reduce(function(a,l){return n[l]&&a.push(n[l].id),a},[]);S4(r)||i.set("embeds",r)}),n}const N3={x:"x",y:"y",width:"w",height:"h",minimum:"s",maximum:"l",diagonal:"d"},Fct=Object.keys(N3).map(t=>N3[t]).join(""),oae="[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?",Hct=/\s/g,rae=new RegExp(`^(${oae}\\*)?([${Fct}])([-+]{1,2}${oae})?$`,"g");function aae(t){throw new Error(`Invalid calc() expression: ${t}`)}function Vct(t,n){const e=rae.exec(t.replace(Hct,""));e||aae(t),rae.lastIndex=0;const[,i=1,o,r=0]=e,{x:a,y:l,width:u,height:f}=n;let M=0;switch(o){case N3.width:M=u;break;case N3.height:M=f;break;case N3.x:M=a;break;case N3.y:M=l;break;case N3.minimum:M=Math.min(f,u);break;case N3.maximum:M=Math.max(f,u);break;case N3.diagonal:M=Math.sqrt(f*f+u*u)}return parseFloat(i)*M+function Bct(t){if(!t)return 0;const[n]=t;switch(n){case"+":return parseFloat(t.substr(1));case"-":return-parseFloat(t.substr(1))}return parseFloat(t)}(r)}function Kz(t){return"string"==typeof t&&t.includes("calc")}const cae="calc(".length;function Jz(t,n){let e=t,i=0;for(;;){let o=e.indexOf("calc(",i);if(-1===o)return e;let r=o+cae,a=1;e:for(;;){switch(e[r]){case"(":a++;break;case")":if(a--,0===a)break e;break;case void 0:aae(e)}r++}let l=e.slice(o+cae,r);Kz(l)&&(l=Jz(l,n));const u=String(Vct(l,n));e=e.slice(0,o)+u+e.slice(r+1),i=o+u.length}}function T4(t,n){return function(e,i){var o=rh(e);e=parseFloat(e),o&&(e/=100);var r={};if(isFinite(e)){var a=o||e>=0&&e<=1?e*i[n]:Math.max(e+i[n],0);r[t]=a}return r}}function fP(t,n,e){return function(i,o){var a,r=rh(i);if(i=parseFloat(i),r&&(i/=100),isFinite(i)){var l=o[e]();a=r||i>0&&i<1?l[t]+o[n]*i:l[t]+i}var u=wn();return u[t]=a||0,u}}function lae(t,n,e){return function(i,o){var r;r="middle"===i?o[n]/2:i===e?o[n]:isFinite(i)?i>-1&&i<1?-o[n]*i:-i:rh(i)?o[n]*parseFloat(i)/100:0;var a=wn();return a[t]=-(o[t]+r),a}}function dae(t,n){var e="joint-shape",i=n&&n.resetOffset;return function(o,r,a){var l=As(a),u=l.data(e);if(!u||u.value!==o){var f=t(o);u={value:o,shape:f,shapeBBox:f.bbox()},l.data(e,u)}var M=u.shape.clone(),T=u.shapeBBox.clone(),U=T.origin(),ie=r.origin();T.x=ie.x,T.y=ie.y;var se=r.maxRectScaleToFit(T,ie);return M.scale(0===T.width||0===r.width?1:se.sx,0===T.height||0===r.height?1:se.sy,U),i&&M.translate(-U.x,-U.y),M}}function uae(t){var e=dae(function n(i){return new _r(wi.normalizePathData(i))},t);return function(i,o,r){return{d:e(i,o,r).serialize()}}}function hae(t){var n=dae(cc,t);return function(e,i,o){return{points:n(e,i,o).serialize()}}}function gP(t,n){var e=new wn(1,0);return function(i){var o,r,a=this[t](i);return a?(r=n.rotate?a.vector().vectorAngle(e):0,o=a.start):(o=this.path.start,r=0),0===r?{transform:"translate("+o.x+","+o.y+")"}:{transform:"translate("+o.x+","+o.y+") rotate("+r+")"}}}function pae(t){return function(e,i,o){const r=wi(o);r.attr(t)!==e&&r.attr(t,e)}}function J_(t,n,e){return void 0!==e.text}function qv(){return this.model.isLink()}function eF(t){var n={},e=t.stroke;"string"==typeof e&&(n.stroke=e,n.fill=e);var i=t.strokeOpacity;return void 0===i&&(i=t["stroke-opacity"]),void 0===i&&(i=t.opacity),void 0!==i&&(n["stroke-opacity"]=i,n["fill-opacity"]=i),n}function fae(t){const{paper:n}=this;return`url(#${"pattern"===t.type?n.definePattern(t):n.defineGradient(t)})`}const Fa={xlinkShow:{set:"xlink:show"},xlinkRole:{set:"xlink:role"},xlinkType:{set:"xlink:type"},xlinkArcrole:{set:"xlink:arcrole"},xlinkTitle:{set:"xlink:title"},xlinkActuate:{set:"xlink:actuate"},xmlSpace:{set:"xml:space"},xmlBase:{set:"xml:base"},xmlLang:{set:"xml:lang"},preserveAspectRatio:{set:"preserveAspectRatio"},requiredExtension:{set:"requiredExtension"},requiredFeatures:{set:"requiredFeatures"},systemLanguage:{set:"systemLanguage"},externalResourcesRequired:{set:"externalResourceRequired"},href:{set:pae("href")},xlinkHref:{set:pae("xlink:href")},filter:{qualify:z1,set:function(t){return"url(#"+this.paper.defineFilter(t)+")"}},fill:{qualify:z1,set:fae},stroke:{qualify:z1,set:fae},sourceMarker:{qualify:z1,set:function(t,n,e,i){return t=Ar(eF(i),t),{"marker-start":"url(#"+this.paper.defineMarker(t)+")"}}},targetMarker:{qualify:z1,set:function(t,n,e,i){return t=Ar(eF(i),{transform:"rotate(180)"},t),{"marker-end":"url(#"+this.paper.defineMarker(t)+")"}}},vertexMarker:{qualify:z1,set:function(t,n,e,i){return t=Ar(eF(i),t),{"marker-mid":"url(#"+this.paper.defineMarker(t)+")"}}},text:{qualify:function(t,n,e){return!e.textWrap||!z1(e.textWrap)},set:function(t,n,e,i){var o=As(e),r="joint-text",a=o.data(r),l=nae(i,"lineHeight","annotations","textPath","x","textVerticalAnchor","eol","displayEmpty");const{x:u}=l;Kz(u)&&(l.x=Jz(u,n));var f=l.fontSize=i["font-size"]||i.fontSize,M=JSON.stringify([t,l]);if(void 0===a||a!==M){f&&e.setAttribute("font-size",f);var T=l.textPath;if(qc(T)){var U=T.selector;if("string"==typeof U){var ie=this.findBySelector(U)[0];ie instanceof SVGPathElement&&(l.textPath=Ar({"xlink:href":"#"+ie.id},T))}}wi(e).text(""+t,l),o.data(r,M)}}},textWrap:{qualify:z1,set:function(t,n,e,i){var o=t.width||0,r={};r.width=rh(o)?n.width*parseFloat(o)/100:o<=0?n.width+o:o;var a=t.height||0;r.height=rh(a)?n.height*parseFloat(a)/100:a<=0?n.height+a:a;var l,u=t.text;void 0===u&&(u=i.text),l=void 0!==u?Kre(""+u,r,{"font-weight":i["font-weight"]||i.fontWeight,"font-size":i["font-size"]||i.fontSize,"font-family":i["font-family"]||i.fontFamily,lineHeight:i.lineHeight,"letter-spacing":"letter-spacing"in i?i["letter-spacing"]:i.letterSpacing},{svgDocument:this.paper.svg,ellipsis:t.ellipsis,hyphen:t.hyphen,maxLineCount:t.maxLineCount}):"",Fa.text.set.call(this,l,n,e,i)}},title:{qualify:function(t,n){return n instanceof SVGElement},set:function(t,n,e){var i=As(e),o="joint-title",r=i.data(o);if(void 0===r||r!==t){i.data(o,t);var a=e.firstChild;if(a&&"TITLE"===a.tagName.toUpperCase())a.textContent=t;else{var l=document.createElementNS(e.namespaceURI,"title");l.textContent=t,e.insertBefore(l,a)}}}},lineHeight:{qualify:J_},textVerticalAnchor:{qualify:J_},textPath:{qualify:J_},annotations:{qualify:J_},eol:{qualify:J_},displayEmpty:{qualify:J_},port:{set:function(t){return null===t||void 0===t.id?t:t.id}},style:{qualify:z1,set:function(t,n,e){As(e).css(t)}},html:{set:function(t,n,e){As(e).html(t+"")}},ref:{},refX:{position:fP("x","width","origin")},refY:{position:fP("y","height","origin")},refDx:{position:fP("x","width","corner")},refDy:{position:fP("y","height","corner")},refWidth:{set:T4("width","width")},refHeight:{set:T4("height","height")},refRx:{set:T4("rx","width")},refRy:{set:T4("ry","height")},refRInscribed:{set:(n=T4("r","width"),e=T4("r","height"),function(i,o){return(o.height>o.width?n:e)(i,o)})},refRCircumscribed:{set:function(t,n){var e=rh(t);t=parseFloat(t),e&&(t/=100);var o,i=Math.sqrt(n.height*n.height+n.width*n.width);return isFinite(t)&&(o=e||t>=0&&t<=1?t*i:Math.max(t+i,0)),{r:o}}},refCx:{set:T4("cx","width")},refCy:{set:T4("cy","height")},xAlignment:{offset:lae("x","width","right")},yAlignment:{offset:lae("y","height","bottom")},resetOffset:{offset:function(t,n){return t?{x:-n.x,y:-n.y}:{x:0,y:0}}},refDResetOffset:{set:uae({resetOffset:!0})},refDKeepOffset:{set:uae({resetOffset:!1})},refPointsResetOffset:{set:hae({resetOffset:!0})},refPointsKeepOffset:{set:hae({resetOffset:!1})},connection:{qualify:qv,set:function({stubs:t=0}){let n;if(isFinite(t)&&0!==t){let e;e=t<0?(this.getConnectionLength()+t)/2:t;const i=this.getConnection(),o=i.divideAtLength(e),r=i.divideAtLength(-e);o&&r&&(n=`${o[0].serialize()} ${r[1].serialize()}`)}return{d:n||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:qv,set:gP("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:qv,set:gP("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:qv,set:gP("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:qv,set:gP("getTangentAtRatio",{rotate:!1})}};var n,e;Fa["xlink:href"]=Fa.xlinkHref,["transform","d","points","width","height","cx","cy","r","rx","ry","x1","x2","y1","y2","x","y","dx","dy"].forEach(t=>{Fa[t]={qualify:Kz,set:function(e,i){return{[t]:Jz(e,i)}}}}),Fa.refR=Fa.refRInscribed,Fa.refD=Fa.refDResetOffset,Fa.refPoints=Fa.refPointsResetOffset,Fa.atConnectionLength=Fa.atConnectionLengthKeepGradient,Fa.atConnectionRatio=Fa.atConnectionRatioKeepGradient,Fa.refX2=Fa.refX,Fa.refY2=Fa.refY,Fa.refWidth2=Fa.refWidth,Fa.refHeight2=Fa.refHeight,Fa["ref-x"]=Fa.refX,Fa["ref-y"]=Fa.refY,Fa["ref-dy"]=Fa.refDy,Fa["ref-dx"]=Fa.refDx,Fa["ref-width"]=Fa.refWidth,Fa["ref-height"]=Fa.refHeight,Fa["x-alignment"]=Fa.xAlignment,Fa["y-alignment"]=Fa.yAlignment;const gae=Fa,np=Nd.Model.extend({constructor:function(t,n){var e,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Rct("c"),this.attributes={},n&&n.collection&&(this.collection=n.collection),n&&n.parse&&(i=this.parse(i,n)||{}),(e=_1(this,"defaults"))&&(i=F1({},e,i)),this.set(i,n),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,n,e){throw new Error("Must define a translate() method.")},toJSON:function(){const n=_1(this.constructor.prototype,"defaults").attrs||{},i={};ch(this.attributes.attrs,function(r,a){const l=n[a];ch(r,function(u,f){qc(u)&&!Array.isArray(u)?ch(u,function(M,T){(!l||!l[f]||!Wv(l[f][T],M))&&(i[a]=i[a]||{},(i[a][f]||(i[a][f]={}))[T]=M)}):(!l||!Wv(l[f],u))&&(i[a]=i[a]||{},i[a][f]=u)})});const o=sh(P4(this.attributes,"attrs"));return o.attrs=i,o},initialize:function(t){const n=this.getIdAttribute();(!t||!(n in t))&&this.set(n,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},processPorts:function(){var t=this.ports,n={};ch(this.get("attrs"),function(r,a){r&&r.port&&(void 0!==r.port.id?n[r.port.id]=r.port:n[r.port]={id:r.port})});var e={};ch(t,function(r,a){n[a]||(e[a]=!0)}),this.graph&&!S4(e)&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(r){e[r.get("target").port]&&r.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(r){e[r.get("source").port]&&r.remove()})),this.ports=n},remove:function(t={}){const{graph:n,collection:e}=this;if(!n)return e&&e.remove(this,t),this;n.startBatch("remove");const i=this.getParentCell();i&&i.unembed(this,t);const o=this.getEmbeddedCells();for(let r=0,a=o.length;rthis!==e&&!this.isEmbeddedIn(e))},_embedCells:function(t,n){const e="embed";this.startBatch(e);const i=Ar([],this.get("embeds"));t.forEach(o=>{i[o.isLink()?"unshift":"push"](o.id),o.parent(this.id,n)}),this.set("embeds",Z_(i),n),this.stopBatch(e)},_unembedCells:function(t,n){const e="unembed";this.startBatch(e),t.forEach(i=>i.unset("parent",n)),this.set("embeds",Qz(this.get("embeds"),...t.map(i=>i.id)),n),this.stopBatch(e)},getParentCell:function(){var t=this.parent(),n=this.graph;return t&&n&&n.getCell(t)||null},getAncestors:function(){var t=[];if(!this.graph)return t;for(var n=this.getParentCell();n;)t.push(n),n=n.getParentCell();return t},getEmbeddedCells:function(t){if(t=t||{},this.graph){var n;if(t.deep)if(t.breadthFirst){n=[];for(var e=this.getEmbeddedCells();e.length>0;){var i=e.shift();n.push(i),e.push.apply(e,i.getEmbeddedCells())}}else(n=this.getEmbeddedCells()).forEach(function(o){n.push.apply(n,o.getEmbeddedCells(t))});else n=Ba(this.get("embeds")).map(this.graph.getCell,this.graph);return n}return[]},isEmbeddedIn:function(t,n){var e=pd(t)?t:t.id,i=this.parent();if(n=ah({deep:!0},n),this.graph&&n.deep){for(;i;){if(i===e)return!0;i=this.graph.getCell(i).parent()}return!1}return i===e},isEmbedded:function(){return!!this.parent()},clone:function(t){if((t=t||{}).deep)return Ba(iae([this].concat(this.getEmbeddedCells({deep:!0}))));var n=Nd.Model.prototype.clone.apply(this,arguments);return n.set(this.getIdAttribute(),this.generateId()),n.unset("embeds"),n.unset("parent"),n},prop:function(t,n,e){var i="/",o=pd(t);if(o||Array.isArray(t)){if(arguments.length>1){var r,a;o?a=(r=t).split("/"):(r=t.join(i),a=t.slice());var l=a[0],u=a.length;if((e=e||{}).propertyPath=r,e.propertyValue=n,e.propertyPathArray=a,1===u)return this.set(l,n,e);for(var f={},M=f,T=l,U=1;U{u[t]&&(u[t]=Qz(u[t],f),0===u[t].length&&delete u[t]),this.stopPendingTransitions(t,i),a=e.valueFunction(Uv(this.attributes,t,i),n),this._transitionIds[t]=qz(T),this.trigger("transition:start",this,t)},e.delay,l),u[t]||(u[t]=[]),u[t].push(f),f},getTransitions:function(){return Zz(Object.keys(this._transitionIds),Object.keys(this._scheduledTransitionIds))},stopScheduledTransitions:function(t,n="/"){const{_scheduledTransitionIds:e={}}=this;let i=Object.keys(e);if(t){const o=t.split(n);i=i.filter(r=>Wv(o,r.split(n).slice(0,o.length)))}return i.forEach(o=>{e[o].forEach(a=>clearTimeout(a)),delete e[o]}),this},stopPendingTransitions(t,n="/"){const{_transitionIds:e={}}=this;let i=Object.keys(e);if(t){const o=t.split(n);i=i.filter(r=>Wv(o,r.split(n).slice(0,o.length)))}i.forEach(o=>{$z(e[o]),delete e[o],this.trigger("transition:end",this,o)})},stopTransitions:function(t,n="/"){return this.stopScheduledTransitions(t,n),this.stopPendingTransitions(t,n),this},addTo:function(t,n){return t.addCell(this,n),this},findView:function(t){return t.findViewByModel(this)},isElement:function(){return!1},isLink:function(){return!1},startBatch:function(t,n){return this.graph&&this.graph.startBatch(t,Ar({},n,{cell:this})),this},stopBatch:function(t,n){return this.graph&&this.graph.stopBatch(t,Ar({},n,{cell:this})),this},getChangeFlag:function(t){var n=0;if(!t)return n;for(var e in t)!t.hasOwnProperty(e)||!this.hasChanged(e)||(n|=t[e]);return n},angle:function(){return 0},position:function(){return new wn(0,0)},getPointFromConnectedLink:function(){return new wn},getBBox:function(){return new Po(0,0,0,0)},getPointRotatedAroundCenter(t,n,e){const i=new wn(n,e);return t&&i.rotate(this.getBBox().center(),t),i},getAbsolutePointFromRelative(t,n){return this.getPointRotatedAroundCenter(-this.angle(),this.position().offset(t,n))},getRelativePointFromAbsolute(t,n){return this.getPointRotatedAroundCenter(this.angle(),t,n).difference(this.position())}},{getAttributeDefinition:function(t){var n=this.attributes;return n&&n[t]||gae[t]},define:function(t,n,e,i){e=Ar({defaults:Xz({type:t},n,this.prototype.defaults)},e);var o=this.extend(e,i);return"undefined"!=typeof joint&&tp(joint,"shapes")&&Wz(joint.shapes,t,o,"."),o}});function mae(t,n,e){var i=t.toJSON();return i.angle=n||0,ah({},e,i)}function $v(t,n,e){return t.map(function(i,o,r){var a=this.pointAt((o+.5)/r.length);return(i.dx||i.dy)&&a.offset(i.dx||0,i.dy||0),mae(a.round(),0,i)},Nm(n,e))}function _ae(t,n,e,i){var o=n.center(),r=n.width/n.height,a=n.topMiddle(),l=d2.fromRect(n);return t.map(function(u,f,M){var T=e+i(f,M.length),U=a.clone().rotate(o,-T).scale(r,1,o),ie=u.compensateRotation?-l.tangentTheta(U):0;return(u.dx||u.dy)&&U.offset(u.dx||0,u.dy||0),u.dr&&U.move(o,u.dr),mae(U.round(),ie,u)})}function tF(t,n){var e=n.x;pd(e)&&(e=parseFloat(e)/100*t.width);var i=n.y;return pd(i)&&(i=parseFloat(i)/100*t.height),Bv(e||0,i||0)}const Gct=function(t,n,e){return t.map(tF.bind(null,n))},Yct=function(t,n,e){return e.fn(t,n,e)},Uct=function(t,n,e){return $v(t,tF(n,e.start||n.origin()),tF(n,e.end||n.corner()))},jct=function(t,n,e){return $v(t,n.origin(),n.bottomLeft())},Wct=function(t,n,e){return $v(t,n.topRight(),n.corner())},qct=function(t,n,e){return $v(t,n.origin(),n.topRight())},$ct=function(t,n,e){return $v(t,n.bottomLeft(),n.corner())},Xct=function(t,n,e){var o=e.step||360/t.length;return _ae(t,n,e.startAngle||0,function(r){return r*o})},Qct=function(t,n,e){var o=e.step||20;return _ae(t,n,e.startAngle||0,function(r,a){return(r+.5-a/2)*o})};function E4(t,n){return Xz({},t,n,{x:0,y:0,angle:0,attrs:{".":{y:"0","text-anchor":"start"}}})}function Cae(t,n,e,i){i=ah({},i,{offset:15});var a,l,u,f,o=n.center().theta(t),r=vae(n),M=i.offset,T=0;or[2]?(u=".3em",a=M,l=0,f="start"):oT[2]?(l=".3em",r=-f,a=0,u="end"):o-270&&o<-90?(u="start",r=o-180):u="end";var f=Math.round;return E4({x:f(a.x),y:f(a.y),angle:n?r:0,attrs:{".":{y:l,"text-anchor":u}}})}const Zct=function(t,n,e){return E4(e,n)},Kct=function(t,n,e){return E4(e,{x:-15,attrs:{".":{y:".3em","text-anchor":"end"}}})},Jct=function(t,n,e){return E4(e,{x:15,attrs:{".":{y:".3em","text-anchor":"start"}}})},elt=function(t,n,e){return E4(e,{y:-15,attrs:{".":{"text-anchor":"middle"}}})},tlt=function(t,n,e){return E4(e,{y:15,attrs:{".":{y:".6em","text-anchor":"middle"}}})},nlt=function(t,n,e){return Cae(t,n,!0,e)},ilt=function(t,n,e){return Cae(t,n,!1,e)},olt=function(t,n,e){return bae(t,n,!0,e)},rlt=function(t,n,e){return bae(t,n,!1,e)},alt=function(t,n,e){return xae(t.difference(n.center()),!1,e)},slt=function(t,n,e){return xae(t.difference(n.center()),!0,e)};var yae=function(t){var n=sh(t)||{};this.ports=[],this.groups={},this.portLayoutNamespace=x,this.portLabelLayoutNamespace=S,this._init(n)};yae.prototype={getPorts:function(){return this.ports},getGroup:function(t){return this.groups[t]||{}},getPortsByGroup:function(t){return this.ports.filter(function(n){return n.group===t})},getGroupPortsMetrics:function(t,n){var e=this.getGroup(t),i=this.getPortsByGroup(t),o=e.position||{},r=o.name,a=this.portLayoutNamespace;a[r]||(r="left");var l=o.args||{},u=i.map(function(T){return T&&T.position&&T.position.args}),f=a[r](u,n,l),M={ports:i,result:[]};return Ba(f).reduce(function(T,U,ie){var se=T.ports[ie];return T.result.push({portId:se.id,portTransformation:U,labelTransformation:this._getPortLabelLayout(se,wn(U),n),portAttrs:se.attrs,portSize:se.size,labelSize:se.label.size}),T}.bind(this),M),M.result},_getPortLabelLayout:function(t,n,e){var i=this.portLabelLayoutNamespace,o=t.label.position.name||"left";return i[o]?i[o](n,e,t.label.position.args):null},_init:function(t){if(qc(t.groups))for(var n=Object.keys(t.groups),e=0,i=n.length;e0},hasPort:function(t){return-1!==this.getPortIndex(t)},getPorts:function(){return sh(this.prop("ports/items"))||[]},getGroupPorts:function(t){const n=Ba(this.prop(["ports","items"])).filter(e=>e.group===t);return sh(n)},getPort:function(t){return sh(Ba(this.prop("ports/items")).find(function(n){return n.id&&n.id===t}))},getPortsPositions:function(t){return this._portSettingsData.getGroupPortsMetrics(t,Po(this.size())).reduce(function(e,i){var o=i.portTransformation;return e[i.portId]={x:o.x,y:o.y,angle:o.angle},e},{})},getPortIndex:function(t){var n=qc(t)?t.id:t;return this._isValidPortId(n)?Ba(this.prop("ports/items")).findIndex(function(e){return e.id===n}):-1},addPort:function(t,n){if(!qc(t)||Array.isArray(t))throw new Error("Element: addPort requires an object.");var e=Ar([],this.prop("ports/items"));return e.push(t),this.prop("ports/items",e,n),this},insertPort:function(t,n,e){const i="number"==typeof t?t:this.getPortIndex(t);if(!qc(n)||Array.isArray(n))throw new Error("dia.Element: insertPort requires an object.");const o=Ar([],this.prop("ports/items"));return o.splice(i,0,n),this.prop("ports/items",o,e),this},portProp:function(t,n,e,i){var o=this.getPortIndex(t);if(-1===o)throw new Error("Element: unable to find port with id "+t);var r=Array.prototype.slice.call(arguments,1);return Array.isArray(n)?r[0]=["ports","items",o].concat(n):pd(n)?r[0]=["ports/items/",o,"/",n].join(""):(r=["ports/items/"+o],z1(n)&&(r.push(n),r.push(e))),this.prop.apply(this,r)},_validatePorts:function(){var t=this.get("ports")||{},n=[],e=Ba((t=t||{}).items);return e.forEach(function(i){"object"!=typeof i&&n.push("Element: invalid port ",i),this._isValidPortId(i.id)||(i.id=this.generatePortId())},this),Z_(e,"id").length!==e.length&&n.push("Element: found id duplicities in ports."),n},generatePortId:function(){return this.generateId()},_isValidPortId:function(t){return null!=t&&!qc(t)},addPorts:function(t,n){return t.length&&this.prop("ports/items",Ar([],this.prop("ports/items")).concat(t),n),this},removePort:function(t,n){const e=n||{},i=this.getPortIndex(t);if(-1!==i){const o=Ar([],this.prop(["ports","items"]));o.splice(i,1),e.rewrite=!0,this.startBatch("port-remove"),this.prop(["ports","items"],o,e),this.stopBatch("port-remove")}return this},removePorts:function(t,n){let e,i;if(Array.isArray(t)){if(e=n||{},0===t.length)return this.this;i=Ar([],this.prop(["ports","items"])).filter(function(r){return!t.some(function(a){const l=qc(a)?a.id:a;return r.id===l})})}else e=t||{},i=[];return this.startBatch("port-remove"),e.rewrite=!0,this.prop(["ports","items"],i,e),this.stopBatch("port-remove"),this},_createPortData:function(){var n,t=this._validatePorts();if(t.length>0)throw this.set("ports",this.previous("ports")),new Error(t.join(" "));this._portSettingsData&&(n=this._portSettingsData.getPorts()),this._portSettingsData=new yae(this.get("ports"));var e=this._portSettingsData.getPorts();if(n){var i=e.filter(function(r){if(!n.find(function(a){return a.id===r.id}))return r}),o=n.filter(function(r){if(!e.find(function(a){return a.id===r.id}))return r});o.length>0&&this.trigger("ports:remove",this,o),i.length>0&&this.trigger("ports:add",this,i)}}},llt={portContainerMarkup:"g",portMarkup:[{tagName:"circle",selector:"circle",attributes:{r:10,fill:"#FFFFFF",stroke:"#000000"}}],portLabelMarkup:[{tagName:"text",selector:"text",attributes:{fill:"#000000"}}],_portElementsCache:null,_initializePorts:function(){this._cleanPortsCache()},_refreshPorts:function(){this._removePorts(),this._cleanPortsCache(),this._renderPorts()},_cleanPortsCache:function(){this._portElementsCache={}},_renderPorts:function(){for(var t=[],n=this._getContainerElement(),e=0,i=n.node.childNodes.length;e1?wi("g").append(u):wi(u.firstChild),o=l.selectors}else n=wi(a),Array.isArray(n)&&(n=wi("g").append(n));if(!n)throw new Error("ElementView: Invalid port markup.");n.attr({port:t.id,"port-group":t.group});const f=this._getPortLabelMarkup(t.label);if(Array.isArray(f)){const{fragment:U,selectors:ie}=this.parseDOMJSON(f,r.node),se=U.childNodes.length;se>0&&(i=ie,e=1===se?wi(U.firstChild):wi("g").append(U))}else e=wi(f),Array.isArray(e)&&(e=wi("g").append(e));var M;if(o&&i){for(var T in i)if(o[T]&&T!==this.selector)throw new Error("ElementView: selectors within port must be unique.");M=Ar({},o,i)}else M=o||i;return r.append(n.addClass("joint-port-body")),e&&r.append(e.addClass("joint-port-label")),this._portElementsCache[t.id]={portElement:r,portLabelElement:e,portSelectors:M,portLabelSelectors:i,portContentElement:n,portContentSelectors:o},r},_updatePortGroup:function(t){for(var n=Po(this.model.size()),e=this.model._portSettingsData.getGroupPortsMetrics(t,n),i=0,o=e.length;iT.isElement());if(0===e.length)return this;this.startBatch("fit-embeds",t),t.deep&&Kh(e,"fitEmbeds",t);const{left:i,right:o,top:r,bottom:a}=Q_(t.padding);let{x:l,y:u,width:f,height:M}=n.getCellsBBox(e);return l-=i,u-=r,f+=i+o,M+=a+r,this.set({position:{x:l,y:u},size:{width:f,height:M}},t),this.stopBatch("fit-embeds"),this},rotate:function(t,n,e,i){if(e){var o=this.getBBox().center(),r=this.get("size"),a=this.get("position");o.rotate(e,this.get("angle")-t);var l=o.x-r.width/2-a.x,u=o.y-r.height/2-a.y;this.startBatch("rotate",{angle:t,absolute:n,origin:e}),this.position(a.x+l,a.y+u,i),this.rotate(t,n,null,i),this.stopBatch("rotate")}else this.set("angle",n?t:(this.get("angle")+t)%360,i);return this},angle:function(){return K0(this.get("angle")||0)},getBBox:function(t={}){const{graph:n,attributes:e}=this,{deep:i,rotate:o}=t;if(i&&n){const T=this.getEmbeddedCells({deep:!0,breadthFirst:!0});return T.push(this),n.getCellsBBox(T,t)}const{angle:r=0,position:{x:a,y:l},size:{width:u,height:f}}=e,M=new Po(a,l,u,f);return o&&M.rotateAroundCenter(r),M},getPointFromConnectedLink:function(t,n){var e=this.getBBox(),i=e.center(),o=t.get(n);if(!o)return i;var r=o.port;if(!r||!this.hasPort(r))return i;var a=this.portProp(r,["group"]),l=this.getPortsPositions(a),u=new wn(l[r]).offset(e.origin()),f=this.angle();return f&&u.rotate(i,-f),u}});Ar(Vs.prototype,clt);const Hm={},e8=Nd.View.extend({options:{},theme:null,themeClassNamePrefix:Zh("theme-"),requireSetThemeOverride:!1,defaultTheme:oh.defaultTheme,children:null,childNodes:null,DETACHABLE:!0,UPDATE_PRIORITY:2,FLAG_INSERT:1<<30,FLAG_REMOVE:1<<29,constructor:function(t){this.requireSetThemeOverride=t&&!!t.theme,this.options=Ar({},this.options,t),Nd.View.call(this,t)},initialize:function(){Hm[this.cid]=this,this.setTheme(this.options.theme||this.defaultTheme),this.init()},unmount:function(){this.svgElement?this.vel.remove():this.$el.remove()},renderChildren:function(t){if(t||(t=_1(this,"children")),t){var n=this.svgElement,i=hP(t,wi.namespace[n?"svg":"xhtml"]);(n?this.vel:this.$el).empty().append(i.fragment),this.childNodes=i.selectors}return this},findAttribute:function(t,n){for(var e=n;e&&1===e.nodeType;){var i=e.getAttribute(t);if(i)return i;if(e===this.el)return null;e=e.parentNode}return null},_ensureElement:function(){if(this.el)this.setElement(_1(this,"el"));else{var t=_1(this,"tagName"),n=Ar({},_1(this,"attributes")),e=Ar({},_1(this,"style"));this.id&&(n.id=_1(this,"id")),this.setElement(this._createElement(t)),this._setAttributes(n),this._setStyle(e)}this._ensureElClassName()},_setAttributes:function(t){this.svgElement?this.vel.attr(t):this.$el.attr(t)},_setStyle:function(t){this.$el.css(t)},_createElement:function(t){return this.svgElement?document.createElementNS(wi.namespace.svg,t):document.createElement(t)},_setElement:function(t){this.$el=t instanceof Nd.$?t:Nd.$(t),this.el=this.$el[0],this.svgElement&&(this.vel=wi(this.el))},_ensureElClassName:function(){var t=_1(this,"className");if(t){var n=Zh(t);this.svgElement?this.vel.removeClass(t).addClass(n):this.$el.removeClass(t).addClass(n)}},init:function(){},onRender:function(){},confirmUpdate:function(){return 0},setTheme:function(t,n){return n=n||{},this.theme&&this.requireSetThemeOverride&&!n.override||(this.removeThemeClassName(),this.addThemeClassName(t),this.onSetTheme(this.theme,t),this.theme=t),this},addThemeClassName:function(t){if(!(t=t||this.theme))return this;var n=this.themeClassNamePrefix+t;return this.svgElement?this.vel.addClass(n):this.$el.addClass(n),this},removeThemeClassName:function(t){var n=this.themeClassNamePrefix+(t=t||this.theme);return this.svgElement?this.vel.removeClass(n):this.$el.removeClass(n),this},onSetTheme:function(t,n){},remove:function(){return this.onRemove(),this.undelegateDocumentEvents(),Hm[this.cid]=null,Nd.View.prototype.remove.apply(this,arguments),this},onRemove:function(){},getEventNamespace:function(){return".joint-event-ns-"+this.cid},delegateElementEvents:function(t,n,e){if(!n)return this;e||(e={});var i=this.getEventNamespace();for(var o in n){var r=n[o];"function"!=typeof r&&(r=this[r]),r&&As(t).on(o+i,e,r.bind(this))}return this},undelegateElementEvents:function(t){return As(t).off(this.getEventNamespace()),this},delegateDocumentEvents:function(t,n){return t||(t=_1(this,"documentEvents")),this.delegateElementEvents(document,t,n)},undelegateDocumentEvents:function(){return this.undelegateElementEvents(document)},eventData:function(t,n){if(!t)throw new Error("eventData(): event object required.");var e=t.data,i="__"+this.cid+"__";return void 0===n?e&&e[i]||{}:(e||(e=t.data={}),e[i]||(e[i]={}),Ar(e[i],n),this)},stopPropagation:function(t){return this.eventData(t,{propagationStopped:!0}),this},isPropagationStopped:function(t){return!!this.eventData(t).propagationStopped}},{extend:function(){var t=Array.from(arguments),n=t[0]&&Ar({},t[0])||{},e=t[1]&&Ar({},t[1])||{},i=n.render||this.prototype&&this.prototype.render||null;return n.render=function(){return"function"==typeof i&&i.apply(this,arguments),this.render.__render__===i&&this.onRender(),this},n.render.__render__=i,Nd.View.extend.call(this,n,e)}});if(As.event&&!("dbltap"in As.event.special)){const t=oh.doubleTapInterval,n=30;As.event.special.dbltap={bindType:"touchend",delegateType:"touchend",handle:function(e,...i){const{handleObj:o,target:r}=e,a=As.data(r),l=(new Date).getTime(),u="lastTouch"in a?l-a.lastTouch:0;un?(a.lastTouch=null,e.type=o.origType,o.handler.call(this,e,...i)):a.lastTouch=l}}}function nF(t){return t?Array.isArray(t)?t:[t]:[]}const A4=e8.extend({tagName:"g",svgElement:!0,className:"highlight",HIGHLIGHT_FLAG:1,UPDATE_PRIORITY:3,DETACHABLE:!1,UPDATABLE:!0,MOUNTABLE:!0,cellView:null,nodeSelector:null,node:null,updateRequested:!1,transformGroup:null,requestUpdate(t,n){const{paper:e}=t;this.cellView=t,this.nodeSelector=n,e&&(this.updateRequested=!0,e.requestViewUpdate(this,this.HIGHLIGHT_FLAG,this.UPDATE_PRIORITY))},confirmUpdate(){this.updateRequested=!1;const{cellView:t,nodeSelector:n}=this;return this.update(t,n),this.mount(),this.transform(),0},findNode(t,n=null){let e;if("string"==typeof n)[e]=t.findBySelector(n);else if(z1(n)){const i=t.model.isLink(),{label:o=null,port:r,selector:a}=n;i&&null!==o?e=t.findLabelNode(o,a):!i&&r?e=t.findPortNode(r,a):[e]=t.findBySelector(a)}else n&&(e=wi.toNode(n),e instanceof SVGElement||(e=null));return e||null},mount(){const{MOUNTABLE:t,cellView:n,el:e,options:i,transformGroup:o}=this;if(!t||o)return;const{vel:r,paper:a}=n,{layer:l}=i;if(l){const u=this.transformGroup=wi("g").addClass("highlight-transform").append(e);a.getLayerView(l).insertSortedNode(u.node,i.z)}else(!e.parentNode||e.nextSibling)&&r.append(e)},unmount(){const{MOUNTABLE:t,transformGroup:n,vel:e}=this;!t||(n?(this.transformGroup=null,n.remove()):e.remove())},transform(){const{transformGroup:t,cellView:n,updateRequested:e}=this;if(!t||n.model.isLink()||e)return;const i=n.getRootTranslateMatrix(),o=n.getRootRotateMatrix(),r=i.multiply(o);t.attr("transform",wi.matrixToTransformString(r))},update(){const{node:t,cellView:n,nodeSelector:e,updateRequested:i,id:o}=this;if(i)return;const r=this.node=this.findNode(n,e);t&&this.unhighlight(n,t),r?(this.highlight(n,r),this.mount()):(this.unmount(),n.notify("cell:highlight:invalid",o,this))},onRemove(){const{node:t,cellView:n,id:e,constructor:i}=this;t&&this.unhighlight(n,t),this.unmount(),i._removeRef(n,e)},highlight(t,n){},unhighlight(t,n){}},{_views:{},highlight:function(t,n,e){const i=this.uniqueId(n,e);this.add(t,n,i,e)},unhighlight:function(t,n,e){const i=this.uniqueId(n,e);this.remove(t,i)},get(t,n=null){const{cid:e}=t,{_views:i}=this,o=i[e];if(null===n){const r=[];if(!o)return r;for(let a in o){const l=o[a];l instanceof this&&r.push(l)}return r}if(!o)return null;if(n in o){const r=o[n];if(r instanceof this)return r}return null},add(t,n,e,i={}){if(!e)throw new Error("dia.HighlighterView: An ID required.");const o=A4.get(t,e);o&&o.remove();const r=new this(i);return r.id=e,this._addRef(t,e,r),r.requestUpdate(t,n),r},_addRef(t,n,e){const{cid:i}=t,{_views:o}=this;let r=o[i];r||(r=o[i]={}),r[n]=e},_removeRef(t,n){const{cid:e}=t,{_views:i}=this,o=i[e];if(o){n&&delete o[n];for(let r in o)return;delete i[e]}},remove(t,n=null){nF(this.get(t,n)).forEach(e=>{e.remove()})},update(t,n=null,e=!1){nF(this.get(t,n)).forEach(i=>{(e||i.UPDATABLE)&&i.update()})},transform(t,n=null){nF(this.get(t,n)).forEach(e=>{e.UPDATABLE&&e.transform()})},uniqueId:(t,n="")=>wi.ensureId(t)+JSON.stringify(n)}),t8={DEFAULT:"default",EMBEDDING:"embedding",CONNECTING:"connecting",MAGNET_AVAILABILITY:"magnetAvailability",ELEMENT_AVAILABILITY:"elementAvailability"},us=e8.extend({tagName:"g",svgElement:!0,selector:"root",metrics:null,className:function(){var t=["cell"],n=this.model.get("type");return n&&n.toLowerCase().split(".").forEach(function(e,i,o){t.push("type-"+o.slice(0,i+1).join("-"))}),t.join(" ")},_presentationAttributes:null,_flags:null,setFlags:function(){var i,o,r,t={},n={},e=0,a=_1(this,"presentationAttributes");for(var l in a)if(a.hasOwnProperty(l)){var u=a[l];for(Array.isArray(u)||(u=[u]),i=0,o=u.length;i25)throw new Error("dia.CellView: Maximum number of flags exceeded.");this._flags=t,this._presentationAttributes=n},hasFlag:function(t,n){return t&this.getFlag(n)},removeFlag:function(t,n){return t^t&this.getFlag(n)},getFlag:function(t){var n=this._flags;if(!n)return 0;var e=0;if(Array.isArray(t))for(var i=0,o=t.length;i0&&e.requestViewUpdate(this,t,this.UPDATE_PRIORITY,n)},parseDOMJSON:function(t,n){var e=hP(t),i=e.selectors,o=e.groupSelectors;for(var r in o){if(i[r])throw new Error("dia.CellView: ambiguous group selector");i[r]=o[r]}if(n){var a=this.selector;if(i[a])throw new Error("dia.CellView: ambiguous root selector.");i[a]=n}return{fragment:e.fragment,selectors:i}},can:function(t){var n=Hs(this.options.interactive)?this.options.interactive(this):this.options.interactive;return qc(n)&&!1!==n[t]||function(t){return!0===t||!1===t||!!t&&"object"==typeof t&&"[object Boolean]"===Object.prototype.toString.call(t)}(n)&&!1!==n},findBySelector:function(t,n,e){if(n||(n=this.el),e||(e=this.selectors),!t||"."===t)return[n];if(e){var i=e[t];if(i)return Array.isArray(i)?i:[i]}return oh.useCSSSelectors?As(n).find(t).toArray():[]},notify:function(t){if(this.paper){var n=Array.prototype.slice.call(arguments,1);this.trigger.apply(this,[t].concat(n)),this.paper.trigger.apply(this.paper,[t,this].concat(n))}},getBBox:function(t){var n;if(t&&t.useModelGeometry){var e=this.model;n=e.getBBox().bbox(e.angle())}else n=this.getNodeBBox(this.el);return this.paper.localToPaperRect(n)},getNodeBBox:function(t){var n=this.getNodeBoundingRect(t),e=this.getNodeMatrix(t),i=this.getRootTranslateMatrix(),o=this.getRootRotateMatrix();return wi.transformRect(n,i.multiply(o).multiply(e))},getNodeUnrotatedBBox:function(t){var n=this.getNodeBoundingRect(t),e=this.getNodeMatrix(t),i=this.getRootTranslateMatrix();return wi.transformRect(n,i.multiply(e))},getRootTranslateMatrix:function(){var n=this.model.position();return wi.createSVGMatrix().translate(n.x,n.y)},getRootRotateMatrix:function(){var t=wi.createSVGMatrix(),n=this.model,e=n.angle();if(e){var i=n.getBBox(),o=i.width/2,r=i.height/2;t=t.translate(o,r).rotate(e).translate(-o,-r)}return t},_notifyHighlight:function(t,n,e={}){const{el:i}=this;let o;if([o=i]="string"==typeof n?this.findBySelector(n):this.$(n),e.partial=o!==i,void 0===e.type){let r;switch(!0){case e.embedding:r=t8.EMBEDDING;break;case e.connecting:r=t8.CONNECTING;break;case e.magnetAvailability:r=t8.MAGNET_AVAILABILITY;break;case e.elementAvailability:r=t8.ELEMENT_AVAILABILITY;break;default:r=t8.DEFAULT}e.type=r}return this.notify(t,o,e),this},highlight:function(t,n){return this._notifyHighlight("cell:highlight",t,n)},unhighlight:function(t,n={}){return this._notifyHighlight("cell:unhighlight",t,n)},findMagnet:function(t){const n=this.el;let e=this.$(t)[0];e||(e=n);do{const i=e.getAttribute("magnet"),o=e===n;if((i||o)&&"false"!==i)return e;if(o)return;e=e.parentNode}while(e)},findProxyNode:function(t,n){t||(t=this.el);const e=t.getAttribute(`${n}-selector`);if(e){const[i]=this.findBySelector(e);if(i)return i}return t},getSelector:function(t,n){var e;if(t===this.el)return"string"==typeof n&&(e="> "+n),e;if(t){var i=wi(t).index()+1;e=t.tagName+":nth-child("+i+")",n&&(e+=" > "+n),e=this.getSelector(t.parentNode,e)}return e},addLinkFromMagnet:function(t,n,e){var i=this.paper,o=i.model,r=i.getDefaultLink(this,t);return r.set({source:this.getLinkEnd(t,n,e,r,"source"),target:{x:n,y:e}}).addTo(o,{async:!1,ui:!0}),r.findView(i)},getLinkEnd:function(t,...n){var e=this.model,i=e.id,o=this.findAttribute("port",t),r=t.getAttribute("joint-selector"),a={id:i};return null!=r&&(a.magnet=r),null!=o?(a.port=o,!e.hasPort(o)&&!r&&(a.selector=this.getSelector(t))):null==r&&this.el!==t&&(a.selector=this.getSelector(t)),this.customizeLinkEnd(a,t,...n)},customizeLinkEnd:function(t,n,e,i,o,r){const{paper:a}=this,{connectionStrategy:l}=a.options;if("function"==typeof l){var u=l.call(a,t,this,n,new wn(e,i),o,r,a);if(u)return u}return t},getMagnetFromLinkEnd:function(t){var r,n=this.el,e=t.port,i=t.magnet,o=this.model;return null!=e&&o.isElement()&&o.hasPort(e)?r=this.findPortNode(e,i)||n:(i||(i=t.selector),!i&&null!=e&&(i='[port="'+e+'"]'),r=this.findBySelector(i,n,this.selectors)[0]),this.findProxyNode(r,"magnet")},dragLinkStart:function(t,n,e,i){this.model.startBatch("add-link");const o=this.addLinkFromMagnet(n,e,i);o.notifyPointerdown(t,e,i),o.eventData(t,o.startArrowheadMove("target",{whenNotAllowed:"remove"})),this.eventData(t,{linkView:o})},dragLink:function(t,n,e){var i=this.eventData(t),o=i.linkView;if(o)o.pointermove(t,n,e);else{var r=this.paper,a=r.options.magnetThreshold,l=this.getEventTarget(t),u=i.targetMagnet;if("onleave"===a){if(u===l||wi(u).contains(l))return}else if(r.eventData(t).mousemoved<=a)return;this.dragLinkStart(t,u,n,e)}},dragLinkEnd:function(t,n,e){var o=this.eventData(t).linkView;!o||(o.pointerup(t,n,e),this.model.stopBatch("add-link"))},getAttributeDefinition:function(t){return this.model.constructor.getAttributeDefinition(t)},setNodeAttributes:function(t,n){S4(n)||(t instanceof SVGElement?wi(t).attr(n):As(t).attr(n))},processNodeAttributes:function(t,n){var e,i,o,r,a,l,u,f,M,T=[];for(e in n)!n.hasOwnProperty(e)||(i=n[e],!(o=this.getAttributeDefinition(e))||Hs(o.qualify)&&!o.qualify.call(this,i,t,n)?(l||(l={}),l[Oct(e)]=i):(pd(o.set)&&(l||(l={}),l[o.set]=i),null!==i&&T.push(e,o)));for(r=0,a=T.length;r0&&rt.height>0){var xt=wi.transformRect(rt,se).scale(1/we,1/He);for(o in T)r=T[o],(Be=this.getAttributeDefinition(o).offset.call(this,r,xt,t,l))&&(Me.offset(wn(Be).scale(we,He)),qe||(qe=!0))}}(void 0!==ie||ze||qe)&&(Me.round(1),se.e=Me.x,se.f=Me.y,t.setAttribute("transform",wi.matrixToTransformString(se)))}},getNodeScale:function(t,n){var e,i;if(n&&n.contains(t)){var o=n.scale();e=1/o.sx,i=1/o.sy}else e=1,i=1;return{sx:e,sy:i}},cleanNodesCache:function(){this.metrics={}},nodeCache:function(t){var n=this.metrics;if(!n)return{};var e=wi.ensureId(t),i=n[e];return i||(i=n[e]={}),i},getNodeData:function(t){var n=this.nodeCache(t);return n.data||(n.data={}),n.data},getNodeBoundingRect:function(t){var n=this.nodeCache(t);return void 0===n.boundingRect&&(n.boundingRect=wi(t).getBBox()),new Po(n.boundingRect)},getNodeMatrix:function(t){var n=this.nodeCache(t);if(void 0===n.magnetMatrix){var e=this.rotatableNode||this.el;n.magnetMatrix=wi(t).getTransformToElement(e)}return wi.createSVGMatrix(n.magnetMatrix)},getNodeShape:function(t){var n=this.nodeCache(t);return void 0===n.geometryShape&&(n.geometryShape=wi(t).toGeometryShape()),n.geometryShape.clone()},isNodeConnection:function(t){return this.model.isLink()&&(!t||t===this.el)},findNodesAttributes:function(t,n,e,i){var o,r,a,l,u={},f=[];for(var M in t)if(t.hasOwnProperty(M)&&z1(a=t[M])){var T=e[M]=this.findBySelector(M,n,i);for(o=0,r=T.length;o-1?a.splice(me,0,l):a.push(l)}else r.push(l)}else this.setNodeAttributes(u,T.normal);r.push(...a);for(var ze,qe=0,rt=r.length;qe0&&(r=!0);var a=o.getBBox({recursive:r});o.attr("transform","scale("+i.width/(a.width||1)+","+i.height/(a.height||1)+")");var f=this.rotatableNode,M=f&&f.attr("transform");if(M){f.attr("transform",M+" rotate("+-e+","+i.width/2+","+i.height/2+")");var T=o.getBBox({target:this.paper.cells});n.set("position",{x:T.x,y:T.y},Ar({updateHandled:!0},t)),this.translate(),this.rotate()}this.update()},prepareEmbedding:function(t={}){const n=t.model||this.model,i=(t.paper||this.paper).model,o=t.initialZIndices={},r=n.getEmbeddedCells({deep:!0}),a=i.getConnectedLinks(n,{deep:!0,includeEnclosed:!0});[n,...r,...a].forEach(f=>o[f.id]=f.attributes.z),n.startBatch("to-front"),n.toFront({deep:!0,ui:!0});const l=i.getElements().reduce((f,M)=>Math.max(f,M.attributes.z||0),0);a.forEach(f=>{f.attributes.z<=l&&f.set("z",l+1,{ui:!0})}),n.stopBatch("to-front");const u=n.parent();u?(i.getCell(u).unembed(n,{ui:!0}),t.initialParentId=u):t.initialParentId=null},processEmbedding:function(t={},n,e,i){const o=t.model||this.model,r=t.paper||this.paper,a=r.model,{findParentBy:l,frontParentOnly:u,validateEmbedding:f}=r.options;let M;M=Hs(l)?Ba(l.call(a,this,n,e,i)):"pointer"===l?Ba(a.findModelsFromPoint({x:e,y:i})):a.findModelsUnderElement(o,{searchBy:l}),M=M.filter(ie=>ie instanceof np&&o.id!==ie.id&&!ie.isEmbeddedIn(o)),u&&(M=M.slice(-1));let T=null;const U=t.candidateEmbedView;for(let ie=M.length-1;ie>=0;ie--){const se=M[ie];if(U&&U.model.id==se.id){T=U;break}{const Me=se.findView(r);if(!Hs(f)||f.call(r,this,Me)){T=Me;break}}}T&&T!=U&&(this.clearEmbedding(t),t.candidateEmbedView=T.highlight(T.findProxyNode(null,"container"),{embedding:!0})),!T&&U&&this.clearEmbedding(t)},clearEmbedding:function(t){t||(t={});var n=t.candidateEmbedView;n&&(n.unhighlight(n.findProxyNode(null,"container"),{embedding:!0}),t.candidateEmbedView=null)},finalizeEmbedding:function(t={}){const n=t.candidateEmbedView,e=t.model||this.model,i=t.paper||this.paper;if(n)n.model.embed(e,{ui:!0}),n.unhighlight(n.findProxyNode(null,"container"),{embedding:!0}),t.candidateEmbedView=null;else{const{validateUnembedding:o}=i.options,{initialParentId:r}=t;if(r&&"function"==typeof o&&!o.call(i,this))return void this._disallowUnembed(t)}i.model.getConnectedLinks(e,{deep:!0}).forEach(o=>{o.reparent({ui:!0})})},_disallowUnembed:function(t){const{model:n,whenNotAllowed:e="revert"}=t,i=n||this.model,r=(t.paper||this.paper).model;switch(e){case"remove":i.remove({ui:!0});break;case"revert":{const{initialParentId:a,initialPosition:l,initialZIndices:u}=t;if(l){const{x:M,y:T}=l;i.position(M,T,{deep:!0,ui:!0})}u&&Object.keys(u).forEach(M=>{const T=r.getCell(M);T&&T.set("z",u[M],{ui:!0})});const f=r.getCell(a);f&&f.embed(i,{ui:!0});break}}},getDelegatedView:function(){for(var t=this,n=t.model,e=t.paper;t&&!n.isLink();){if(!n.isEmbedded()||t.can("stopDelegation"))return t;n=n.getParentCell(),t=e.findViewByModel(n)}return null},findProxyNode:function(t,n){t||(t=this.el);const e=t.getAttribute(`${n}-selector`);if(e){const i=this.findAttribute("port",t);if(i){const o=this.findPortNode(i,e);if(o)return o}else{const[o]=this.findBySelector(e);if(o)return o}}return t},notifyPointerdown(t,n,e){us.prototype.pointerdown.call(this,t,n,e),this.notify("element:pointerdown",t,n,e)},notifyPointermove(t,n,e){us.prototype.pointermove.call(this,t,n,e),this.notify("element:pointermove",t,n,e)},notifyPointerup(t,n,e){this.notify("element:pointerup",t,n,e),us.prototype.pointerup.call(this,t,n,e)},pointerdblclick:function(t,n,e){us.prototype.pointerdblclick.apply(this,arguments),this.notify("element:pointerdblclick",t,n,e)},pointerclick:function(t,n,e){us.prototype.pointerclick.apply(this,arguments),this.notify("element:pointerclick",t,n,e)},contextmenu:function(t,n,e){us.prototype.contextmenu.apply(this,arguments),this.notify("element:contextmenu",t,n,e)},pointerdown:function(t,n,e){this.isPropagationStopped(t)||(this.notifyPointerdown(t,n,e),this.dragStart(t,n,e))},pointermove:function(t,n,e){var i=this.eventData(t);switch(i.action){case"magnet":this.dragMagnet(t,n,e);break;case"move":(i.delegatedView||this).drag(t,n,e);default:this.notifyPointermove(t,n,e)}this.eventData(t,i)},pointerup:function(t,n,e){var i=this.eventData(t);switch(i.action){case"magnet":this.dragMagnetEnd(t,n,e);break;case"move":(i.delegatedView||this).dragEnd(t,n,e);default:this.notifyPointerup(t,n,e)}var o=i.targetMagnet;o&&this.magnetpointerclick(t,o,n,e),this.checkMouseleave(t)},mouseover:function(t){us.prototype.mouseover.apply(this,arguments),this.notify("element:mouseover",t)},mouseout:function(t){us.prototype.mouseout.apply(this,arguments),this.notify("element:mouseout",t)},mouseenter:function(t){us.prototype.mouseenter.apply(this,arguments),this.notify("element:mouseenter",t)},mouseleave:function(t){us.prototype.mouseleave.apply(this,arguments),this.notify("element:mouseleave",t)},mousewheel:function(t,n,e,i){us.prototype.mousewheel.apply(this,arguments),this.notify("element:mousewheel",t,n,e,i)},onmagnet:function(t,n,e){this.dragMagnetStart(t,n,e)},magnetpointerdblclick:function(t,n,e,i){this.notify("element:magnet:pointerdblclick",t,n,e,i)},magnetcontextmenu:function(t,n,e,i){this.notify("element:magnet:contextmenu",t,n,e,i)},dragStart:function(t,n,e){var i=this.getDelegatedView();if(!i||!i.can("elementMove"))return;this.eventData(t,{action:"move",delegatedView:i});const o=i.model.position();i.eventData(t,{initialPosition:o,pointerOffset:o.difference(n,e),restrictedArea:this.paper.getRestrictedArea(i,n,e)})},dragMagnetStart:function(t,n,e){if(this.can("addLinkFromMagnet")){var i=t.currentTarget,o=this.paper;this.eventData(t,{targetMagnet:i}),t.stopPropagation(),o.options.validateMagnet(this,i,t)?(o.options.magnetThreshold<=0&&this.dragLinkStart(t,i,n,e),this.eventData(t,{action:"magnet"}),this.stopPropagation(t)):this.pointerdown(t,n,e),o.delegateDragEvents(this,t.data)}},drag:function(t,n,e){var i=this.paper,o=i.options.gridSize,r=this.model,a=this.eventData(t),{pointerOffset:l,restrictedArea:u,embedding:f}=a,M=Im(n+l.x,o),T=Im(e+l.y,o);r.position(M,T,{restrictedArea:u,deep:!0,ui:!0}),i.options.embeddingMode&&(f||(this.prepareEmbedding(a),f=!0),this.processEmbedding(a,t,n,e)),this.eventData(t,{embedding:f})},dragMagnet:function(t,n,e){this.dragLink(t,n,e)},dragEnd:function(t,n,e){var i=this.eventData(t);i.embedding&&this.finalizeEmbedding(i)},dragMagnetEnd:function(t,n,e){this.dragLinkEnd(t,n,e)},magnetpointerclick:function(t,n,e,i){var o=this.paper;o.eventData(t).mousemoved>o.options.clickThreshold||this.notify("element:magnet:pointerclick",t,n,e,i)}},{Flags:hs});Ar(fl.prototype,llt);const Mae={_results:{},_tests:{svgforeignobject:function(){return!!document.createElementNS&&/SVGForeignObject/.test({}.toString.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))}},addTest:function(t,n){return this._tests[t]=n},test:function(t){var n=this._tests[t];if(!n)throw new Error('Test not defined ("'+t+'"). Use `joint.env.addTest(name, fn) to add a new test.`');var e=this._results[t];if(void 0!==e)return e;try{e=n()}catch(i){e=!1}return this._results[t]=e,e}},ws=Vs.define("basic.Generic",{attrs:{".":{fill:"#ffffff",stroke:"none"}}}),dlt=ws.define("basic.Rect",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:100,height:60},text:{fill:"#000000",text:"","font-size":14,"ref-x":.5,"ref-y":.5,"text-anchor":"middle","y-alignment":"middle","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),ult=fl.extend({presentationAttributes:fl.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=fl.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),hlt=ws.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),iF=ws.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),plt=ws.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),flt=ws.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),glt=ws.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),mlt=ws.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Oae=ws.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),_lt=Oae.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),mP=Mae.test("svgforeignobject"),Clt=ws.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',mP?'
    ':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),ws.prototype.initialize.apply(this,arguments)},updateSize:function(t,n){this.attr({".fobj":Ar({},n),div:{style:Ar({},n)}})},updateContent:function(t,n){this.attr(mP?{".content":{html:Pct(n)}}:{".content":{text:n}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),vlt=fl.extend({presentationAttributes:mP?fl.prototype.presentationAttributes:fl.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=fl.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,n){var e=this.model;if(mP)fl.prototype.update.call(this,e,n);else{var i=P4(n||e.get("attrs"),".content");fl.prototype.update.call(this,e,i),(!n||tp(n,".content"))&&this.updateContent(e,n)}},updateContent:function(t,n){var e=F1({},(n||t.get("attrs"))[".content"]);e=P4(e,"text");var i=Kre(t.get("content"),t.get("size"),e,{svgDocument:this.paper.svg}),o=Wz({},".content",e,"/");o[".content"].text=i,fl.prototype.update.call(this,t,o)}}),H1=np.extend({markup:['','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,n,e){return void 0===t?ep(this.get("source")):t instanceof np?((i=ep(n)||{}).id=t.id,this.set("source",i,e)):z1(t)?this.set("source",i=t,n):((i=ep(n)||{}).x=t.x,i.y=t.y,this.set("source",i,e));var i},target:function(t,n,e){return void 0===t?ep(this.get("target")):t instanceof np?((i=ep(n)||{}).id=t.id,this.set("target",i,e)):z1(t)?this.set("target",i=t,n):((i=ep(n)||{}).x=t.x,i.y=t.y,this.set("target",i,e));var i},router:function(t,n,e){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?ep(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var o="object"==typeof t||"function"==typeof t;return this.set("router",o?t:{name:t,args:n},o?n:e)},connector:function(t,n,e){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?ep(i):i:this.get("smooth")?{name:"smooth"}:null}var o="object"==typeof t||"function"==typeof t;return this.set("connector",o?t:{name:t,args:n},o?n:e)},label:function(t,n,e){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],n,e)},labels:function(t,n){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,n))},hasLabels:function(){const{labels:t}=this.attributes;return Array.isArray(t)&&t.length>0},insertLabel:function(t,n,e){if(!n)throw new Error("dia.Link: no label provided");var i=this.labels(),o=i.length;return(t=isFinite(t)&&null!==t?0|t:o)<0&&(t=o+t+1),i.splice(t,0,n),this.labels(i,e)},appendLabel:function(t,n){return this.insertLabel(-1,t,n)},removeLabel:function(t,n){var e=this.labels();return t=isFinite(t)&&null!==t?0|t:-1,e.splice(t,1),this.labels(e,n)},vertex:function(t,n,e){var i=this.vertices();if((t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1)return this.prop(["vertices",t]);var o=this._normalizeVertex(n);return this.prop(["vertices",t],o,e)},vertices:function(t,n){if(0===arguments.length)return t=this.get("vertices"),Array.isArray(t)?t.slice():[];Array.isArray(t)||(t=[]);for(var e=[],i=0;i0&&(e.vertices=r.map(t)),this.set(e,n)},getSourcePoint:function(){var t=this.getSourceCell();return t?t.getPointFromConnectedLink(this,"source"):new wn(this.source())},getTargetPoint:function(){var t=this.getTargetCell();return t?t.getPointFromConnectedLink(this,"target"):new wn(this.target())},getPointFromConnectedLink:function(){return this.getPolyline().pointAt(.5)},getPolyline:function(){const t=[this.getSourcePoint(),...this.vertices().map(wn),this.getTargetPoint()];return new cc(t)},getBBox:function(){return this.getPolyline().bbox()},reparent:function(t){var n;if(this.graph){var e=this.getSourceElement(),i=this.getTargetElement(),o=this.getParentCell();e&&i&&(n=e===i||e.isEmbeddedIn(i)?i:i.isEmbeddedIn(e)?e:this.graph.getCommonAncestor(e,i)),o&&(!n||n.id!==o.id)&&o.unembed(this,t),n&&n.embed(this,t)}return n},hasLoop:function(t){t=t||{};var{source:n,target:e}=this.attributes,i=n.id,o=e.id;if(!i||!o)return!1;var r=i===o;if(!r&&t.deep&&this.graph){var a=this.getSourceCell(),l=this.getTargetCell();r=a.isEmbeddedIn(l)||l.isEmbeddedIn(a)}return r},getSourceCell:function(){const{graph:t,attributes:n}=this;var e=n.source;return e&&e.id&&t&&t.getCell(e.id)||null},getSourceElement:function(){var t=this,n={};do{if(n[t.id])return null;n[t.id]=!0,t=t.getSourceCell()}while(t&&t.isLink());return t},getTargetCell:function(){const{graph:t,attributes:n}=this;var e=n.target;return e&&e.id&&t&&t.getCell(e.id)||null},getTargetElement:function(){var t=this,n={};do{if(n[t.id])return null;n[t.id]=!0,t=t.getTargetCell()}while(t&&t.isLink());return t},getRelationshipAncestor:function(){var t;if(this.graph){var n=[this,this.getSourceElement(),this.getTargetElement()].filter(function(e){return!!e});t=this.graph.getCommonAncestor.apply(this.graph,n)}return t||null},isRelationshipEmbeddedIn:function(t){var n=pd(t)||B2(t)?t:t.id,e=this.getRelationshipAncestor();return!!e&&(e.id===n||e.isEmbeddedIn(n))},_getDefaultLabel:function(){var t=this.get("defaultLabel")||this.defaultLabel||{},n={};return n.markup=t.markup||this.get("labelMarkup")||this.labelMarkup,n.position=t.position,n.attrs=t.attrs,n.size=t.size,n}},{endsEqual:function(t,n){return t.id===n.id&&(t.port===n.port||!t.port&&!n.port)}}),blt=Vs.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),xlt=Vs.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),ylt=Vs.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),wlt=Vs.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),Mlt=Vs.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),Olt=Vs.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),Slt=Vs.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),Plt=Vs.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),Tlt=Vs.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),Elt=Vs.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),Alt=Vs.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),Llt=Vs.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,n){if(void 0===t)return this.attr("body/lateralArea");var e=rh(t);return this.attr({body:{lateralArea:t},top:e?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t}},n)}},{attributes:{lateralArea:{set:function(t,n){var e=rh(t);e&&(t=parseFloat(t)/100);var i=n.x,o=n.y,r=n.width,a=n.height,u=e?a*t:t,f=wi.KAPPA,M=f*(r/2),T=f*(e?a*t:t),ie=i+r/2,se=i+r,Me=o+u,we=Me-u,He=o+a-u,Be=o+a;return{d:["M",i,Me,"L",i,He,"C",i,He+T,ie-M,Be,ie,Be,"C",ie+M,Be,se,He+T,se,He,"L",se,Me,"C",se,Me-T,ie+M,we,ie,we,"C",ie-M,we,i,Me-T,i,Me,"Z"].join(" ")}}}}});var Ilt=Mae.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}};const Nlt=Vs.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},Ilt]},{attributes:{text:{set:function(t,n,e,i){if(!(e instanceof HTMLElement)){var o=i.style||{},r={text:t,width:-5,height:"100%"},a=Ar({textVerticalAnchor:"middle"},o);return gae.textWrap.set.call(this,r,n,e,a),{fill:o.color||null}}e.textContent=t},position:function(t,n,e){if(e instanceof SVGElement)return n.center()}}}}),Rlt=H1.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),zlt=H1.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none"}},{tagName:"path",selector:"line",attributes:{fill:"none"}}]}),Flt=H1.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none"}},{tagName:"path",selector:"line",attributes:{fill:"none"}}]}),rF=ws.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){ws.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,n,e){var i=Z_(this.get("inPorts")),o=tae(Z_(this.get("outPorts")),i),r=this.createPortItems("in",i),a=this.createPortItems("out",o);this.prop("ports/items",r.concat(a),Ar({rewrite:!0},e))},createPortItem:function(t,n){return{id:n,group:t,attrs:{".port-label":{text:n}}}},createPortItems:function(t,n){return Ba(n).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,n,e){var i=this.get(n);return this.set(n,Array.isArray(i)?i.concat(t):[t],e)},addOutPort:function(t,n){return this._addGroupPort(t,"outPorts",n)},addInPort:function(t,n){return this._addGroupPort(t,"inPorts",n)},_removeGroupPort:function(t,n,e){return this.set(n,Qz(this.get(n),t),e)},removeOutPort:function(t,n){return this._removeGroupPort(t,"outPorts",n)},removeInPort:function(t,n){return this._removeGroupPort(t,"inPorts",n)},_changeGroup:function(t,n,e){return this.prop("ports/groups/"+t,qc(n)?n:{},e)},changeInGroup:function(t,n){return this._changeGroup("in",t,n)},changeOutGroup:function(t,n){return this._changeGroup("out",t,n)}}),Hlt=rF.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),Vlt=rF.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),Sae=H1.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}}),_P=ws.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),aF=_P.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),Blt=aF.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),Glt=aF.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),sF=_P.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),Vm=_P.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),Ylt=sF.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjgiCiAgICAgaW5rc2NhcGU6Y3g9Ijg0LjY4NTM1MiIKICAgICBpbmtzY2FwZTpjeT0iMTUuMjg4NjI4IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzIuMTU2OTEsMjUgTCA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAyOS4wNDM0NzgsMjUgTCA1LjA0MzQ3ODEsMjUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0iTSAyOC45Njg3NSwyLjU5Mzc1IEwgMjguOTY4NzUsNSBMIDI4Ljk2ODc1LDQ1IEwgMjguOTY4NzUsNDcuNDA2MjUgTCAzMS4xMjUsNDYuMzQzNzUgTCA3Mi4xNTYyNSwyNi4zNDM3NSBMIDcyLjE1NjI1LDIzLjY1NjI1IEwgMzEuMTI1LDMuNjU2MjUgTCAyOC45Njg3NSwyLjU5Mzc1IHogTSAzMS45Njg3NSw3LjQwNjI1IEwgNjguMDkzNzUsMjUgTCAzMS45Njg3NSw0Mi41OTM3NSBMIDMxLjk2ODc1LDcuNDA2MjUgeiIKICAgICAgIGlkPSJwYXRoMjYzOCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2NjY2NjYyIgLz4KICA8L2c+Cjwvc3ZnPgo="}}},{operation:function(t){return t}}),Ult=sF.define("logic.Not",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjgiCiAgICAgaW5rc2NhcGU6Y3g9Ijg0LjY4NTM1MiIKICAgICBpbmtzY2FwZTpjeT0iMTUuMjg4NjI4IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzkuMTU2OTEsMjUgTCA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAyOS4wNDM0NzgsMjUgTCA1LjA0MzQ3ODEsMjUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0iTSAyOC45Njg3NSwyLjU5Mzc1IEwgMjguOTY4NzUsNSBMIDI4Ljk2ODc1LDQ1IEwgMjguOTY4NzUsNDcuNDA2MjUgTCAzMS4xMjUsNDYuMzQzNzUgTCA3Mi4xNTYyNSwyNi4zNDM3NSBMIDcyLjE1NjI1LDIzLjY1NjI1IEwgMzEuMTI1LDMuNjU2MjUgTCAyOC45Njg3NSwyLjU5Mzc1IHogTSAzMS45Njg3NSw3LjQwNjI1IEwgNjguMDkzNzUsMjUgTCAzMS45Njg3NSw0Mi41OTM3NSBMIDMxLjk2ODc1LDcuNDA2MjUgeiIKICAgICAgIGlkPSJwYXRoMjYzOCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2NjY2NjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDI2NzEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzYiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA4MCwyNSBBIDQsNCAwIDEgMSA3MiwyNSBBIDQsNCAwIDEgMSA4MCwyNSB6IgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEsMCkiIC8+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t){return!t}}),jlt=Vm.define("logic.Or",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik9SIEFOU0kuc3ZnIgogICBpbmtzY2FwZTpvdXRwdXRfZXh0ZW5zaW9uPSJvcmcuaW5rc2NhcGUub3V0cHV0LnN2Zy5pbmtzY2FwZSI+CiAgPGRlZnMKICAgICBpZD0iZGVmczQiPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjUwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjI1IDogMTAgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjcxNCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iMSA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMC41IDogMC4zMzMzMzMzMyA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyODA2IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyODE5IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjM3Mi4wNDcyNCA6IDM1MC43ODczOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzc3IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49Ijc1IDogNDAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iMTUwIDogNjAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDYwIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMyNzUiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNTAgOiAzMy4zMzMzMzMgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iMTAwIDogNTAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDUwIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTU1MzMiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzIgOiAyMS4zMzMzMzMgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNjQgOiAzMiA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMzIgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjU1NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDE2LjY2NjY2NyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDI1IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAyNSA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogIDwvZGVmcz4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9ImJhc2UiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6em9vbT0iNCIKICAgICBpbmtzY2FwZTpjeD0iMTEzLjAwMDM5IgogICAgIGlua3NjYXBlOmN5PSIxMi44OTM3MzEiCiAgICAgaW5rc2NhcGU6ZG9jdW1lbnQtdW5pdHM9InB4IgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcyNTYwIgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTpncmlkLWJib3g9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1wb2ludHM9InRydWUiCiAgICAgZ3JpZHRvbGVyYW5jZT0iMTAwMDAiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxMzk5IgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg3NCIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMzciCiAgICAgaW5rc2NhcGU6d2luZG93LXk9Ii00IgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gNzAsMjUgYyAyMCwwIDI1LDAgMjUsMCIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMSwxNSA1LDE1IgogICAgICAgaWQ9InBhdGgzMDYxIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzIsMzUgNSwzNSIKICAgICAgIGlkPSJwYXRoMzk0NCIgLz4KICAgIDxnCiAgICAgICBpZD0iZzI1NjAiCiAgICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2LjUsLTM5LjUpIj4KICAgICAgPHBhdGgKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjQwNjI1LDQ0LjUgTCAtMC40MDYyNSw0Ni45Mzc1IEMgLTAuNDA2MjUsNDYuOTM3NSA1LjI1LDUzLjkzNzU0OSA1LjI1LDY0LjUgQyA1LjI1LDc1LjA2MjQ1MSAtMC40MDYyNSw4Mi4wNjI1IC0wLjQwNjI1LDgyLjA2MjUgTCAtMi40MDYyNSw4NC41IEwgMC43NSw4NC41IEwgMTQuNzUsODQuNSBDIDE3LjE1ODA3Niw4NC41MDAwMDEgMjIuNDM5Njk5LDg0LjUyNDUxNCAyOC4zNzUsODIuMDkzNzUgQyAzNC4zMTAzMDEsNzkuNjYyOTg2IDQwLjkxMTUzNiw3NC43NTA0ODQgNDYuMDYyNSw2NS4yMTg3NSBMIDQ0Ljc1LDY0LjUgTCA0Ni4wNjI1LDYzLjc4MTI1IEMgMzUuNzU5Mzg3LDQ0LjcxNTU5IDE5LjUwNjU3NCw0NC41IDE0Ljc1LDQ0LjUgTCAwLjc1LDQ0LjUgTCAtMi40MDYyNSw0NC41IHogTSAzLjQ2ODc1LDQ3LjUgTCAxNC43NSw0Ny41IEMgMTkuNDM0MTczLDQ3LjUgMzMuMDM2ODUsNDcuMzY5NzkzIDQyLjcxODc1LDY0LjUgQyAzNy45NTE5NjQsNzIuOTI5MDc1IDMyLjE5NzQ2OSw3Ny4xODM5MSAyNyw3OS4zMTI1IEMgMjEuNjM5MzM5LDgxLjUwNzkyNCAxNy4xNTgwNzUsODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo="}}},{operation:function(t,n){return t||n}}),Wlt=Vm.define("logic.And",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IkFORCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgPC9kZWZzPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0iYmFzZSIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMS4wIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI4IgogICAgIGlua3NjYXBlOmN4PSI1Ni42OTgzNDgiCiAgICAgaW5rc2NhcGU6Y3k9IjI1LjMyNjg5OSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDcwLDI1IGMgMjAsMCAyNSwwIDI1LDAiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEsMTUgNSwxNSIKICAgICAgIGlkPSJwYXRoMzA2MSIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxLjk5OTk5OTg4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMyLDM1IDUsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZvbnQtc2l6ZTptZWRpdW07Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7bGluZS1oZWlnaHQ6bm9ybWFsO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7dGV4dC1hbmNob3I6c3RhcnQ7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDozO21hcmtlcjpub25lO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGU7Zm9udC1mYW1pbHk6Qml0c3RyZWFtIFZlcmEgU2FuczstaW5rc2NhcGUtZm9udC1zcGVjaWZpY2F0aW9uOkJpdHN0cmVhbSBWZXJhIFNhbnMiCiAgICAgICBkPSJNIDMwLDUgTCAzMCw2LjQyODU3MTQgTCAzMCw0My41NzE0MjkgTCAzMCw0NSBMIDMxLjQyODU3MSw0NSBMIDUwLjQ3NjE5LDQ1IEMgNjEuNzQ0MDk4LDQ1IDcwLjQ3NjE5LDM1Ljk5OTk1NSA3MC40NzYxOSwyNSBDIDcwLjQ3NjE5LDE0LjAwMDA0NSA2MS43NDQwOTksNS4wMDAwMDAyIDUwLjQ3NjE5LDUgQyA1MC40NzYxOSw1IDUwLjQ3NjE5LDUgMzEuNDI4NTcxLDUgTCAzMCw1IHogTSAzMi44NTcxNDMsNy44NTcxNDI5IEMgNDAuODM0MjY0LDcuODU3MTQyOSA0NS45MTgzNjgsNy44NTcxNDI5IDQ4LjA5NTIzOCw3Ljg1NzE0MjkgQyA0OS4yODU3MTQsNy44NTcxNDI5IDQ5Ljg4MDk1Miw3Ljg1NzE0MjkgNTAuMTc4NTcxLDcuODU3MTQyOSBDIDUwLjMyNzM4MSw3Ljg1NzE0MjkgNTAuNDA5MjI3LDcuODU3MTQyOSA1MC40NDY0MjksNy44NTcxNDI5IEMgNTAuNDY1MDI5LDcuODU3MTQyOSA1MC40NzE1NDMsNy44NTcxNDI5IDUwLjQ3NjE5LDcuODU3MTQyOSBDIDYwLjIzNjg1Myw3Ljg1NzE0MyA2Ny4xNDI4NTcsMTUuNDk3MDk4IDY3LjE0Mjg1NywyNSBDIDY3LjE0Mjg1NywzNC41MDI5MDIgNTkuNzYwNjYyLDQyLjE0Mjg1NyA1MCw0Mi4xNDI4NTcgTCAzMi44NTcxNDMsNDIuMTQyODU3IEwgMzIuODU3MTQzLDcuODU3MTQyOSB6IgogICAgICAgaWQ9InBhdGgyODg0IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NzY2NjY3Nzc3NzY2NjIiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return t&&n}}),qlt=Vm.define("logic.Nor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PUiBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjEiCiAgICAgaW5rc2NhcGU6Y3g9Ijc4LjY3NzY0NCIKICAgICBpbmtzY2FwZTpjeT0iMjIuMTAyMzQ0IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjM3IgogICAgIGlua3NjYXBlOndpbmRvdy15PSItNCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDc5LDI1IEMgOTksMjUgOTUsMjUgOTUsMjUiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEsMTUgNSwxNSIKICAgICAgIGlkPSJwYXRoMzA2MSIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxLjk5OTk5OTg4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMyLDM1IDUsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8ZwogICAgICAgaWQ9ImcyNTYwIgogICAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi41LC0zOS41KSI+CiAgICAgIDxwYXRoCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi40MDYyNSw0NC41IEwgLTAuNDA2MjUsNDYuOTM3NSBDIC0wLjQwNjI1LDQ2LjkzNzUgNS4yNSw1My45Mzc1NDkgNS4yNSw2NC41IEMgNS4yNSw3NS4wNjI0NTEgLTAuNDA2MjUsODIuMDYyNSAtMC40MDYyNSw4Mi4wNjI1IEwgLTIuNDA2MjUsODQuNSBMIDAuNzUsODQuNSBMIDE0Ljc1LDg0LjUgQyAxNy4xNTgwNzYsODQuNTAwMDAxIDIyLjQzOTY5OSw4NC41MjQ1MTQgMjguMzc1LDgyLjA5Mzc1IEMgMzQuMzEwMzAxLDc5LjY2Mjk4NiA0MC45MTE1MzYsNzQuNzUwNDg0IDQ2LjA2MjUsNjUuMjE4NzUgTCA0NC43NSw2NC41IEwgNDYuMDYyNSw2My43ODEyNSBDIDM1Ljc1OTM4Nyw0NC43MTU1OSAxOS41MDY1NzQsNDQuNSAxNC43NSw0NC41IEwgMC43NSw0NC41IEwgLTIuNDA2MjUsNDQuNSB6IE0gMy40Njg3NSw0Ny41IEwgMTQuNzUsNDcuNSBDIDE5LjQzNDE3Myw0Ny41IDMzLjAzNjg1LDQ3LjM2OTc5MyA0Mi43MTg3NSw2NC41IEMgMzcuOTUxOTY0LDcyLjkyOTA3NSAzMi4xOTc0NjksNzcuMTgzOTEgMjcsNzkuMzEyNSBDIDIxLjYzOTMzOSw4MS41MDc5MjQgMTcuMTU4MDc1LDgxLjUwMDAwMSAxNC43NSw4MS41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHNvZGlwb2RpOnR5cGU9ImFyYyIKICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgICBpZD0icGF0aDI2MDQiCiAgICAgICAgIHNvZGlwb2RpOmN4PSI3NSIKICAgICAgICAgc29kaXBvZGk6Y3k9IjI1IgogICAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgICAgc29kaXBvZGk6cnk9IjQiCiAgICAgICAgIGQ9Ik0gNzksMjUgQSA0LDQgMCAxIDEgNzEsMjUgQSA0LDQgMCAxIDEgNzksMjUgeiIKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2LjUsMzkuNSkiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,n){return!(t||n)}}),$lt=Vm.define("logic.Nand",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5BTkQgQU5TSS5zdmciCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxMCA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzE0IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIwLjUgOiAwLjMzMzMzMzMzIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MDYiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MTkiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9Ijc0NC4wOTQ0OCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3NzciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNzUgOiA0MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxNTAgOiA2MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNjAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzI3NSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MCA6IDMzLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxMDAgOiA1MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlNTUzMyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzMiA6IDIxLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI2NCA6IDMyIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAzMiA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogIDwvZGVmcz4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9ImJhc2UiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6em9vbT0iMTYiCiAgICAgaW5rc2NhcGU6Y3g9Ijc4LjI4MzMwNyIKICAgICBpbmtzY2FwZTpjeT0iMTYuNDQyODQzIgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzksMjUgQyA5MS44LDI1IDk1LDI1IDk1LDI1IgogICAgICAgaWQ9InBhdGgzMDU5IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMxLDE1IDUsMTUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk4ODtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMiwzNSA1LDM1IgogICAgICAgaWQ9InBhdGgzOTQ0IiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmb250LXNpemU6bWVkaXVtO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO2xpbmUtaGVpZ2h0Om5vcm1hbDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO3RleHQtYW5jaG9yOnN0YXJ0O2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MzttYXJrZXI6bm9uZTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlO2ZvbnQtZmFtaWx5OkJpdHN0cmVhbSBWZXJhIFNhbnM7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpCaXRzdHJlYW0gVmVyYSBTYW5zIgogICAgICAgZD0iTSAzMCw1IEwgMzAsNi40Mjg1NzE0IEwgMzAsNDMuNTcxNDI5IEwgMzAsNDUgTCAzMS40Mjg1NzEsNDUgTCA1MC40NzYxOSw0NSBDIDYxLjc0NDA5OCw0NSA3MC40NzYxOSwzNS45OTk5NTUgNzAuNDc2MTksMjUgQyA3MC40NzYxOSwxNC4wMDAwNDUgNjEuNzQ0MDk5LDUuMDAwMDAwMiA1MC40NzYxOSw1IEMgNTAuNDc2MTksNSA1MC40NzYxOSw1IDMxLjQyODU3MSw1IEwgMzAsNSB6IE0gMzIuODU3MTQzLDcuODU3MTQyOSBDIDQwLjgzNDI2NCw3Ljg1NzE0MjkgNDUuOTE4MzY4LDcuODU3MTQyOSA0OC4wOTUyMzgsNy44NTcxNDI5IEMgNDkuMjg1NzE0LDcuODU3MTQyOSA0OS44ODA5NTIsNy44NTcxNDI5IDUwLjE3ODU3MSw3Ljg1NzE0MjkgQyA1MC4zMjczODEsNy44NTcxNDI5IDUwLjQwOTIyNyw3Ljg1NzE0MjkgNTAuNDQ2NDI5LDcuODU3MTQyOSBDIDUwLjQ2NTAyOSw3Ljg1NzE0MjkgNTAuNDcxNTQzLDcuODU3MTQyOSA1MC40NzYxOSw3Ljg1NzE0MjkgQyA2MC4yMzY4NTMsNy44NTcxNDMgNjcuMTQyODU3LDE1LjQ5NzA5OCA2Ny4xNDI4NTcsMjUgQyA2Ny4xNDI4NTcsMzQuNTAyOTAyIDU5Ljc2MDY2Miw0Mi4xNDI4NTcgNTAsNDIuMTQyODU3IEwgMzIuODU3MTQzLDQyLjE0Mjg1NyBMIDMyLjg1NzE0Myw3Ljg1NzE0MjkgeiIKICAgICAgIGlkPSJwYXRoMjg4NCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2Njc2NjY2Nzc3Nzc2NjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDQwMDgiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return!(t&&n)}}),Xlt=Vm.define("logic.Xor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IlhPUiBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjUuNjU2ODU0MiIKICAgICBpbmtzY2FwZTpjeD0iMjUuOTM4MTE2IgogICAgIGlua3NjYXBlOmN5PSIxNy4yMzAwNSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDcwLDI1IGMgMjAsMCAyNSwwIDI1LDAiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzAuMzg1NzE3LDE1IEwgNC45OTk5OTk4LDE1IgogICAgICAgaWQ9InBhdGgzMDYxIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5NzY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEuMzYyMDkxLDM1IEwgNC45OTk5OTk4LDM1IgogICAgICAgaWQ9InBhdGgzOTQ0IiAvPgogICAgPGcKICAgICAgIGlkPSJnMjU2MCIKICAgICAgIGlua3NjYXBlOmxhYmVsPSJMYXllciAxIgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYuNSwtMzkuNSkiPgogICAgICA8cGF0aAogICAgICAgICBpZD0icGF0aDM1MTYiCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi4yNSw4MS41MDAwMDUgQyAtMy44NDczNzQsODQuMTQ0NDA1IC00LjUsODQuNTAwMDA1IC00LjUsODQuNTAwMDA1IEwgLTguMTU2MjUsODQuNTAwMDA1IEwgLTYuMTU2MjUsODIuMDYyNTA1IEMgLTYuMTU2MjUsODIuMDYyNTA1IC0wLjUsNzUuMDYyNDUxIC0wLjUsNjQuNSBDIC0wLjUsNTMuOTM3NTQ5IC02LjE1NjI1LDQ2LjkzNzUgLTYuMTU2MjUsNDYuOTM3NSBMIC04LjE1NjI1LDQ0LjUgTCAtNC41LDQ0LjUgQyAtMy43MTg3NSw0NS40Mzc1IC0zLjA3ODEyNSw0Ni4xNTYyNSAtMi4yODEyNSw0Ny41IEMgLTAuNDA4NTMxLDUwLjU5OTgxNSAyLjUsNTYuNTI2NjQ2IDIuNSw2NC41IEMgMi41LDcyLjQ1MDY1IC0wLjM5NjY5Nyw3OC4zNzk0MjUgLTIuMjUsODEuNTAwMDA1IHoiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY3NjY2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi40MDYyNSw0NC41IEwgLTAuNDA2MjUsNDYuOTM3NSBDIC0wLjQwNjI1LDQ2LjkzNzUgNS4yNSw1My45Mzc1NDkgNS4yNSw2NC41IEMgNS4yNSw3NS4wNjI0NTEgLTAuNDA2MjUsODIuMDYyNSAtMC40MDYyNSw4Mi4wNjI1IEwgLTIuNDA2MjUsODQuNSBMIDAuNzUsODQuNSBMIDE0Ljc1LDg0LjUgQyAxNy4xNTgwNzYsODQuNTAwMDAxIDIyLjQzOTY5OSw4NC41MjQ1MTQgMjguMzc1LDgyLjA5Mzc1IEMgMzQuMzEwMzAxLDc5LjY2Mjk4NiA0MC45MTE1MzYsNzQuNzUwNDg0IDQ2LjA2MjUsNjUuMjE4NzUgTCA0NC43NSw2NC41IEwgNDYuMDYyNSw2My43ODEyNSBDIDM1Ljc1OTM4Nyw0NC43MTU1OSAxOS41MDY1NzQsNDQuNSAxNC43NSw0NC41IEwgMC43NSw0NC41IEwgLTIuNDA2MjUsNDQuNSB6IE0gMy40Njg3NSw0Ny41IEwgMTQuNzUsNDcuNSBDIDE5LjQzNDE3Myw0Ny41IDMzLjAzNjg1LDQ3LjM2OTc5MyA0Mi43MTg3NSw2NC41IEMgMzcuOTUxOTY0LDcyLjkyOTA3NSAzMi4xOTc0NjksNzcuMTgzOTEgMjcsNzkuMzEyNSBDIDIxLjYzOTMzOSw4MS41MDc5MjQgMTcuMTU4MDc1LDgxLjUwMDAwMSAxNC43NSw4MS41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,n){return(!t||n)&&(t||!n)}}),Qlt=Vm.define("logic.Xnor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IlhOT1IgQU5TSS5zdmciCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxMCA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzE0IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIwLjUgOiAwLjMzMzMzMzMzIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MDYiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MTkiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9Ijc0NC4wOTQ0OCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3NzciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNzUgOiA0MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxNTAgOiA2MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNjAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzI3NSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MCA6IDMzLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxMDAgOiA1MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlNTUzMyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzMiA6IDIxLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI2NCA6IDMyIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAzMiA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNTU3IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjI1IDogMTYuNjY2NjY3IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjUwIDogMjUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDI1IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgPC9kZWZzPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0iYmFzZSIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMS4wIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI0IgogICAgIGlua3NjYXBlOmN4PSI5NS43MjM2NiIKICAgICBpbmtzY2FwZTpjeT0iLTI2Ljc3NTAyMyIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyLjAwMDAwMDI0O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDc4LjMzMzMzMiwyNSBDIDkxLjY2NjY2NiwyNSA5NSwyNSA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk4ODtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMC4zODU3MTcsMTUgTCA0Ljk5OTk5OTgsMTUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk3NjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMS4zNjIwOTEsMzUgTCA0Ljk5OTk5OTgsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8ZwogICAgICAgaWQ9ImcyNTYwIgogICAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi41LC0zOS41KSI+CiAgICAgIDxwYXRoCiAgICAgICAgIGlkPSJwYXRoMzUxNiIKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjI1LDgxLjUwMDAwNSBDIC0zLjg0NzM3NCw4NC4xNDQ0MDUgLTQuNSw4NC41MDAwMDUgLTQuNSw4NC41MDAwMDUgTCAtOC4xNTYyNSw4NC41MDAwMDUgTCAtNi4xNTYyNSw4Mi4wNjI1MDUgQyAtNi4xNTYyNSw4Mi4wNjI1MDUgLTAuNSw3NS4wNjI0NTEgLTAuNSw2NC41IEMgLTAuNSw1My45Mzc1NDkgLTYuMTU2MjUsNDYuOTM3NSAtNi4xNTYyNSw0Ni45Mzc1IEwgLTguMTU2MjUsNDQuNSBMIC00LjUsNDQuNSBDIC0zLjcxODc1LDQ1LjQzNzUgLTMuMDc4MTI1LDQ2LjE1NjI1IC0yLjI4MTI1LDQ3LjUgQyAtMC40MDg1MzEsNTAuNTk5ODE1IDIuNSw1Ni41MjY2NDYgMi41LDY0LjUgQyAyLjUsNzIuNDUwNjUgLTAuMzk2Njk3LDc4LjM3OTQyNSAtMi4yNSw4MS41MDAwMDUgeiIKICAgICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2Njc2NjY2NzYyIgLz4KICAgICAgPHBhdGgKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjQwNjI1LDQ0LjUgTCAtMC40MDYyNSw0Ni45Mzc1IEMgLTAuNDA2MjUsNDYuOTM3NSA1LjI1LDUzLjkzNzU0OSA1LjI1LDY0LjUgQyA1LjI1LDc1LjA2MjQ1MSAtMC40MDYyNSw4Mi4wNjI1IC0wLjQwNjI1LDgyLjA2MjUgTCAtMi40MDYyNSw4NC41IEwgMC43NSw4NC41IEwgMTQuNzUsODQuNSBDIDE3LjE1ODA3Niw4NC41MDAwMDEgMjIuNDM5Njk5LDg0LjUyNDUxNCAyOC4zNzUsODIuMDkzNzUgQyAzNC4zMTAzMDEsNzkuNjYyOTg2IDQwLjkxMTUzNiw3NC43NTA0ODQgNDYuMDYyNSw2NS4yMTg3NSBMIDQ0Ljc1LDY0LjUgTCA0Ni4wNjI1LDYzLjc4MTI1IEMgMzUuNzU5Mzg3LDQ0LjcxNTU5IDE5LjUwNjU3NCw0NC41IDE0Ljc1LDQ0LjUgTCAwLjc1LDQ0LjUgTCAtMi40MDYyNSw0NC41IHogTSAzLjQ2ODc1LDQ3LjUgTCAxNC43NSw0Ny41IEMgMTkuNDM0MTczLDQ3LjUgMzMuMDM2ODUsNDcuMzY5NzkzIDQyLjcxODc1LDY0LjUgQyAzNy45NTE5NjQsNzIuOTI5MDc1IDMyLjE5NzQ2OSw3Ny4xODM5MSAyNyw3OS4zMTI1IEMgMjEuNjM5MzM5LDgxLjUwNzkyNCAxNy4xNTgwNzUsODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDM1NTEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return(!t||!n)&&(t||n)}}),Zlt=H1.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")}),Klt=ws.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),Jlt=ws.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),e1t=ws.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),t1t=ws.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),n1t=ws.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),i1t=ws.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),o1t=ws.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),r1t=ws.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),a1t=ws.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),s1t=ws.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),c1t=ws.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),l1t=ws.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''}),Pae=Vs.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),d1t=Pae.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),Tae=Vs.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),u1t=Tae.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),Xv=Vs.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),h1t=Xv.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),p1t=Xv.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),f1t=Xv.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),g1t=Xv.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),m1t=Vs.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),_1t=H1.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}}),C1t=iF.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),v1t=Vs.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),b1t=Vs.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),x1t=H1.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0}),y1t=Vs.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),w1t=H1.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1}),M1t=ws.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),O1t=fl.extend({presentationAttributes:fl.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:fl.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(...t){let n=fl.prototype.confirmUpdate.call(this,...t);return this.hasFlag(n,"TOKENS")&&(this.renderTokens(),this.update(),n=this.removeFlag(n,"TOKENS")),n},renderTokens:function(){const t=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(e){t.removeClass(e)});var n=this.model.get("tokens");if(n)switch(n){case 1:t.addClass("one"),t.append(wi("circle"));break;case 2:t.addClass("two"),t.append([wi("circle"),wi("circle")]);break;case 3:t.addClass("three"),t.append([wi("circle"),wi("circle"),wi("circle")]);break;default:t.addClass("alot"),t.append(wi("text").text(n+""))}}}),S1t=ws.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),P1t=H1.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}}),cF=ws.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),ws.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var t=this.get("attrs"),n=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],e=0;n.forEach(function(i){var o=Array.isArray(i.text)?i.text:[i.text],r=20*o.length+20;t[".uml-class-"+i.type+"-text"].text=o.join("\n"),t[".uml-class-"+i.type+"-rect"].height=r,t[".uml-class-"+i.type+"-rect"].transform="translate(0,"+e+")",e+=r})}}),lF=fl.extend({initialize:function(){fl.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),T1t=cF.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),E1t=lF,A1t=cF.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),L1t=lF,D1t=H1.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),k1t=H1.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),I1t=H1.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),N1t=H1.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),R1t=H1.define("uml.Association"),z1t=ws.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),ws.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),F1t=iF.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),H1t=ws.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),V1t=H1.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}}),B1t=Vs.define("noctua.StencilNode",{size:{width:80,height:80},attrs:{body:{refWidth:"100%",refHeight:"100%",fill:"#FFFFFF",stroke:"#AAAAAA"},iconBackground:{ref:"icon",refWidth:"100%",refHeight:"100%",fill:"transparent"},icon:{x:0,y:10,refWidth:"100%",height:50},label:{y:70,height:"30px",refX:"50%",fill:"#000",textAnchor:"middle",textVerticalAnchor:"middle",fontFamily:"sans-serif",fontSize:8,textWrap:{ellipsis:!1,width:"95%"}}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"statusLine"},{tagName:"rect",selector:"iconBackground"},{tagName:"image",selector:"icon"},{tagName:"text",selector:"label"}]},{}),G1t=Vs.define("noctua.NodeCell",{attrs:{root:{magnet:!0},wrapper:{magnet:!0,refWidth:"100%",refHeight:"100%",stroke:"rgba(0,0,255,0.3)"},body:{refWidth:"100%",refHeight:"100%",fill:"#FFFFFF",stroke:"rgba(0,0,255,0.3)"},noctuaTitle:{x:0,refX:"10px",refY:"10px",fill:"#000000",textAnchor:"left",textVerticalAnchor:"top",fontSize:12,text:"",textWrap:{ellipsis:!0}}}},{markup:[{tagName:"rect",selector:"wrapper"},{tagName:"rect",selector:"body"},{tagName:"text",selector:"noctuaTitle"}]},{create:function(t){return new this({attrs:{label:{text:t}}})}}),U1t=(Vs.define("noctua.NodeCellList",{attrs:{root:{magnet:!0},".wrapper":{magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".highlighter":{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"transparent","stroke-width":10},rect:{width:300},".activity-gp-rect":{fill:"#d5d2d5",stroke:"#fff",height:50,"stroke-width":.5},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:5,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"},".activity-mf-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-cc-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-bp-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-gp-text":{ref:".activity-gp-rect","ref-y":.5,"ref-x":5,"text-anchor":"left","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}},".activity-mf-text":{ref:".activity-mf-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}},".activity-cc-text":{ref:".activity-cc-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{ellipsis:!1}},".activity-bp-text":{ref:".activity-bp-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}}},name:[],attributes:[],gp:[]},{markup:['','','','','','','','',"",'','','','','','',""].join(""),initialize:function(){this.on("change:name change:attributes change:gp",function(){this.updateRectangles(),this.trigger("activity-update")},this),this.updateRectangles(),Vs.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){const t=this.get("attrs"),n=[{type:"gp",text:this.get("gp")},{type:"mf",text:this.get("mf")}],e=this.get("cc"),i=this.get("bp");e&&n.push({type:"cc",text:e}),i&&n.push({type:"bp",text:i});let o=0;n.forEach(function(r){const a=Array.isArray(r.text)?r.text:[r.text],l=30*a.length+200;t[".activity-"+r.type+"-text"].text=a.join("\n"),t[".activity-"+r.type+"-rect"].height=l,t[".activity-"+r.type+"-rect"].transform="translate(0,"+o+")",o+=l})}}),Vs.define("noctua.NodeCellMolecule",{attrs:{".wrapper":{refCx:"50%",refCy:"50%",refR:"50%",magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".circle":{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2},".label":{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:12,fill:"#333333",textWrap:{ellipsis:!1,width:"95%"}},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:-10,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"}}},{markup:['','','','',"",'','','',""].join("")},{create:function(t){return new this({attrs:{label:{text:t}}})}})),j1t=Sae.define("noctua.NodeLink",{attrs:{line:{connection:!0,stroke:"#005580",strokeWidth:1,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"black",fill:"black",d:"M 10 -5 0 0 10 5 Z"}},defaultLabel:{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{label:{text:{text:"150"},fill:"blue",fontSize:10,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},body:{ref:"label",fill:"pink",stroke:"#005580",strokeWidth:1,refWidth:"120%",refHeight:"120%",refX:"-10%",refY:"-10%"}}}}},{markup:[{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]},{}),dF=(fl.extend({initialize:function(){fl.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"activity-update",function(){this.update(),this.resize()})}}),"sans-serif"),Q1t=(t,n)=>t.map((e,i,{length:o})=>new wn(0,n.height-27.5-8-35*(o-1-i))),Z1t={attrs:{body:{width:"calc(w)",height:"calc(h)",x:"0",y:"calc(-0.5*h)",fill:"transparent",stroke:"white",strokeWidth:1},relationship:{width:60,pointerEvents:"none",fontFamily:dF,fontWeight:400,fontSize:9,fill:"black",textAnchor:"start",textVerticalAnchor:"middle",textWrap:{width:60,maxLineCount:2,ellipsis:!0},x:8},portLabel:{width:100,pointerEvents:"none",fontFamily:dF,fontSize:12,fill:"black",textAnchor:"start",textVerticalAnchor:"middle",textWrap:{width:140,maxLineCount:2,ellipsis:!0},x:60},noEvidence:{"xlink:href":"./assets/icons/no-evidence.png",ref:"body",x:60,y:-8,height:15,cursor:"pointer",visibility:"hidden"}},size:{width:200,height:35},markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"relationship"},{tagName:"text",selector:"portLabel"},{tagName:"image",selector:"noEvidence"}]},K1t={attrs:{root:{magnet:!0},".wrapper":{magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".highlighter":{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"transparent","stroke-width":10},body:{width:"calc(w)",height:"calc(h)"},icon:{width:30,height:30,x:5,y:5},label:{x:40,y:15,fontFamily:dF,fontWeight:600,fontSize:12,fill:"black",text:"Label",textWrap:{width:"90%",maxLineCount:1,ellipsis:!0},textVerticalAnchor:"top"},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:5,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"}},markup:[{tagName:"rect",selector:".wrapper"},{tagName:"rect",selector:".highlighter"},{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"},{tagName:"image",selector:"icon"},{tagName:"image",selector:".edit"},{tagName:"image",selector:".delete"}]};class J1t extends Vs{defaults(){return Object.assign(Object.assign(Object.assign({},super.defaults),K1t),{type:"ListElement",size:{width:200,height:0},ports:{groups:{list:Object.assign({position:Q1t},Z1t)},items:[]}})}initialize(...n){this.on("change:ports",()=>this.resizeToFitPorts()),this.resizeToFitPorts(),super.initialize.call(this,...n)}resizeToFitPorts(){const{length:n}=this.getPorts();this.prop(["size","height"],40+35*n+16)}}class hF extends B1t{setColor(n){const e=this,i=kl(n,800),o=kl(n,100);return e.attr("body/stroke",o),e.attr("statusLine/fill",i),e.attr("statusType/fill",i),e.attr("iconBackground/fill",o),this}setIcon(n){return n&&this.attr("icon/xlink:href",`${n}`),this}}class edt extends G1t{addNodePorts(){return this}addColor(n){const e=this,i=kl(n,800),o=kl(n,100);return e.attr("body/stroke",o),e.attr("statusLine/fill",i),e.attr("statusType/fill",i),this}hover(n){return this.attr("wrapper/strokeWidth",n?20:0),this}}class pF extends J1t{constructor(){super()}addHeader(n){this.attr("label/text",n)}addEntity(n,e,i){const o={};n?(o.relationship={text:n},o.portLabel={text:e},i||(o.portLabel.x=75)):(o.relationship={visibility:"hidden"},o.portLabel={text:e,x:i?8:25,width:200,textWrap:{width:184}}),i||(o.noEvidence={visibility:"visible"},o.textWrap={width:150},n||(o.noEvidence.x=8)),this.addPort({group:"list",attrs:o})}setColor(n,e,i){kl(n,e||200);const a=kl(n,i||100);return this.attr("body/fill",a),this}setBorder(n,e){const o=kl(n,e||500);return this.attr(".highlighter/stroke",o),this}unsetBorder(){return this.attr(".highlighter/stroke","transparent"),this}addIcon(n){this.attr("icon/xlinkHref",n)}hover(n){const e=this;return e.attr(".wrapper/strokeWidth",n?40:0),e.attr(".edit/visibility",n?"visible":"hidden"),e.attr(".delete/visibility",n?"visible":"hidden"),this}}class kae extends U1t{constructor(){super()}addNodePorts(){return this}setColor(n,e,i){const r=kl(n,e||200),a=kl(n,i||100);return this.attr(".circle/stroke",r),this.attr(".circle/fill",a),this}setText(n){return this.attr(".label/text",n),this}setBorder(n,e){const o=kl(n,e||500);return this.attr(".highlighter/stroke",o),this}unsetBorder(){return this.attr(".highlighter/stroke","transparent"),this}hover(n){const e=this;return e.attr(".wrapper/strokeWidth",n?40:0),e.attr(".edit/visibility",n?"visible":"hidden"),e.attr(".delete/visibility",n?"visible":"hidden"),this}}class n8 extends j1t{constructor(){super(...arguments),this.colorKey="grey"}static create(){const n=new n8;return n.prop({z:-1,labels:[{markup:[{tagName:"rect",selector:"labelBody"},{tagName:"text",selector:"labelText"}],attrs:{labelText:{fill:"#7c68fc",fontSize:8,fontFamily:"sans-serif",textAnchor:"middle",textVerticalAnchor:"middle"},labelBody:{ref:"labelText",refX:-5,refY:-5,refWidth:"100%",refHeight:"100%",refWidth2:10,refHeight2:10,stroke:"#7c68fc",fill:"white",strokeWidth:1,rx:5,ry:5}},position:{distance:.5,args:{ensureLegibility:!0,absoluteOffset:!0}}}]}),n.router("normal",{}).connector("smooth"),n}setText(n){return this.label(0,{attrs:{labelText:{text:n}}}),this}setColor(n,e=!1){const i=this;e&&(this.colorKey=n);const o=kl(n,800),a=kl(n,600)||n,l=o||n;return i.attr("line/stroke",a),i.attr("line/targetMarker/stroke",a),i.attr("line/targetMarker/fill",a),i.label(0,{attrs:{labelText:{fill:l},labelBody:{stroke:a}}}),this}hover(n){return this.attr("line/strokeWidth",n?4:1),this.label(0,{attrs:{labelBody:{strokeWidth:n?2:1}}}),this}}let Iae=(()=>{class t{constructor(){this._initialize()}_initialize(){Object.assign(te,{noctua:{StencilNode:hF,NodeCell:edt,NodeCellMolecule:kae,NodeCellList:pF,NodeLink:n8}}),Vs.define("noctua.NodeCellBase",{z:3,attrs:{root:{pointerEvents:"bounding-box",magnet:!1},body:{strokeWidth:2,fillOpacity:.2},label:{textWrap:{height:-20,width:-20,ellipsis:!0},refX:"50%",refY:"50%",fontSize:16,fontFamily:"sans-serif",fill:"#333333",textAnchor:"middle",textVerticalAnchor:"middle"}}},{},{})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const tdt=[{id:"activity_unit",label:"Activity Type",nodes:[{type:so.default,id:Ht.activityType.options.default.name,label:Ht.activityType.options.default.label.toUpperCase(),iconUrl:"./assets/images/activity/default.png",description:"Click and drag onto canvas to create new activity for a single object, either a gene product or a protein complex identifier"},{type:so.proteinComplex,id:Ht.activityType.options.proteinComplex.name,label:Ht.activityType.options.proteinComplex.label.toUpperCase(),iconUrl:"./assets/images/activity/proteinComplex.png",description:"Click and drag onto canvas to create new activity for a protein complex that you define using a GO complex term and specifying the gene product subunits"},{type:so.molecule,id:Ht.activityType.options.molecule.name,label:Ht.activityType.options.molecule.label.toUpperCase(),iconUrl:"./assets/images/activity/molecule.png",description:"Click and drag onto canvas to create a new small molecule that is either a substrate, a product, or a regulator of an activity"}]}],Nae={camStencil:(0,Zt.cloneDeep)(tdt)},fF={cells:function(t){return function(){var n=Array.from(arguments),e=n.length,i=e>0&&n[0]||[],o=e>1&&n[e-1]||{};return Array.isArray(i)||(o instanceof np?i=n:i instanceof np&&(n.length>1&&n.pop(),i=n)),o instanceof np&&(o={}),t.call(this,i,o)}}},idt=Nd.Collection.extend({initialize:function(t,n){this.cellNamespace=n.cellNamespace?n.cellNamespace:"undefined"!=typeof joint&&tp(joint,"shapes")?joint.shapes:null,this.graph=n.graph},model:function(t,n){var e=n.collection,r=new("link"===t.type?H1:Uv(e.cellNamespace,t.type,".")||Vs)(t,n);return n.dry||(r.graph=e.graph),r},comparator:function(t){return t.get("z")||0}}),Jh=Nd.Model.extend({initialize:function(t,n){var e=new idt([],{model:(n=n||{}).cellModel,cellNamespace:n.cellNamespace,graph:this});Nd.Model.prototype.set.call(this,"cells",e),e.on("all",this.trigger,this),this.on("change:z",this._sortOnChangeZ,this),this._out={},this._in={},this._nodes={},this._edges={},this._batches={},e.on("add",this._restructureOnAdd,this),e.on("remove",this._restructureOnRemove,this),e.on("reset",this._restructureOnReset,this),e.on("change:source",this._restructureOnChangeSource,this),e.on("change:target",this._restructureOnChangeTarget,this),e.on("remove",this._removeCell,this)},_sortOnChangeZ:function(){this.get("cells").sort()},_restructureOnAdd:function(t){if(t.isLink()){this._edges[t.id]=!0;var{source:n,target:e}=t.attributes;n.id&&((this._out[n.id]||(this._out[n.id]={}))[t.id]=!0),e.id&&((this._in[e.id]||(this._in[e.id]={}))[t.id]=!0)}else this._nodes[t.id]=!0},_restructureOnRemove:function(t){if(t.isLink()){delete this._edges[t.id];var{source:n,target:e}=t.attributes;n.id&&this._out[n.id]&&this._out[n.id][t.id]&&delete this._out[n.id][t.id],e.id&&this._in[e.id]&&this._in[e.id][t.id]&&delete this._in[e.id][t.id]}else delete this._nodes[t.id]},_restructureOnReset:function(t){t=t.models,this._out={},this._in={},this._nodes={},this._edges={},t.forEach(this._restructureOnAdd,this)},_restructureOnChangeSource:function(t){var n=t.previous("source");n.id&&this._out[n.id]&&delete this._out[n.id][t.id];var e=t.attributes.source;e.id&&((this._out[e.id]||(this._out[e.id]={}))[t.id]=!0)},_restructureOnChangeTarget:function(t){var n=t.previous("target");n.id&&this._in[n.id]&&delete this._in[n.id][t.id];var e=t.get("target");e.id&&((this._in[e.id]||(this._in[e.id]={}))[t.id]=!0)},getOutboundEdges:function(t){return this._out&&this._out[t]||{}},getInboundEdges:function(t){return this._in&&this._in[t]||{}},toJSON:function(){var t=Nd.Model.prototype.toJSON.apply(this,arguments);return t.cells=this.get("cells").toJSON(),t},fromJSON:function(t,n){if(!t.cells)throw new Error("Graph JSON must contain cells array.");return this.set(t,n)},set:function(t,n,e){var i;return"object"==typeof t?(i=t,e=n):(i={})[t]=n,i.hasOwnProperty("cells")&&(this.resetCells(i.cells,e),i=P4(i,"cells")),Nd.Model.prototype.set.call(this,i,e)},clear:function(t){t=Ar({},t,{clear:!0});var n=this.get("cells");if(0===n.length)return this;this.startBatch("clear",t);var e=n.sortBy(function(i){return i.isLink()?1:2});do{e.shift().remove(t)}while(e.length>0);return this.stopBatch("clear"),this},_prepareCell:function(t,n){var e;if(t instanceof Nd.Model?(e=t.attributes,!t.graph&&(!n||!n.dry)&&(t.graph=this)):e=t,!pd(e.type))throw new TypeError("dia.Graph: cell type must be a string.");return t},minZIndex:function(){var t=this.get("cells").first();return t&&t.get("z")||0},maxZIndex:function(){var t=this.get("cells").last();return t&&t.get("z")||0},addCell:function(t,n){return Array.isArray(t)?this.addCells(t,n):(t instanceof Nd.Model?t.has("z")||t.set("z",this.maxZIndex()+1):void 0===t.z&&(t.z=this.maxZIndex()+1),this.get("cells").add(this._prepareCell(t,n),n||{}),this)},addCells:function(t,n){return 0===t.length||(t=Ict(t),n.maxPosition=n.position=t.length-1,this.startBatch("add",n),t.forEach(function(e){this.addCell(e,n),n.position--},this),this.stopBatch("add",n)),this},resetCells:function(t,n){var e=Ba(t).map(function(i){return this._prepareCell(i,n)},this);return this.get("cells").reset(e,n),this},removeCells:function(t,n){return t.length&&(this.startBatch("remove"),Kh(t,"remove",n),this.stopBatch("remove")),this},_removeCell:function(t,n,e){(e=e||{}).clear||(e.disconnectLinks?this.disconnectLinks(t,e):this.removeLinks(t,e)),this.get("cells").remove(t,{silent:!0}),t.graph===this&&(t.graph=null)},getCell:function(t){return this.get("cells").get(t)},getCells:function(){return this.get("cells").toArray()},getElements:function(){return this.get("cells").filter(t=>t.isElement())},getLinks:function(){return this.get("cells").filter(t=>t.isLink())},getFirstCell:function(){return this.get("cells").first()},getLastCell:function(){return this.get("cells").last()},getConnectedLinks:function(t,n){var e=(n=n||{}).indirect,i=n.inbound,o=n.outbound;void 0===i&&void 0===o&&(i=o=!0);var r=[],a={};function l(T,U){if(ch(T.getOutboundEdges(U.id),function(se,Me){if(!a[Me]){var we=T.getCell(Me);r.push(we),a[Me]=!0,e&&(i&&u(T,we),o&&l(T,we))}}.bind(T)),e&&U.isLink()){var ie=U.getTargetCell();ie&&ie.isLink()&&(a[ie.id]||(r.push(ie),l(T,ie)))}}function u(T,U){if(ch(T.getInboundEdges(U.id),function(se,Me){if(!a[Me]){var we=T.getCell(Me);r.push(we),a[Me]=!0,e&&(i&&u(T,we),o&&l(T,we))}}.bind(T)),e&&U.isLink()){var ie=U.getSourceCell();ie&&ie.isLink()&&(a[ie.id]||(r.push(ie),u(T,ie)))}}if(o&&l(this,t),i&&u(this,t),n.deep){var f=t.getEmbeddedCells({deep:!0}),M={};f.forEach(function(T){T.isElement()&&(M[T.id]=!0)}),f.forEach(function(T){T.isLink()||(o&&ch(this.getOutboundEdges(T.id),function(U,ie){if(!a[ie]){var se=this.getCell(ie),{source:Me,target:we}=se.attributes,He=Me.id,Be=we.id;if(!n.includeEnclosed&&He&&M[He]&&Be&&M[Be])return;r.push(this.getCell(ie)),a[ie]=!0}}.bind(this)),i&&ch(this.getInboundEdges(T.id),function(U,ie){if(!a[ie]){var se=this.getCell(ie),{source:Me,target:we}=se.attributes,He=Me.id,Be=we.id;if(!n.includeEnclosed&&He&&M[He]&&Be&&M[Be])return;r.push(this.getCell(ie)),a[ie]=!0}}.bind(this)))},this)}return r},getNeighbors:function(t,n){n||(n={});var e=n.inbound,i=n.outbound;void 0===e&&void 0===i&&(e=i=!0);var o=this.getConnectedLinks(t,n).reduce(function(l,u){var{source:f,target:M}=u.attributes,T=u.hasLoop(n);if(e&&tp(f,"id")&&!l[f.id]){var U=this.getCell(f.id);U.isElement()&&(T||U&&U!==t&&(!n.deep||!U.isEmbeddedIn(t)))&&(l[f.id]=U)}if(i&&tp(M,"id")&&!l[M.id]){var ie=this.getCell(M.id);ie.isElement()&&(T||ie&&ie!==t&&(!n.deep||!ie.isEmbeddedIn(t)))&&(l[M.id]=ie)}return l}.bind(this),{});if(t.isLink()){if(e){var r=t.getSourceCell();r&&r.isElement()&&!o[r.id]&&(o[r.id]=r)}if(i){var a=t.getTargetCell();a&&a.isElement()&&!o[a.id]&&(o[a.id]=a)}}return Ba(o)},getCommonAncestor:function(){var t=Array.from(arguments).map(function(e){for(var i=[],o=e.get("parent");o;)i.push(o),o=this.getCell(o).get("parent");return i},this);t=t.sort(function(e,i){return e.length-i.length});var n=Ba(t.shift()).find(function(e){return t.every(function(i){return i.includes(e)})});return this.getCell(n)},getSuccessors:function(t,n){var e=[];return this.search(t,function(i){i!==t&&e.push(i)},Ar({},n=n||{},{outbound:!0})),e},cloneCells:iae,cloneSubgraph:function(t,n){var e=this.getSubgraph(t,n);return this.cloneCells(e)},getSubgraph:function(t,n){n=n||{};var e=[],i={},o=[],r=[];return Ba(t).forEach(function(a){i[a.id]||(e.push(a),i[a.id]=a,a.isLink()?r.push(a):o.push(a)),n.deep&&a.getEmbeddedCells({deep:!0}).forEach(function(u){i[u.id]||(e.push(u),i[u.id]=u,u.isLink()?r.push(u):o.push(u))})}),r.forEach(function(a){var{source:l,target:u}=a.attributes;if(l.id&&!i[l.id]){var f=this.getCell(l.id);e.push(f),i[f.id]=f,o.push(f)}if(u.id&&!i[u.id]){var M=this.getCell(u.id);e.push(this.getCell(u.id)),i[M.id]=M,o.push(M)}},this),o.forEach(function(a){this.getConnectedLinks(a,n).forEach(function(u){var{source:f,target:M}=u.attributes;!i[u.id]&&f.id&&i[f.id]&&M.id&&i[M.id]&&(e.push(u),i[u.id]=u)})},this),e},getPredecessors:function(t,n){var e=[];return this.search(t,function(i){i!==t&&e.push(i)},Ar({},n=n||{},{inbound:!0})),e},search:function(t,n,e){(e=e||{}).breadthFirst?this.bfs(t,n,e):this.dfs(t,n,e)},bfs:function(t,n,e={}){const i={},o={},r=[];for(r.push(t),o[t.id]=0;r.length>0;){var a=r.shift();if(i[a.id]||(i[a.id]=!0,!1===n.call(this,a,o[a.id])))continue;const l=this.getNeighbors(a,e);for(let u=0,f=l.length;u0;){const a=r.pop();if(i[a.id]||(i[a.id]=!0,!1===n.call(this,a,o[a.id])))continue;const l=this.getNeighbors(a,e),u=r.length;for(let f=0,M=l.length;fn.getBBox({rotate:!0}).containsPoint(t))},findModelsInArea:function(t,n={}){const e=new Po(t),{strict:i=!1}=n,o=i?"containsRect":"intersect";return this.getElements().filter(r=>e[o](r.getBBox({rotate:!0})))},findModelsUnderElement:function(t,n={}){const{searchBy:e="bbox"}=n,i=t.getBBox().rotateAroundCenter(t.angle());return("bbox"===e?this.findModelsInArea(i):this.findModelsFromPoint(i[e]())).filter(r=>t.id!==r.id&&!r.isEmbeddedIn(t))},getBBox:function(){return this.getCellsBBox(this.getCells())},getCellsBBox:function(t,n={}){const{rotate:e=!0}=n;return Ba(t).reduce(function(i,o){const r=o.getBBox({rotate:e});return r?i?i.union(r):r:i},null)},translate:function(t,n,e){var i=this.getCells().filter(function(o){return!o.isEmbedded()});return Kh(i,"translate",t,n,e),this},resize:function(t,n,e){return this.resizeCells(t,n,this.getCells(),e)},resizeCells:function(t,n,e,i){var o=this.getCellsBBox(e);if(o){var r=Math.max(t/o.width,0),a=Math.max(n/o.height,0);Kh(e,"scale",r,a,o.origin(),i)}return this},startBatch:function(t,n){return n=n||{},this._batches[t]=(this._batches[t]||0)+1,this.trigger("batch:start",Ar({},n,{batchName:t}))},stopBatch:function(t,n){return n=n||{},this._batches[t]=(this._batches[t]||0)-1,this.trigger("batch:stop",Ar({},n,{batchName:t}))},hasActiveBatch:function(t){const n=this._batches;let e;return e=0===arguments.length?Object.keys(n):Array.isArray(t)?t:[t],e.some(i=>n[i]>0)}},{validations:{multiLinks:function(t,n){var{source:e,target:i}=n.attributes;if(e.id&&i.id){var o=n.getSourceCell();if(o&&t.getConnectedLinks(o,{outbound:!0}).filter(function(l){var{source:u,target:f}=l.attributes;return u&&u.id===e.id&&(!u.port||u.port===e.port)&&f&&f.id===i.id&&(!f.port||f.port===i.port)}).length>1)return!1}return!0},linkPinning:function(t,n){var{source:e,target:i}=n.attributes;return e.id&&i.id}}});!function(t,n,e){if(pd(e)){if(!fF[e])throw new Error('Unknown wrapper: "'+e+'"');e=fF[e]}if(!Hs(e))throw new Error("Wrapper must be a function.");Ba(["resetCells","addCells","removeCells"]).forEach(function(i){t[i]=e(t[i])})}(Jh.prototype,0,fF.cells);const odt=function(t,n,e){return t},rdt=function(t,n,e){var f,M,T,i=n.side||"bottom",o=Q_(n.padding||40),r=e.sourceBBox,a=e.targetBBox,l=r.center(),u=a.center();switch(i){case"bottom":T=1,f="y",M="height";break;case"top":T=-1,f="y",M="height";break;case"left":T=-1,f="x",M="width";break;case"right":T=1,f="x",M="width";break;default:throw new Error("Router: invalid side")}return l[f]+=T*(r[M]/2+o[i]),u[f]+=T*(a[M]/2+o[i]),T*(l[f]-u[f])>0?u[f]=l[f]:l[f]=u[f],[l].concat(t,u)};var adt={N:"S",S:"N",E:"W",W:"E"},sdt={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function vP(t,n,e){var i=new wn(t.x,n.y);return e.containsPoint(i)&&(i=new wn(n.x,t.y)),i}function gF(t,n){return t["W"===n||"E"===n?"width":"height"]}function p2(t,n){return t.x===n.x?t.y>n.y?"N":"S":t.y===n.y?t.x>n.x?"W":"E":null}function bP(t){return new Po(t.x,t.y,0,0)}function xP(t){var n=Q_(t.padding||t.elementPadding||20);return{x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}function Rae(t,n){return t.sourceBBox.clone().moveAndExpand(xP(n))}function zae(t,n){return t.targetBBox.clone().moveAndExpand(xP(n))}function Fae(t,n,e){var i=new wn(t.x,n.y),o=new wn(n.x,t.y),r=p2(t,i),a=p2(t,o),l=adt[e],u=r===e||r!==l&&(a===l||a!==e)?i:o;return{points:[u],direction:p2(u,n)}}function yP(t,n,e){var i=vP(t,n,e);return{points:[i],direction:p2(i,n)}}function ddt(t,n,e,i){var u,o={},r=[new wn(t.x,n.y),new wn(n.x,t.y)],a=r.filter(function(T){return!e.containsPoint(T)}),l=a.filter(function(T){return p2(T,t)!==i});if(l.length>0)u=l.filter(function(T){return p2(t,T)===i}).pop(),o.points=[u=u||l[0]],o.direction=p2(u,n);else{u=tae(r,a)[0];var f=new wn(n).move(u,-gF(e,i)/2),M=vP(f,t,e);o.points=[M,f],o.direction=p2(f,n)}return o}function udt(t,n,e,i){var o=yP(n,t,i),r=o.points[0];if(e.containsPoint(r)){var a=(o=yP(t,n,e)).points[0];if(i.containsPoint(a)){var l=new wn(t).move(a,-gF(e,p2(t,a))/2),u=new wn(n).move(r,-gF(i,p2(n,r))/2),f=new Ho(l,u).midpoint(),M=yP(t,f,e),T=Fae(f,n,M.direction);o.points=[M.points[0],T.points[0]],o.direction=T.direction}}return o}function mF(t,n,e,i,o){var M,T,U,r={},a=e.union(i).inflate(1),l=a.center().distance(n)>a.center().distance(t),u=l?n:t,f=l?t:n;return o?(M=wn.fromPolar(a.width+a.height,sdt[o],u),M=a.pointNearestToPoint(M).move(M,-1)):M=a.pointNearestToPoint(u).move(u,1),T=vP(M,f,a),M.round().equals(T.round())?(T=wn.fromPolar(a.width+a.height,H2(M.theta(u))+Math.PI/2,f),U=vP(M,T=a.pointNearestToPoint(T).move(f,1).round(),a),r.points=l?[T,U,M]:[M,U,T]):r.points=l?[T,M]:[M,T],r.direction=p2(l?M:T,n),r}function _F(t,n,e){var i=Rae(e,n),o=zae(e,n),r=function cdt(t,n){return t.sourceAnchor?t.sourceAnchor:Rae(t,n).center()}(e,n),a=function ldt(t,n){return t.targetAnchor?t.targetAnchor:zae(t,n).center()}(e,n);i=i.union(bP(r)),o=o.union(bP(a)),(t=Ba(t).map(wn)).unshift(r),t.push(a);for(var l,u=[],f=0,M=t.length-1;f180?360-e:e}function Uae(t,n){if(!t)return n;var e=Math.abs(t),i=Math.round(e/n);return i?n+(e-i*n)/i:e}function Zv(t,n){return t.round(n)}function wP(t,n,e){return Zv(function mdt(t,n){var e=n.source,i=Im(t.x-e.x,n.x)+e.x,o=Im(t.y-e.y,n.y)+e.y;return new wn(i,o)}(t.clone(),n),e)}function Kv(t){return t.clone().toString()}function bF(t){return new wn(0===t.x?0:Math.abs(t.x)/t.x,0===t.y?0:Math.abs(t.y)/t.y)}function _dt(t,n,e,i,o,r,a){for(var T,l=[],u=bF(o.difference(e)),f=Kv(e),M=t[f];M;){var U=bF((T=n[f]).difference(M));U.equals(u)||(l.unshift(T),u=U),M=t[f=Kv(M)]}var ie=n[f];return bF(ie.difference(i)).equals(u)||l.unshift(ie),l}function jae(t,n){for(var e=1/0,i=0,o=n.length;iBe)&&(Be=rt,me=qe)}if(me){var xt=wP(me,i,r);n.containsPoint(xt)&&(xt=wP(xt.offset(ie.x*i.x,ie.y*i.y),i,r)),T.push(xt)}}return T},[]);return n.containsPoint(t)||M.push(wP(t,i,r)),M}function Cdt(t,n,e,i){var r,a,o=i.precision;r=Zv(t instanceof Po?Gae(this,i).clone():t.clone(),o),a=Zv(n instanceof Po?function hdt(t,n){return t.targetAnchor?t.targetAnchor:Bae(t,n).center()}(this,i).clone():n.clone(),o);var u,f,M,T,l=function gdt(t,n,e){return{source:n.clone(),x:Uae(e.x-n.x,t),y:Uae(e.y-n.y,t)}}(i.step,r,a);if(M=t instanceof Po?Wae(u=r,t,i.startDirections,l,i):[u=r],n instanceof Po?(f=a,T=Wae(a,n,i.endDirections,l,i)):T=[f=a],M=M.filter(Ii=>!e(Ii)),T=T.filter(Ii=>!e(Ii)),M.length>0&&T.length>0){for(var U=new Bm,ie={},se={},Me={},we=0,He=M.length;we0;){var Jn,yn=U.pop(),Kt=ie[yn],kn=se[yn],ri=Me[yn],Rn=void 0===kn,ni=Kt.equals(u);Jn=Rn?qe?ni?null:vF(u,Kt,jt,l,i):ze:vF(kn,Kt,jt,l,i);var Oi=M.length===T.length;if(Oi)for(var qn=0;qn=0)return i.previousDirectionAngle=Jn,_dt(se,ie,Kt,u,f);for(we=0;wei.maxAllowedDirectionChange)){var Bi=wP(Kt.clone().offset(rt.gridOffsetX,rt.gridOffsetY),l,o),lo=Kv(Bi);if(!U.isClose(lo)&&!e(Bi)){if(an.indexOf(lo)>=0&&!Bi.equals(f)&&Yae(Ai,vF(Bi,f,jt,l,i))>i.maxAllowedDirectionChange)continue;var yi=ri+rt.cost+(ni?0:i.penalties[xt]);(!U.isOpen(lo)||yi!me.isPointAccessible(ze)}for(var M,T,l=Ba(t).map(wn),u=[],f=r,U=0,ie=l.length;U<=ie;U++){var se=null;if(T=M||i,!(M=l[U])&&(M=o,(!e.model.get("source").id||!e.model.get("target").id)&&Hs(n.draggingRoute))){var we=T===i?r:T,He=M.origin();se=n.draggingRoute.call(e,we,He,n)}if(null===(se=se||Cdt.call(e,T,M,a,n)))return n.fallbackRouter(t,n,e);var Be=se[0];Be&&Be.equals(f)&&se.shift(),f=se[se.length-1]||f,Array.prototype.push.apply(u,se)}return u}(t,Ar({},Hae,n),e)};var xdt={maxAllowedDirectionChange:45,diagonalCost:function(){var t=this.step;return Math.ceil(Math.sqrt(t*t<<1))},directions:function(){var t=this.step,n=this.cost(),e=this.diagonalCost();return[{offsetX:t,offsetY:0,cost:n},{offsetX:t,offsetY:t,cost:e},{offsetX:0,offsetY:t,cost:n},{offsetX:-t,offsetY:t,cost:e},{offsetX:-t,offsetY:0,cost:n},{offsetX:-t,offsetY:-t,cost:e},{offsetX:0,offsetY:-t,cost:n},{offsetX:t,offsetY:-t,cost:e}]},fallbackRoute:function(t,n,e){var i=t.theta(n),o=[],r={x:n.x,y:t.y},a={x:t.x,y:n.y};if(i%180>90){var l=r;r=a,a=l}var u=i%90<45?r:a,f=new Ho(t,u),M=90*Math.ceil(i/90),T=wn.fromPolar(f.squaredLength(),H2(M+135),u),U=new Ho(n,T),ie=f.intersection(U),se=ie||n,we=360/e.directions.length,He=(ie?se:t).theta(n),Be=K0(He+we/2),me=we*Math.floor(Be/we);return e.previousDirectionAngle=me,se&&o.push(se.round()),o.push(n),o}};const ydt=function(t,n,e){if(!Hs(xF))throw new Error("Metro requires the manhattan router.");return xF(t,Ar({},xdt,n),e)};var qae=["arc","gap","cubic"],Odt=["smooth"],MP=1/3,OP=2/3;function yF(t,n,e){var i=[].concat(t,e,n);return i.reduce(function(o,r,a){var l=i[a+1];return null!=l&&(o[a]=Nm(r,l)),o},[])}function Xae(t,n){return Nm(t,n).squaredLength()}function Qae(t,n,e,i){var r,o=new _r;return r=_r.createSegment("M",t[0].start),o.appendSegment(r),Ba(t).forEach(function(a,l){if(a.isJump){var u,f,M,T;if("arc"===e){u=-90,f=a.start.difference(a.end);var U=Number(f.x<0||0===f.x&&f.y<0);U&&(u+=180);var Me,ie=a.midpoint(),se=new Ho(ie,a.end).rotate(ie,u);M=(Me=new Ho(a.start,ie)).pointAt(2/3).rotate(a.start,u),T=se.pointAt(1/3).rotate(se.end,-u),r=_r.createSegment("C",M,T,se.end),o.appendSegment(r),Me=new Ho(ie,a.end),M=se.pointAt(1/3).rotate(se.end,u),T=Me.pointAt(1/3).rotate(a.end,-u),r=_r.createSegment("C",M,T,a.end),o.appendSegment(r)}else if("gap"===e)r=_r.createSegment("M",a.end),o.appendSegment(r);else if("cubic"===e){u=a.start.theta(a.end);var we=.6*n,He=1.35*n;f=a.start.difference(a.end),(U=Number(f.x<0||0===f.x&&f.y<0))&&(He*=-1),M=wn(a.start.x+we,a.start.y+He).rotate(a.start,u),T=wn(a.end.x-we,a.end.y+He).rotate(a.end,u),r=_r.createSegment("C",M,T,a.end),o.appendSegment(r)}}else{var Be=t[l+1];0==i||!Be||Be.isJump?(r=_r.createSegment("L",a.end),o.appendSegment(r)):function Adt(t,n,e,i,o){var ie,r=e.distance(i)/2,a=e.distance(o)/2,l=-Math.min(t,r),u=-Math.min(t,a),f=e.clone().move(i,l).round(),M=e.clone().move(o,u).round(),T=new wn(MP*f.x+OP*e.x,OP*e.y+MP*f.y),U=new wn(MP*M.x+OP*e.x,OP*e.y+MP*M.y);ie=_r.createSegment("L",f),n.appendSegment(ie),ie=_r.createSegment("C",T,U,M),n.appendSegment(ie)}(i,o,a.end,a.start,Be.end)}}),o}const Ldt=function(t,n,e,i){!function Sdt(t){var n=t.paper,e=n._jumpOverUpdateList;if(null==e){e=n._jumpOverUpdateList=[];var i=n.model;i.on("batch:stop",function(){this.hasActiveBatch()||function Pdt(t){for(var n=t._jumpOverUpdateList,e=0;eie&&"jumpover"===xt.name)}),we=Me.map(function(qe){return f.findViewByModel(qe)}),He=yF(t,n,e),Be=we.map(function(qe){return null==qe?[]:qe===this?He:yF(qe.sourcePoint,qe.targetPoint,qe.route)},this),me=He.reduce(function(qe,rt){var xt=Me.reduce(function(Ut,jt,an){if(jt!==U){var pn=function Tdt(t,n){return Ba(n).reduce(function(e,i){var o=t.intersection(i);return o&&e.push(o),e},[])}(rt,Be[an]);Ut.push.apply(Ut,pn)}return Ut},[]).sort(function(Ut,jt){return Xae(rt.start,Ut)-Xae(rt.start,jt)});return xt.length>0?qe.push.apply(qe,function Edt(t,n,e){return n.reduce(function(i,o,r){if(!0===o.skip)return i;var a=i.pop()||t,l=Bv(o).move(a.start,-e),u=Bv(o).move(a.start,+e),f=n[r+1];if(null!=f){var M=u.distance(f);M<=e&&(u=f.move(a.start,M),f.skip=!0)}else if(l.distance(a.end)<2*e+1)return i.push(a),i;if(u.distance(a.start)<2*e+1)return i.push(a),i;var ie=Nm(l,u);return ie.isJump=!0,i.push(Nm(a.start,l),ie,Nm(u,a.end)),i},[])}(rt,xt,r)):qe.push(rt),qe},[]),ze=Qae(me,r,a,l);return o?ze:ze.serialize()},Ddt=function(t,n,e,i){var o=i&&i.raw,r=[t].concat(e).concat([n]),a=new cc(r),l=new _r(a);return o?l:l.serialize()},kdt=function(t,n,e,i){i||(i={});var l,o=i.radius||10,r=i.raw,a=new _r;l=_r.createSegment("M",t),a.appendSegment(l);for(var M,T,U,ie,se,Me,we,He,Be,me,ze,u=1/3,f=2/3,qe=0,rt=e.length;qe=Math.abs(t.y-n.y)){var f=(t.x+n.x)/2;u=_r.createSegment("C",f,t.y,f,n.y,n.x,n.y),r.appendSegment(u)}else{var M=(t.y+n.y)/2;u=_r.createSegment("C",t.x,M,n.x,M,n.x,n.y),r.appendSegment(u)}}return o?r:r.serialize()},lh={AUTO:"auto",HORIZONTAL:"horizontal",VERTICAL:"vertical",CLOSEST_POINT:"closest-point",OUTWARDS:"outwards"},f2={UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",AUTO:"auto",CLOSEST_POINT:"closest-point",OUTWARDS:"outwards"},wF=function(t,n,e=[],i={},o){const r=Boolean(i.raw),{direction:a=lh.AUTO,precision:l=3}=i,u={coeff:i.distanceCoefficient||.6,angleTangentCoefficient:i.angleTangentCoefficient||80,tau:i.tension||.5,sourceTangent:i.sourceTangent?new wn(i.sourceTangent):null,targetTangent:i.targetTangent?new wn(i.targetTangent):null};u.sourceDirection="string"==typeof i.sourceDirection?i.sourceDirection:"number"==typeof i.sourceDirection?new wn(1,0).rotate(null,i.sourceDirection):i.sourceDirection?new wn(i.sourceDirection).normalize():null,u.targetDirection="string"==typeof i.targetDirection?i.targetDirection:"number"==typeof i.targetDirection?new wn(1,0).rotate(null,i.targetDirection):i.targetDirection?new wn(i.targetDirection).normalize():null;const f=[t,...e.map(Me=>new wn(Me)),n];let M,T;if(u.sourceTangent)M=u.sourceTangent;else{const Me=function Hdt(t,n,e,i){if(i.sourceDirection)switch(i.sourceDirection){case f2.UP:return new wn(0,-1);case f2.DOWN:return new wn(0,1);case f2.LEFT:return new wn(-1,0);case f2.RIGHT:return new wn(1,0);case f2.AUTO:return Zae(t,n);case f2.CLOSEST_POINT:return Jae(0,n);case f2.OUTWARDS:return tse(t,n);default:return i.sourceDirection}switch(e){case lh.HORIZONTAL:return function Ndt(t,n,e){const{sourceBBox:i}=t;let o;return"left"===(o=i.width&&i.height?i.sideNearestToPoint(n[0]):i.x>n[1].x?"right":"left",o)?new wn(-1,0):new wn(1,0)}(t,n);case lh.VERTICAL:return function zdt(t,n,e){const{sourceBBox:i}=t;let o;return"top"===(o=i.width&&i.height?i.sideNearestToPoint(n[0]):i.y>n[1].y?"bottom":"top",o)?new wn(0,-1):new wn(0,1)}(t,n);case lh.CLOSEST_POINT:return Jae(0,n);case lh.OUTWARDS:return tse(t,n);default:return Zae(t,n)}}(o,f,a,u),we=f[0].distance(f[1])*u.coeff,Be=MF(Me,f[1].difference(f[0]).normalize());if(Be>Math.PI/4){const me=we+(Be-Math.PI/4)*u.angleTangentCoefficient;M=Me.clone().scale(me,me)}else M=Me.clone().scale(we,we)}if(u.targetTangent)T=u.targetTangent;else{const Me=function Vdt(t,n,e,i){if(i.targetDirection)switch(i.targetDirection){case f2.UP:return new wn(0,-1);case f2.DOWN:return new wn(0,1);case f2.LEFT:return new wn(-1,0);case f2.RIGHT:return new wn(0,1);case f2.AUTO:return Kae(t,n);case f2.CLOSEST_POINT:return ese(0,n);case f2.OUTWARDS:return nse(t,n);default:return i.targetDirection}switch(e){case lh.HORIZONTAL:return function Rdt(t,n,e){const{targetBBox:i}=t;let o;return"left"===(o=i.width&&i.height?i.sideNearestToPoint(n[n.length-1]):i.x>n[n.length-2].x?"left":"right",o)?new wn(-1,0):new wn(1,0)}(t,n);case lh.VERTICAL:return function Fdt(t,n,e){const{targetBBox:i}=t;let o;return"top"===(o=i.width&&i.height?i.sideNearestToPoint(n[n.length-1]):i.y>n[n.length-2].y?"top":"bottom",o)?new wn(0,-1):new wn(0,1)}(t,n);case lh.CLOSEST_POINT:return ese(0,n);case lh.OUTWARDS:return nse(t,n);default:return Kae(t,n)}}(o,f,a,u),we=f.length-1,He=f[we-1].distance(f[we])*u.coeff,me=MF(Me,f[we-1].difference(f[we]).normalize());if(me>Math.PI/4){const ze=He+(me-Math.PI/4)*u.angleTangentCoefficient;T=Me.clone().scale(ze,ze)}else T=Me.clone().scale(He,He)}const ie=function Gdt(t,n,e,i){const{tau:o,coeff:r}=i,a=[],l=[],u=[],f=t.length-1;for(let M=0;M0&&me>0)&&(we-=Math.PI),He=se.clone(),Bdt(He,we);const ze=He.clone(),qe=He.clone(),rt=a[M-1]*r,xt=a[M]*r;ze.scale(rt,rt),qe.scale(xt,xt),l[M]=[ze,qe]}for(let M=0;Mfunction Ydt(t,n){const{tau:e}=n,i=new wn;i.x=t[1].x+(t[2].x-t[0].x)/(6*e),i.y=t[1].y+(t[2].y-t[0].y)/(6*e);const o=new wn;return o.x=t[2].x+(t[3].x-t[1].x)/(6*e),o.y=t[2].y+(t[3].y-t[1].y)/(6*e),new Ls(t[1],i,o,t[2])}(Me,u)),se=new _r(ie).round(l);return r?se:se.serialize()};function Zae(t,n,e){const{sourceBBox:i}=t;let o;switch(o=i.sideNearestToPoint(i.width&&i.height?n[0]:n[1]),o){case"top":return new wn(0,-1);case"bottom":return new wn(0,1);case"right":return new wn(1,0);case"left":return new wn(-1,0)}}function Kae(t,n,e){const{targetBBox:i}=t;let o;switch(o=i.sideNearestToPoint(i.width&&i.height?n[n.length-1]:n[n.length-2]),o){case"top":return new wn(0,-1);case"bottom":return new wn(0,1);case"right":return new wn(1,0);case"left":return new wn(-1,0)}}function Jae(t,n,e){return n[1].difference(n[0]).normalize()}function ese(t,n,e){const i=n.length-1;return n[i-1].difference(n[i]).normalize()}function tse(t,n,e){const{sourceBBox:i}=t,o=i.center();return n[0].difference(o).normalize()}function nse(t,n,e){const{targetBBox:i}=t,o=i.center();return n[n.length-1].difference(o).normalize()}function Bdt(t,n){const e=Math.cos(n),i=Math.sin(n),r=i*t.x+e*t.y;t.x=e*t.x-i*t.y,t.y=r}function MF(t,n){let e=t.dot(n)/(t.magnitude()*n.magnitude());return e<-1&&(e=-1),e>1&&(e=1),Math.acos(e)}function ise(t,n){return t.x*n.y-t.y*n.x}wF.Directions=lh,wF.TangentDirections=f2;const ia={RENDER:"RENDER",UPDATE:"UPDATE",TOOLS:"TOOLS",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},Jv=us.extend({className:function(){var t=us.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){us.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[ia.RENDER],attrs:[ia.UPDATE],router:[ia.UPDATE],connector:[ia.CONNECTOR],smooth:[ia.UPDATE],manhattan:[ia.UPDATE],toolMarkup:[ia.LEGACY_TOOLS],labels:[ia.LABELS],labelMarkup:[ia.LABELS],vertices:[ia.VERTICES,ia.UPDATE],vertexMarkup:[ia.VERTICES],source:[ia.SOURCE,ia.UPDATE],target:[ia.TARGET,ia.UPDATE]},initFlag:[ia.RENDER,ia.SOURCE,ia.TARGET,ia.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,n){if(n||(n={}),this.hasFlag(t,ia.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,ia.SOURCE)}if(this.hasFlag(t,ia.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,ia.TARGET)}const{paper:e,sourceView:i,targetView:o}=this;if(e&&(i&&!e.isViewMounted(i)||o&&!e.isViewMounted(o)))return t;if(this.hasFlag(t,ia.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(n),this.removeFlag(t,[ia.RENDER,ia.UPDATE,ia.VERTICES,ia.LABELS,ia.TOOLS,ia.LEGACY_TOOLS,ia.CONNECTOR]);let r=!1;this.hasFlag(t,ia.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,ia.VERTICES));const{model:a}=this,{attributes:l}=a;let u=this.hasFlag(t,ia.LABELS),f=this.hasFlag(t,ia.LEGACY_TOOLS);u&&(this.onLabelsChange(a,l.labels,n),t=this.removeFlag(t,ia.LABELS),r=!0),f&&(this.renderTools(),t=this.removeFlag(t,ia.LEGACY_TOOLS));const M=this.hasFlag(t,ia.UPDATE),T=this.hasFlag(t,ia.CONNECTOR);return(M||T)&&(M?n.translateBy&&a.isRelationshipEmbeddedIn(n.translateBy)?this.translate(n.tx,n.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(n),t=this.removeFlag(t,[ia.UPDATE,ia.TOOLS,ia.CONNECTOR]),u=!1,f=!1,r=!0),u&&this.updateLabelPositions(),f&&this.updateToolsPosition(),r&&this.updateHighlighters(),this.hasFlag(t,ia.TOOLS)&&(this.updateTools(n),t=this.removeFlag(t,ia.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(ia.UPDATE),t)},isLabelsRenderRequired:function(t={}){const n=this.model.previous("labels");if(!n)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var e=t.propertyPathArray||[],i=e.length;if(i>1&&n[e[1]]){if(2===i)return"markup"in Object(t.propertyValue);if("markup"!==e[2])return!1}}return!0},onLabelsChange:function(t,n,e){this.isLabelsRenderRequired(e)?this.renderLabels():this.updateLabels()},render:function(){return this.vel.empty(),this.unmountLabels(),this._V={},this.renderMarkup(),this.renderLabels(),this.update(),this},renderMarkup:function(){var t=this.model,n=t.get("markup")||t.markup;if(!n)throw new Error("dia.LinkView: markup required");if(Array.isArray(n))return this.renderJSONMarkup(n);if("string"==typeof n)return this.renderStringMarkup(n);throw new Error("dia.LinkView: invalid markup")},renderJSONMarkup:function(t){var n=this.parseDOMJSON(t,this.el);this.selectors=n.selectors,this.vel.append(n.fragment)},renderStringMarkup:function(t){var n=wi(t);Array.isArray(n)||(n=[n]);for(var e=this._V,i=0,o=n.length;i1||"G"!==i[0].nodeName.toUpperCase()?wi("g").append(n):wi(i[0])).addClass("label"),{node:e.node,selectors:t.selectors}}},renderLabels:function(){var t=this._V,n=t.labels,e=this._labelCache={},i=this._labelSelectors={},o=this.model,r=o.attributes.labels||[],a=r.length;if(0===a)return n&&n.remove(),this;n?n.empty():(n=t.labels=wi("g").addClass("labels"),this.options.labelsLayer&&(n.addClass(Zh(_1(this,"className"))),n.attr("model-id",o.id)));for(var l=0;lf.toJSON()),u=l.length;return r===u?0:(e.vertices(l.slice(1,u-1),t),r-u)},updateDefaultConnectionPath:function(){var t=this._V;t.connection&&t.connection.attr("d",this.getSerializedConnection()),t.connectionWrap&&t.connectionWrap.attr("d",this.getSerializedConnection()),t.markerSource&&t.markerTarget&&this._translateAndAutoOrientArrows(t.markerSource,t.markerTarget)},getEndView:function(t){switch(t){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error("dia.LinkView: type parameter required.")}},getEndAnchor:function(t){switch(t){case"source":return new wn(this.sourceAnchor);case"target":return new wn(this.targetAnchor);default:throw new Error("dia.LinkView: type parameter required.")}},getEndConnectionPoint:function(t){switch(t){case"source":return new wn(this.sourcePoint);case"target":return new wn(this.targetPoint);default:throw new Error("dia.LinkView: type parameter required.")}},getEndMagnet:function(t){switch(t){case"source":var n=this.sourceView;if(!n)break;return this.sourceMagnet||n.el;case"target":var e=this.targetView;if(!e)break;return this.targetMagnet||e.el;default:throw new Error("dia.LinkView: type parameter required.")}return null},update:function(){return this.updateRoute(),this.updatePath(),this.updateDOM(),this},translate:function(t=0,n=0){const{route:e,path:i}=this;if(!e||!i)return;const o=new cc(e);o.translate(t,n),this.route=o.points,this._translateConnectionPoints(t,n),i.translate(t,n),this.updateDOM()},updateDOM(){const{el:t,model:n,selectors:e}=this;this.cleanNodesCache(),this.updateDOMSubtreeAttributes(t,n.attr(),{selectors:e}),this.updateDefaultConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),this.options.perpendicular=null},updateRoute:function(){const{model:t}=this,n=t.vertices(),e=this.findAnchors(n),i=this.sourceAnchor=e.source,o=this.targetAnchor=e.target,r=this.findRoute(n);this.route=r;var a=this.findConnectionPoints(r,i,o);this.sourcePoint=a.source,this.targetPoint=a.target},updatePath:function(){const{route:t,sourcePoint:n,targetPoint:e}=this,i=this.findMarkerPoints(t,n,e),o=this.findPath(t,i.source||n,i.target||e);this.path=o},findMarkerPoints:function(t,n,e){var a,l,i=t[0],o=t[t.length-1],r=this._markerCache;return this._V.markerSource&&(r.sourceBBox=r.sourceBBox||this._V.markerSource.getBBox(),a=wn(n).move(i||e,r.sourceBBox.width*this._V.markerSource.scale().sx*-1).round()),this._V.markerTarget&&(r.targetBBox=r.targetBBox||this._V.markerTarget.getBBox(),l=wn(e).move(o||n,r.targetBBox.width*this._V.markerTarget.scale().sx*-1).round()),r.sourcePoint=a||n.clone(),r.targetPoint=l||e.clone(),{source:a,target:l}},findAnchorsOrdered:function(t,n,e,i){var o,r,a,l,u=this.model,f=u.get(t),M=u.get(e),T=this.getEndView(t),U=this.getEndView(e),ie=this.getEndMagnet(t),se=this.getEndMagnet(e);T?(a=n?new wn(n):U?se:new wn(M),o=this.getAnchor(f.anchor,T,ie,a,t)):o=new wn(f),U?(l=new wn(i||o),r=this.getAnchor(M.anchor,U,se,l,e)):r=new wn(M);var Me={};return Me[t]=o,Me[e]=r,Me},findAnchors:function(t){var n=this.model,e=t[0],i=t[t.length-1];return n.target().priority&&!n.source().priority?this.findAnchorsOrdered("target",i,"source",e):this.findAnchorsOrdered("source",e,"target",i)},findConnectionPoints:function(t,n,e){var T,U,ie,He,i=t[0],o=t[t.length-1],r=this.model,a=r.get("source"),l=r.get("target"),u=this.sourceView,f=this.targetView,M=this.paper.options;if(u&&!u.isNodeConnection(this.sourceMagnet)){T=this.sourceMagnet||u.el;var se=a.connectionPoint||M.defaultConnectionPoint,we=new Ho(i||e,n);ie=this.getConnectionPoint(se,u,T,we,"source")}else ie=n;if(f&&!f.isNodeConnection(this.targetMagnet)){U=this.targetMagnet||f.el;var Be=l.connectionPoint||M.defaultConnectionPoint,ze=new Ho(o||n,e);He=this.getConnectionPoint(Be,f,U,ze,"target")}else He=e;return{source:ie,target:He}},getAnchor:function(t,n,e,i,o){var l,r=n.isNodeConnection(e),a=this.paper.options;if(t||(t=r?a.defaultLinkAnchor:a.perpendicularLinks||this.options.perpendicular?{name:"perpendicular"}:a.defaultAnchor),!t)throw new Error("Anchor required.");if("function"==typeof t)l=t;else{var u=t.name;if("function"!=typeof(l=a[r?"linkAnchorNamespace":"anchorNamespace"][u]))throw new Error("Unknown anchor: "+u)}var M=l.call(this,n,e,i,t.args||{},o,this);return M?M.round(this.decimalsRounding):new wn},getConnectionPoint:function(t,n,e,i,o){var r,f,a=i.end,l=this.paper.options;if("function"==typeof l.linkConnectionPoint&&(r=l.linkConnectionPoint(this,n,e===n.el?void 0:e,i.start,o)))return r;if(!t)return a;if("function"==typeof t)f=t;else{var M=t.name;if("function"!=typeof(f=l.connectionPointNamespace[M]))throw new Error("Unknown connection point: "+M)}return(r=f.call(this,i,n,e,t.args||{},o,this))?r.round(this.decimalsRounding):a},_translateConnectionPoints:function(t,n){var e=this._markerCache;e.sourcePoint.offset(t,n),e.targetPoint.offset(t,n),this.sourcePoint.offset(t,n),this.targetPoint.offset(t,n),this.sourceAnchor.offset(t,n),this.targetAnchor.offset(t,n)},_normalizeLabelPosition:function(t){return"number"==typeof t?{distance:t,offset:null,angle:0,args:null}:t},updateLabelPositions:function(){if(!this._V.labels)return this;if(!this.path)return this;var n=this.model,e=n.get("labels")||[];if(!e.length)return this;for(var o=n._builtins.defaultLabel.position,r=n._getDefaultLabel(),a=this._normalizeLabelPosition(r.position),l=F1({},o,a),u=0,f=e.length;u=this.options.longLinkLength?(i=this.getPointAtLength(e-(this.options.doubleLinkToolsOffset||n)),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("visibility","visible")):this.options.doubleLinkTools&&this._tool2Cache.attr("visibility","hidden")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===As.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()0&&n<=1,r=0,a={x:0,y:0};if(t.offset){var l=t.offset;"number"==typeof l&&(r=l),l.x&&(a.x=l.x),l.y&&(a.y=l.y)}var Me,u=0!==a.x||0!==a.y||0===r,f=i.keepGradient,M=i.ensureLegibility,T=this.path,U={segmentSubdivisions:this.getConnectionSubdivisions()},ie=o?n*this.getConnectionLength():n,se=T.tangentAtLength(ie,U),we=e;if(se){if(u)(Me=se.start).offset(a);else{var He=se.clone();He.rotate(se.start,-90),He.setLength(r),Me=He.end}f&&(we=se.angle()+e,M&&(we=K0((we+90)%180-90)))}else Me=T.start,u&&Me.offset(a);return wi.createSVGMatrix().translate(Me.x,Me.y).rotate(we)},getLabelCoordinates:function(t){var n=this._getLabelTransformationMatrix(t);return new wn(n.e,n.f)},getVertexIndex:function(t,n){for(var i=this.model.vertices(),o=this.getClosestPointLength(new wn(t,n)),r=0,a=i.length;r{qe.push({bbox:ze.getNodeBBox(rt),magnet:rt})}),qe.forEach(rt=>{const{magnet:xt,bbox:Ut}=rt,jt=Ut.center().squaredDistance(ie);jt0){for(var f=0,M=u.length;fo&&(o=r);return n.insertBefore(i,o!==-1/0?e[o].nextSibling:n.firstChild),i},removePivots:function(){const{el:t,pivotNodes:n}=this;for(let e in n)t.removeChild(n[e]);this.pivotNodes={}}}),jdt=A4.extend({tagName:"path",className:"highlight-stroke",attributes:{"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},options:{padding:3,rx:0,ry:0,useFirstSubpath:!1,attrs:{"stroke-width":3,stroke:"#FEB663"}},getPathData(t,n){const{options:e}=this,{useFirstSubpath:i}=e;let o;try{const r=wi(n);if(o=r.convertToPathData().trim(),"PATH"===r.tagName()&&i){const a=o.search(/.M/i)+1;a>0&&(o=o.substr(0,a))}}catch(r){const a=t.getNodeBoundingRect(n);o=wi.rectToPath(Ar({},e,a.toJSON()))}return o},highlightConnection(t){this.vel.attr("d",t.getSerializedConnection())},highlightNode(t,n){const{vel:e,options:i}=this,{padding:o,layer:r}=i;let a=t.getNodeMatrix(n);if(o){!r&&n===t.el&&e.remove();let l=t.getNodeBoundingRect(n);const u=l.x+l.width/2,f=l.y+l.height/2;l=wi.transformRect(l,a);const M=Math.max(l.width,1),T=Math.max(l.height,1),U=(M+o)/M,ie=(T+o)/T,se=wi.createSVGMatrix({a:U,b:0,c:0,d:ie,e:u-U*u,f:f-ie*f});a=a.multiply(se)}e.attr({d:this.getPathData(t,n),transform:wi.matrixToTransformString(a)})},highlight(t,n){const{vel:e,options:i}=this;e.attr(i.attrs),t.isNodeConnection(n)?this.highlightConnection(t):this.highlightNode(t,n)}}),ose=20,qdt=A4.extend({tagName:"rect",className:"highlight-mask",attributes:{"pointer-events":"none"},options:{padding:3,maskClip:ose,deep:!1,attrs:{stroke:"#FEB663","stroke-width":3,"stroke-linecap":"butt","stroke-linejoin":"miter"}},VISIBLE:"white",INVISIBLE:"black",MASK_ROOT_ATTRIBUTE_BLACKLIST:["marker-start","marker-end","marker-mid","transform","stroke-dasharray"],MASK_CHILD_ATTRIBUTE_BLACKLIST:["stroke","fill","stroke-width","stroke-opacity","stroke-dasharray","fill-opacity","marker-start","marker-end","marker-mid"],MASK_REPLACE_TAGS:["FOREIGNOBJECT","IMAGE","USE","TEXT","TSPAN","TEXTPATH"],MASK_REMOVE_TAGS:["TEXT","TSPAN","TEXTPATH"],transformMaskChild(t,n){const{MASK_CHILD_ATTRIBUTE_BLACKLIST:e,MASK_REPLACE_TAGS:i,MASK_REMOVE_TAGS:o}=this,r=n.tagName();if(!wi.isSVGGraphicsElement(n)||o.includes(r))return n.remove(),!1;if(i.includes(r)){const a=t.vel.findOne(`#${n.id}`);if(a){const{node:l}=a;let u=t.getNodeBoundingRect(l);t.model.isElement()&&(u=wi.transformRect(u,t.getNodeMatrix(l)));const f=wi("rect",u.toJSON()),{x:M,y:T}=u.center(),{angle:U,cx:ie=M,cy:se=T}=a.rotate();U&&f.rotate(U,ie,se),n.parent().append(f)}return n.remove(),!1}return e.forEach(a=>{"fill"===a&&"none"===n.attr("fill")||n.removeAttr(a)}),!0},transformMaskRoot(t,n){const{MASK_ROOT_ATTRIBUTE_BLACKLIST:e}=this;e.forEach(i=>{n.removeAttr(i)})},getMaskShape(t,n){const{options:e,MASK_REPLACE_TAGS:i}=this,{deep:o}=e,r=n.tagName();let a;if("G"===r){if(!o)return null;a=n.clone(),function Wdt(t,n){const e=t.children();for(;e.length>0;){const i=e.shift();n(i)&&e.push(...i.children())}}(a,l=>this.transformMaskChild(t,l))}else{if(i.includes(r))return null;a=n.clone()}return this.transformMaskRoot(t,a),a},getMaskId(){return`highlight-mask-${this.cid}`},getMask(t,n){const{VISIBLE:e,INVISIBLE:i,options:o}=this,{padding:r,attrs:a}=o,l="stroke-width"in a?a["stroke-width"]:1,u="none"!==n.attr("fill");let f=parseFloat(n.attr("stroke-width"));isNaN(f)&&(f=1);const M=f+2*r,T=M+2*l;let U=this.getMaskShape(t,n);if(!U){const ie=t.getNodeBoundingRect(n.node);ie.inflate(ie.width?0:.5,ie.height?0:.5),U=wi("rect",ie.toJSON())}return U.attr(a),wi("mask",{id:this.getMaskId()}).append([U.clone().attr({fill:u?e:"none",stroke:e,"stroke-width":T}),U.clone().attr({fill:u?i:"none",stroke:i,"stroke-width":M})])},removeMask(t){const n=t.svg.getElementById(this.getMaskId());n&&t.defs.removeChild(n)},addMask(t,n){t.defs.appendChild(n.node)},highlight(t,n){const{options:e,vel:i}=this,{padding:o,attrs:r,maskClip:a=ose,layer:l}=e,u="stroke"in r?r.stroke:"#000000";!l&&n===t.el&&i.remove();const f=t.getNodeBoundingRect(n).inflate(o+a),M=this.getMask(t,wi(n));this.addMask(t.paper,M),i.attr(f.toJSON()),i.attr({transform:wi.matrixToTransformString(t.getNodeMatrix(n)),mask:`url(#${M.id})`,fill:u})},unhighlight(t){this.removeMask(t.paper)}}),$dt=A4.extend({UPDATABLE:!1,MOUNTABLE:!1,opacityClassName:Zh("highlight-opacity"),highlight:function(t,n){wi(n).addClass(this.opacityClassName)},unhighlight:function(t,n){wi(n).removeClass(this.opacityClassName)}}),rse=Zh("highlighted"),Xdt=A4.extend({UPDATABLE:!1,MOUNTABLE:!1,options:{className:rse},highlight:function(t,n){wi(n).addClass(this.options.className)},unhighlight:function(t,n){wi(n).removeClass(this.options.className)}},{className:rse});function Qdt(t,n,e,i){return t.getPointAtRatio("ratio"in i?i.ratio:.5)}function Zdt(t,n,e,i){return t.getPointAtLength("length"in i?i.length:20)}function eb(t){return function(n,e,i,o){if(i instanceof Element){var a,r=this.paper.findView(i);if(r)if(r.isNodeConnection(i)){var l="fixedAt"in o?o.fixedAt:"50%";a=ase(r,l)}else a=r.getNodeBBox(i).center();else a=new wn;return t.call(this,n,e,a,o)}return t.apply(this,arguments)}}function ase(t,n){var e=parseFloat(n);return rh(n)?t.getPointAtRatio(e/100):t.getPointAtLength(e)}const e2t=eb(function Kdt(t,n,e,i){var o=1e6,r=t.getConnection(),a=t.getConnectionSubdivisions(),l=new Ho(e.clone().offset(0,o),e.clone().offset(0,-o)),u=new Ho(e.clone().offset(o,0),e.clone().offset(-o,0)),f=l.intersect(r,{segmentSubdivisions:a}),M=u.intersect(r,{segmentSubdivisions:a}),T=[];return f&&Array.prototype.push.apply(T,f),M&&Array.prototype.push.apply(T,M),T.length>0?e.chooseClosest(T):"fallbackAt"in i?ase(t,i.fallbackAt):sse(t,n,e,i)}),sse=eb(function Jdt(t,n,e,i){return t.getClosestPoint(e)||new wn});function SP(t,n,e){if(z1(e)){const{x:o,y:r}=e;if(isFinite(r)){const a=new Ho(n,t),{start:l,end:u}=a.parallel(r);n=l,t=u}e=o}if(!isFinite(e))return t;var i=t.distance(n);return 0===e&&i>0?t:t.move(n,-Math.min(e,i-1))}function OF(t){var n=t.getAttribute("stroke-width");return null===n?0:parseFloat(n)||0}function cse(t,n,e,i){var o=n.getNodeBBox(e);i.stroke&&o.inflate(OF(e)/2);var r=t.intersect(o);return SP(r?t.start.chooseClosest(r):t.end,t.start,i.offset)}var SF="segmentSubdivisons",PF="shapeBBox";const a2t=function n2t(t,n,e,i){let{offset:o,alignOffset:r,align:a}=i;return a&&function t2t(t,n,e=0){let i,o,r,a;const{start:l,end:u}=t;switch(n){case"left":i="x",o=u,r=l,a=-1;break;case"right":i="x",o=l,r=u,a=1;break;case"top":i="y",o=u,r=l,a=-1;break;case"bottom":i="y",o=l,r=u,a=1;break;default:return}l[i]{const a=new Udt({name:o});this.layers.appendChild(a.el),this._layers[o]=a});const n=this.getLayerView(e0.CELLS),e=this.getLayerView(e0.TOOLS),i=this.getLayerView(e0.LABELS);this.tools=e.el,this.cells=this.viewport=n.el,n.vel.addClass(Zh("viewport")),i.vel.addClass(Zh("viewport"))},removeLayers:function(){const{_layers:t}=this;Object.keys(t,n=>{t[n].remove(),delete t[n]})},resetLayers:function(){const{_layers:t}=this;Object.keys(t,n=>{t[n].removePivots()})},update:function(){return this.options.drawGrid&&this.drawGrid(),this._background&&this.updateBackgroundImage(this._background),this},matrix:function(t){var n=this.layers;if(void 0===t){var e=n.getAttribute("transform");return(this._viewportTransformString||null)===e?t=this._viewportMatrix:(t=n.getCTM(),this._viewportMatrix=t,this._viewportTransformString=e),wi.createSVGMatrix(t)}t=wi.createSVGMatrix(t);var i=wi.matrixToTransformString(t);return n.setAttribute("transform",i),this._viewportMatrix=t,this._viewportTransformString=n.getAttribute("transform"),this},clientMatrix:function(){return wi.createSVGMatrix(this.cells.getScreenCTM())},requestConnectedLinksUpdate:function(t,n,e){if(t instanceof us)for(var i=t.model,o=this.model.getConnectedLinks(i),r=0,a=o.length;ru)for(let ie=e-1;ie>=u;ie--){const se=o.priorities[ie];!se||!(f in se)||(M[f]|=se[f],delete se[f])}let T=M[f]||0;if((T&n)===n)return;T||o.count++,n&a&&T&l?M[f]^=l:n&l&&T&a&&(M[f]^=a),M[f]|=n;const U=r.onViewUpdate;"function"==typeof U&&U.call(this,t,n,e,i||{},this)},dumpViewUpdate:function(t){if(!t)return 0;var e=t.cid,i=this._updates.priorities[t.UPDATE_PRIORITY],o=this.registerMountedView(t)|i[e];return delete i[e],o},dumpView:function(t,n){var e=this.dumpViewUpdate(t);return e?this.updateView(t,e,n):0},updateView:function(t,n,e){if(!t)return 0;const{FLAG_REMOVE:i,FLAG_INSERT:o,model:r}=t;if(t instanceof us){if(n&i)return this.removeView(r),0;n&o&&(this.insertView(t),n^=o)}return n?t.confirmUpdate(n,e||{}):0},requireView:function(t,n){var e=this.findViewByModel(t);return e?(this.dumpView(e,n),e):null},registerUnmountedView:function(t){var n=t.cid,e=this._updates;if(n in e.unmounted)return 0;var i=e.unmounted[n]|=t.FLAG_INSERT;return e.unmountedCids.push(n),delete e.mounted[n],i},registerMountedView:function(t){var n=t.cid,e=this._updates;if(n in e.mounted)return 0;e.mounted[n]=!0,e.mountedCids.push(n);var i=e.unmounted[n]||0;return delete e.unmounted[n],i},isViewMounted:function(t){return!!t&&t.cid in this._updates.mounted},dumpViews:function(t){var n=ah({},t,{viewport:null});this.checkViewport(n),this.updateViews(n)},updateViews:function(t){this.notifyBeforeRender(t);let n,e=0,i=0,o=PP;do{i++,n=this.updateViewsBatch(t),e+=n.updated,o=Math.min(n.priority,o)}while(!n.empty);const r={updated:e,batches:i,priority:o};return this.notifyAfterRender(r,t),r},hasScheduledUpdates:function(){const t=this._updates.priorities,n=Object.keys(t);let e=n.length;for(;e>0&&e--;)for(let i in t[n[e]])return!0;return!1},updateViewsAsync:function(t,n){t||(t={}),n||(n={processed:0,priority:PP});var e=this._updates,i=e.id;if(i){$z(i),0===n.processed&&this.hasScheduledUpdates()&&this.notifyBeforeRender(t);var o=this.updateViewsBatch(t),r=ah({},t,{mountBatchSize:1e3-o.mounted,unmountBatchSize:1e3-o.unmounted}),a=this.checkViewport(r),l=a.unmounted,u=a.mounted,f=n.processed,M=e.count;o.updated>0&&(o.processed=f+=o.updated+o.unmounted,n.priority=Math.min(o.priority,n.priority),o.empty&&0===u?(o.unmounted+=l,o.mounted+=u,o.priority=n.priority,this.notifyAfterRender(o,t),n.processed=0,n.priority=PP,e.count=0):n.processed=f);var T=t.progress;if(M&&"function"==typeof T&&T.call(this,o.empty,f,M,o,this),e.id!==i)return}e.id=qz(this.updateViewsAsync,this,t,n)},notifyBeforeRender:function(t={}){let n=t.beforeRender;"function"!=typeof n&&(n=this.options.beforeRender,"function"!=typeof n)||n.call(this,t,this)},notifyAfterRender:function(t,n={}){let e=n.afterRender;"function"!=typeof e&&(e=this.options.afterRender),"function"==typeof e&&e.call(this,t,n,this),this.trigger("render:done",t,n)},updateViewsBatch:function(t){t||(t={});var n=t.batchSize||1/0,e=this._updates,i=0,o=0,r=0,a=0,l=PP,u=!0,f=this.options,M=e.priorities,T="viewport"in t?t.viewport:f.viewport;"function"!=typeof T&&(T=null);var U=f.onViewPostponed;"function"!=typeof U&&(U=null);var ie=Object.keys(M);e:for(var se=0,Me=ie.length;se=n){u=!1;break e}var me=Hm[Be];if(me){var ze=He[Be];if(0==(ze&me.FLAG_REMOVE)){var qe=Be in e.unmounted;if(me.DETACHABLE&&T&&!T.call(this,me,!qe,this)){qe||(this.registerUnmountedView(me),me.unmount()),e.unmounted[Be]|=ze,delete He[Be],r++;continue}qe&&(ze|=me.FLAG_INSERT,a++),ze|=this.registerMountedView(me)}var rt=this.updateView(me,ze,t);rt>0&&(He[Be]=rt,!U||!U.call(this,me,rt,this)||He[Be])?(o++,u=!1):(l>we&&(l=we),i++,delete He[Be])}else delete He[Be]}}return{priority:l,updated:i,postponed:o,unmounted:r,mounted:a,empty:u}},getUnmountedViews:function(){const n=Object.keys(this._updates.unmounted),e=n.length,i=new Array(e);for(var o=0;o0&&(n.mountBatchSize=Math.min(this._updates.unmountedCids.length-i,n.mountBatchSize)),{mounted:this.checkUnmountedViews(e,n),unmounted:i}},freeze:function(t){t||(t={});var n=this._updates,e=t.key,i=this.options.frozen,o=n.freezeKey;if(e&&e!==o){if(i&&o)return;n.freezeKey=e,n.keyFrozen=i}this.options.frozen=!0;var r=n.id;n.id=null,this.isAsync()&&r&&$z(r)},unfreeze:function(t){t||(t={});var n=this._updates,e=t.key,i=n.freezeKey;e&&i&&e!==i||(n.freezeKey=null,(!e||e!==i||!n.keyFrozen)&&(this.isAsync()?(this.freeze(),this.updateViewsAsync(t)):this.updateViews(t),this.options.frozen=n.keyFrozen=!1,n.sort&&(this.sortViews(),n.sort=!1)))},isAsync:function(){return!!this.options.async},isFrozen:function(){return!!this.options.frozen},isExactSorting:function(){return this.options.sorting===o8.EXACT},onRemove:function(){this.freeze(),this.removeLayers(),this.removeViews()},getComputedSize:function(){var t=this.options,n=t.width,e=t.height;return B2(n)||(n=this.el.clientWidth),B2(e)||(e=this.el.clientHeight),{width:n,height:e}},setDimensions:function(t,n){const{options:e}=this,{width:i,height:o}=e;let r=void 0===t?i:t,a=void 0===n?o:n;if(i===r&&o===a)return;e.width=r,e.height=a,this._setDimensions();const l=this.getComputedSize();this.trigger("resize",l.width,l.height)},_setDimensions:function(){const{options:t}=this;let n=t.width,e=t.height;B2(n)&&(n=Math.round(n)),B2(e)&&(e=Math.round(e)),this.$el.css({width:null===n?"":n,height:null===e?"":e})},setOrigin:function(t,n){return this.translate(t||0,n||0)},fitToContent:function(t,n,e,i){i=qc(t)?t:Ar({gridWidth:t,gridHeight:n,padding:e},i);const{x:o,y:r,width:a,height:l}=this.getFitToContentArea(i),{sx:u,sy:f}=this.scale();return this.setOrigin(-o*u,-r*f),this.setDimensions(a*u,l*f),new Po(o,r,a,l)},getFitToContentArea:function(t={}){const n=t.gridWidth||1,e=t.gridHeight||1,i=Q_(t.padding||0),o=Math.max(t.minWidth||0,n),r=Math.max(t.minHeight||0,e),a=t.maxWidth||Number.MAX_VALUE,l=t.maxHeight||Number.MAX_VALUE,u=t.allowNewOrigin,f="contentArea"in t?new Po(t.contentArea):this.getContentArea(t),{sx:M,sy:T}=this.scale();f.x*=M,f.y*=T,f.width*=M,f.height*=T;let U=Math.ceil((f.width+f.x)/n),ie=Math.ceil((f.height+f.y)/e);t.allowNegativeBottomRight||(U=Math.max(U,1),ie=Math.max(ie,1)),U*=n,ie*=e;let se=0;("negative"===u&&f.x<0||"positive"===u&&f.x>=0||"any"===u)&&(se=Math.ceil(-f.x/n)*n,se+=i.left,U+=se);let Me=0;return("negative"===u&&f.y<0||"positive"===u&&f.y>=0||"any"===u)&&(Me=Math.ceil(-f.y/e)*e,Me+=i.top,ie+=Me),U+=i.right,ie+=i.bottom,U=Math.max(U,o),ie=Math.max(ie,r),U=Math.min(U,a),ie=Math.min(ie,l),new Po(-se/M,-Me/T,U/M,ie/T)},scaleContentToFit:function(t){var n,e;if(t||(t={}),"contentArea"in t){var i=t.contentArea;n=this.localToPaperRect(i),e=new wn(i)}else n=this.getContentBBox(t),e=this.paperToLocalPoint(n);if(n.width&&n.height){ah(t,{padding:0,preserveAspectRatio:!0,scaleGrid:null,minScale:0,maxScale:Number.MAX_VALUE});var f,o=Q_(t.padding),r=t.minScaleX||t.minScale,a=t.maxScaleX||t.maxScale,l=t.minScaleY||t.minScale,u=t.maxScaleY||t.maxScale;if(t.fittingBBox)f=t.fittingBBox;else{var M=this.translate(),T=this.getComputedSize();f={x:M.tx,y:M.ty,width:T.width,height:T.height}}f=new Po(f).moveAndExpand({x:o.left,y:o.top,width:-o.left-o.right,height:-o.top-o.bottom});var U=this.scale(),ie=f.width/n.width*U.sx,se=f.height/n.height*U.sy;if(t.preserveAspectRatio&&(ie=se=Math.min(ie,se)),t.scaleGrid){var Me=t.scaleGrid;ie=Me*Math.floor(ie/Me),se=Me*Math.floor(se/Me)}ie=Math.min(a,Math.max(r,ie)),se=Math.min(u,Math.max(l,se));var we=this.options.origin,He=f.x-e.x*ie-we.x,Be=f.y-e.y*se-we.y;this.scale(ie,se),this.translate(He,Be)}},getContentArea:function(t){return t&&t.useModelGeometry?this.model.getBBox()||new Po:wi(this.cells).getBBox()},getContentBBox:function(t){return this.localToPaperRect(this.getContentArea(t))},getArea:function(){return this.paperToLocalRect(this.getComputedSize())},getRestrictedArea:function(...t){const{restrictTranslate:n}=this.options;let e;return e=Hs(n)?n.apply(this,t):!0===n?this.getArea():n?new Po(n):null,e},createViewForModel:function(t){const{options:n}=this;var e,i,o=n.cellViewNamespace,r=t.get("type")+"View",a=Uv(o,r,".");return t.isLink()?(e=n.linkView,i=Jv):(e=n.elementView,i=fl),new(e.prototype instanceof Nd.View?a||e:e.call(this,t)||a||i)({model:t,interactive:n.interactive,labelsLayer:!0===n.labelsLayer?e0.LABELS:n.labelsLayer})},removeView:function(t){const{id:n}=t,{_views:e,_updates:i}=this,o=e[n];if(o){var{cid:r}=o;const{mounted:a,unmounted:l}=i;o.remove(),delete e[n],delete a[r],delete l[r]}return o},renderView:function(t,n){const{id:e}=t,i=this._views;let o,r,a=!0;return e in i&&(o=i[e],o.model===t?(r=o.FLAG_INSERT,a=!1):this.removeView(t)),a&&(o=i[e]=this.createViewForModel(t),o.paper=this,r=this.registerUnmountedView(o)|o.getFlag(_1(o,"initFlag"))),this.requestViewUpdate(o,r,o.UPDATE_PRIORITY,n),o},onImageDragStart:function(){return!1},resetViews:function(t,n){n||(n={}),t||(t=[]),this._resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(var e=0,i=t.length;ewi("stop").attr({offset:f,"stop-color":M,"stop-opacity":Number.isFinite(T)?T:1})),u=wi(i,a,l);return u.id=o,u.appendTo(e),o},definePattern:function(t){if(!qc(t))throw new TypeError("dia.Paper: definePattern() requires 1. argument to be an object.");const{svg:n,defs:e}=this,{id:i=n.id+pP(JSON.stringify(t)),markup:o,attrs:r={}}=t;if(!o)throw new TypeError("dia.Paper: definePattern() requires markup.");if(this.isDefined(i))return i;const a=wi("pattern",{patternUnits:"userSpaceOnUse"});if(a.id=i,a.attr(r),"string"==typeof o)a.append(wi(o));else{const{fragment:l}=hP(o);a.append(l)}return a.appendTo(e),i},defineMarker:function(t){if(!qc(t))throw new TypeError("dia.Paper: defineMarker() requires 1. argument to be an object.");const{svg:n,defs:e}=this,{id:i=n.id+pP(JSON.stringify(t)),markup:o,attrs:r={},markerUnits:a="userSpaceOnUse"}=t;if(this.isDefined(i))return i;const l=wi("marker",{orient:"auto",overflow:"visible",markerUnits:a});if(l.id=i,l.attr(r),o)if("string"==typeof o)l.append(wi(o));else{const{fragment:u}=hP(o);l.append(u)}else{const{type:u="path"}=t,f=wi(u,P4(t,"type","id","markup","attrs","markerUnits"));l.append(f)}return l.appendTo(e),i}},{sorting:o8,Layers:e0,backgroundPatterns:{flipXy:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=2*e,n.height=2*i;var o=n.getContext("2d");return o.drawImage(t,0,0,e,i),o.setTransform(-1,0,0,-1,n.width,n.height),o.drawImage(t,0,0,e,i),o.setTransform(-1,0,0,1,n.width,0),o.drawImage(t,0,0,e,i),o.setTransform(1,0,0,-1,0,n.height),o.drawImage(t,0,0,e,i),n},flipX:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=2*e,n.height=i;var o=n.getContext("2d");return o.drawImage(t,0,0,e,i),o.translate(2*e,0),o.scale(-1,1),o.drawImage(t,0,0,e,i),n},flipY:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=e,n.height=2*i;var o=n.getContext("2d");return o.drawImage(t,0,0,e,i),o.translate(0,2*i),o.scale(1,-1),o.drawImage(t,0,0,e,i),n},watermark:function(t,n){n=n||{};var e=t.width,i=t.height,o=document.createElement("canvas");o.width=3*e,o.height=3*i;for(var r=o.getContext("2d"),a=B2(n.watermarkAngle)?-n.watermarkAngle:-20,l=H2(a),u=o.width/4,f=o.height/4,M=0;M<4;M++)for(var T=0;T<4;T++)(M+T)%2>0&&(r.setTransform(1,0,0,1,(2*M-1)*u,(2*T-1)*f),r.rotate(l),r.drawImage(t,-e/2,-i/2,e,i));return o}},gridPatterns:{dot:[{color:"#AAAAAA",thickness:1,markup:"rect",update:function(t,n){wi(t).attr({width:n.thickness*n.sx,height:n.thickness*n.sy,fill:n.color})}}],fixedDot:[{color:"#AAAAAA",thickness:1,markup:"rect",update:function(t,n){var e=n.sx<=1?n.thickness*n.sx:n.thickness;wi(t).attr({width:e,height:e,fill:n.color})}}],mesh:[{color:"#AAAAAA",thickness:1,markup:"path",update:function(t,n){var e,i=n.width,o=n.height,r=n.thickness;e=i-r>=0&&o-r>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",wi(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}}],doubleMesh:[{color:"#AAAAAA",thickness:1,markup:"path",update:function(t,n){var e,i=n.width,o=n.height,r=n.thickness;e=i-r>=0&&o-r>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",wi(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}},{color:"#000000",thickness:3,scaleFactor:4,markup:"path",update:function(t,n){var e,i=n.width,o=n.height,r=n.thickness;e=i-r>=0&&o-r>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",wi(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}}]}}),r8={exportElement:function(t){return t.size()},exportLink:function(t){var n=t.get("labelSize")||{};return{minLen:t.get("minLen")||1,weight:t.get("weight")||1,labelpos:t.get("labelPosition")||"c",labeloffset:t.get("labelOffset")||0,width:n.width||0,height:n.height||0}},importElement:function(t,n,e){var i=this.getCell(n),o=e.node(n);t.setPosition?t.setPosition(i,o):i.set("position",{x:o.x-o.width/2,y:o.y-o.height/2})},importLink:function(t,n,e){const o=this.getCell(n.name),r=e.edge(n),a=r.points||[],l=new cc(a);if(t.setVertices||t.setLinkVertices)if(Hs(t.setVertices))t.setVertices(o,a);else{l.simplify({threshold:.001});const u=l.points.map(M=>M.toJSON());o.set("vertices",u.slice(1,u.length-1))}if(t.setLabels&&"x"in r&&"y"in r){const u={x:r.x,y:r.y};if(Hs(t.setLabels))t.setLabels(o,u,a);else{const f=l.closestPointLength(u),M=l.pointAtLength(f),T=f/l.length(),U=new wn(u).difference(M).toJSON();o.label(0,{position:{distance:T,offset:U}})}}},layout:function(t,n){var e;e=t instanceof Jh?t:(new Jh).resetCells(t,{dry:!0,sort:!1}),t=null;const i=(n=ah(n||{},{resizeClusters:!0,clusterPadding:10,exportElement:this.exportElement,exportLink:this.exportLink})).dagre||("undefined"!=typeof dagre?dagre:void 0);if(void 0===i)throw new Error('The the "dagre" utility is a mandatory dependency.');var o=r8.toGraphLib(e,{graphlib:n.graphlib,directed:!0,multigraph:!0,compound:!0,setNodeLabel:n.exportElement,setEdgeLabel:n.exportLink,setEdgeName:function(M){return M.id}}),r={},a=n.marginX||0,l=n.marginY||0;if(n.rankDir&&(r.rankdir=n.rankDir),n.align&&(r.align=n.align),n.nodeSep&&(r.nodesep=n.nodeSep),n.edgeSep&&(r.edgesep=n.edgeSep),n.rankSep&&(r.ranksep=n.rankSep),n.ranker&&(r.ranker=n.ranker),a&&(r.marginx=a),l&&(r.marginy=l),o.setGraph(r),i.layout(o,{debugTiming:!!n.debugTiming}),e.startBatch("layout"),r8.fromGraphLib(o,{importNode:this.importElement.bind(e,n),importEdge:this.importLink.bind(e,n)}),n.resizeClusters){var u=o.nodes().filter(function(M){return o.children(M).length>0}).map(e.getCell.bind(e)).sort(function(M,T){return T.getAncestors().length-M.getAncestors().length});Kh(u,"fitEmbeds",{padding:n.clusterPadding})}e.stopBatch("layout");var f=o.graph();return new Po(a,l,Math.abs(f.width-2*a),Math.abs(f.height-2*l))},fromGraphLib:function(t,n){var e=(n=n||{}).importNode||K_,i=n.importEdge||K_,o=this instanceof Jh?this:new Jh;return t.nodes().forEach(function(r){e.call(o,r,t,o,n)}),t.edges().forEach(function(r){i.call(o,r,t,o,n)}),o},toGraphLib:function(t,n){const e=(n=n||{}).graphlib||("undefined"!=typeof graphlib?graphlib:void 0);if(void 0===e)throw new Error('The the "graphlib" utility is a mandatory dependency.');for(var i=nae(n,"directed","compound","multigraph"),o=new e.Graph(i),r=n.setNodeLabel||K_,a=n.setEdgeLabel||K_,l=n.setEdgeName||K_,u=t.get("cells"),f=0,M=u.length;f{"noctua.NodeLink"!==r.get("type")&&r.setColor("grey",200,300)}),(0,Zt.each)(o,r=>{"noctua.NodeLink"!==r.get("type")&&r.setColor("amber",200,300)}),(0,Zt.each)(i,r=>{"noctua.NodeLink"!==r.get("type")&&r.setColor("yellow",50,100)}),n.setColor("yellow",100,200)}selectNode(n){this.unselectAll(),n.setBorder("orange",500)}updateLocation(){const n=this;(0,Zt.each)(n.canvasGraph.getElements(),e=>{if("noctua.NodeLink"!==e.get("type")){const i=e.prop("activity");if(i){const o=e.position();i.position.x=o.x,i.position.y=o.y}}}),n.onUpdateCamLocations(n.cam)}unhighlightAllNodes(){(0,Zt.each)(this.canvasGraph.getCells(),e=>{if("noctua.NodeLink"!==e.get("type")){const i=e.prop("activity");e.setColor(i.backgroundColor)}})}unselectAll(){(0,Zt.each)(this.canvasGraph.getCells(),e=>{"noctua.NodeLink"!==e.get("type")&&e.unsetBorder()})}createLinkFromElements(n,e){const o=n.get("activity"),r=e.get("activity");this.createLink(o,new h3(Pi.createEntity(Ht.edge.causallyUpstreamOf)),r)}createLink(n,e,i){const r=new D2(n,i,e);this.createLinkFromTriple(r,!0)}createLinkFromTriple(n,e){const i=this,o=n8.create();o.setText(n.predicate.edge.label),o.set({activity:n.predicate,id:n.predicate.edge.id,source:{id:n.subject.id,port:"right"},target:{id:n.object.id,port:"left"}}),o.addTo(i.canvasGraph),e&&i.autoLayoutGraph(i.canvasGraph)}paperScale(n,e){const i=this.canvasPaper.$el,o=this.canvasPaper.scale().sx+n;if(o>.1&&n<10){const r=e.offsetX||e.clientX-i.offset().left,a=e.offsetY||e.clientY-i.offset().top,l=this._offsetToLocalPoint(r,a);this.canvasPaper.translate(0,0),this.canvasPaper.scale(o,o,l.x,l.y)}}zoom(n,e){e?this.paperScale(n,e):(this.canvasPaper.translate(0,0),this.canvasPaper.scale(this.canvasPaper.scale().sx+n,this.canvasPaper.scale().sx+n))}resetZoom(){this.canvasPaper.scale(1,1)}toggleActivityVisibility(n,e){const i=this,o=i.canvasGraph.getSuccessors(n).concat(n);i.canvasGraph.getSubgraph(o).forEach(e.expanded?a=>{a.attr("./visibility","hidden")}:a=>{a.attr("./visibility","visible")}),n.attr("./visibility","visible"),e.expanded=!e.expanded,i.autoLayoutGraph(i.canvasGraph),i.canvasPaper.translate(0,0)}_addGPEntity(n,e){var i,o,r,a;const l=this;(null===(i=n.node)||void 0===i?void 0:i.displaySection.id)===Ht.displaySection.gp.id&&((null===(o=n.node)||void 0===o?void 0:o.term)&&(null===(r=n.node.predicate.edge)||void 0===r?void 0:r.id)!==Ht.edge.enabledBy.id&&e.addEntity(zh.pad("\u2014",n.node.treeLevel-2)+(null===(a=n.node.predicate.edge)||void 0===a?void 0:a.label),n.node.term.label,n.node.predicate.hasEvidence()),n.children.forEach(u=>{l._addGPEntity(u,e)}))}_addFDEntity(n,e){var i,o,r;const a=this;(null===(i=n.node)||void 0===i?void 0:i.displaySection.id)===Ht.displaySection.fd.id&&((null===(o=n.node)||void 0===o?void 0:o.term)&&e.addEntity(zh.pad("\u2014",n.node.treeLevel-2)+(null===(r=n.node.predicate.edge)||void 0===r?void 0:r.label),n.node.term.label,n.node.predicate.hasEvidence()),n.children.forEach(l=>{a._addFDEntity(l,e)}))}createNode(n,e){var i,o;const r=new pF;if(r.addIcon(`./assets/images/activity/coverage-${n.summary.coverage}.png`),e===Ht.graphLayoutDetail.options.detailed.id)n.activityType===so.proteinComplex&&n.buildGPTrees().forEach(u=>this._addGPEntity(u,r)),n.buildTrees().forEach(l=>this._addFDEntity(l,r));else if(e===Ht.graphLayoutDetail.options.simple.id&&n.mfNode){const a=n.getEdges(n.mfNode.id);r.addEntity("",null===(i=n.mfNode)||void 0===i?void 0:i.term.label,n.mfNode.predicate.hasEvidence()),a.forEach(l=>{var u,f;const M=(0,Zt.find)(Ht.defaultGraphDisplayEdges,T=>{var U;return T.id===(null===(U=l.predicate.edge)||void 0===U?void 0:U.id)});(null===(u=l.object)||void 0===u?void 0:u.term.hasValue())&&M&&r.addEntity(l.object.predicate.edge.label,null===(f=l.object)||void 0===f?void 0:f.term.label,l.object.predicate.hasEvidence())})}return n.gpNode?r.addHeader(null===(o=n.gpNode)||void 0===o?void 0:o.term.label):r.prop("GP info unavailable"),r.setColor(n.backgroundColor),r.attr({expand:{event:"element:expand:pointerdown",stroke:"black",strokeWidth:2}}),r.set({activity:n,id:n.id,position:n.position}),r}createMolecule(n){const e=new kae;n.size.width=120,n.size.height=120,e.setColor(n.backgroundColor);const i=n.getActivityTypeDetail(),o=n.rootNode;if(e.prop({name:[i?i.label:"Activity Unity"]}),o){let r=o.term.label;n.ccNode&&(r+=`\nlocated in: ${n.ccNode.term.label}`),e.setText(r)}return e.attr({expand:{event:"element:expand:pointerdown",stroke:"black",strokeWidth:2}}),e.set({activity:n,id:n.id,position:n.position,size:n.size}),e}addCanvasGraph(n,e){const i=this,o=[];i.cam=n,i.canvasGraph.resetCells(o),(0,Zt.each)(n.activities,r=>{if(r.visible){let a;a=r.activityType===so.molecule?i.createMolecule(r):i.createNode(r,e),o.push(a)}}),(0,Zt.each)(n.causalRelations,r=>{if(r.predicate.visible&&r.isTripleComplete()){const a=function T2t(t){switch(t){case Ht.edge.directlyRegulates.id:case Ht.edge.causallyUpstreamOfOrWithin.id:case Ht.edge.causallyUpstreamOf.id:return"grey";case Ht.edge.positivelyRegulates.id:case Ht.edge.directlyPositivelyRegulates.id:case Ht.edge.causallyUpstreamOfPositiveEffect.id:case Ht.edge.isSmallMoleculeActivator.id:return"green";case Ht.edge.negativelyRegulates.id:case Ht.edge.directlyNegativelyRegulates.id:case Ht.edge.causallyUpstreamOfNegativeEffect.id:case Ht.edge.isSmallMoleculeInhibitor.id:return"red";default:return"black"}}(r.predicate.edge.id),l=n8.create();r.predicate.isReverseLink?this.reverseLink(r,l):(l.setText(r.predicate.edge.label),l.set({activity:r.predicate,source:{id:r.subject.id},target:{id:r.object.id}})),l.setColor(a),o.push(l)}}),i.canvasPaper.setDimensions("30000px","30000px"),i.canvasPaper.scaleContentToFit({minScaleX:.3,minScaleY:.3,maxScaleX:1,maxScaleY:1}),i.canvasGraph.resetCells(o),n.manualLayout||i.autoLayoutGraph(i.canvasGraph),i.canvasPaper.unfreeze(),i.canvasPaper.render()}reverseLink(n,e){e.setText(n.predicate.reverseLinkTitle),e.set({activity:n.predicate,source:{id:n.object.id},target:{id:n.subject.id}})}addStencilGraph(n,e){const o=[];(0,Zt.each)(e,r=>{const a=new hF;a.attr("label/text",r.title),a.set({activity:(0,Zt.cloneDeep)(r)}),o.push(a)}),n.resetCells(o),this._layout(n)}_layout(n){let e=10;n.getElements().forEach(i=>{i.position(10,e),e+=i.size().height+10})}autoLayoutGraph(n){const e=[];n.getElements().forEach(o=>{"hidden"!==o.attr("./visibility")&&e.push(o)}),r8.layout(n.getSubgraph(e),{align:"UL",setLabels:!0,marginX:50,marginY:50,rankSep:200,rankDir:"TB"}),[].forEach(function(o){const r=n.getNeighbors(o,{inbound:!0})[0];if(!r)return;const a=r.getBBox().bottomRight();o.position(a.x+20,a.y-o.size().height/2-20)})}_offsetToLocalPoint(n,e){return P2t.createSVGPoint(n,e).matrixTransform(this.canvasPaper.viewport.getCTM().inverse())}}class A2t{constructor(n,e){this.stencils=[];const i=this;i.camCanvas=n,i.stencils=e,i._initializeStencils(e)}_initializeStencils(n){const e=this;e.stencils=[],(0,Zt.each)(n,i=>{const o=new Jh,r=e.generateStencilPaper(i,o);e.addStencilGraph(o,i.nodes),r.on("cell:pointerdown",e.onMouseDown(i.id,e.camCanvas.canvasPaper)),e.stencils.push({id:i.id,paper:r,graph:o})})}addStencilGraph(n,e){const o=[];(0,Zt.each)(e,r=>{const a=new hF;a.setIcon(r.iconUrl),a.attr("label/text",r.label),a.set({node:(0,Zt.cloneDeep)(r)}),o.push(a)}),n.resetCells(o),this._layout(n)}generateStencilPaper(n,e){return new TP({el:document.getElementById(n.id),height:120*n.nodes.length,width:"100%",model:e,interactive:!1})}onMouseDown(n,e){const i=this;return function(o,r,a,l){$("#noc-canvas").append('
    ');const u=new Jh,M=(new TP({el:document.getElementById("noc-flypaper"),model:u,interactive:!1}),o.model.clone()),T=o.model.position(),U_x=a-T.x,U_y=l-T.y;i.selectedStencilElement=o.model,M.position(0,0),u.addCell(M),$("#noc-flypaper").offset({left:r.pageX-U_x,top:r.pageY-U_y}),$("#noc-canvas").on("mousemove.fly",function(ie){$("#noc-flypaper").offset({left:ie.pageX-U_x,top:ie.pageY-U_y})}),$("#noc-canvas").on("mouseup.fly",function(ie){const se=ie.pageX,Me=ie.pageY,we=e.$el.offset();se>we.left&&sewe.top&&Me{i.position(10,e),e+=i.size().height+10})}_layoutGraph(n){const e=[];n.getElements().forEach(o=>{"hidden"!==o.attr("./visibility")&&e.push(o)}),r8.layout(n.getSubgraph(e),{align:"UR",setVertices:!0,setLabels:!0,marginX:0,marginY:0,rankSep:0,rankDir:"LR"})}}let use=(()=>{class t{constructor(e){this.noctuaFormConfigService=e,this.selectedGraphLayoutDetail=this.noctuaFormConfigService.graphLayoutDetail.selected,this.onGraphLayoutDetailChanged=new Io(null)}}return t.\u0275fac=function(e){return new(e||t)(qt(Co))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),L2t=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this._camService=e,this.noctuaGraphEditorService=i,this._bbopGraphService=o,this._noctuaFormDialogService=r,this._noctuaUserService=a,this.confirmDialogService=l,this._activityFormService=u,this._activityConnectorService=f,this.noctuaCommonMenuService=M,this.noctuaShapesService=T,this.stencils=[],this.placeholderElement=new pF}initializeGraph(){const e=this;e.camCanvas=new E2t,e.camCanvas.elementOnClick=e.openTable.bind(e),e.camCanvas.editOnClick=e.openTable.bind(e),e.camCanvas.deleteOnClick=e.deleteActivity.bind(e),e.camCanvas.linkOnClick=e.openConnector.bind(e),e.camCanvas.onLinkCreated=e.createActivityConnector.bind(e),e.camCanvas.onUpdateCamLocations=e.updateCamLocations.bind(e)}initializeStencils(){const e=this;e.camStencil=new A2t(e.camCanvas,Nae.camStencil),e.camStencil.onAddElement=e.createActivity.bind(e)}addToCanvas(e,i){this.cam=e,this.camCanvas.addCanvasGraph(e,i)}zoom(e,i){this.camCanvas.zoom(e,i)}reset(){this.camCanvas.resetZoom()}updateCamLocations(e){this._bbopGraphService.setActivityLocations(e)}createActivity(e,i,o){const r=this,a=e.get("node");r.placeholderElement.position(i,o),r._activityFormService.setActivityType(a.type),r._activityFormService.activity.validateEvidence=!1,r._noctuaFormDialogService.openCreateActivityDialog(f_.ACTIVITY)}createActivityConnector(e,i,o){this._activityConnectorService.initializeForm(e,i),this._noctuaFormDialogService.openCreateActivityDialog(f_.ACTIVITY_CONNECTOR)}addActivity(e,i){const o=this,r=o.placeholderElement.prop("position");e.position.x=r.x,e.position.y=r.y;const a=o.camCanvas.createNode(e,i);o.camCanvas.canvasGraph.addCell(a),this._bbopGraphService.addActivityLocation(o.cam,e)}deleteActivity(e){const i=this,o=e.get("activity");i._noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this._camService.deleteActivity(o).then(()=>{this._camService.onSelectedActivityChanged.next(null),this.noctuaCommonMenuService.closeRightDrawer(),this._camService.getCam(this.cam.id),i._noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}openTable(e){const i=e.prop("activity");this.selectedElement=e,this._camService.onSelectedActivityChanged.next(i),this.noctuaCommonMenuService.selectRightPanel(m3.activityTable),this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.openRightDrawer(),i.expanded=!0,this._camService.currentMatch.activityDisplayId=i.displayId,this.noctuaCommonMenuService.scrollTo(`#${i.displayId}`)}openConnector(e){const i=this;i.selectedElement=e;const o=e.get("source"),r=e.get("target");!o||!r||(i._activityConnectorService.initializeForm(o.id,r.id),i.noctuaCommonMenuService.selectRightPanel(m3.activityConnectorTable),i.noctuaCommonMenuService.closeLeftDrawer(),i.noctuaCommonMenuService.openRightDrawer())}autoLayoutGraph(){this.camCanvas.autoLayoutGraph(this.camCanvas.canvasGraph)}save(){const i=this.camCanvas.canvasGraph.getCells(),o=[],r=[];(0,Zt.each)(i,l=>{if("noctua.NodeLink"===l.get("type")){const f=l.get("source"),M=l.get("target");r.push({subject:{uuid:f.id},predicate:{id:l.get("id")},object:{uuid:M.id}})}else o.push({uuid:l.get("id"),id:l.get("id"),position:l.get("position"),size:l.get("size")})})}}return t.\u0275fac=function(e){return new(e||t)(qt(Zr),qt(use),qt(Yc),qt(jc),qt(yr),qt(dd),qt(Ts),qt(IO),qt(ul),qt(Iae))},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const D2t=["stencils"];function k2t(t,n){if(1&t&&(H(0,"div",null,24),Qe(2,"div",25),G()),2&t){const e=n.$implicit;W(2),Un("id",e.id)}}const I2t=function(){return["fas","caret-down"]};function N2t(t,n){1&t&&Qe(0,"fa-icon",26),2&t&&J("icon",_i(1,I2t))}function R2t(t,n){if(1&t){const e=Ln();H(0,"button",27),et("click",function(){const r=Dt(e).$implicit;return Ae().selectLayoutDetail(r)}),de(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}const z2t=function(){return["fas","search-minus"]},F2t=function(){return["fas","search-plus"]};let H2t=(()=>{class t{constructor(e,i,o,r,a,l,u){this.noctuaDataService=e,this.noctuaFormConfigService=i,this.noctuaGraphEditorService=o,this._bbopGraphService=r,this.noctuaCommonMenuService=a,this.noctuaCamGraphService=l,this.noctuaCamShapesService=u,this.stencils=[],this._unsubscribeAll=new N,this.stencils=Nae.camStencil,this.noctuaGraphEditorService.onGraphLayoutDetailChanged.pipe(Yn(this._unsubscribeAll)).subscribe(f=>{!f||this.noctuaCamGraphService.addToCanvas(this.cam,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id)})}ngAfterViewInit(){const e=this;e.noctuaCamGraphService.initializeGraph(),e.noctuaCamGraphService.initializeStencils(),e._bbopGraphService.onCamGraphChanged.pipe(Yn(e._unsubscribeAll)).subscribe(i=>{!i||i.id!==e.cam.id||(e.cam=i,e.noctuaCamGraphService.cam=e.cam,i.operation!==f3.ADD_ACTIVITY&&e.noctuaCamGraphService.addToCanvas(e.cam,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id))})}ngOnInit(){const e=this;e._bbopGraphService.onActivityAdded.pipe(Yn(e._unsubscribeAll)).subscribe(i=>{!i||e.noctuaCamGraphService.addActivity(i,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectLayoutDetail(e){this.noctuaGraphEditorService.selectedGraphLayoutDetail=e,this.noctuaGraphEditorService.onGraphLayoutDetailChanged.next(e)}canMove(e){return-1===e.indexOf("Disabled")}automaticLayout(){this.noctuaCamGraphService.autoLayoutGraph()}zoomIn(){this.noctuaCamGraphService.zoom(.1)}zoomOut(){this.noctuaCamGraphService.zoom(-.1)}onCtrlScroll(e){const o=Math.max(-1,Math.min(1,e.wheelDelta||e.detail))/10;e.ctrlKey&&(this.noctuaCamGraphService.zoom(o,e),e.returnValue=!1,e.preventDefault&&e.preventDefault())}}return t.\u0275fac=function(e){return new(e||t)(ue(pm),ue(Co),ue(use),ue(Yc),ue(ul),ue(L2t),ue(Iae))},t.\u0275cmp=vn({type:t,selectors:[["noc-cam-graph"]],viewQuery:function(e,i){if(1&e&&_o(D2t,5),2&e){let o;fi(o=gi())&&(i.stencilContainers=o)}},inputs:{cam:"cam"},decls:33,vars:11,consts:[["id","noc-canvas",1,""],["id","noc-palette",1,""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],[4,"ngFor","ngForOf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start ",1,"noc-middle-panel"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-workflow-toolbar","w-100-p"],["mat-stroked-button","","color","primary","matTooltip","Automatic Tree Layout",1,"noc-rounded-button","noc-xs","mr-8",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-title","mr-4"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-half-button","noc-xs",3,"matMenuTriggerFor"],[3,"icon",4,"ngIf"],[1,"noc-dropdown-menu"],["graphLayoutDetailMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],[1,"noc-button-row","ml-12"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-r",3,"click"],[1,"",3,"icon"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-m",3,"click"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-l",3,"click"],[1,"noc-paper-container",3,"wheel"],["id","noc-paper",1,""],["paper",""],["stencils",""],[1,""],[3,"icon"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),de(5," TOOLBOX "),G()(),H(6,"div",5),ke(7,k2t,3,1,"div",6),G()()(),H(8,"div",7)(9,"div",8)(10,"button",9),et("click",function(){return i.automaticLayout()}),de(11," Automatic Layout "),G(),H(12,"span",10),de(13," Layout Detail: "),G(),H(14,"button",11),de(15),ke(16,N2t,1,2,"fa-icon",12),G(),H(17,"mat-menu",13,14),ke(19,R2t,2,1,"button",15),G(),H(20,"div",16)(21,"span",10),de(22," Zoom : "),G(),H(23,"button",17),et("click",function(){return i.zoomOut()}),Qe(24,"fa-icon",18),G(),H(25,"button",19),et("click",function(){return i.zoomIn()}),Qe(26,"fa-icon",18),G(),H(27,"button",20),et("click",function(){return i.noctuaCamGraphService.reset()}),H(28,"mat-icon"),de(29,"youtube_searched_for"),G()()()(),H(30,"div",21),et("wheel",function(r){return i.onCtrlScroll(r)}),Qe(31,"div",22,23),G()()()),2&e){const o=Di(18);W(7),J("ngForOf",i.stencils),W(3),J("matTooltipPosition","after")("matTooltipShowDelay",1500),W(4),J("matMenuTriggerFor",o),W(1),Nt(" ",i.noctuaGraphEditorService.selectedGraphLayoutDetail.label," "),W(1),J("ngIf",i.cam.expanded),W(3),J("ngForOf",i.noctuaFormConfigService.graphLayoutDetail.options),W(5),J("icon",_i(9,z2t)),W(2),J("icon",_i(10,F2t))}},directives:[Oo,So,ts,$o,ko,Fo,Tl,il,Yi,ps,Ql,nl,Ir],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] #noc-canvas[_ngcontent-%COMP%]{position:absolute;inset:0}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%]{background-color:#fff;padding:2px 12px;height:35px;min-height:35px;max-height:35px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:12px;font-weight:700}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0;color:#5872a7;font-size:14px;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{font-size:16px;color:#3b5998}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}[_nghost-%COMP%] .noc-paper-container[_ngcontent-%COMP%]{height:calc(100% - 35px);overflow:auto;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%]{background-color:#fff;border-right:solid 1px #002255;width:100px;min-width:100px;max-width:100px;height:100%;min-height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{height:35px;min-height:35px;max-height:35px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding-left:8px;display:flex;align-items:center;height:35px;color:#025;border-bottom:solid 1px #324c74;font-size:12px;font-weight:700;text-transform:uppercase}[_nghost-%COMP%] #noc-flypaper[_ngcontent-%COMP%]{height:400px;width:400px}']}),t})();function V2t(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.evidence)("evidenceIndex",e)}}const hse=function(t){return{"noc-highlight-modified":t}},EF=function(){return["far","trash-alt"]};function B2t(t,n){if(1&t){const e=Ln();H(0,"div",9)(1,"div",10),de(2," Evidence "),G(),H(3,"span",11),de(4),Qe(5,"br"),H(6,"a",12),et("click",function(o){return o.stopPropagation()}),de(7),G()(),H(8,"button",13),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae(2).removeEvidence(o)}),Qe(9,"fa-icon",14),G(),ke(10,V2t,1,5,"noctua-inline-editor",15),G()}if(2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(6,hse,null==e.evidence?null:e.evidence.modified)),W(4),qo(null==e.evidence?null:e.evidence.label),W(2),Ro("href",null==e.evidence?null:e.evidence.url,ao),W(1),Nt(" ",null==e.evidence?null:e.evidence.id," "),W(2),J("icon",_i(8,EF)),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableEvidence)}}function G2t(t,n){if(1&t&&(H(0,"span",11),de(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.reference)}}function Y2t(t,n){if(1&t&&(H(0,"span",11)(1,"a",12),et("click",function(i){return i.stopPropagation()}),de(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.referenceEntity?null:e.referenceEntity.url,ao),W(1),Nt(" ",e.reference," ")}}function U2t(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.reference)("evidenceIndex",e)}}const j2t=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function W2t(t,n){if(1&t){const e=Ln();H(0,"div",17)(1,"div",10),de(2," Reference "),G(),H(3,"button",13),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae(2).removeReference(o)}),Qe(4,"fa-icon",14),G(),ke(5,G2t,2,1,"span",18),ke(6,Y2t,3,2,"span",18),ke(7,U2t,1,5,"noctua-inline-editor",15),G()}if(2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",M2(5,j2t,null==e.referenceEntity?null:e.referenceEntity.highlight,null==e.referenceEntity?null:e.referenceEntity.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==e.referenceEntity?null:e.referenceEntity.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),W(4),J("icon",_i(9,EF)),W(1),J("ngIf",!(null!=e.referenceEntity&&e.referenceEntity.url)),W(1),J("ngIf",null==e.referenceEntity?null:e.referenceEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableReference)}}function q2t(t,n){if(1&t&&(H(0,"span",11),de(1),G()),2&t){const e=Ae(2).$implicit;W(1),qo(e.with)}}function $2t(t,n){if(1&t&&(H(0,"span",11)(1,"a",12),et("click",function(i){return i.stopPropagation()}),de(2),G()()),2&t){const e=Ae(2).$implicit;W(1),Ro("href",null==e.withEntity?null:e.withEntity.url,ao),W(1),Nt(" ",e.with," ")}}function X2t(t,n){if(1&t&&Qe(0,"noctua-inline-editor",16),2&t){const e=Ae(2).index,i=Ae(2);J("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.with)("evidenceIndex",e)}}function Q2t(t,n){if(1&t){const e=Ln();H(0,"div",19)(1,"div",10),de(2," With "),G(),H(3,"button",13),et("click",function(){Dt(e);const o=Ae().$implicit;return Ae(2).removeWith(o)}),Qe(4,"fa-icon",14),G(),ke(5,q2t,2,1,"span",18),ke(6,$2t,3,2,"span",18),ke(7,X2t,1,5,"noctua-inline-editor",15),G()}if(2&t){const e=Ae().$implicit,i=Ae(2);J("ngClass",wo(5,hse,null==e.withEntity?null:e.withEntity.modified)),W(4),J("icon",_i(7,EF)),W(1),J("ngIf",!(null!=e.withEntity&&e.withEntity.url)),W(1),J("ngIf",null==e.withEntity?null:e.withEntity.url),W(1),J("ngIf",i.noctuaUserService.user&&i.options.editableWith)}}function Z2t(t,n){if(1&t){const e=Ln();H(0,"div",20)(1,"button",21),et("click",function(o){return Dt(e),Ae(3).updateCurrentMenuEvent(o)}),H(2,"mat-icon"),de(3,"more_vert"),G()(),H(4,"mat-menu",null,22)(6,"button",23),et("click",function(){Dt(e);const o=Ae(3);return o.addEvidence(o.entity)}),de(7," Add Evidence "),G(),H(8,"button",24),et("click",function(){Dt(e);const o=Ae().index,r=Ae(2);return r.removeEvidence(r.entity,o)}),de(9," Remove Evidence "),G()()()}if(2&t){const e=Di(5);W(1),J("matMenuTriggerFor",e)}}function K2t(t,n){if(1&t&&(H(0,"div",4),ke(1,B2t,11,9,"div",5),ke(2,W2t,8,10,"div",6),ke(3,Q2t,8,8,"div",7),ke(4,Z2t,10,1,"div",8),G()),2&t){const e=Ae(2);W(1),J("ngIf",e.settings.showEvidenceCode),W(1),J("ngIf",e.settings.showReference),W(1),J("ngIf",e.settings.showWith),W(1),J("ngIf",e.noctuaUserService.user&&e.options.showEvidenceMenu)}}function J2t(t,n){if(1&t&&(H(0,"div",2),ke(1,K2t,5,4,"div",3),G()),2&t){const e=Ae();W(1),J("ngForOf",null==e.entity.predicate?null:e.entity.predicate.evidence)}}function eut(t,n){if(1&t){const e=Ln();H(0,"button",27),et("click",function(){return Dt(e),Ae(2).createEvidence()}),de(1," + "),G()}}function tut(t,n){if(1&t&&(H(0,"div",25),de(1," no evidence present. "),ke(2,eut,2,0,"button",26),G()),2&t){const e=Ae();W(2),J("ngIf",e.options.showAddEvidenceButton)}}let pse=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.camService=e,this.noctuaUserService=i,this.confirmDialogService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.inlineEditorService=u,this.noctuaActivityEntityService=f,this.EditorCategory=ga,this.settings=new hm,this.options={},this.currentMenuEvent={},this.unsubscribeAll=new N}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}createEvidence(){const e=this;this.noctuaFormDialogService.openAddEvidenceDialog(o=>{o&&(this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,this.entity),e.noctuaActivityEntityService.createEvidence(o).then(()=>{e.noctuaFormDialogService.openInfoToast("Evidence successfully added.","OK"),e.noctuaActivityFormService.initializeForm()}))})}removeEvidence(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete ${e.evidence.label} \n \n ${e.reference} \n \n ${e.with}`,()=>{i.noctuaActivityEntityService.deleteEvidence(e.uuid).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.evidence.label} successfully deleted.`,"OK")})})}removeReference(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete Reference: ${e.reference}`,()=>{i.noctuaActivityEntityService.deleteEvidenceReference(e.uuid,e.reference).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.reference} successfully deleted.`,"OK")})})}removeWith(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete With/From: ${e.with}`,()=>{i.noctuaActivityEntityService.deleteEvidenceWith(e.uuid,e.with).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.with} successfully deleted.`,"OK")})})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(yr),ue(dd),ue(jc),ue(Co),ue(Ts),ue(I3),ue(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noc-evidence-form-table"]],inputs:{settings:"settings",options:"options",cam:"cam",activity:"activity",entity:"entity"},decls:2,vars:2,consts:[["class","noc-evidence-table w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-no-info","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-table","w-100-p"],["class","h-100-p mb-8","fxLayout","row","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start stretch",1,"h-100-p","mb-8"],["class","noc-evidence-code-cell noc-box-cell","fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-reference-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-with-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-code-cell","noc-box-cell",3,"ngClass"],[1,"noc-cell-floating-title"],[1,""],["target","_blank",3,"href","click"],["mat-icon-button","","aria-label","Delete Evidence",1,"noc-delete-button",3,"click"],[3,"icon"],["class","noc-edit-button",3,"cam","activity","entity","category","evidenceIndex",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category","evidenceIndex"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-reference-cell","noc-box-cell",3,"ngClass"],["class","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-with-cell","noc-box-cell",3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-no-info"],["mat-button","","class","",3,"click",4,"ngIf"],["mat-button","",1,"",3,"click"]],template:function(e,i){1&e&&(ke(0,J2t,2,1,"div",0),ke(1,tut,3,1,"div",1)),2&e&&(J("ngIf",(null==i.entity.predicate?null:i.entity.predicate.evidence.length)>0),W(1),J("ngIf",0===i.entity.predicate.evidence.length))},directives:[Yi,Oo,So,$o,ko,ds,ac,Fo,ps,km,il,Ir,Ql,nl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-qualifier[_ngcontent-%COMP%]{padding:5px;width:100%;font-size:12px;text-align:center;border-bottom:1px solid rgba(46,111,154,.3)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;margin:0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{padding:20px 10px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px!important;color:#000;border:#aaa solid 1px;margin-left:4px;border-radius:8px;position:relative;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{height:100%;width:400px;position:relative;padding:3px 8px;font-size:10px;font-style:italic;color:#aaa}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{position:relative}'],data:{animation:sc}}),t})();const nut=function(){return["far","trash-alt"]};function iut(t,n){if(1&t){const e=Ln();H(0,"button",11),et("click",function(){Dt(e);const o=Ae();return o.deleteEntity(o.entity)}),Qe(1,"fa-icon",12),G()}2&t&&(W(1),J("icon",_i(1,nut)))}function rut(t,n){if(1&t&&Qe(0,"noctua-inline-editor",14),2&t){const e=Ae(2);J("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.term)}}function aut(t,n){if(1&t&&(er(0),ke(1,rut,1,4,"noctua-inline-editor",13),tr()),2&t){const e=Ae();W(1),J("ngIf",e.noctuaUserService.user&&e.entity.term&&e.options.editableTerms)}}function sut(t,n){if(1&t&&Qe(0,"noc-evidence-form-table",17),2&t){const e=Ae(2);J("settings",e.settings)("options",e.optionsDisplay)("cam",e.cam)("entity",e.entity)}}function cut(t,n){if(1&t&&(H(0,"div",15),ke(1,sut,1,4,"noc-evidence-form-table",16),G()),2&t){const e=Ae();W(1),J("ngIf",e.entity.showEvidence)}}function lut(t,n){if(1&t&&(H(0,"div",5),de(1),G()),2&t){const e=Ae(3);W(1),Nt(" ",null==e.entity.predicate?null:e.entity.predicate.evidence.length," evidence ")}}function dut(t,n){1&t&&(H(0,"div",22),de(1," no evidence present. "),G())}function uut(t,n){if(1&t&&(H(0,"div",0),ke(1,lut,2,1,"div",20),ke(2,dut,2,0,"div",21),G()),2&t){const e=Ae(2);W(1),J("ngIf",(null==e.entity.predicate?null:e.entity.predicate.evidence.length)>0),W(1),J("ngIf",0===(null==e.entity.predicate?null:e.entity.predicate.evidence.length))}}function hut(t,n){if(1&t&&(H(0,"div",18),ke(1,uut,3,2,"div",19),G()),2&t){const e=Ae();W(1),J("ngIf",!e.entity.skipEvidenceCheck)}}function put(t,n){if(1&t){const e=Ln();H(0,"button",34),et("click",function(){Dt(e);const o=Ae(2);return o.openSearchDatabaseDialog(o.entity)}),de(1," Search Annotations "),G()}}function fut(t,n){1&t&&(H(0,"button",29),de(1,"Add"),G()),2&t&&(Ae(),J("matMenuTriggerFor",Di(12)))}function gut(t,n){if(1&t){const e=Ln();H(0,"button",35),et("click",function(){Dt(e);const o=Ae(2);return o.deleteEntity(o.entity)}),de(1," Delete "),G()}}function mut(t,n){if(1&t){const e=Ln();H(0,"button",34),et("click",function(){const r=Dt(e).$implicit,a=Ae(2);return a.insertEntity(a.entity,r)}),de(1),G()}if(2&t){const e=n.$implicit;W(1),Nt(" ",e.label," ")}}function _ut(t,n){if(1&t){const e=Ln();H(0,"div",23)(1,"button",24),et("click",function(o){return Dt(e),Ae().updateCurrentMenuEvent(o)}),H(2,"mat-icon"),de(3,"more_vert"),G()(),H(4,"mat-menu",25,26),ke(6,put,2,0,"button",27),ke(7,fut,2,1,"button",28),H(8,"button",29),de(9,"Evidence"),G(),ke(10,gut,2,0,"button",30),G(),H(11,"mat-menu",null,31),ke(13,mut,2,1,"button",32),G(),H(14,"mat-menu",null,33)(16,"button",34),et("click",function(){Dt(e);const o=Ae();return o.addEvidence(o.entity)}),de(17," Add Evidence "),G()()()}if(2&t){const e=Di(5),i=Di(15),o=Ae();W(1),J("matMenuTriggerFor",e),W(5),J("ngIf",o.entity.aspect),W(1),J("ngIf",o.entity.insertMenuNodes),W(1),J("matMenuTriggerFor",i),W(2),J("ngIf",o.entity.canDelete),W(3),J("ngForOf",o.entity.insertMenuNodes)}}const Cut=function(t){return{"noc-selected":t}},vut=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};let but=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=l,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ht.activityType.options,this.options={},this.relationWidth="0px",this.optionsDisplay={},this.termEditable=!0,this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new N}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.relationWidth=250-16*this.entity.treeLevel+"px"}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}deleteEntity(e){const i=this,r=this.activity.descendants(e.id).map(l=>l.term.label).join(", ");let a=`You are about to delete an ${e.term.label}`;r&&(a+=` and its descendants ${r}`),this.confirmDialogService.openConfirmDialog("Confirm Delete?",`${a}`,()=>{this.noctuaActivityEntityService.deleteActivityNode(i.activity,e).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.term.label} successfully deleted.`,"OK")})})}openSearchDatabaseDialog(e){const i=this,o=this.activity.gpNode;if(o&&o.hasValue()){const a=l=>{if(l.term){const u=new Pi(l.term.term.id,l.term.term.label);l.evidences&&l.evidences.length>0&&(i.noctuaActivityEntityService.initializeForm(this.activity,e),e.term=u,e.predicate.setEvidence(l.evidences),i.noctuaActivityEntityService.saveSearchDatabase())}};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:o.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new wd(Al.error,El.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}insertEntity(e,i){const o=this.noctuaFormConfigService.insertActivityNodeShex(this.activity,e,i),r={cam:this.cam,activity:this.activity,entity:o,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,o),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r})}editEntity(e){const i={cam:this.cam,activity:this.activity,entity:e,category:ga.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:i})}addRootTerm(e){const i=this,o=(0,Zt.find)(Ht.rootNode,r=>r.aspect===e.aspect);if(o){e.term=new Pi(o.id,o.label),i.noctuaActivityFormService.initializeForm();const r=new Ll;r.setEvidence(new Pi(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([r]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,o=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(o,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(dd),ue(yr),ue(Co),ue(jc),ue(Pd),ue(Ts),ue(I3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-form-table-node"]],inputs:{settings:"settings",cam:"cam",activity:"activity",entity:"entity",options:"options"},decls:15,vars:19,consts:[[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-node","noctua-form-table","w-100-p",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-term-cell","noc-entity-cell",3,"fxFlex","ngClass"],[1,"noc-cell-floating-title"],["mat-icon-button","","class","noc-delete-button",3,"click",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],[4,"ngIf"],["fxFlex","","class","noc-evidence-cell p-0","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],["class","evidence-summary-cell p-0","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["mat-icon-button","",1,"noc-delete-button",3,"click"],[3,"icon"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-evidence-cell","p-0"],["class","w-100-p",3,"settings","options","cam","entity",4,"ngIf"],[1,"w-100-p",3,"settings","options","cam","entity"],["fxLayout","column","fxLayoutAlign","center center",1,"evidence-summary-cell","p-0"],["class","w-100-p ",4,"ngIf"],["class","",4,"ngIf"],["class","noc-no-info",4,"ngIf"],[1,"noc-no-info"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","class","","color","warn",3,"click",4,"ngIf"],["addMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","","color","warn",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),de(4),G(),ke(5,iut,2,2,"button",4),H(6,"span",5),de(7),Qe(8,"br"),H(9,"a",6),et("click",function(r){return r.stopPropagation()}),de(10),G()(),ke(11,aut,2,1,"ng-container",7),G(),ke(12,cut,2,1,"div",8),ke(13,hut,2,1,"div",9),ke(14,_ut,18,6,"div",10),G()()),2&e&&(W(1),J("ngClass",wo(13,Cut,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),W(1),Ro("fxFlex",i.relationWidth),J("ngClass",M2(15,vut,null==i.entity.term?null:i.entity.term.highlight,null==i.entity.term?null:i.entity.term.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==i.entity.term?null:i.entity.term.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),Un("id",null==i.entity.term?null:i.entity.term.displayId),W(2),Nt(" ",i.entity.label," "),W(1),J("ngIf",i.entity.canDelete),W(2),Nt(" ",null==i.entity.term?null:i.entity.term.label," "),W(2),Ro("href",null==i.entity.term?null:i.entity.term.url,ao),W(1),Nt(" ",null==i.entity.term?null:i.entity.term.id," "),W(1),J("ngIf",i.termEditable),W(1),J("ngIf",i.settings.showEvidence),W(1),J("ngIf",!i.settings.showEvidence&&i.settings.showEvidenceSummary),W(1),J("ngIf",i.noctuaUserService.user&&i.options.showMenu))},directives:[Oo,So,ds,ac,ko,Yi,Fo,ps,km,pse,il,Ir,Ql,nl,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:initial;min-width:initial;max-width:initial}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{position:relative;width:initial;min-width:initial;max-width:initial;width:250px;margin-bottom:8px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .evidence-summary-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px;text-align:center;font-size:10px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .evidence-summary-cell[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:3px 8px;font-size:10px;font-style:italic;color:#aaa}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:initial;min-width:initial;max-width:initial}}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{background-color:#5872a7;color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px;color:#000;border-radius:5px;border:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-align:center;height:20px;min-height:20px;max-height:20px;font-size:10px;font-weight:700;padding:2px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.F[_ngcontent-%COMP%]{border:#7cd488 solid 1px;color:#56c765}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.P[_ngcontent-%COMP%]{border:#f4c89c solid 1px;color:#efaf6e}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.C[_ngcontent-%COMP%]{border:#d3b5f5 solid 1px;color:#b888ef}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-relation-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-extension-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-node.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();const xut=["tree"],yut=["gpTree"],fse=function(){return["fas","caret-right"]};function wut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,fse))}const gse=function(){return["fas","caret-down"]};function Mut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,gse))}function Out(t,n){if(1&t){const e=Ln();H(0,"button",17),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,wut,1,2,"fa-icon",18),ke(2,Mut,1,2,"fa-icon",18),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function Sut(t,n){1&t&&Qe(0,"div",20)}function Put(t,n){if(1&t&&Qe(0,"noc-activity-form-table-node",21),2&t){const e=Ae().$implicit,i=Ae(2);J("settings",i.gpSettings)("options",i.gpOptions)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function Tut(t,n){if(1&t&&Qe(0,"noc-activity-form-table-node",21),2&t){const e=Ae().$implicit,i=Ae(2);J("settings",i.settings)("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function Eut(t,n){if(1&t){const e=Ln();H(0,"div",11),ke(1,Out,3,2,"button",12),ke(2,Sut,1,0,"div",13),H(3,"div",14),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),H(4,"div",15),ke(5,Put,1,5,"noc-activity-form-table-node",16),ke(6,Tut,1,5,"noc-activity-form-table-node",16),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(2),J("ngIf",(null==e.data.node?null:e.data.node.id)===(null==i.activity.gpNode?null:i.activity.gpNode.id)),W(1),J("ngIf",(null==e.data.node?null:e.data.node.id)!==(null==i.activity.gpNode?null:i.activity.gpNode.id))}}function Aut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,fse))}function Lut(t,n){1&t&&Qe(0,"fa-icon",19),2&t&&J("icon",_i(1,gse))}function Dut(t,n){if(1&t){const e=Ln();H(0,"button",17),et("click",function(){return Dt(e),Ae().$implicit.toggleExpanded()}),ke(1,Aut,1,2,"fa-icon",18),ke(2,Lut,1,2,"fa-icon",18),G()}if(2&t){const e=Ae().$implicit;W(1),J("ngIf",null==e?null:e.isCollapsed),W(1),J("ngIf",null==e?null:e.isExpanded)}}function kut(t,n){1&t&&Qe(0,"div",20)}function Iut(t,n){if(1&t){const e=Ln();H(0,"div",11),ke(1,Dut,3,2,"button",12),ke(2,kut,1,0,"div",13),H(3,"div",14),et("click",function(o){return Dt(e).$implicit.mouseAction("click",o)})("dblclick",function(o){return Dt(e).$implicit.mouseAction("dblClick",o)})("contextmenu",function(o){return Dt(e).$implicit.mouseAction("contextMenu",o)})("treeDrop",function(o){return Dt(e).$implicit.onDrop(o)}),H(4,"div",15),Qe(5,"noc-activity-form-table-node",21),G()()()}if(2&t){const e=n.$implicit,i=Ae(2);Br("padding-left",e.getNodePadding()),W(1),J("ngIf",e.hasChildren),W(1),J("ngIf",!e.hasChildren),W(1),po("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),J("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),W(2),J("settings",i.settings)("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}const Nut=function(t){return{"noc-selected":t}};function Rut(t,n){if(1&t){const e=Ln();H(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),de(4),G(),Qe(5,"span",5),G(),H(6,"div",6)(7,"tree-root",7,8),et("initialized",function(){return Dt(e),Ae().onGPTreeLoad()}),ke(9,Eut,7,13,"ng-template",null,9,tu),G()()(),H(11,"div",2)(12,"div",3)(13,"div",4),de(14),G(),Qe(15,"span",5),G(),H(16,"div",6)(17,"tree-root",7,10),et("initialized",function(){return Dt(e),Ae().onTreeLoad()}),ke(19,Iut,6,16,"ng-template",null,9,tu),G()()()()}if(2&t){const e=Ae();J("ngClass",wo(8,Nut,e.activity.displayId===(null==e.camService.currentMatch?null:e.camService.currentMatch.activityDisplayId))),Un("id",e.activity.displayId),W(4),Nt(" ",e.annotatedSectionTitle," "),W(3),J("nodes",e.gpTreeNodes)("options",e.treeOptions),W(7),Nt(" ",e.descriptionSectionTitle," "),W(3),J("nodes",e.treeNodes)("options",e.treeOptions)}}let zut=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.camService=e,this._bbopGraphService=i,this.noctuaCommonMenuService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.noctuaFormDialogService=l,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.inlineEditorService=M,this.ActivityDisplayType=k2,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ht.activityType.options,this.settings=new hm,this.gpSettings=new hm,this.options={},this.gpOptions={},this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.descriptionSectionTitle="Function Description",this.annotatedSectionTitle="Gene Product",this.treeNodes=[],this.treeControl=new pS(T=>T.treeLevel,T=>T.expandable),this.gpTreeNodes=[],this.gpTreeControl=new pS(T=>T.treeLevel,T=>T.expandable),this.treeOptions={allowDrag:!1,allowDrop:!1,getNodeClone:T=>Object.assign(Object.assign({},T.data),{name:`Copy of ${T.data.name}`})},this.dataSource=new EM,this._unsubscribeAll=new N}ngOnChanges(e){}ngOnInit(){var e;this.loadTree(),this.gpOptions=(0,Zt.cloneDeep)(this.options),this.gpOptions.showMenu=this.activity.activityType===so.molecule||this.activity.activityType===so.proteinComplex,this.activity.activityType===so.ccOnly?this.descriptionSectionTitle="Localization Description":this.activity.activityType===so.molecule?(this.annotatedSectionTitle="Small Molecule",this.descriptionSectionTitle="Location (optional)"):this.descriptionSectionTitle="Function Description",this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.settings=i,this.gpSettings=(0,Zt.cloneDeep)(i),this.gpSettings.showEvidence=!1,this.gpSettings.showEvidenceSummary=!1)}),(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this._bbopGraphService.onCamGraphChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||i.id!==this.cam.id||(this.cam=i,this.activity=i.findActivityById(this.activity.id),this.loadTree())})}ngAfterViewInit(){var e,i;null===(e=this.gpTree)||void 0===e||e.treeModel.filterNodes(o=>{const r=o.data.node;return(null==r?void 0:r.displaySection.id)===Ht.displaySection.gp.id}),null===(i=this.tree)||void 0===i||i.treeModel.filterNodes(o=>{const r=o.data.node;return(null==r?void 0:r.displaySection.id)===Ht.displaySection.fd.id})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadTree(){!this.activity||(this.gpNode=this.activity.gpNode,this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.treeNodes=this.activity.buildTrees(),this.gpTreeNodes=this.activity.buildGPTrees())}onTreeLoad(){var e;null===(e=this.tree)||void 0===e||e.treeModel.expandAll()}onGPTreeLoad(){var e;null===(e=this.gpTree)||void 0===e||e.treeModel.expandAll()}setActivityDisplayType(e){this.activity.activityDisplayType=e}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const o={cam:this.cam,activity:this.activity,entity:e,category:ga.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o}),this.noctuaActivityFormService.initializeForm()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(Yc),ue(ul),ue(yr),ue(Co),ue(jc),ue(Pd),ue(Ts),ue(I3))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-form-table"]],viewQuery:function(e,i){if(1&e&&(_o(xut,5),_o(yut,5)),2&e){let o;fi(o=gi())&&(i.tree=o.first),fi(o=gi())&&(i.gpTree=o.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},features:[Yo],decls:1,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch","class","w-100-p",3,"ngClass",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],[1,"noc-form-section","noc-tree-container"],[3,"nodes","options","initialized"],["gpTree",""],["treeNodeWrapperTemplate",""],["tree",""],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"],["class","w-100-p",3,"settings","options","cam","activity","entity",4,"ngIf"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[3,"icon",4,"ngIf"],[3,"icon"],[1,"noc-expander-placeholder"],[1,"w-100-p",3,"settings","options","cam","activity","entity"]],template:function(e,i){1&e&&ke(0,Rut,21,10,"div",0),2&e&&J("ngIf",i.activity)},directives:[Yi,Oo,So,ds,ac,ko,oR,Fo,ps,oS,fv,but],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-display-number-cell[_ngcontent-%COMP%]{width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:200px;line-height:12px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;background-color:#fff;font-size:12px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:2px 0;overflow:hidden}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;max-width:170px;line-height:12px;padding:4px 8px;font-size:12px!important;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:0;font-size:10px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%]{font-size:10px;color:#555;width:90px;min-width:90px;max-width:90px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%] noc-icon[_ngcontent-%COMP%]{color:#777}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding:12px 8px 8px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:sc}}),t})();function Fut(t,n){if(1&t&&Qe(0,"noc-activity-form-table",11),2&t){const e=Ae();J("options",e.options)("cam",e.cam)("activity",e.activity)}}let Hut=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M,T){this.ngZone=e,this.changeDetectorRef=i,this.camService=o,this.noctuaCommonMenuService=r,this.noctuaUserService=a,this.noctuaFormConfigService=l,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.confirmDialogService=M,this.noctuaFormDialogService=T,this.EditorCategory=ga,this.ActivityType=so,this.activityTypeOptions=Ht.activityType.options,this.options={},this.nodes=[],this.editableTerms=!1,this.currentMenuEvent={},this._unsubscribeAll=new N}ngOnInit(){this.camService.onSelectedActivityChanged.pipe(Yn(this._unsubscribeAll)).subscribe(i=>{!i||(this.activity=null,setTimeout(()=>{this.activity=i},100))})}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{this.camService.onSelectedActivityChanged.next(null),this.noctuaCommonMenuService.closeRightDrawer(),this.camService.getCam(this.cam.id),i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Xr),ue(Zr),ue(ul),ue(yr),ue(Co),ue(Pd),ue(Ts),ue(dd),ue(jc))},t.\u0275cmp=vn({type:t,selectors:[["noc-graph-activity-table"]],inputs:{options:"options",panelDrawer:"panelDrawer",cam:"cam"},decls:17,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-icon-button","","fxFlex","40px","color","primary",1,"",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["activityOptionMenu","matMenu"],["mat-menu-item","","color","warn",1,"",3,"click"],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-activities-table-body","fxLayout","row","fxLayoutAlign","start center",3,"options","cam","activity",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activities-table-body",3,"options","cam","activity"]],template:function(e,i){if(1&e&&(H(0,"div",0)(1,"div",1),Qe(2,"span",2)(3,"span",3),H(4,"button",4)(5,"mat-icon"),de(6,"more_vert"),G()(),H(7,"mat-menu",5,6)(9,"button",7),et("click",function(){return i.deleteActivity(i.activity)}),de(10," Delete "),G()(),H(11,"button",8),et("click",function(){return i.close()}),H(12,"mat-icon"),de(13,"close"),G(),de(14," Close "),G()(),H(15,"div",9),ke(16,Fut,1,3,"noc-activity-form-table",10),G()()),2&e){const o=Di(8);W(4),J("matMenuTriggerFor",o),W(12),J("ngIf",i.activity)}},directives:[Oo,So,ko,Fo,il,Ir,Ql,nl,ts,Yi,zut],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-gp-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-annotation-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}.noc-annotation-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noc-annotation-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%], .noc-annotation-table[_ngcontent-%COMP%] .noc-gp-cell[_ngcontent-%COMP%]{min-width:100px}.noc-annotation-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noc-annotation-table[_ngcontent-%COMP%] .noc-comments-cell[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}@media screen and (max-width: 1367px){.noc-annotation-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noc-annotation-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:55px;min-height:55px;max-height:55px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:27px;left:-15px;width:25px;height:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:after{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:"";z-index:1}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:350px;line-height:12px;height:55px;min-height:55px;max-height:55px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 3px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;padding-bottom:4px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] noc-activity-tree-node[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;overflow:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row.noc-row-term[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row.noc-row-term[_ngcontent-%COMP%]:before{position:absolute;left:0;width:20px;height:2px;top:50%;transform:translateY(-50%);color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{padding-left:15px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-activity-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}']}),t})();function Vut(t,n){if(1&t&&(H(0,"div",24),de(1," This relation is not supported, please choose a new relation below "),Qe(2,"br"),de(3," ("),H(4,"strong"),de(5),G(),de(6,") "),G()),2&t){const e=Ae(2);W(5),qo(null==e.currentConnectorActivity||null==e.currentConnectorActivity.predicate?null:e.currentConnectorActivity.predicate.edge.label)}}function But(t,n){if(1&t&&(H(0,"div",28),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function Gut(t,n){if(1&t&&(H(0,"div",25)(1,"mat-radio-button",26),de(2),G(),ke(3,But,2,1,"div",27),G()),2&t){const e=n.$implicit,i=Ae(2);W(1),J("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.relationship?null:i.connectorActivity.rule.relationship.id))("value",e),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function Yut(t,n){if(1&t&&(H(0,"div",25)(1,"mat-radio-button",32),de(2),G()()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.effectDirection?null:i.connectorActivity.rule.effectDirection.id)),W(1),Nt(" ",e.label," ")}}function Uut(t,n){if(1&t&&(H(0,"div",13)(1,"div",14)(2,"p"),de(3,"Effect Direction"),G()(),H(4,"mat-radio-group",29),ke(5,Yut,3,3,"div",16),G(),H(6,"div",30)(7,"div",31),de(8," The mechanism regulation should be known, so it should be possible to pick the direction of the regulation. "),G()()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.effectDirection.options)}}function jut(t,n){if(1&t&&(H(0,"div",28),de(1),G()),2&t){const e=Ae().$implicit;W(1),Nt(" ",e.description," ")}}function Wut(t,n){if(1&t&&(H(0,"div",25)(1,"mat-radio-button",32),de(2),G(),ke(3,jut,2,1,"div",27),G()),2&t){const e=n.$implicit,i=Ae(3);W(1),J("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.directness?null:i.connectorActivity.rule.directness.id)),W(1),Nt(" ",e.label," "),W(1),J("ngIf",e.description)}}function qut(t,n){if(1&t&&(H(0,"div",13)(1,"div",14)(2,"p"),de(3,"Directness "),G()(),H(4,"mat-radio-group",33),ke(5,Wut,4,4,"div",16),G()()),2&t){const e=Ae(2);W(5),J("ngForOf",e.noctuaFormConfigService.directness.options)}}function $ut(t,n){if(1&t&&(H(0,"div",9)(1,"div",10),ke(2,Vut,7,1,"div",11),H(3,"div",12)(4,"div",13)(5,"div",14)(6,"p"),de(7,"Relationship"),G()(),H(8,"mat-radio-group",15),ke(9,Gut,4,4,"div",16),G()(),ke(10,Uut,9,1,"div",17),ke(11,qut,6,1,"div",17),G(),H(12,"div",18)(13,"div",19),de(14," Suggested Causal Relation "),G()(),H(15,"div",20)(16,"span",21),de(17),G()(),H(18,"div",22)(19,"div",19),de(20," Evidence "),G()(),Qe(21,"noc-evidence-form-table",23),G()()),2&t){const e=Ae();W(2),J("ngIf",!(null!=e.connectorActivity&&null!=e.connectorActivity.rule.relationship&&e.connectorActivity.rule.relationship.id)),W(7),J("ngForOf",e.relationshipOptions),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.effectDirection),W(1),J("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.directness),W(6),Nt(" ",null==e.connectorActivity||null==e.connectorActivity.predicate.edge?null:e.connectorActivity.predicate.edge.label," "),W(4),J("settings",e.settings)("options",e.evidenceOptions)("cam",e.cam)("activity",e.connectorActivity)("entity",e.connectorActivity.subjectNode)}}let Xut=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.confirmDialogService=e,this.noctuaActivityConnectorService=i,this.noctuaUserService=o,this.noctuaFormDialogService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.noctuaCommonMenuService=u,this.noctuaActivityEntityService=f,this.ConnectorType=Od,this.evidenceOptions={editableEvidence:!0,editableReference:!0,editableWith:!0,showEvidenceMenu:!0,showAddEvidenceButton:!0},this.settings=new hm,this.connectorState=g3,this.searchCriteria={},this._unsubscribeAll=new N}ngOnInit(){this.connectorFormSub=this.noctuaActivityConnectorService.connectorFormGroup$.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.connectorFormGroup=e,this.currentConnectorActivity=this.noctuaActivityConnectorService.currentConnectorActivity,this.connectorActivity=this.noctuaActivityConnectorService.connectorActivity,this.relationshipOptions=this.noctuaFormConfigService[this.connectorActivity.connectorType+"Relationship"].options)}),this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e)})}openActivityConnector(e){this.noctuaActivityConnectorService.initializeForm(this.noctuaActivityConnectorService.objectActivity.id,e.id)}save(){const e=this;this.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully created.","OK"),this.noctuaActivityConnectorService.initializeForm(e.noctuaActivityConnectorService.subjectActivity.id,e.noctuaActivityConnectorService.objectActivity.id),this.closeDialog&&this.closeDialog()})}editActivity(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully updated.","OK")})})}deleteConnectorEdge(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.deleteConnectorEdge(this.currentConnectorActivity).then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully deleted.","OK")})})}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(dd),ue(IO),ue(yr),ue(jc),ue(Co),ue(Ts),ue(ul),ue(Pd))},t.\u0275cmp=vn({type:t,selectors:[["noc-activity-connector-table"]],inputs:{panelDrawer:"panelDrawer",cam:"cam",activity:"activity",closeDialog:"closeDialog"},decls:15,vars:2,consts:[["name","connectorFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-connector-form",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","","color","warn",1,"mr-8",3,"click"],[1,"noc-connector-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","w-100-p"],["class","alert alert-warning w-100-p",4,"ngIf"],[1,"noc-form-section","p-0","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"px-8","noc-group-row"],[1,"noc-title"],["fxFlex","","formControlName","relationship","fxLayout","column","fxLayoutAlign","start start"],["class","noc-radio-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","px-8 noc-group-row","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","noc-bt"],[1,"noc-section-heading"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-note","mb-4"],[1,"noc-description"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"w-100-p",3,"settings","options","cam","activity","entity"],[1,"alert","alert-warning","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-radio-row"],[1,"noc-radio-button-rounded","noc-label",3,"checked","value"],["fxFlex","","class","noc-hint",4,"ngIf"],["fxFlex","",1,"noc-hint"],["formControlName","effectDirection","fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","column","fxLayoutAlign","center start"],[1,"noc-hint","noc-sm"],[1,"noc-radio-button-rounded","noc-label",3,"value","checked"],["fxFlex","","formControlName","directness","fxLayout","column","fxLayoutAlign","start start"]],template:function(e,i){1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Causal Relation Form"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," Close "),G()(),H(9,"div",5),ke(10,$ut,22,10,"div",6),G(),H(11,"div",7),Qe(12,"span",3),H(13,"button",8),et("click",function(){return i.deleteConnectorEdge()}),de(14,"Delete"),G()()()),2&e&&(J("formGroup",i.connectorFormGroup),W(10),J("ngIf",i.connectorFormGroup))},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,Yi,gM,Pl,Xl,$o,mM,pse],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 80px);padding-bottom:150px}[_nghost-%COMP%] .noc-radio-button-rounded[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .noc-connector-form[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:10px 0;border-bottom:rgba(59,89,152,.6) solid 1px;color:#000;font-size:12px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]{width:100%;padding:5px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-border-0[_ngcontent-%COMP%]{border:none!important}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{width:170px;min-width:170px;max-width:170px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint[_ngcontent-%COMP%]{margin-left:12px;font-size:12px;max-width:300px;color:#676767;font-style:italic}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint.noc-sm[_ngcontent-%COMP%]{max-width:260px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%]{margin-bottom:12px;width:100%;padding:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;background-color:#fff;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-bottom:12px;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-graph-preview[_ngcontent-%COMP%]{height:100px;width:100%}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%]{width:100%;background-color:#dfe3ee99}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%]{padding:20px 0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{padding-left:10px;font-size:12px}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%]{color:#bbb}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ccc}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:200px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{padding:4px;height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:14px;color:#777}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding:4px;font-size:12px;width:100%;border-bottom:#bbb solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%]{height:180px;min-height:180px;max-height:180px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:8px;width:180px;min-width:180px;max-width:180px;height:110px;min-height:110px;max-height:110px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:initial;background-color:#fff}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding:4px;height:55px;min-height:55px;max-height:55px;font-size:10px;text-align:center;border-bottom:2px solid #2e6f9a}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{color:#2e6f9a;margin-top:40px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%]{height:120px;min-height:120px;max-height:120px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:4px;width:150px;min-width:150px;max-width:150px;height:100px;min-height:100px;max-height:100px;font-size:10px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{height:50px;min-height:50px;max-height:50px;border-bottom:1px solid #2e6f9a}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{margin-top:35px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-row[_ngcontent-%COMP%]{height:150px;min-height:150px;max-height:150px;background-color:#f5f5f5;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}']}),t})();function Qut(t,n){1&t&&(H(0,"form",7)(1,"h2"),de(2,"Columns"),G(),H(3,"mat-checkbox",8),de(4,"Show Aspect "),G(),H(5,"mat-checkbox",9),de(6,"Show Is Extension "),G(),H(7,"mat-checkbox",10),de(8,"Show Evidence "),G(),H(9,"mat-checkbox",11),de(10,"Show Evidence Code "),G(),H(11,"mat-checkbox",12),de(12,"Show Reference "),G(),H(13,"mat-checkbox",13),de(14,"Show With/From "),G(),H(15,"mat-checkbox",14),de(16,"Show Group "),G(),H(17,"mat-checkbox",15),de(18,"Show Contributor "),G()()),2&t&&J("formGroup",Ae().settingsForm)}let Zut=(()=>{class t{constructor(e,i,o,r,a){this.camService=e,this.noctuaCommonMenuService=i,this.noctuaUserService=o,this.noctuaFormConfigService=r,this.noctuaActivityFormService=a,this.displayedColumns=["category","count"],this._unsubscribeAll=new N}ngOnInit(){this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e,this.settingsForm=this.settings.createSettingsForm(),this._onValueChanges())})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createSettingsForm(e){}populateSettings(e){this.settings.populateSettings(e),this.noctuaCommonMenuService.onCamSettingsChanged.next(this.settings)}_onValueChanges(){const e=this;this.settingsForm.valueChanges.pipe(Cs(),Ks(400),Yn(this._unsubscribeAll)).subscribe(i=>{e.populateSettings(i)})}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(ul),ue(yr),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-graph-settings"]],inputs:{panelDrawer:"panelDrawer"},decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["fxLayout","column","fxLayoutAlign","start stretch","name","settingsForm",3,"formGroup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","name","settingsForm",3,"formGroup"],["formControlName","showAspect","color","primary",1,"noc-checkbox"],["formControlName","showIsExtension","color","primary",1,"noc-checkbox"],["formControlName","showEvidence","color","primary",1,"noc-checkbox"],["formControlName","showEvidenceCode","color","primary",1,"noc-checkbox"],["formControlName","showReference","color","primary",1,"noc-checkbox"],["formControlName","showWith","color","primary",1,"noc-checkbox"],["formControlName","showGroup","color","primary",1,"noc-checkbox"],["formControlName","showContributor","color","primary",1,"noc-checkbox"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Graph Settings"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"div",5),ke(10,Qut,19,1,"form",6),G()()),2&e&&(W(10),J("ngIf",i.settingsForm))},directives:[Oo,So,ko,Fo,Ir,ts,Yi,nd,tl,Gc,Xp,Pl,Xl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:520px;min-width:520px;max-width:520px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{border-top:#888 solid 1px;padding:24px 12px 100px;min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}'],data:{animation:sc}}),t})();const Kut=["leftDrawer"],Jut=["rightDrawer"],AF=function(t){return{"noc-active":t}},eht=function(){return["fas","sitemap"]},tht=function(){return["fas","table"]},nht=function(){return["fas","list"]};function iht(t,n){if(1&t){const e=Ln();H(0,"div",21)(1,"button",22),et("click",function(){return Dt(e),Ae().openGraph()}),Qe(2,"fa-icon",23),G(),H(3,"button",22),et("click",function(){return Dt(e),Ae().openTable()}),Qe(4,"fa-icon",23),G(),H(5,"button",22),et("click",function(){return Dt(e),Ae().openTable()}),Qe(6,"fa-icon",23),G()()}if(2&t){const e=Ae();W(1),J("ngClass",wo(12,AF,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camGraph))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(14,eht)),W(1),J("ngClass",wo(15,AF,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camTable))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(17,tht)),W(1),J("ngClass",wo(18,AF,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camTable))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(20,nht))}}function oht(t,n){1&t&&(H(0,"div",24),de(1," Not Logged In: You can only view existing annotations "),G())}function rht(t,n){1&t&&Qe(0,"noc-cam-form",25),2&t&&(Ae(),J("panelDrawer",Di(7)))}function aht(t,n){1&t&&Qe(0,"noc-activity-form",25),2&t&&(Ae(),J("panelDrawer",Di(7)))}function sht(t,n){1&t&&Qe(0,"noc-copy-model",26),2&t&&(Ae(),J("panelDrawer",Di(7))("panelSide","left"))}function cht(t,n){if(1&t&&Qe(0,"noc-cam-table",4),2&t){const e=Ae();J("cam",e.cam)("options",e.noctuaFormOptions)}}function lht(t,n){1&t&&Qe(0,"noc-cam-graph",27),2&t&&J("cam",Ae().cam)}const dht=function(t){return{width:t}};function uht(t,n){if(1&t&&Qe(0,"noc-cam-table",28),2&t){const e=Ae(),i=Di(17);J("ngStyle",wo(4,dht,e.tableWidth))("panelDrawer",i)("cam",e.cam)("options",e.tableOptions)}}function hht(t,n){if(1&t&&Qe(0,"noc-graph-activity-table",29),2&t){const e=Ae();J("panelDrawer",Di(17))("options",e.tableOptions)("cam",e.cam)}}function pht(t,n){if(1&t&&Qe(0,"noc-activity-connector-table",30),2&t){const e=Ae();J("panelDrawer",Di(17))("cam",e.cam)}}function fht(t,n){1&t&&Qe(0,"noc-graph-settings",25),2&t&&(Ae(),J("panelDrawer",Di(17)))}const ght=[{path:"g",component:(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.route=e,this.camService=i,this.noctuaActivityFormService=o,this.noctuaReviewSearchService=r,this.noctuaFormConfigService=a,this.noctuaCommonMenuService=l,this.noctuaUserService=u,this.noctuaSearchService=f,this.tableWidth="550px",this.loadingSpinner={color:"primary",mode:"indeterminate"},this.ActivityType=so,this.ReviewMode=hl,this.LeftPanel=a2,this.MiddlePanel=Ju,this.RightPanel=m3,this.artBasket=new C_,this.searchResults=[],this.modelId="",this.searchCriteria={},this.searchFormData=[],this.cams=[],this.camToolbarOptions={showCreateButton:!1},this.tableOptions={displayType:k2.SLIM_TREE,slimViewer:!0,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,showMenu:!0},this.noctuaFormOptions={displayType:k2.TREE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,showMenu:!0},this.scrollbarConfig={suppressScrollX:!0},this._unsubscribeAll=new N,this.route.queryParams.pipe(Yn(this._unsubscribeAll)).subscribe(M=>{this.modelId=M.model_id||null,this.noctuaUserService.getUser(M.barista_token||null)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(M=>{this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.loadCam(this.modelId)})}ngOnInit(){this.noctuaCommonMenuService.selectedMiddlePanel=Ju.camGraph,this.noctuaCommonMenuService.setLeftDrawer(this.leftDrawer),this.noctuaCommonMenuService.setRightDrawer(this.rightDrawer),this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e,this.tableWidth=this.getTableWidth(e))})}ngAfterViewInit(){this.noctuaCommonMenuService.resultsViewScrollbar=this.scrollbarRef}loadCam(e){this.cam=this.camService.getCam(e)}openGraph(){this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camGraph)}openTable(){this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Ju.camTable)}openPreview(){this.noctuaCommonMenuService.selectMiddlePanel(Ju.camPreview)}openLeftDrawer(e){this.noctuaCommonMenuService.selectLeftPanel(e)}selectMiddlePanel(e){this.noctuaCommonMenuService.selectMiddlePanel(e)}openRightDrawer(e){this.noctuaCommonMenuService.selectRightPanel(e),this.noctuaCommonMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaCommonMenuService.toggleLeftDrawer(e)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openSettings(){this.openRightDrawer(m3.graphSettings)}getTableWidth(e){let i=500;return e.showEvidence&&(i+=e.showEvidenceCode?150:0,i+=e.showReference?100:0,i+=e.showWith?100:0,i+=e.showGroup?100:0,i+=e.showContributor?100:0),i+"px"}search(){this.noctuaSearchService.search(this.searchForm.value)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(a2.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(a2.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(a2.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(lu),ue(Zr),ue(Ts),ue(k1),ue(Co),ue(ul),ue(yr),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-graph"]],viewQuery:function(e,i){if(1&e&&(_o(Kut,7),_o(Jut,7),_o(s4,5)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first),fi(o=gi())&&(i.scrollbarRef=o.first)}},decls:24,vars:18,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-sidemenu","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p","h-100-p"],["class","noc-not-loggedin","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"cam","options"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],["noctuaPerfectScrollbar","",1,"w-100-p","h-100-p",3,"ngSwitch"],[3,"cam","options",4,"ngSwitchCase"],[3,"cam",4,"ngSwitchCase"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""],[1,"h-100-p",3,"ngSwitch","perfectScrollbar"],["scrollbarRef",""],[3,"ngStyle","panelDrawer","cam","options",4,"ngSwitchCase"],[3,"panelDrawer","options","cam",4,"ngSwitchCase"],[3,"panelDrawer","cam",4,"ngSwitchCase"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","matTooltip","Filter",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-not-loggedin"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"],[3,"cam"],[3,"ngStyle","panelDrawer","cam","options"],[3,"panelDrawer","options","cam"],[3,"panelDrawer","cam"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,iht,7,21,"div",1),H(2,"div",2),ke(3,oht,2,0,"div",3),Qe(4,"noc-cam-toolbar",4),H(5,"mat-drawer-container",5)(6,"mat-drawer",6,7)(8,"div",8),ke(9,rht,1,1,"noc-cam-form",9),ke(10,aht,1,1,"noc-activity-form",9),ke(11,sht,1,2,"noc-copy-model",10),G()(),H(12,"mat-drawer-content",2)(13,"div",11),ke(14,cht,1,2,"noc-cam-table",12),ke(15,lht,1,1,"noc-cam-graph",13),G()(),H(16,"mat-drawer",14,15)(18,"div",16,17),ke(20,uht,1,6,"noc-cam-table",18),ke(21,hht,1,3,"noc-graph-activity-table",19),ke(22,pht,1,2,"noc-activity-connector-table",20),ke(23,fht,1,1,"noc-graph-settings",9),G()()()()()),2&e&&(W(1),J("ngIf",!1),W(2),J("ngIf",!i.noctuaUserService.user),W(1),J("cam",i.cam)("options",i.camToolbarOptions),W(1),J("hasBackdrop",!1),W(3),J("ngSwitch",i.noctuaCommonMenuService.selectedLeftPanel),W(1),J("ngSwitchCase",i.LeftPanel.camForm),W(1),J("ngSwitchCase",i.LeftPanel.activityForm),W(1),J("ngSwitchCase",i.LeftPanel.copyModel),W(2),J("ngSwitch",i.noctuaCommonMenuService.selectedMiddlePanel),W(1),J("ngSwitchCase",i.MiddlePanel.camTable),W(1),J("ngSwitchCase",i.MiddlePanel.camGraph),W(3),J("ngSwitch",i.noctuaCommonMenuService.selectedRightPanel)("perfectScrollbar",i.scrollbarConfig),W(2),J("ngSwitchCase",i.RightPanel.camTable),W(1),J("ngSwitchCase",i.RightPanel.activityTable),W(1),J("ngSwitchCase",i.RightPanel.activityConnectorTable),W(1),J("ngSwitchCase",i.RightPanel.graphSettings))},directives:[Oo,So,Yi,Fo,Tl,ds,ac,ps,rR,zf,ko,Rf,bd,iu,sS,wR,mS,A0,ts,eP,H2t,s4,Og,hI,Hut,Xut,Zut],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] noc-cam-table[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] noc-activity-connector[_ngcontent-%COMP%]{display:block;width:600px;min-width:600px;max-width:600px}[_nghost-%COMP%] noc-graph-settings[_ngcontent-%COMP%]{display:block;width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] noc-graph-activity-table[_ngcontent-%COMP%]{display:block;min-width:400px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]{font-size:18px;color:#5872a7}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]:hover{font-size:20px;color:#3b5998}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;margin-right:5px;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;color:#798fb84d}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:sc}}),t})()}];let mse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[D1,I9,va,xd.forChild(ght),Uf,$p,$_,nv,M4]]}),t})();const Gm=XC||rVe,_se=new ui("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function mht(){return{useUtc:!1}}});function _ht(t,n){const e=Array(t);for(let i=0;i{class t extends d1{constructor(e,i){super(),this._options=i,this.setLocale(e||Gm.locale())}setLocale(e){super.setLocale(e);let i=Gm.localeData(e);this._localeData={firstDayOfWeek:i.firstDayOfWeek(),longMonths:i.months(),shortMonths:i.monthsShort(),dates:_ht(31,o=>this.createDate(2017,0,o+1).format("D")),longDaysOfWeek:i.weekdays(),shortDaysOfWeek:i.weekdaysShort(),narrowDaysOfWeek:i.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,i,o){const r=this._createMoment({year:e,month:i,date:o}).locale(this.locale);return r.isValid(),r}today(){return this._createMoment().locale(this.locale)}parse(e,i){return e&&"string"==typeof e?this._createMoment(e,i,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,i){return e=this.clone(e),this.isValid(e),e.format(i)}addCalendarYears(e,i){return this.clone(e).add({years:i})}addCalendarMonths(e,i){return this.clone(e).add({months:i})}addCalendarDays(e,i){return this.clone(e).add({days:i})}toIso8601(e){return this.clone(e).format()}deserialize(e){let i;if(e instanceof Date)i=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;i=this._createMoment(e,Gm.ISO_8601).locale(this.locale)}return i&&this.isValid(i)?this._createMoment(i).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Gm.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Gm.invalid()}_createMoment(e,i,o){const{strict:r,useUtc:a}=this._options||{};return a?Gm.utc(e,i,o,r):Gm(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(qt(JD,8),qt(_se,8))},t.\u0275prov=gt({token:t,factory:t.\u0275fac}),t})();const vht=["searchInput"];function bht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.terms)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.label," (",e.id,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.label," ")}}function xht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G(),Qe(4,"span",3),H(5,"div",71),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function yht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.obsoleteTerms)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.label," (",e.id,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.label," ")}}function wht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G(),Qe(4,"span",3),H(5,"div",71),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Mht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.gps)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.label," (",e.id,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.label," ")}}function Oht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G(),Qe(4,"span",3),H(5,"div",71),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Sht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.pmids)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;xf("matTooltip","Reference: ",e,""),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e," ")}}function Pht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.organisms)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Species: ",e.taxonName," (",e.taxonIri,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.taxonName," ")}}function Tht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G(),Qe(4,"span",3),H(5,"div",71),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.taxonName," "),W(3),Nt(" ",e.taxonId," ")}}function Eht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.contributors)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Contributor: ",e.name," (",e.orcid,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name," ")}}function Aht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G(),Qe(4,"span",3),H(5,"div",71),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.name," "),W(3),Nt(" ",e.orcid," ")}}function Lht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.groups)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;Ip("matTooltip","Term: ",e.name," (",e.url,")"),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name," ")}}function Dht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G(),Qe(4,"span",3),H(5,"div",71),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.name," "),W(3),Nt(" ",e.url," ")}}function kht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae(2);return a.remove(r,a.SearchFilterType.exactdates)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e," ")}}function Iht(t,n){if(1&t){const e=Ln();H(0,"mat-form-field",12)(1,"mat-label"),de(2,"Filter by Exact Date"),G(),H(3,"mat-chip-list",null,72),ke(5,kht,5,3,"mat-chip",54),H(6,"input",73,74),et("matChipInputTokenEnd",function(o){Dt(e);const r=Ae();return r.add(o,r.SearchFilterType.exactdates)}),G()(),Qe(9,"mat-datepicker-toggle",75)(10,"mat-datepicker",null,76),G()}if(2&t){const e=Di(4),i=Di(11),o=Ae();W(5),J("ngForOf",o.noctuaSearchService.searchCriteria.exactdates),W(1),J("matDatepicker",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("for",i)}}function Nht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae(2);return a.remove(r,a.SearchFilterType.startdates)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e," ")}}function Rht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae(2);return a.remove(r,a.SearchFilterType.enddates)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e," ")}}function zht(t,n){if(1&t){const e=Ln();H(0,"div",78)(1,"mat-form-field",79)(2,"mat-label"),de(3,"Start Date"),G(),H(4,"mat-chip-list",null,80),ke(6,Nht,5,3,"mat-chip",54),H(7,"input",81,74),et("matChipInputTokenEnd",function(o){Dt(e);const r=Ae();return r.add(o,r.SearchFilterType.startdates)}),G()(),Qe(10,"mat-datepicker-toggle",75)(11,"mat-datepicker",null,82),G(),H(13,"mat-form-field",79)(14,"mat-label"),de(15,"End Date"),G(),H(16,"mat-chip-list",null,72),ke(18,Rht,5,3,"mat-chip",54),H(19,"input",83,74),et("matChipInputTokenEnd",function(o){Dt(e);const r=Ae();return r.add(o,r.SearchFilterType.enddates)}),G()(),Qe(22,"mat-datepicker-toggle",75)(23,"mat-datepicker",null,84),G()()}if(2&t){const e=Di(5),i=Di(12),o=Di(17),r=Di(24),a=Ae();W(6),J("ngForOf",a.noctuaSearchService.searchCriteria.startdates),W(1),J("matDatepicker",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("for",i),W(8),J("ngForOf",a.noctuaSearchService.searchCriteria.enddates),W(1),J("matDatepicker",r)("matChipInputFor",o)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("for",r)}}function Fht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.ids)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;xf("matTooltip","Keyword: ",e,""),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e," ")}}function Hht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",65),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.titles)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;xf("matTooltip","Keyword: ",e,""),J("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e," ")}}function Vht(t,n){if(1&t){const e=Ln();H(0,"mat-chip",77),et("removed",function(){const r=Dt(e).$implicit,a=Ae();return a.remove(r,a.SearchFilterType.states)}),H(1,"div",66),de(2),G(),H(3,"mat-icon",67),de(4,"cancel"),G()()}if(2&t){const e=n.$implicit;J("selectable",!0)("removable",!0),W(2),Nt(" ",e.name," ")}}function Bht(t,n){if(1&t&&(H(0,"mat-option",68)(1,"div",69)(2,"div",70),de(3),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," ")}}AO();const Ght={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let Yht=(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.noctuaDataService=e,this.noctuaUserService=i,this.confirmDialogService=o,this.inlineReferenceService=r,this.noctuaSearchMenuService=a,this.noctuaFormConfigService=l,this.noctuaLookupService=u,this.noctuaSearchService=f,this.SearchFilterType=sd,this.searchCriteria={},this.isDateRange=!1,this.selectedOrganism={},this.searchFormData=[],this.cams=[],this.separatorKeysCodes=[13,188],this.selectedContributors=[],this.gpNode=mu([e1]),this.termNode=mu([p1,Jl,RHe,jC,u3,l_,PO]),this.obsoleteTermNode=mu([IHe]),this._unsubscribeAll=new N,this.filterForm=this.createAnswerForm(),this._onValueChanges()}ngOnInit(){this.noctuaDataService.onOrganismsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.noctuaSearchService.organisms=e,this._onValueOrganismChanges())})}createAnswerForm(){return new td({ids:new Lo,gps:new Lo,obsoleteTerms:new Lo,terms:new Lo,pmids:new Lo,contributors:new Lo,groups:new Lo,organisms:new Lo,titles:new Lo,states:new Lo,exactdates:new Lo,startdates:new Lo,enddates:new Lo,isDateRange:new Lo,exactTerm:new Lo})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}contributorDisplayFn(e){return e?e.name:void 0}groupDisplayFn(e){return e?e.name:void 0}organismDisplayFn(e){return e?e.taxonName:void 0}stateDisplayFn(e){return e?e.name:void 0}close(){this.noctuaSearchMenuService.closeLeftDrawer()}clear(){this.noctuaSearchService.clearSearchCriteria(),this.searchInput.forEach(e=>{e.nativeElement.value=null})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}add(e,i,o=10){const r=e.input,a=e.value;this.noctuaSearchService.searchCriteria[i].length>=o?this.confirmDialogService.openInfoToast(`Reached maximum number of ${i} filters allowed`,"OK"):(a||"").trim()&&(this.noctuaSearchService.searchCriteria[i].push(i===this.SearchFilterType.ids?zh.cleanModelId(a.trim()):a.trim()),this.noctuaSearchService.updateSearch(!0),this.searchInput.forEach(l=>{l.nativeElement.value=null}),this.filterForm.controls[i].setValue("")),r&&(r.value="")}remove(e,i){const o=this.noctuaSearchService.searchCriteria[i].indexOf(e);o>=0&&(this.noctuaSearchService.searchCriteria[i].splice(o,1),this.noctuaSearchService.updateSearch())}selected(e,i){this.noctuaSearchService.searchCriteria[i].push(e.option.value),this.noctuaSearchService.updateSearch(),this.searchInput.forEach(o=>{o.nativeElement.value=null}),this.filterForm.controls[i].setValue("")}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.filterForm.controls[i]}})}downloadFilter(){this.noctuaSearchService.downloadSearchConfig()}_onValueChanges(){const e=this,i=e.noctuaLookupService.lookupFunc();this.filterForm.get("terms").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{const r=e.termNode.termLookup;i.termLookup(o,r.requestParams).subscribe(a=>{r.results=a})}),this.filterForm.get("obsoleteTerms").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{const r=e.obsoleteTermNode.termLookup;i.termLookup(o,r.requestParams).subscribe(a=>{r.results=a})}),this.filterForm.get("gps").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{const r=e.gpNode.termLookup;i.termLookup(o,r.requestParams).subscribe(a=>{r.results=a})}),this.filterForm.get("isDateRange").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{this.isDateRange=o}),this.filterForm.get("exactTerm").valueChanges.pipe(Cs(),Ks(400)).subscribe(o=>{this.noctuaSearchService.searchCriteria.expand=!o,this.noctuaSearchService.updateSearch()}),this.filteredContributors=this.filterForm.controls.contributors.valueChanges.pipe(Sc(""),it(o=>"string"==typeof o?o:o.name),it(o=>o?this.noctuaUserService.filterContributors(o):this.noctuaUserService.contributors.slice())),this.filteredGroups=this.filterForm.controls.groups.valueChanges.pipe(Sc(""),it(o=>"string"==typeof o?o:o.name),it(o=>o?this.noctuaUserService.filterGroups(o):this.noctuaUserService.groups.slice())),this.filteredStates=this.filterForm.controls.states.valueChanges.pipe(Sc(""),it(o=>"string"==typeof o?o:o.name),it(o=>o?this.noctuaSearchService.filterStates(o):this.noctuaSearchService.states.slice()))}_onValueOrganismChanges(){this.filteredOrganisms=this.filterForm.controls.organisms.valueChanges.pipe(Sc(""),it(i=>"string"==typeof i?i:i.short_name),it(i=>i?this.noctuaSearchService.filterOrganisms(i):this.noctuaSearchService.organisms.slice()))}onFileChange(e){const i=this;let o=new FileReader;if(e.target.files&&e.target.files.length){const[r]=e.target.files;o.readAsText(r),o.onload=()=>{try{let a=JSON.parse(o.result);i.noctuaSearchService.uploadSearchConfig(a)}catch(a){alert("invalid file")}}}}}return t.\u0275fac=function(e){return new(e||t)(ue(pm),ue(yr),ue(dd),ue(xm),ue(pl),ue(Co),ue(Sd),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-filter"]],viewQuery:function(e,i){if(1&e&&_o(vht,5),2&e){let o;fi(o=gi())&&(i.searchInput=o)}},features:[mo([{provide:d1,useClass:Cht,deps:[JD,_se]},{provide:Nf,useValue:Ght}])],decls:177,vars:72,consts:[["fxLayout","column","fxLayoutAlign","start stretch","name","filterForm",1,"noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-filter-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["formControlName","exactTerm","color","primary",1,"noc-checkbox"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],["fxLayout","column",1,"noc-activity-group-row"],["appearance","outline",1,"noc-sm","w-100-p"],["termChipList",""],["class","noc-form-chip","fxLayout","row","fxLayoutAlign","start center",3,"selectable","removable","matTooltip","matTooltipPosition","matTooltipShowDelay","removed",4,"ngFor","ngForOf"],["formControlName","terms","placeholder","Add Term Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput",""],[1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["termAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],["obsoleteTermChipList",""],["formControlName","obsoleteTerms","placeholder","Add Obsolete Term Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["obsoleteTermAuto","matAutocomplete"],["gpChipList",""],["formControlName","gps","placeholder","Add GP Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","gpInput",""],["gpAuto","matAutocomplete"],["pmidChipList",""],["formControlName","pmids","placeholder","Add PMID Filter",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","pmidInput",""],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],["organismChipList",""],["formControlName","organisms","placeholder","Add Organism Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","organismInput",""],["organismAuto","matAutocomplete"],["contributorChipList",""],["formControlName","contributors","placeholder","Add Contributor Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","contributorInput",""],["contributorAuto","matAutocomplete"],["groupChipList",""],["formControlName","groups","placeholder","Add Group Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","groupInput",""],["groupAuto","matAutocomplete"],["formControlName","isDateRange","color","primary",1,"noc-checkbox"],["appearance","outline","class","noc-sm w-100-p",4,"ngIf"],["class","noc-sm w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["idChipList",""],["formControlName","ids","placeholder","Add Model Id Filter",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","idInput",""],["titleChipList",""],["formControlName","titles","placeholder","Add Title Filter (only one allowed)",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","titleInput",""],["fxLayout","column",1,"noc-activity-state-row"],["stateChipList",""],["class","noc-form-chip","fxLayout","row","fxLayoutAlign","start center",3,"selectable","removable","removed",4,"ngFor","ngForOf"],["formControlName","states","placeholder","Add State Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","stateInput",""],["stateAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["for","noc-upload-filter","fxLayout","row","fxLayoutAlign","start center",1,"noc-file-upload"],["mat-icon-button","",1,"noc-file-button"],[1,"s-16","mr-4"],["type","file","id","noc-upload-filter",1,"noc-file-upload",3,"change"],["type","button","mat-icon-button","",3,"click"],["type","button","mat-raised-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-chip",3,"selectable","removable","matTooltip","matTooltipPosition","matTooltipShowDelay","removed"],["fxFlex","",1,"noc-chip-label"],["matChipRemove",""],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"],["dateChipList",""],["formControlName","exactdates","placeholder","Add Exact Date Filter",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","dateInput",""],["matSuffix","",3,"for"],["exactDatePicker",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-chip",3,"selectable","removable","removed"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-sm","w-100-p"],["appearance","outline",1,"noc-sm"],["startDateChipList",""],["formControlName","startdates","placeholder","Start Date",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["startDatePicker",""],["formControlName","enddates","placeholder","End Date",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["endDatePicker",""]],template:function(e,i){if(1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Filter By"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),de(13," Annotations "),G(),Qe(14,"span",3),H(15,"mat-checkbox",9),de(16,"Exact Term "),G()(),H(17,"div",10)(18,"div",11)(19,"mat-form-field",12)(20,"mat-label"),de(21,"Filter by Term"),G(),H(22,"mat-chip-list",null,13),ke(24,bht,5,7,"mat-chip",14),Qe(25,"input",15,16),G(),H(27,"mat-autocomplete",17,18),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.terms)}),ke(29,xht,7,3,"mat-option",19),G()()(),H(30,"div",11)(31,"mat-form-field",12)(32,"mat-label"),de(33,"Filter by Obsolete Term"),G(),H(34,"mat-chip-list",null,20),ke(36,yht,5,7,"mat-chip",14),Qe(37,"input",21,16),G(),H(39,"mat-autocomplete",17,22),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.obsoleteTerms)}),ke(41,wht,7,3,"mat-option",19),G()()(),H(42,"div",11)(43,"mat-form-field",12)(44,"mat-label"),de(45,"Filter by Gene Product"),G(),H(46,"mat-chip-list",null,23),ke(48,Mht,5,7,"mat-chip",14),Qe(49,"input",24,25),G(),H(52,"mat-autocomplete",17,26),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.gps)}),ke(54,Oht,7,3,"mat-option",19),G()()(),H(55,"div",11)(56,"mat-form-field",12)(57,"mat-label"),de(58,"Filter by Reference"),G(),H(59,"mat-chip-list",null,27),ke(61,Sht,5,6,"mat-chip",14),H(62,"input",28,29),et("matChipInputTokenEnd",function(r){return i.add(r,i.SearchFilterType.pmids)}),G(),H(65,"button",30),et("click",function(r){return i.openAddReference(r,"pmids")}),H(66,"mat-icon"),de(67,"playlist_add"),G()()()()(),H(68,"div",11)(69,"mat-form-field",12)(70,"mat-chip-list",null,31),ke(72,Pht,5,7,"mat-chip",14),Qe(73,"input",32,33),G(),H(76,"mat-autocomplete",17,34),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.organisms)}),ke(78,Tht,7,3,"mat-option",19),y0(79,"async"),G()()()()(),H(80,"div",6)(81,"div",7)(82,"div",8),de(83," Contributor "),G(),Qe(84,"span",3),G(),H(85,"div",10)(86,"div",11)(87,"mat-form-field",12)(88,"mat-label"),de(89,"Filter by Contributor"),G(),H(90,"mat-chip-list",null,35),ke(92,Eht,5,7,"mat-chip",14),Qe(93,"input",36,37),G(),H(96,"mat-autocomplete",17,38),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.contributors)}),ke(98,Aht,7,3,"mat-option",19),y0(99,"async"),G()()(),H(100,"div",11)(101,"mat-form-field",12)(102,"mat-label"),de(103,"Filter by Group"),G(),H(104,"mat-chip-list",null,39),ke(106,Lht,5,7,"mat-chip",14),Qe(107,"input",40,41),G(),H(110,"mat-autocomplete",17,42),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.groups)}),ke(112,Dht,7,3,"mat-option",19),y0(113,"async"),G()()()()(),H(114,"div",6)(115,"div",7)(116,"div",8),de(117," Model Date "),G(),Qe(118,"span",3),H(119,"mat-checkbox",43),de(120,"Date Range "),G()(),H(121,"div",10)(122,"div",11),ke(123,Iht,12,6,"mat-form-field",44),ke(124,zht,25,12,"div",45),G()()(),H(125,"div",6)(126,"div",7)(127,"div",8),de(128," Model "),G(),Qe(129,"span",3),G(),H(130,"div",10)(131,"div",11)(132,"mat-form-field",12)(133,"mat-label"),de(134,"Filter by Model Ids"),G(),H(135,"mat-chip-list",null,46),ke(137,Fht,5,6,"mat-chip",14),H(138,"input",47,48),et("matChipInputTokenEnd",function(r){return i.add(r,i.SearchFilterType.ids)}),G()()()(),H(141,"div",11)(142,"mat-form-field",12)(143,"mat-label"),de(144,"Filter by Title"),G(),H(145,"mat-chip-list",null,49),ke(147,Hht,5,6,"mat-chip",14),H(148,"input",50,51),et("matChipInputTokenEnd",function(r){return i.add(r,i.SearchFilterType.titles,1)}),G()()()(),H(151,"div",52)(152,"mat-form-field",12)(153,"mat-label"),de(154,"Filter by State"),G(),H(155,"mat-chip-list",null,53),ke(157,Vht,5,3,"mat-chip",54),Qe(158,"input",55,56),G(),H(161,"mat-autocomplete",17,57),et("optionSelected",function(r){return i.selected(r,i.SearchFilterType.states)}),ke(163,Bht,4,2,"mat-option",19),y0(164,"async"),G()()()()()(),H(165,"div",58)(166,"label",59)(167,"button",60)(168,"mat-icon",61),de(169,"cloud_upload"),G()()(),H(170,"input",62),et("change",function(r){return i.onFileChange(r)}),G(),Qe(171,"span",3),H(172,"button",63),et("click",function(){return i.downloadFilter()}),H(173,"mat-icon",61),de(174,"cloud_download"),G()(),H(175,"button",64),et("click",function(){return i.clear()}),de(176,"Clear"),G()()()),2&e){const o=Di(23),r=Di(28),a=Di(35),l=Di(40),u=Di(47),f=Di(53),M=Di(60),T=Di(71),U=Di(77),ie=Di(91),se=Di(97),Me=Di(105),we=Di(111),He=Di(136),Be=Di(146),me=Di(156),ze=Di(162);J("formGroup",i.filterForm),W(24),J("ngForOf",i.noctuaSearchService.searchCriteria.terms),W(1),J("matAutocomplete",r)("matChipInputFor",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(2),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",i.termNode.termLookup.results),W(7),J("ngForOf",i.noctuaSearchService.searchCriteria.obsoleteTerms),W(1),J("matAutocomplete",l)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(2),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",i.obsoleteTermNode.termLookup.results),W(7),J("ngForOf",i.noctuaSearchService.searchCriteria.gps),W(1),J("matAutocomplete",f)("matChipInputFor",u)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",i.gpNode.termLookup.results),W(7),J("ngForOf",i.noctuaSearchService.searchCriteria.pmids),W(1),J("matChipInputFor",M)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(10),J("ngForOf",i.noctuaSearchService.searchCriteria.organisms),W(1),J("matAutocomplete",U)("matChipInputFor",T)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.organismDisplayFn),W(2),J("ngForOf",bg(79,64,i.filteredOrganisms)),W(14),J("ngForOf",i.noctuaSearchService.searchCriteria.contributors),W(1),J("matAutocomplete",se)("matChipInputFor",ie)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.contributorDisplayFn),W(2),J("ngForOf",bg(99,66,i.filteredContributors)),W(8),J("ngForOf",i.noctuaSearchService.searchCriteria.groups),W(1),J("matAutocomplete",we)("matChipInputFor",Me)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.groupDisplayFn),W(2),J("ngForOf",bg(113,68,i.filteredGroups)),W(11),J("ngIf",!i.isDateRange),W(1),J("ngIf",i.isDateRange),W(13),J("ngForOf",i.noctuaSearchService.searchCriteria.ids),W(1),J("matChipInputFor",He)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(9),J("ngForOf",i.noctuaSearchService.searchCriteria.titles),W(1),J("matChipInputFor",Be)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(9),J("ngForOf",i.noctuaSearchService.searchCriteria.states),W(1),J("matAutocomplete",ze)("matChipInputFor",me)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),W(3),J("displayWith",i.stateDisplayFn),W(2),J("ngForOf",bg(164,70,i.filteredStates))}},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,Xp,Pl,Xl,id,yd,A6,$o,T2,Tl,kk,ed,kh,bX,I0,J1,E6,Yi,Bk,BOe,NOe],pipes:[Iy],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-checkbox[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;line-height:20px}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-right:12px;height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:16px 8px 0}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%]{padding:0;height:20px;min-height:20px;max-height:20px;font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] button[_ngcontent-%COMP%]{height:35px;min-height:35px;max-height:35px}[_nghost-%COMP%] button.noc-file-button[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] label[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-file-upload-title[_ngcontent-%COMP%]{margin-left:4px;color:#888;font-weight:700}']}),t})();function Uht(t,n){if(1&t&&(H(0,"mat-option",22)(1,"div",23)(2,"div",24),de(3),G(),Qe(4,"span",3),H(5,"div",25),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function jht(t,n){if(1&t&&(H(0,"mat-option",22)(1,"div",23)(2,"div",24),de(3),G(),Qe(4,"span",3),H(5,"div",25),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function Wht(t,n){if(1&t&&(H(0,"mat-option",22)(1,"div",23)(2,"div",24),de(3),G(),Qe(4,"span",3),H(5,"div",25),de(6),G()()()),2&t){const e=n.$implicit;J("value",e),W(3),Nt(" ",e.label," "),W(3),Nt(" ",e.id," ")}}function qht(t,n){if(1&t){const e=Ln();H(0,"button",20),et("click",function(){return Dt(e),Ae().cancel()}),de(1,' Why is the "Search" button disabled? '),G()}}let $ht=(()=>{class t{constructor(e,i,o,r){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaFormConfigService=o,this.noctuaSearchService=r,this.searchCriteria={},this.selectedOrganism={},this.searchFormData=[],this.cams=[],this.searchForm=this.createAnswerForm(),this.unsubscribeAll=new N,this.onValueChanges()}ngOnInit(){}createAnswerForm(){return new td({subject:new Lo,predicate:new Lo,object:new Lo})}onValueChanges(){this.searchForm.get("subject").valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{}),this.searchForm.get("object").valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{}),this.searchForm.get("predicate").valueChanges.pipe(Cs(),Ks(400)).subscribe(i=>{})}termDisplayFn(e){return e?e.label:void 0}contributorDisplayFn(e){return e?e.name:void 0}search(){this.noctuaSearchService.search(this.searchForm.value)}clear(){this.searchForm.controls.subject.setValue(""),this.searchForm.controls.predicate.setValue(""),this.searchForm.controls.object.setValue("")}close(){this.noctuaSearchMenuService.closeLeftDrawer()}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(pl),ue(Co),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-relation"]],decls:43,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",1,"noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-filter-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","pt-8"],["fxLayout","column",1,"noc-activity-group-row"],["appearance","outline",1,"noc-sm"],["type","text","matInput","","formControlName","subject","rows","2","placeholder","e.g. an upstream activity",3,"matAutocomplete"],[1,"noc-term-autocomplete",3,"displayWith"],["subjectAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],["type","text","matInput","","formControlName","predicate","placeholder","e.g. a causal relation","rows","2",3,"matAutocomplete"],["predicateAuto","matAutocomplete"],["type","text","matInput","","formControlName","object","placeholder","e.g. a downstream activity","rows","2",3,"matAutocomplete"],["objectAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","","color","","class","mr-8",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"]],template:function(e,i){if(1&e&&(H(0,"form",0)(1,"div",1)(2,"span",2),de(3," Search Relations"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),de(15,"Subject"),G(),Qe(16,"textarea",10),H(17,"mat-autocomplete",11,12),ke(19,Uht,7,3,"mat-option",13),G()()(),H(20,"div",8)(21,"mat-form-field",9)(22,"mat-label"),de(23,"Relation"),G(),Qe(24,"textarea",14),H(25,"mat-autocomplete",11,15),ke(27,jht,7,3,"mat-option",13),G()()(),H(28,"div",8)(29,"mat-form-field",9)(30,"mat-label"),de(31,"Object"),G(),Qe(32,"textarea",16),H(33,"mat-autocomplete",11,17),ke(35,Wht,7,3,"mat-option",13),G()()()()()(),H(36,"div",18),ke(37,qht,2,0,"button",19),Qe(38,"span",3),H(39,"button",20),et("click",function(){return i.clear()}),de(40,"Clear"),G(),H(41,"button",21),et("click",function(){return i.search()}),de(42,"Search"),G()()()),2&e){const o=Di(18),r=Di(26),a=Di(34);J("formGroup",i.searchForm),W(16),J("matAutocomplete",o),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.searchFormData.subject?null:i.searchFormData.subject.searchResults),W(5),J("matAutocomplete",r),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.searchFormData.predicate?null:i.searchFormData.predicate.searchResults),W(5),J("matAutocomplete",a),W(1),J("displayWith",i.termDisplayFn),W(2),J("ngForOf",null==i.searchFormData.object?null:i.searchFormData.object.searchResults),W(2),J("ngIf",!1)}},directives:[nd,tl,Oo,So,Gc,ko,Fo,Ir,ts,id,yd,E2,ed,kh,Pl,Xl,I0,$o,J1,Yi],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;border-right:rgba(0,0,0,.12) solid 1px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-tree-input.noc-level-0[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%]{margin:0;padding-top:20px;padding-bottom:8px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:0;bottom:auto!important;left:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] .md-errors-spacer[_ngcontent-%COMP%]{visibility:hidden;display:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function Xht(t,n){if(1&t){const e=Ln();H(0,"div",7),et("click",function(){const r=Dt(e).$implicit;return Ae().selectGroup(r)}),H(1,"div",8),de(2),G(),H(3,"mat-icon",9),de(4," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),Nt(" ",e.name," ")}}let Qht=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=o,this.formBuilder=r,this.noctuaFormConfigService=a,this.searchCriteria={},this.searchFormData=[],this.unsubscribeAll=new N,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectGroup(e){this.searchCriteria.group=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new td({term:new Lo,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(pl),ue(ld),ue(e2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-groups"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["class","noc-group-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-group-row",3,"click"],["fxFlex","",1,"noc-name"],[1,"s-24"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Browse By Groups"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"form",5),ke(10,Xht,5,1,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.noctuaUserService.groups))},directives:[Oo,So,ko,Fo,Ir,nd,tl,D0,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:0 10px;height:50px;min-height:50px;max-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}']}),t})();function Zht(t,n){if(1&t){const e=Ln();H(0,"div",7),et("click",function(){const r=Dt(e).$implicit;return Ae().selectContributor(r)}),H(1,"div",8),de(2),G(),Qe(3,"span",3),H(4,"mat-icon",9),de(5," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),Nt(" ",e.name," ")}}let Kht=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=o,this.formBuilder=r,this.noctuaFormConfigService=a,this.searchCriteria={},this.unsubscribeAll=new N,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectContributor(e){this.searchCriteria.contributor=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new td({term:new Lo,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(pl),ue(ld),ue(e2),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-contributors"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["class","noc-contributor-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-contributor-row",3,"click"],["fxFlex","",1,"noc-name"],[1,"s-24"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Browse By Contributors"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"form",5),ke(10,Zht,6,1,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.noctuaUserService.contributors))},directives:[Oo,So,ko,Fo,Ir,nd,tl,D0,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 20px 0 10px;height:50px;min-height:50px;max-height:50px;border-bottom:#999 solid 1px;margin-bottom:5px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%] .noc-comparison-toggle[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px;height:50px;min-height:50px;max-height:50px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-expansion-panel-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%]{padding:0 10px;height:50px;min-height:50px;max-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}']}),t})();function Jht(t,n){if(1&t){const e=Ln();H(0,"div",7),et("click",function(){const r=Dt(e).$implicit;return Ae().selectOrganism(r)}),H(1,"div",8),de(2),G(),Qe(3,"div",9)(4,"span",3),H(5,"mat-icon",10),de(6," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),Nt(" ",e.taxonName," ")}}let e0t=(()=>{class t{constructor(e,i,o,r,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.formBuilder=o,this.noctuaFormConfigService=r,this.noctuaSearchService=a,this.searchCriteria={},this.searchFormData=[],this.unsubscribeAll=new N,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectOrganism(e){this.searchCriteria.organism=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new td({term:new Lo,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(pl),ue(e2),ue(Co),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-organisms"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["fxFlex","","class","noc-organism-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-organism-row",3,"click"],[1,"noc-name"],["fxLayout","column","fxLayoutAlign","center center",1,"w-100-p"],[1,"s-24"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Browse By Species"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"form",5),ke(10,Jht,7,1,"div",6),G()()),2&e&&(W(10),J("ngForOf",i.noctuaSearchService.organisms))},directives:[Oo,So,ko,Fo,Ir,nd,tl,D0,ts,$o],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%]{padding:8px 10px;min-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}']}),t})();const t0t=function(t){return["fas",t]};function n0t(t,n){if(1&t&&Qe(0,"fa-icon",15),2&t){const e=Ae().$implicit;J("icon",wo(1,t0t,e.icon))}}function i0t(t,n){if(1&t&&(H(0,"div",13),ke(1,n0t,1,3,"fa-icon",14),de(2),G()),2&t){const e=n.$implicit;W(1),J("ngIf",e.icon),W(1),Nt(" ",e.value," ")}}function o0t(t,n){if(1&t){const e=Ln();H(0,"div",9),et("click",function(){const r=Dt(e).$implicit;return Ae().selectSearch(r)}),H(1,"div",10),ke(2,i0t,3,2,"div",11),G(),Qe(3,"span",3),H(4,"mat-icon",12),de(5," chevron_right "),G()()}if(2&t){const e=n.$implicit;W(2),J("ngForOf",e.displaySections)}}let r0t=(()=>{class t{constructor(e,i,o,r){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=o,this.noctuaFormConfigService=r,this.searchCriteria={},this.searchHistory=[],this._unsubscribeAll=new N}ngOnInit(){this.noctuaSearchService.onSearchHistoryChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.searchHistory=e})}selectSearch(e){this.noctuaSearchService.searchCriteria=e.getSearchCriteria(),this.noctuaSearchService.updateSearch(!0,!1)}clear(){this.noctuaSearchService.clearHistory()}close(){this.noctuaSearchMenuService.closeLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(yr),ue(pl),ue(ld),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-search-history"]],decls:15,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-group-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-group-row",3,"click"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-history-item",4,"ngFor","ngForOf"],[1,"s-24"],[1,"noc-history-item"],[3,"icon",4,"ngIf"],[3,"icon"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"span",2),de(3," Search History"),G(),Qe(4,"span",3),H(5,"button",4),et("click",function(){return i.close()}),H(6,"mat-icon"),de(7,"close"),G(),de(8," CLOSE "),G()(),H(9,"div",5),ke(10,o0t,6,1,"div",6),G(),H(11,"div",7),Qe(12,"span",3),H(13,"button",8),et("click",function(){return i.clear()}),de(14,"Clear Search"),G()()()),2&e&&(W(10),J("ngForOf",i.searchHistory))},directives:[Oo,So,ko,Fo,Ir,ts,$o,Yi,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:12px 10px;min-height:40px;max-height:300px;border-bottom:#BBB solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-history-item[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:100%;min-width:100%;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function a0t(t,n){1&t&&(H(0,"div",12),de(1," Log in to Continue "),G())}function s0t(t,n){if(1&t&&Qe(0,"mat-progress-bar",25),2&t){const e=Ae(2);J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function c0t(t,n){if(1&t){const e=Ln();H(0,"div",26)(1,"div",19),de(2,"Modified Model: "),G(),Qe(3,"span",4),H(4,"button",27),et("click",function(o){Dt(e);const r=Ae().$implicit;return Ae().reviewCamChanges(r),o.stopPropagation()}),de(5),G(),H(6,"button",28),et("click",function(o){Dt(e);const r=Ae().$implicit;return Ae().resetCam(r),o.stopPropagation()}),de(7," Undo "),G(),H(8,"button",29),et("click",function(o){Dt(e);const r=Ae().$implicit;return Ae().submitChange(r),o.stopPropagation()}),de(9," Save "),G()()}if(2&t){const e=Ae().$implicit;W(4),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",null==e.modifiedStats?null:e.modifiedStats.totalChanges," change(s) "),W(1),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("matTooltipPosition","below")("matTooltipShowDelay",1e3)}}function l0t(t,n){if(1&t&&(H(0,"div",36),de(1),G()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Nt(" ",e.name?e.name:e.orcid,"; ")}}function d0t(t,n){if(1&t&&(H(0,"span",37)(1,"div",38),de(2),G()()),2&t){const e=n.$implicit;Ro("matTooltip",e.name),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),Nt(" ",e.name?e.name:e.url," ")}}function u0t(t,n){if(1&t&&(H(0,"div",30)(1,"div",18)(2,"div",19),de(3,"Contributors:"),G(),ke(4,l0t,2,4,"div",31),G(),H(5,"div",18)(6,"div",19),de(7,"Groups:"),G(),ke(8,d0t,3,4,"span",32),G(),H(9,"div",20)(10,"div",19),de(11,"Open In:"),G(),H(12,"a",33),de(13," Pathway Editor "),G(),H(14,"span"),de(15,"\u2022"),G(),H(16,"a",34),de(17," Form Editor "),G(),H(18,"span"),de(19,"\u2022"),G(),H(20,"a",35),de(21," Graph Editor "),G()()()),2&t){const e=Ae().$implicit;W(4),J("ngForOf",e.contributors),W(4),J("ngForOf",e.groups),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaVPEUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao),W(4),J("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)}}const h0t=function(){return["fas","angle-double-down"]};function p0t(t,n){1&t&&(H(0,"span"),de(1,"More Details "),Qe(2,"fa-icon",39),G()),2&t&&(W(2),J("icon",_i(1,h0t)))}const f0t=function(){return["fas","angle-double-up"]};function g0t(t,n){1&t&&(H(0,"span"),de(1,"Less Details "),Qe(2,"fa-icon",39),G()),2&t&&(W(2),J("icon",_i(1,f0t)))}const m0t=function(t){return{"noc-selected":t}};function _0t(t,n){if(1&t){const e=Ln();H(0,"div",13),et("click",function(){const r=Dt(e).$implicit;return Ae().selectItem(r)}),ke(1,s0t,1,2,"mat-progress-bar",14),ke(2,c0t,10,7,"div",15),H(3,"div",16)(4,"div",17)(5,"div",18)(6,"div",19),de(7,"Title:"),G(),de(8),G(),H(9,"div",20)(10,"div",19),de(11,"State:"),G(),de(12),G(),ke(13,u0t,22,5,"div",21),H(14,"div",22)(15,"a",23),et("click",function(o){const a=Dt(e).$implicit;return o.stopPropagation(),a.moreDetail=!a.moreDetail}),ke(16,p0t,3,2,"span",11),ke(17,g0t,3,2,"span",11),G()()(),Qe(18,"span",4),H(19,"button",24),et("click",function(){const r=Dt(e).$implicit;return Ae().remove(r)}),de(20,"X"),G()()()}if(2&t){const e=n.$implicit,i=Ae();Ro("id","noc-basket-"+e.displayId),J("ngClass",wo(9,m0t,e.id===(null==i.camService.currentMatch?null:i.camService.currentMatch.modelId))),W(1),J("ngIf",e.loading.status),W(1),J("ngIf",e.modified),W(6),Nt(" ",e.title," "),W(4),Nt(" ",null==e.state?null:e.state.label," "),W(1),J("ngIf",e.moreDetail),W(3),J("ngIf",!e.moreDetail),W(1),J("ngIf",e.moreDetail)}}function C0t(t,n){if(1&t){const e=Ln();er(0),H(1,"button",40),et("click",function(){return Dt(e),Ae().clear()}),de(2,"Clear List"),G(),tr()}}function v0t(t,n){if(1&t){const e=Ln();er(0),H(1,"button",40),et("click",function(){return Dt(e),Ae().clear()}),de(2,"Clear List"),G(),Qe(3,"span",4),H(4,"button",41),et("click",function(){return Dt(e),Ae().resetCams()}),de(5,"Undo Changes"),G(),H(6,"button",42),et("click",function(){return Dt(e),Ae().reviewChanges()}),de(7," Review Changes "),G(),tr()}}function b0t(t,n){if(1&t){const e=Ln();er(0),Qe(1,"span",4),H(2,"button",41),et("click",function(){return Dt(e),Ae().backToReview()}),de(3,"Back"),G(),H(4,"button",42),et("click",function(){return Dt(e),Ae().submitChanges()}),de(5," Submit "),G(),tr()}}let x0t=(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.zone=e,this.camService=i,this.confirmDialogService=o,this.noctuaSearchDialogService=r,this.noctuaUserService=a,this.noctuaReviewSearchService=l,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=M,this.MiddlePanel=fa,this.artBasket=new C_,this.cams=[],this.loadingSpinner={color:"primary",mode:"indeterminate"},this._unsubscribeAll=new N}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)}),this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e)}),this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}backToReview(){this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview)}clear(){var e;const i=this,o=r=>{r&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaReviewSearchService.clear(),this.camService.clearCams(),this.noctuaReviewSearchService.clearBasket())};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(o,i.summary,{title:"Confirm Clear Basket?",message:"You are about to remove all items from the basket. Please save changes or undo changes.",cancelLabel:"Go Back",confirmLabel:"Clear Anyway"}):this.confirmDialogService.openConfirmDialog("Confirm Clear Basket?","You are about to remove all items from the basket.",o,{cancelLabel:"No",confirmLabel:"Yes"})}close(){this.noctuaSearchMenuService.closeLeftDrawer()}remove(e){const i=this,o=i.camService.reviewCamChanges(e),r=a=>{a&&this.noctuaReviewSearchService.removeCamFromReview(e)};(null==o?void 0:o.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(r,o,{title:"Removing Unsaved Model",message:`Please save changes or undo changes before removing model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"Remove Anyway"}):this.confirmDialogService.openConfirmDialog("Removing Unsaved Model?",`You are about to remove model from the basket. No changes were made. Model Name:"${e.title}"`,r,{cancelLabel:"No",confirmLabel:"Yes"})}resetCam(e){const i=this,o=i.camService.reviewCamChanges(e),r=a=>{a&&i._resetCamsQuery([e])};(null==o?void 0:o.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(r,o,{title:"Discard Unsaved Changes",message:`All your changes will be discarded for model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"OK"}):r(!0)}resetCams(){var e;const i=this,o=r=>{r&&i._resetCamsQuery(i.camService.cams)};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(o,i.summary,{title:"Discard Unsaved Changes",message:"All your changes will be discarded.",cancelLabel:"Cancel",confirmLabel:"OK"}):o(!0)}reviewChanges(){this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(fa.reviewChanges)}reviewCamChanges(e){const r=this.camService.reviewCamChanges(e);this.noctuaSearchDialogService.openCamReviewChangesDialog(a=>{},r)}selectItem(e){this.camService.onSelectedCamChanged.next(e.id),this.noctuaSearchMenuService.scrollTo("#noc-review-cams-"+e.displayId)}submitChanges(){var e;const i=this,o=r=>{r&&(i.noctuaSearchMenuService.scrollToTop(),i._storeCamsQuery(i.camService.cams,!0),this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview))};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0&&i.noctuaSearchDialogService.openCamReviewChangesDialog(o,i.summary,{title:"Save Changes?",message:"Bulk edit all changes",cancelLabel:"Go Back",confirmLabel:"Submit"})}submitChange(e){const i=this,o=i.camService.reviewCamChanges(e);if((null==o?void 0:o.stats.totalChanges)>0){const r=l=>{l&&i._storeCamsQuery([e])};i.noctuaSearchDialogService.openCamReviewChangesDialog(r,o,{title:"Save Changes?",message:`All your changes will be saved for model. Model Name:"${e.title}"`,cancelLabel:"Go Back",confirmLabel:"Submit"})}}_storeCamsQuery(e,i=!1){this.noctuaReviewSearchService.reloadCams(e,this.camService.cams,Cu.STORE,i)}_resetCamsQuery(e,i=!1){this.noctuaReviewSearchService.reloadCams(e,this.camService.cams,Cu.RESET,i)}}return t.\u0275fac=function(e){return new(e||t)(ue(oo),ue(Zr),ue(dd),ue(U0),ue(yr),ue(k1),ue(pl),ue(ld),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-art-basket"]],decls:18,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"pt-4","px-12"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["class","noc-group-row","fxLayout","column","fxLayoutAlign","start stretch",3,"id","ngClass","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],[4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-row",3,"id","ngClass","click"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["class","noc-modified-header w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],["class","w-100-p",4,"ngIf"],[1,"noc-item"],[1,"noc-more-details-button",3,"click"],["mat-icon-button","","color","warn",1,"noc-remove-button",3,"click"],[1,"noc-cam-progress",3,"color","mode"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-modified-header","w-100-p"],["mat-stroked-button","","color","primary","matTooltip","View Model Changes",1,"noc-rounded-button","noc-half-button","noc-r","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-stroked-button","","color","primary","matTooltip","Undo Model Changes",1,"noc-rounded-button","noc-half-button","noc-m","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-stroked-button","","color","primary","matTooltip","Save Model Changes",1,"noc-rounded-button","noc-half-button","noc-l","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],[3,"icon"],["type","button","mat-raised-button","",3,"click"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","submit","mat-raised-button","","color","primary",1,"",3,"click"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),de(4," Annotation Review"),G(),Qe(5,"span",4),H(6,"button",5),et("click",function(){return i.close()}),H(7,"mat-icon"),de(8,"close"),G(),de(9," CLOSE "),G()(),Qe(10,"noc-review-form",6),G(),H(11,"div",7),ke(12,a0t,2,0,"div",8),ke(13,_0t,21,11,"div",9),G(),H(14,"div",10),ke(15,C0t,3,0,"ng-container",11),ke(16,v0t,8,0,"ng-container",11),ke(17,b0t,6,0,"ng-container",11),G()()),2&e&&(W(12),J("ngIf",!i.noctuaUserService.user),W(1),J("ngForOf",i.cams),W(2),J("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.cams),W(1),J("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.camsReview),W(1),J("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.reviewChanges))},directives:[Oo,So,ko,Fo,Ir,wne,ts,Yi,$o,ds,ac,G9,Tl,ps],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:280px;min-height:280px;max-height:280px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#BBB solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{position:relative;min-height:40px;max-height:500px;border-bottom:#CCC solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function y0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",44),et("click",function(){return Dt(e),Ae().reset()}),de(1," Clear All "),G()}}function w0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.ids)}),de(1," Model IDs: "),H(2,"span"),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.ids.length,")")}}function M0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.gps)}),de(1," GPs: "),H(2,"span"),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.gps.length,")")}}function O0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.terms)}),de(1," GO Terms: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.terms.length,")")}}function S0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.contributors)}),de(1," Contributors: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.contributors.length,")")}}function P0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.groups)}),de(1," Groups: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.groups.length,")")}}function T0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.organisms)}),de(1," Species: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.organisms.length,")")}}function E0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.pmids)}),de(1," References: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.pmids.length,")")}}function A0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.states)}),de(1," Model States: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.states.length,")")}}function L0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",45),et("click",function(){Dt(e);const o=Ae();return o.openLeftDrawer(o.LeftPanel.filter)})("removed",function(){Dt(e);const o=Ae();return o.noctuaSearchService.removeFilterType(o.SearchFilterType.exactdates)}),de(1," Date Modified: "),H(2,"span",47),de(3),G(),H(4,"mat-icon",46),de(5,"cancel"),G()()}if(2&t){const e=Ae();J("removable",!0),W(3),Nt(" (",e.noctuaSearchService.searchCriteria.exactdates.length,")")}}function D0t(t,n){if(1&t&&Qe(0,"mat-progress-bar",48),2&t){const e=Ae();J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function k0t(t,n){if(1&t){const e=Ln();H(0,"mat-paginator",49,50),et("page",function(o){Dt(e);const r=Ae();return r.pageEvent=o,r.setPage(o)}),G()}if(2&t){const e=Ae();J("length",e.camPage.total)("pageIndex",e.camPage.pageNumber)("pageSize",e.camPage.size)("pageSizeOptions",e.camPage.pageSizeOptions)("showFirstLastButtons",!0)}}function I0t(t,n){1&t&&Qe(0,"th",51)}function N0t(t,n){if(1&t){const e=Ln();H(0,"td",52)(1,"mat-checkbox",53),et("click",function(o){return o.stopPropagation()})("change",function(o){const a=Dt(e).$implicit,l=Ae();return o?l.toggleSelection(a):null}),G()()}if(2&t){const e=n.$implicit,i=Ae();W(1),J("checked",i.selection.isSelected(e))("aria-label",i.checkboxLabel(e))}}function R0t(t,n){1&t&&Qe(0,"th",54)}const z0t=function(){return["fas","caret-right"]};function F0t(t,n){1&t&&Qe(0,"fa-icon",59),2&t&&J("icon",_i(1,z0t))}const H0t=function(){return["fas","caret-down"]};function V0t(t,n){1&t&&Qe(0,"fa-icon",59),2&t&&J("icon",_i(1,H0t))}function B0t(t,n){if(1&t){const e=Ln();H(0,"td",55)(1,"button",56),et("click",function(){const r=Dt(e).$implicit;return Ae().toggleCamExpand(r)}),ke(2,F0t,1,2,"fa-icon",57),ke(3,V0t,1,2,"fa-icon",57),G(),H(4,"div",58),de(5),G()()}if(2&t){const e=n.$implicit;W(2),J("ngIf",!e.expanded),W(1),J("ngIf",e.expanded),W(2),Nt(" ",e.displayNumber," ")}}function G0t(t,n){1&t&&(H(0,"th",60),de(1," Title "),G())}function Y0t(t,n){if(1&t&&(H(0,"td",61),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.title," ")}}function U0t(t,n){1&t&&(H(0,"th",62),de(1,"Saved"),G())}const j0t=function(){return["far","times-circle"]};function W0t(t,n){1&t&&Qe(0,"fa-icon",66),2&t&&J("icon",_i(1,j0t))}const q0t=function(){return["far","check-circle"]};function $0t(t,n){1&t&&Qe(0,"fa-icon",67),2&t&&J("icon",_i(1,q0t))}function X0t(t,n){if(1&t&&(H(0,"td",63),ke(1,W0t,1,2,"fa-icon",64),ke(2,$0t,1,2,"fa-icon",65),G()),2&t){const e=n.$implicit;W(1),J("ngIf",e.modified),W(1),J("ngIf",!e.modified)}}function Q0t(t,n){1&t&&(H(0,"th",68),de(1,"State"),G())}const Z0t=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},K0t=function(){return["fas","tasks"]};function J0t(t,n){if(1&t){const e=Ln();H(0,"mat-chip",71),et("click",function(){Dt(e);const o=Ae().$implicit,r=Ae();return r.noctuaSearchService.filter(r.SearchFilterType.states,o.state)}),H(1,"div",72),Qe(2,"fa-icon",59),G(),H(3,"div",73),de(4),G()()}if(2&t){const e=Ae().$implicit;J("ngClass",M2(5,Z0t,"development"===e.state.name,"production"===e.state.name,"review"===e.state.name))("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(9,K0t)),W(2),Nt(" ",e.state.label," ")}}function ept(t,n){if(1&t&&(H(0,"td",69),ke(1,J0t,5,10,"mat-chip",70),G()),2&t){const e=n.$implicit;W(1),J("ngIf",e.state)}}function tpt(t,n){1&t&&(H(0,"th",74),de(1," Date Modified "),G())}const npt=function(){return["fas","calendar-day"]};function ipt(t,n){if(1&t){const e=Ln();H(0,"td",75)(1,"mat-chip",76),et("click",function(){const r=Dt(e).$implicit,a=Ae();return a.noctuaSearchService.filter(a.SearchFilterType.exactdates,r.date)}),H(2,"div",72),Qe(3,"fa-icon",59),G(),H(4,"div",73),de(5),G()()()}if(2&t){const e=n.$implicit;W(1),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(4,npt)),W(2),Nt(" ",e.date," ")}}function opt(t,n){1&t&&(H(0,"th",77),de(1,"Contributors"),G())}function rpt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",80),et("click",function(){const r=Dt(e).$implicit,a=Ae(2);return a.noctuaSearchService.filter(a.SearchFilterType.contributors,r)}),H(1,"div",81),de(2),G(),H(3,"div",73),de(4),G()()}if(2&t){const e=n.$implicit;Br("border-color",e.color),xf("matTooltip","Add ",e.name," to Filters"),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Br("background-color",e.color),W(1),Nt(" ",e.initials," "),W(2),Nt(" ",e.name?e.name:e.orcid," ")}}function apt(t,n){if(1&t&&(H(0,"td",78)(1,"mat-chip-list"),ke(2,rpt,5,9,"mat-chip",79),G()()),2&t){const e=n.$implicit;W(2),J("ngForOf",e.contributors)}}function spt(t,n){1&t&&(H(0,"th",82),de(1,"Open In"),G())}const cpt=function(){return["fas","list-alt"]},lpt=function(){return["fas","sitemap"]};function dpt(t,n){if(1&t){const e=Ln();H(0,"td",83)(1,"a",84),Qe(2,"img",85),G(),H(3,"a",86),Qe(4,"fa-icon",59),G(),H(5,"a",87),Qe(6,"fa-icon",59),G(),H(7,"a",88)(8,"mat-icon"),de(9,"more_horiz"),G()(),H(10,"mat-menu",null,89)(12,"a",90),de(13," Standard Annotations "),G(),H(14,"a",90),de(15," Alliance Pathway Preview "),G(),H(16,"button",91),et("click",function(){const r=Dt(e).$implicit;return Ae().openCamForm(r)}),de(17," Model Info "),G(),H(18,"button",91),et("click",function(){const r=Dt(e).$implicit;return Ae().openCopyModel(r)}),de(19," Copy Model "),G(),H(20,"button",92),de(21," Export As "),G()(),H(22,"mat-menu",null,93)(24,"a",94),de(25," GPAD "),G(),H(26,"a",94),de(27," OWL "),G()()()}if(2&t){const e=n.$implicit,i=Di(11),o=Di(23);W(1),J("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-visual-pathway-editor"]?null:e.model.modelInfo.workbenches["noctua-visual-pathway-editor"].url,ao)("matTooltipPosition","above")("matTooltipShowDelay",1500),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao)("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(18,cpt)),W(1),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)("matTooltipPosition","above")("matTooltipShowDelay",1500),W(1),J("icon",_i(19,lpt)),W(1),J("matMenuTriggerFor",i),W(5),J("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-standard-annotations"]?null:e.model.modelInfo.workbenches["noctua-standard-annotations"].url,ao),Un("data-cy","open-standard-annotation-button"),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-alliance-pathway-preview"]?null:e.model.modelInfo.workbenches["noctua-alliance-pathway-preview"].url,ao),W(6),J("matMenuTriggerFor",o),W(4),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.gpadUrl,ao),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.owlUrl,ao)}}function upt(t,n){if(1&t&&Qe(0,"mat-progress-bar",48),2&t){const e=Ae(2);J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function hpt(t,n){if(1&t&&Qe(0,"noc-cam-table",98),2&t){const e=Ae().$implicit,i=Ae();J("cam",e)("options",i.tableOptions)}}function ppt(t,n){if(1&t&&(H(0,"td",95)(1,"div",96),ke(2,upt,1,2,"mat-progress-bar",6),ke(3,hpt,1,2,"noc-cam-table",97),G()()),2&t){const e=n.$implicit;Un("colspan",Ae().displayedColumns.length),W(2),J("ngIf",e.loading.status),W(1),J("ngIf",e.expanded)}}function fpt(t,n){1&t&&Qe(0,"tr",99)}function gpt(t,n){if(1&t&&(H(0,"tr",100),et("click",function(i){return i.stopPropagation()}),G()),2&t){const e=n.$implicit;Ro("id",Ae().cleanId(e.id))}}function mpt(t,n){1&t&&Qe(0,"tr",101),2&t&&J("@detailExpand",n.$implicit.expanded?"expanded":"collapsed")}function _pt(t,n){1&t&&(H(0,"div",102),de(1," no results yet. "),G())}const Cpt=function(t){return{"noc-review-mode":t}},vpt=function(){return{value:"50"}},bpt=function(){return["expandedDetail"]};function xpt(){const t=new z6;return t.itemsPerPageLabel="GO CAMs per page:",t}let ypt=(()=>{class t{constructor(e,i,o,r,a,l,u){this.camService=e,this.noctuaReviewSearchService=i,this.noctuaFormConfigService=o,this.noctuaCommonMenuService=r,this.noctuaSearchMenuService=a,this.noctuaUserService=l,this.noctuaSearchService=u,this.SearchFilterType=sd,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.displayedColumns=[],this.searchCriteria={},this.searchFormData=[],this.cams=[],this.tableOptions={displayType:k2.TREE,slimViewer:!1},this.selection=new Qu(!0,[]),this._unsubscribeAll=new N,this.selection.sort()}set isReviewMode(e){this._isReviewMode=e,this.initTable(this._isReviewMode)}get isReviewMode(){return this._isReviewMode}initTable(e){this.displayedColumns=["expand","title","saved","state","date","contributor","edit"],e&&this.displayedColumns.unshift("select")}ngOnInit(){this.noctuaSearchService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e,this.preCheck())}),this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||this.preCheck()}),this.noctuaSearchService.onCamsPageChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{!e||(this.camPage=e)}),this.noctuaReviewSearchService.onResetReview.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.camService.clearCams(),this.selection.clear())}),this.noctuaReviewSearchService.onReplaceChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&this.refresh()})}isAllSelected(){return this.selection.selected.length===this.cams.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.cams.forEach(e=>this.selection.select(e))}toggleSelection(e){this.selection.toggle(e),this.selection.isSelected(e)?this.addToReview(e):this.noctuaReviewSearchService.removeCamFromReview(e)}preCheck(){const e=this;this.selection.clear(),(0,Zt.each)(e.cams,i=>{(0,Zt.find)(e.camService.cams,{id:i.id})&&e.selection.select(i)})}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:(this.isAllSelected()?"select":"deselect")+" all"}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e)}search(){this.noctuaSearchService.search(this.searchForm.value)}getStateClass(e){return{"noc-development":"development"===e,"noc-production":"production"===e,"noc-review":"review"===e}}setPage(e){if(this.camPage){let i=e.pageIndex;this.noctuaSearchService.searchCriteria.camPage.size>e.pageSize&&(i=0),this.noctuaSearchService.getPage(i,e.pageSize)}}isExpansionDetailRow(e,i){return i.expanded}toggleCamExpand(e){e.expanded?e.expanded=!1:this.openCam(e)}addToReview(e){this.noctuaReviewSearchService.addCamsToReview([e],this.camService.cams),this.noctuaReviewSearchService.addToArtBasket(e.id,e.title)}openCam(e){this.camService.loadCam(e),e.expanded=!0,this.camService.cam=e,this.camService.onCamChanged.next(e)}openCamForm(e){this.camService.cam=e,this.camService.initializeForm(e),this.camService.onCamChanged.next(e),this.openRightDrawer(Fh.camForm)}openCopyModel(e){this.camService.loadCamMeta(e),this.camService.cam=e,this.camService.onCamChanged.next(e),this.openRightDrawer(Fh.copyModel)}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}cleanId(e){return Y0.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(k1),ue(Co),ue(ul),ue(pl),ue(yr),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-table"]],inputs:{isReviewMode:"isReviewMode"},features:[mo([{provide:z6,useValue:xpt()}])],decls:57,vars:26,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cams-result","noc-drawer-body",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-filter-bar"],[1,"mr-12"],["class","noc-clearall-chip",3,"click",4,"ngIf"],["class","noc-filter-chip",3,"removable","click","removed",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-results-bar"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"ml-8","mr-16"],["mat-stroked-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-sm","noc-r"],["mat-stroked-button","","color","primary","matTooltip","Refresh Search",1,"noc-rounded-button","noc-half-button","noc-sm","noc-l",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,""],["fxFlex",""],["class","noc-paginator",3,"length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"noc-cams-table",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","fxFlex","30px",4,"matHeaderCellDef"],["class","noc-checkbox-cell","mat-cell","","fxFlex","30px",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","class","noc-expand-cell","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","200px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","saved"],["mat-header-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","50px","class","noc-model-saved pr-12","fxLayout","row","fxLayoutAlign","center center",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","110px","class","noc-model-state pr-12","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","class","noc-date","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","contributor"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","edit"],["mat-header-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","expandedDetail"],["class","p-0","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"id","click",4,"matRowDef","matRowDefColumns"],["mat-row","","style","overflow: hidden",4,"matRowDef","matRowDefColumns"],["class","noc-no-info",4,"ngIf"],[1,"noc-clearall-chip",3,"click"],[1,"noc-filter-chip",3,"removable","click","removed"],["matChipRemove",""],[1,"noc-filter-number"],[1,"noc-cam-progress",3,"color","mode"],[1,"noc-paginator",3,"length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page"],["paginatorBottom",""],["mat-header-cell","","fxFlex","30px"],["mat-cell","","fxFlex","30px",1,"noc-checkbox-cell"],[3,"checked","aria-label","click","change"],["mat-header-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",1,"noc-expand-cell"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","mr-8"],[3,"icon"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","center center",1,"noc-model-saved","pr-12"],["class","red-500-fg",3,"icon",4,"ngIf"],["class","green-500-fg",3,"icon",4,"ngIf"],[1,"red-500-fg",3,"icon"],[1,"green-500-fg",3,"icon"],["mat-header-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state","pr-12"],["class","noc-table-chip noc-state-chip","fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",1,"noc-table-chip","noc-state-chip",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["mat-header-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add date to exact date filter",1,"noc-table-chip","noc-date-chip",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","borderColor","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon","noc-icon-initials"],["mat-header-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","target","_blank","matTooltip","Pathway Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-r",3,"href","matTooltipPosition","matTooltipShowDelay"],["width","15","src","assets/icons/pathway.png"],["mat-icon-button","","target","_blank","matTooltip","Form Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","mr-4","noc-half-button","noc-m",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","target","_blank","matTooltip","Graph Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-m",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","color","primary",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-l",3,"matMenuTriggerFor"],["optionsMenu","matMenu"],["mat-menu-item","","target","_blank",1,"",3,"href"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","",1,"",3,"matMenuTriggerFor"],["exportMenu","matMenu"],["target","_blank","mat-menu-item","",3,"href"],["mat-cell","",1,"p-0"],[1,"noc-cam-table-container"],[3,"cam","options",4,"ngIf"],[3,"cam","options"],["mat-header-row",""],["mat-row","",3,"id","click"],["mat-row","",2,"overflow","hidden"],[1,"noc-no-info"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"small",2),de(3,"Filtered By: "),G(),ke(4,y0t,2,0,"mat-chip",3),ke(5,w0t,6,2,"mat-chip",4),ke(6,M0t,6,2,"mat-chip",4),ke(7,O0t,6,2,"mat-chip",4),ke(8,S0t,6,2,"mat-chip",4),ke(9,P0t,6,2,"mat-chip",4),ke(10,T0t,6,2,"mat-chip",4),ke(11,E0t,6,2,"mat-chip",4),ke(12,A0t,6,2,"mat-chip",4),ke(13,L0t,6,2,"mat-chip",4),G(),H(14,"div",5),ke(15,D0t,1,2,"mat-progress-bar",6),H(16,"small"),de(17,"Results:"),G(),H(18,"div",7)(19,"button",8),de(20),G(),H(21,"button",9),et("click",function(){return i.refresh()}),H(22,"mat-icon",10),de(23," youtube_searched_for "),G()()(),Qe(24,"span",11),ke(25,k0t,2,5,"mat-paginator",12),G(),H(26,"table",13),er(27,14),ke(28,I0t,1,0,"th",15),ke(29,N0t,2,2,"td",16),tr(),er(30,17),ke(31,R0t,1,0,"th",18),ke(32,B0t,6,3,"td",19),tr(),er(33,20),ke(34,G0t,2,0,"th",21),ke(35,Y0t,2,1,"td",22),tr(),er(36,23),ke(37,U0t,2,0,"th",24),ke(38,X0t,3,2,"td",25),tr(),er(39,26),ke(40,Q0t,2,0,"th",27),ke(41,ept,2,1,"td",28),tr(),er(42,29),ke(43,tpt,2,0,"th",30),ke(44,ipt,6,5,"td",31),tr(),er(45,32),ke(46,opt,2,0,"th",33),ke(47,apt,3,1,"td",34),tr(),er(48,35),ke(49,spt,2,0,"th",36),ke(50,dpt,28,20,"td",37),tr(),er(51,38),ke(52,ppt,4,3,"td",39),tr(),ke(53,fpt,1,0,"tr",40),ke(54,gpt,1,1,"tr",41),ke(55,mpt,1,1,"tr",42),G(),ke(56,_pt,2,0,"div",43),G()),2&e&&(J("ngClass",wo(22,Cpt,i.isReviewMode)),W(4),J("ngIf",(null==i.noctuaSearchService||null==i.noctuaSearchService.searchCriteria?null:i.noctuaSearchService.searchCriteria.filtersCount)>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.ids.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.gps.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.terms.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.contributors.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.groups.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.organisms.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.pmids.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.states.length>0),W(1),J("ngIf",i.noctuaSearchService.searchCriteria.exactdates.length>0),W(2),J("ngIf",i.noctuaSearchService.loading),W(5),Nt(" ",null==i.camPage?null:i.camPage.total," "),W(1),J("matTooltipPosition","above")("matTooltipShowDelay",1e3),W(4),J("ngIf",i.camPage),W(1),J("dataSource",i.cams)("@animateStagger",_i(24,vpt)),W(27),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns),W(1),J("matRowDefColumns",_i(25,bpt)),W(1),J("ngIf",0===(null==i.cams?null:i.cams.length)))},directives:[Oo,So,ds,ac,Yi,T2,Ir,kk,G9,Fo,Tl,ko,gPe,$g,Zf,Qf,Kf,Xf,Jf,Xp,ps,A6,$o,V9,il,Ql,nl,eP,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#f7f7f7}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-hide-column[_ngcontent-%COMP%]{visibility:hidden;overflow:hidden;display:none;width:0!important;min-width:0!important;max-width:0!important}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;width:100%;min-width:100%;max-width:100%;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%]{position:sticky;top:31px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-search-table-header[_ngcontent-%COMP%]{position:absolute;top:0;right:0;left:0;z-index:1000;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-search-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ccc solid 1px;background-color:#ccc3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#888;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ccc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon.noc-icon-initials[_ngcontent-%COMP%]{font-size:10px;color:#000}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%]{background-color:#f7f7f7;font-size:12px;width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;padding-bottom:300px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cams-table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cams-table[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;font-weight:700}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{position:sticky;top:72px;background-color:#fff;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;z-index:10}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:6px;padding-bottom:6px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-checkbox-cell[_ngcontent-%COMP%]{padding-left:16px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-expand-cell[_ngcontent-%COMP%]{position:relative;padding-left:8px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-expand-cell[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:70px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]:before{position:absolute;top:0;left:52px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:12px;padding-left:12px;padding-right:10px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-model-saved[_ngcontent-%COMP%]{font-size:18px;padding-left:12px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{top:101px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%]{top:131px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{top:172px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]{padding-left:100px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]:before{left:82px}'],data:{animation:[sc,na("detailExpand",[cr("collapsed",ti({height:"0px",minHeight:"0",visibility:"hidden"})),cr("expanded",ti({height:"*",visibility:"visible"})),Do("expanded <=> collapsed",Mo("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();function wpt(t,n){1&t&&(H(0,"div",8),de(1," Log in to Continue "),G())}function Mpt(t,n){if(1&t&&Qe(0,"mat-progress-bar",23),2&t){const e=Ae(2);J("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}const Opt=function(){return["fas","caret-right"]};function Spt(t,n){1&t&&Qe(0,"fa-icon",24),2&t&&J("icon",_i(1,Opt))}const Ppt=function(){return["fas","caret-down"]};function Tpt(t,n){1&t&&Qe(0,"fa-icon",24),2&t&&J("icon",_i(1,Ppt))}function Ept(t,n){if(1&t&&(H(0,"div",25)(1,"div",26)(2,"strong"),de(3,"Title: "),G(),de(4),G()()),2&t){const e=Ae().$implicit;W(4),Nt("",null==e?null:e.title," ")}}const Apt=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},Lpt=function(){return["fas","tasks"]};function Dpt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",39),et("click",function(){Dt(e);const o=Ae(2).$implicit,r=Ae();return r.noctuaSearchService.filter(r.SearchFilterType.states,o.state)}),H(1,"div",32),Qe(2,"fa-icon",24),G(),H(3,"div",33),de(4),G()()}if(2&t){const e=Ae(2).$implicit;J("ngClass",M2(5,Apt,"development"===e.state.name,"production"===e.state.name,"review"===e.state.name))("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(9,Lpt)),W(2),Nt(" ",e.state.label," ")}}function kpt(t,n){if(1&t){const e=Ln();H(0,"mat-chip",40),et("click",function(){const r=Dt(e).$implicit,a=Ae(3);return a.noctuaSearchService.filter(a.SearchFilterType.contributors,r)}),H(1,"div",41),de(2),G(),H(3,"div",33),de(4),G()()}if(2&t){const e=n.$implicit;Br("border-color",e.color),xf("matTooltip","Add ",e.name," to Filters"),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(1),Br("background-color",e.color),W(1),Nt(" ",e.initials," "),W(2),Nt(" ",e.name?e.name:e.orcid," ")}}const Ipt=function(){return["fas","calendar-day"]},Npt=function(){return["fas","list-alt"]},Rpt=function(){return["fas","sitemap"]};function zpt(t,n){if(1&t){const e=Ln();H(0,"div",27)(1,"div",28),ke(2,Dpt,5,10,"mat-chip",29),G(),H(3,"div",30)(4,"mat-chip",31),et("click",function(){Dt(e);const o=Ae().$implicit,r=Ae();return r.noctuaSearchService.filter(r.SearchFilterType.exactdates,o.date)}),H(5,"div",32),Qe(6,"fa-icon",24),G(),H(7,"div",33),de(8),G()()(),H(9,"div",34)(10,"mat-chip-list"),ke(11,kpt,5,9,"mat-chip",35),G()(),H(12,"div",36)(13,"a",37),Qe(14,"fa-icon",24),G(),H(15,"a",38),Qe(16,"fa-icon",24),G()()()}if(2&t){const e=Ae().$implicit;W(2),J("ngIf",e.state),W(2),J("matTooltipPosition","below")("matTooltipShowDelay",1e3),W(2),J("icon",_i(14,Ipt)),W(2),Nt(" ",e.date," "),W(3),J("ngForOf",e.contributors),W(2),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ao)("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(15,Npt)),W(1),J("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ao)("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(16,Rpt))}}function Fpt(t,n){if(1&t&&Qe(0,"noc-cam-table",42),2&t){const e=Ae().$implicit,i=Ae();J("cam",e)("options",i.tableOptions)}}const Hpt=function(t){return{"noc-selected":t}},Vpt=function(){return{value:"50"}};function Bpt(t,n){if(1&t){const e=Ln();H(0,"div",9)(1,"div",10),ke(2,Mpt,1,2,"mat-progress-bar",11),H(3,"button",12),et("click",function(){return Dt(e).$implicit.toggleExpand()}),ke(4,Spt,1,2,"fa-icon",13),ke(5,Tpt,1,2,"fa-icon",13),G(),H(6,"div",14),de(7),G(),ke(8,Ept,5,1,"div",15),Qe(9,"div",16),H(10,"button",17),de(11," Options "),G(),H(12,"mat-menu",18,19)(14,"button",20),et("click",function(){return Dt(e).$implicit.expandAllActivities(!0)}),de(15," Expand All "),G(),H(16,"button",20),et("click",function(){return Dt(e).$implicit.expandAllActivities(!1)}),de(17," Collapse All "),G()()(),ke(18,zpt,17,17,"div",21),ke(19,Fpt,1,2,"noc-cam-table",22),G()}if(2&t){const e=n.$implicit,i=Di(13),o=Ae();Ro("id","noc-review-cams-"+e.displayId),J("ngClass",wo(11,Hpt,e.id===(null==o.camService.currentMatch?null:o.camService.currentMatch.modelId))),W(1),J("@animateStagger",_i(13,Vpt)),W(1),J("ngIf",e.loading.status),W(2),J("ngIf",!e.expanded),W(1),J("ngIf",e.expanded),W(2),Nt(" ",e.displayNumber," "),W(1),J("ngIf",null==e?null:e.title),W(2),J("matMenuTriggerFor",i),W(8),J("ngIf",!1),W(1),J("ngIf",e.expanded)}}function Gpt(t,n){if(1&t){const e=Ln();H(0,"div",43),de(1," No models to review "),H(2,"a",44),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.cams)}),de(3," Add Models "),G()()}}let Ypt=(()=>{class t{constructor(e,i,o,r,a){this.camService=e,this.noctuaSearchMenuService=i,this.noctuaReviewSearchService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.SearchFilterType=sd,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.cams=[],this.searchResults=[],this.displayReplaceForm={replaceSection:!1,replaceActions:!1},this.tableOptions={displayType:k2.TREE_TABLE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0},this.loadingSpinner={color:"primary",mode:"indeterminate"},this.noctuaFormConfig=Ht,this.searchCriteria={},this._unsubscribeAll=new N,this.camService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(l=>{!l||(this.cams=l)})}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}compareCategory(e,i){return!(!e||!i)&&e.name===i.name}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(pl),ue(k1),ue(yr),ue(Co))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-review"]],decls:12,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-header-title","mr-8"],[1,"noc-review-number"],[1,"noc-cams-results"],["class","noc-cam-container","fxLayout","column","fxLayoutAlign","start stretch",3,"id","ngClass",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-container",3,"id","ngClass"],["fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-heading"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["mat-icon-button","",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","mr-8"],["class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["activityOptionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["class","noc-cam-heading",4,"ngIf"],["class","noc-cam-table",3,"cam","options",4,"ngIf"],[1,"noc-cam-progress",3,"color","mode"],[3,"icon"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],[1,"text-truncate","pr-8"],[1,"noc-cam-heading"],["fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state","pr-12"],["class","noc-table-chip noc-state-chip","fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add date to exact date filter",1,"noc-table-chip","noc-date-chip",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","borderColor","click",4,"ngFor","ngForOf"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","target","_blank","matTooltip","Form Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","mr-4","noc-half-button","noc-r",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","target","_blank","matTooltip","Graph Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-l",3,"href","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",1,"noc-table-chip","noc-state-chip",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon","noc-icon-initials"],[1,"noc-cam-table",3,"cam","options"],[1,"noc-no-info"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,wpt,2,0,"div",1),H(2,"div",2)(3,"span",3),de(4," Review Models"),G(),de(5," ("),H(6,"span",4),de(7),G(),de(8,") "),G(),H(9,"div",5),ke(10,Bpt,20,14,"div",6),G(),ke(11,Gpt,4,0,"div",7),G()),2&e&&(W(1),J("ngIf",!i.noctuaUserService.user),W(6),Nt("",null==i.artBasket?null:i.artBasket.cams.length," models "),W(3),J("ngForOf",i.cams),W(1),J("ngIf",0===(null==i.artBasket?null:i.artBasket.cams.length)))},directives:[Oo,So,Yi,$o,ds,ac,ko,G9,Fo,ps,il,Ql,nl,T2,Tl,A6,V9,eP],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{border-bottom:#DDD solid 1px}[_nghost-%COMP%] .noc-cams[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding:8px 12px;height:80px;min-height:80px;max-height:80px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-review-number[_ngcontent-%COMP%]{color:#555;font-size:12px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%]{position:relative;padding:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container.noc-selected[_ngcontent-%COMP%]{border-left:#97dcfc solid 1px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container.noc-selected[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]:before{left:43px;width:5px;background-color:#97dcfc}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:0;padding:0 10px 0 0;height:35px;min-height:35px;max-height:35px;width:100%;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:0;padding-right:8px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]{position:relative;padding-left:60px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]:before{position:absolute;top:0;left:45px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}'],data:{animation:sc}}),t})();function Upt(t,n){1&t&&(H(0,"div",17),de(1," Log in to Continue "),G())}function jpt(t,n){1&t&&(H(0,"th",18),de(1," Category "),G())}function Wpt(t,n){if(1&t&&(H(0,"td",19),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.category," ")}}function qpt(t,n){1&t&&(H(0,"th",20),de(1,"Changes"),G())}function $pt(t,n){if(1&t&&(H(0,"td",21),de(1),G()),2&t){const e=n.$implicit;W(1),Nt(" ",e.count," ")}}function Xpt(t,n){1&t&&Qe(0,"tr",22)}function Qpt(t,n){1&t&&(H(0,"tr",23),et("click",function(i){return i.stopPropagation()}),G())}function Zpt(t,n){if(1&t){const e=Ln();H(0,"div",24),de(1," No models to review "),H(2,"a",25),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.camsReview)}),de(3," Add Models "),G()()}}const Kpt=function(){return{value:"50"}};let Jpt=(()=>{class t{constructor(e,i,o,r,a,l){this.camService=e,this.noctuaReviewSearchService=i,this.noctuaSearchMenuService=o,this.noctuaUserService=r,this.noctuaFormConfigService=a,this.noctuaActivityFormService=l,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.stats=[],this.displayedColumns=["category","count"],this._unsubscribeAll=new N,this.camService.onCamsCheckoutChanged.pipe(Yn(this._unsubscribeAll)).subscribe(u=>{!u||(this.summary=u,this.stats=this.generateStats(u.stats))})}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(Zr),ue(k1),ue(pl),ue(yr),ue(Co),ue(Ts))},t.\u0275cmp=vn({type:t,selectors:[["noc-cams-review-changes"]],decls:22,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-header-title"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"noc-stat-summary"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","250px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["class","noc-no-info",4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"],[1,"noc-no-info"],[3,"click"]],template:function(e,i){1&e&&(H(0,"div",0),ke(1,Upt,2,0,"div",1),H(2,"div",2)(3,"span",3),de(4," Review and submit changes"),G()(),H(5,"div",4)(6,"div",5)(7,"span",6),de(8),G(),de(9," changes across "),H(10,"span",6),de(11),G()(),H(12,"table",7),er(13,8),ke(14,jpt,2,0,"th",9),ke(15,Wpt,2,1,"td",10),tr(),er(16,11),ke(17,qpt,2,0,"th",12),ke(18,$pt,2,1,"td",13),tr(),ke(19,Xpt,1,0,"tr",14),ke(20,Qpt,1,0,"tr",15),G()(),ke(21,Zpt,4,0,"div",16),G()),2&e&&(W(1),J("ngIf",!i.noctuaUserService.user),W(7),Nt(" ",null==i.summary?null:i.summary.stats.totalChanges," "),W(3),Nt(" ",null==i.summary?null:i.summary.stats.camsCount," models "),W(1),J("dataSource",i.stats)("@animateStagger",_i(8,Kpt)),W(7),J("matHeaderRowDef",i.displayedColumns),W(1),J("matRowDefColumns",i.displayedColumns),W(1),J("ngIf",0===(null==i.artBasket?null:i.artBasket.cams.length)))},directives:[Oo,So,Yi,$g,ko,Zf,Qf,Kf,Xf,Jf,Xg,Zg,Qg,Kg],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:400px;min-width:400px;max-width:400px}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}'],data:{animation:sc}}),t})();const e3t=["leftDrawer"],t3t=["rightDrawer"];function n3t(t,n){if(1&t&&(H(0,"div",29),de(1),G()),2&t){const e=Ae();W(1),Nt(" ",null==e.artBasket?null:e.artBasket.cams.length," ")}}function i3t(t,n){1&t&&Qe(0,"noc-search-filter")}function o3t(t,n){1&t&&Qe(0,"noc-search-relation")}function r3t(t,n){1&t&&Qe(0,"noc-search-groups")}function a3t(t,n){1&t&&Qe(0,"noc-search-contributors")}function s3t(t,n){1&t&&Qe(0,"noc-search-organisms")}function c3t(t,n){1&t&&Qe(0,"noc-search-history")}function l3t(t,n){if(1&t&&(H(0,"h4",30),de(1," You must "),H(2,"a",31),de(3," Login "),G(),de(4," to create or edit models. Models may be viewed without login. "),G()),2&t){const e=Ae();W(2),Ro("href",e.noctuaFormConfigService.loginUrl,ao)}}const d3t=function(t){return{"noc-selected":t}};function u3t(t,n){if(1&t){const e=Ln();H(0,"div",32)(1,"div",33)(2,"div",34),de(3," Create "),G(),H(4,"div",35)(5,"button",36),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.STANDARD_ANNOTATIONS)}),de(6," STANDARD ANNOTATIONS "),Qe(7,"br"),de(8," EDITOR "),H(9,"div",37),de(10," beta "),G()(),H(11,"button",38),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.VISUAL_PATHWAY_EDITOR)}),de(12," PATHWAY "),Qe(13,"br"),de(14," EDITOR "),G(),H(15,"button",38),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.FORM)}),de(16," FORM "),Qe(17,"br"),de(18,"EDITOR "),G(),H(19,"button",39),et("click",function(){Dt(e);const o=Ae();return o.createModel(o.WorkbenchId.GRAPH_EDITOR)}),de(20," GRAPH "),Qe(21,"br"),de(22," EDITOR "),G()()(),H(23,"div",40)(24,"div",34)(25,"span"),de(26,"Review"),G()(),H(27,"div",35)(28,"button",41),et("click",function(){return Dt(e),Ae().toggleReviewMode()}),de(29," ANNOTATION REVIEW "),Qe(30,"br"),de(31," TOOL "),G()()()()}if(2&t){const e=Ae();W(28),J("ngClass",wo(1,d3t,e.noctuaSearchMenuService.reviewMode!==e.ReviewMode.off))}}const LF=function(t,n){return{"noc-active":t,"noc-visited":n}},DF=function(t){return{"noc-visited":t}};function h3t(t,n){if(1&t){const e=Ln();H(0,"div",42)(1,"div",43),Qe(2,"div",44),H(3,"button",45),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.cams)}),H(4,"div",46),de(5,"Search"),G(),Qe(6,"br"),H(7,"div",47),de(8,"Add/remove to review"),G(),H(9,"div",29),de(10),G()(),Qe(11,"div",48),H(12,"button",45),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.camsReview)}),H(13,"div",46),de(14,"Review"),G(),Qe(15,"br"),H(16,"div",47),de(17,"Edit models"),G()(),Qe(18,"div",48),H(19,"button",45),et("click",function(){Dt(e);const o=Ae();return o.selectMiddlePanel(o.MiddlePanel.reviewChanges)}),H(20,"div",46),de(21,"Checkout"),G(),Qe(22,"br"),H(23,"div",47),de(24,"Review and submit changes"),G()(),Qe(25,"div",49),G()()}if(2&t){const e=Ae();W(3),J("ngClass",x0(7,LF,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.cams,e.noctuaSearchMenuService.reviewLevel>0)),W(7),Nt(" ",null==e.artBasket?null:e.artBasket.cams.length," selected "),W(1),J("ngClass",wo(10,DF,e.noctuaSearchMenuService.reviewLevel>0)),W(1),J("ngClass",x0(12,LF,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.camsReview,e.noctuaSearchMenuService.reviewLevel>1)),W(6),J("ngClass",wo(15,DF,e.noctuaSearchMenuService.reviewLevel>1)),W(1),J("ngClass",x0(17,LF,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.reviewChanges,e.noctuaSearchMenuService.reviewLevel>2)),W(6),J("ngClass",wo(20,DF,e.noctuaSearchMenuService.reviewLevel>2))}}function p3t(t,n){1&t&&Qe(0,"noc-cam-form",50),2&t&&(Ae(),J("panelDrawer",Di(43)))}function f3t(t,n){1&t&&Qe(0,"noc-copy-model",51),2&t&&(Ae(),J("panelDrawer",Di(43))("panelSide","right"))}const a8=function(t){return{"noc-active":t}},g3t=function(){return["fas","search"]},m3t=function(){return["fas","user"]},_3t=function(){return["fas","users"]},C3t=function(){return["fas","paw"]},v3t=function(){return["fas","history"]},b3t=function(){return["fas","shopping-basket"]},Cse=function(){return{delay:"100ms",y:"25px"}},vse=function(t){return{value:"*",params:t}},x3t=[{path:"s",component:(()=>{class t{constructor(e,i,o,r,a,l,u,f){this.route=e,this.camService=i,this.noctuaReviewSearchService=o,this.noctuaFormConfigService=r,this.noctuaCommonMenuService=a,this.noctuaSearchMenuService=l,this.noctuaUserService=u,this.noctuaSearchService=f,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this.WorkbenchId=eh,this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.artBasket=new C_,this.cams=[],this._unsubscribeAll=new N,this.route.queryParams.subscribe(M=>{const T=M.barista_token||null;this.noctuaSearchService.paramsToSearch(M),this.noctuaUserService.getUser(T)}),this.noctuaSearchService.onCamsPageChanged.pipe(Yn(this._unsubscribeAll)).subscribe(M=>{!M||(this.camPage=M)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(M=>{void 0!==M&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.noctuaSearchService.setup(),this.noctuaReviewSearchService.setup())})}ngOnInit(){this.noctuaSearchMenuService.setLeftDrawer(this.leftDrawer),this.noctuaSearchMenuService.setRightDrawer(this.rightDrawer),this.rightDrawer.open(),this.noctuaSearchService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.cams=e}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngAfterViewInit(){this.noctuaSearchMenuService.resultsViewScrollbar=this.scrollbarRef}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}selectMiddlePanel(e){const i=this;switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:i.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e),this.noctuaSearchMenuService.selectMiddlePanel(fa.cams)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openBasketPanel(){this.openLeftDrawer(Is.artBasket),this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview),this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0}toggleReviewMode(){this.noctuaSearchMenuService.reviewMode===hl.off?(this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0):this.noctuaSearchMenuService.reviewMode===hl.on&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaSearchMenuService.reviewMode=hl.off,this.noctuaSearchMenuService.selectMiddlePanel(fa.cams),this.noctuaSearchMenuService.selectLeftPanel(Is.filter),this.noctuaSearchMenuService.isReviewMode=!1)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(lu),ue(Zr),ue(k1),ue(Co),ue(ul),ue(pl),ue(yr),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-search"]],viewQuery:function(e,i){if(1&e&&(_o(e3t,7),_o(t3t,7),_o(s4,5)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first),fi(o=gi())&&(i.scrollbarRef=o.first)}},decls:47,vars:71,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","matTooltip","Filter",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],["mat-icon-button","","color","","matTooltip","Browse by contributor",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Browse by group",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Search by organism",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","History",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Art Basket",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["class","noc-badge",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"hidden"],[1,"noc-section-body","w-100-p",3,"perfectScrollbar"],["scrollbarRef",""],["fxLayout","column","fxLayoutAlign","center center",1,"header","accent","p-8","w-100-p"],["class","",4,"ngIf"],["class","noc-create","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-art-info","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"noc-middle-panel","w-100-p"],[1,"w-100-p",3,"hidden","isReviewMode"],[1,"w-100-p"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],[1,"noc-badge"],[1,""],["mat-button","",1,"noc-login-button",3,"href"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-create"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","75",1,"noc-create-section"],[1,"noc-heading"],["fxLayout","row","fxLayoutAlign","start center"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-r",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-badge"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-m",3,"click"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-l",3,"click"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","25",1,"noc-create-section"],["mat-raised-button","","color","",1,"noc-rounded-button","noc-half-button","noc-review-mode-button",3,"ngClass","click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-art-info"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-art-tabs"],["fxFlex","",1,"noc-line","noc-visited"],["mat-stroked-button","","color","",1,"",3,"ngClass","click"],[1,"noc-title"],[1,"noc-description"],["fxFlex","80px",1,"noc-line",3,"ngClass"],["fxFlex","",1,"noc-line",3,"ngClass"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"button",2),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.filter)}),Qe(3,"fa-icon",3),G(),H(4,"button",4),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.contributor)}),Qe(5,"fa-icon",3),G(),H(6,"button",5),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.group)}),Qe(7,"fa-icon",3),G(),H(8,"button",6),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.organism)}),Qe(9,"fa-icon",3),G(),H(10,"button",7),et("click",function(){return i.toggleLeftDrawer(i.LeftPanel.history)}),Qe(11,"fa-icon",3),G(),H(12,"button",8),et("click",function(){return i.openBasketPanel()}),ke(13,n3t,2,1,"div",9),Qe(14,"fa-icon",3),G()(),H(15,"mat-drawer-container",10)(16,"mat-drawer",11,12)(18,"div",13),ke(19,i3t,1,0,"noc-search-filter",14),ke(20,o3t,1,0,"noc-search-relation",14),ke(21,r3t,1,0,"noc-search-groups",14),ke(22,a3t,1,0,"noc-search-contributors",14),ke(23,s3t,1,0,"noc-search-organisms",14),ke(24,c3t,1,0,"noc-search-history",14),Qe(25,"noc-art-basket",15),G()(),H(26,"mat-drawer-content",16,17)(28,"div",18)(29,"h1"),de(30," WELCOME TO NOCTUA "),G(),H(31,"h3"),de(32," Noctua is a web-based, collaborative Gene Ontology (GO) annotation tool developed by the GO Consortium. It can be used to create standard GO annotations as well as more expressive models of biological processes, known as GO-CAMs (Gene Ontology Causal Activity Models) "),G(),ke(33,l3t,5,1,"h4",19),ke(34,u3t,32,3,"div",20),G(),ke(35,h3t,26,22,"div",21),H(36,"div",22),Qe(37,"noc-cams-table",23)(38,"noc-cams-review",15)(39,"noc-cams-review-changes",15),G(),H(40,"div",24),Qe(41,"app-footer"),G()(),H(42,"mat-drawer",25,26)(44,"div",13),ke(45,p3t,1,1,"noc-cam-form",27),ke(46,f3t,1,2,"noc-copy-model",28),G()()()()),2&e&&(W(2),J("ngClass",wo(47,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.filter))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(49,g3t)),W(1),J("ngClass",wo(50,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.contributor))("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(52,m3t)),W(1),J("ngClass",wo(53,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.group))("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(55,_3t)),W(1),J("ngClass",wo(56,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.organism))("matTooltipPosition","after")("matTooltipShowDelay",1e3),W(1),J("icon",_i(58,C3t)),W(1),J("ngClass",wo(59,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.history))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(61,v3t)),W(1),J("ngClass",wo(62,a8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.artBasket))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("ngIf",(null==i.artBasket?null:i.artBasket.cams.length)>0),W(1),J("icon",_i(64,b3t)),W(1),J("hasBackdrop",!1),W(3),J("ngSwitch",i.noctuaSearchMenuService.selectedLeftPanel),W(1),J("ngSwitchCase",i.LeftPanel.filter),W(1),J("ngSwitchCase",i.LeftPanel.relation),W(1),J("ngSwitchCase",i.LeftPanel.group),W(1),J("ngSwitchCase",i.LeftPanel.contributor),W(1),J("ngSwitchCase",i.LeftPanel.organism),W(1),J("ngSwitchCase",i.LeftPanel.history),W(1),J("hidden",i.noctuaSearchMenuService.selectedLeftPanel!==i.LeftPanel.artBasket),W(1),J("perfectScrollbar",i.scrollbarConfig),W(3),J("@animate",wo(66,vse,_i(65,Cse))),W(2),J("@animate",wo(69,vse,_i(68,Cse))),W(2),J("ngIf",!i.noctuaUserService.user),W(1),J("ngIf",i.noctuaUserService.user),W(1),J("ngIf",i.noctuaSearchMenuService.reviewMode!==i.ReviewMode.off),W(2),J("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.cams)("isReviewMode",i.noctuaSearchMenuService.isReviewMode),W(1),J("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.camsReview),W(1),J("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.reviewChanges),W(5),J("ngSwitch",i.noctuaSearchMenuService.selectedRightPanel),W(1),J("ngSwitchCase",i.RightPanel.camForm),W(1),J("ngSwitchCase",i.RightPanel.copyModel))},directives:[Oo,So,Fo,Tl,ds,ac,ps,Yi,zf,ko,Rf,bd,iu,Yht,$ht,Qht,Kht,e0t,r0t,x0t,A0,s4,V9,ypt,Ypt,Jpt,IN,sS,mS],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;font-size:20px;color:#3b599880}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:20px;height:20px;color:#fff;background-color:#ff9800;font-size:10px;text-align:center;line-height:20px}[_nghost-%COMP%] .noc-welcome[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:10px;background-image:linear-gradient(to right,#00174f,rgba(0,23,79,.8),rgba(0,23,79,.5)),url(gene.373d39c394531926.jpeg);background-blend-mode:initial;background-size:cover;background-position:top;padding-top:50px!important;position:relative;flex:1 0 auto;height:320px;min-width:800px;max-height:320px;text-align:center;overflow:hidden}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%]{height:200px;min-width:600px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:40px;font-weight:300;letter-spacing:.01em;text-align:center;margin-top:0;margin-bottom:16px;color:#ffffffe6}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{max-width:80%;text-align:center;font-weight:300;letter-spacing:.03em;margin:0;color:#fff;line-height:1.5}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding-top:10px;max-width:80%;text-align:center;font-weight:300;font-size:12px;margin:0;color:#fffc}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .noc-login-button[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px;margin-top:20px;background-color:#52a16c;color:#eee}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{margin-top:20px;padding:8px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-create-section[_ngcontent-%COMP%]{margin:8px;padding:8px;background-color:#039be580}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{width:100%;color:#eee;font-size:16px;font-weight:700;text-transform:uppercase;margin-bottom:8px;overflow:hidden}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:after{background-color:#ddd;content:"";display:inline-block;height:1px;position:relative;vertical-align:middle;width:50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:before{right:.5em;margin-left:-50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:after{left:.5em;margin-right:-50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 12px;color:#039be5;height:50px;min-height:50px;max-height:50px;line-height:20px;min-width:120px;font-size:12px;text-transform:capitalize!important;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:8px;border-radius:7px;width:40px;height:15px;color:#eee;background-color:#f0b74b;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button.noc-selected[_ngcontent-%COMP%]{background-color:#cdf8cd;box-shadow:10px 10px 40px #e3e3e3;color:#000}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%]{margin-bottom:5px;position:sticky;position:-webkit-sticky;top:0;z-index:1001;padding:0;height:100px;min-height:100px;max-height:100px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{display:block;height:5px;border-top:#ccc solid 1px;border-bottom:#ccc solid 1px;background-color:#ccc;padding:0}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line.noc-visited[_ngcontent-%COMP%]{border-top:#768bb7 solid 1px;border-bottom:#768bb7 solid 1px;background-color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:180px;min-width:180px;max-width:180px;line-height:12px!important;border:#bbb solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-12px;border-radius:7px;width:70px;height:15px;color:#eee;background-color:#ff9800;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;color:#aaa}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#bbb}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%]{border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{border:#355190 solid 1px;border-bottom:#355190 solid 5px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-icon-separator[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{min-height:500px;border-bottom:200px}[_nghost-%COMP%] .noc-table-container[_ngcontent-%COMP%]{min-height:500px}'],data:{animation:sc}}),t})()}];let bse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[D1,va,xd.forChild(x3t),Uf,$p,$_,nv,M4,MO]]}),t})();var EP=(()=>(function(t){t.home="home",t.checklist="checklist",t.obsolete="obsolete",t.terms="terms",t.group="group",t.contributor="contributor",t.calendar="calendar",t.chat="chat",t.notes="notes",t.activities="activities"}(EP||(EP={})),EP))(),Ym=(()=>(function(t){t.home="home",t.cams="cams",t.camsReview="camReview",t.reviewChanges="reviewChanges"}(Ym||(Ym={})),Ym))();let y3t=(()=>{class t{constructor(){this.isReviewMode=!1,this.reviewLevel=0,this.selectedLeftPanel=EP.obsolete,this.selectedMiddlePanel=Ym.cams}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e,e===Ym.cams?this.reviewLevel=0:e===Ym.camsReview?this.reviewLevel=1:e===Ym.reviewChanges&&(this.reviewLevel=2),this.scrollToTop()}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this.leftDrawer=e}openLeftDrawer(){return this.leftDrawer.open()}closeLeftDrawer(){return this.leftDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this.leftDrawer.toggle()}setRightDrawer(e){this.rightDrawer=e}openRightDrawer(){return this.rightDrawer.open()}closeRightDrawer(){return this.rightDrawer.close()}scrollToTop(){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToTop(0)}))})}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=gt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w3t=["leftDrawer"],M3t=["rightDrawer"],O3t=function(){return["fas","plus"]},s8=function(t){return{"noc-active":t}},c8=function(){return["fas","home"]},xse=function(){return{delay:"100ms",y:"25px"}},yse=function(t){return{value:"*",params:t}},S3t=[{path:"doctor",component:(()=>{class t{constructor(e,i,o,r,a,l,u,f,M){this.route=e,this.camService=i,this.noctuaDoctorMenuService=o,this.noctuaReviewSearchService=r,this.noctuaFormConfigService=a,this.noctuaCommonMenuService=l,this.noctuaSearchMenuService=u,this.noctuaUserService=f,this.noctuaSearchService=M,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this.ReviewMode=hl,this.LeftPanel=Is,this.MiddlePanel=fa,this.RightPanel=Fh,this.artBasket=new C_,this.searchResults=[],this.modelId="",this.searchCriteria={},this.searchFormData=[],this.cams=[],this._unsubscribeAll=new N,this.route.queryParams.subscribe(T=>{this.noctuaUserService.getUser(T.barista_token||null)}),this.noctuaSearchService.onCamsPageChanged.pipe(Yn(this._unsubscribeAll)).subscribe(T=>{!T||(this.camPage=T)}),this.noctuaUserService.onUserChanged.pipe(Cs(this.noctuaUserService.distinctUser),Yn(this._unsubscribeAll)).subscribe(T=>{void 0!==T&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.noctuaSearchService.setup(),this.noctuaReviewSearchService.setup())})}ngOnInit(){this.noctuaSearchMenuService.setLeftDrawer(this.leftDrawer),this.noctuaSearchMenuService.setRightDrawer(this.rightDrawer),this.rightDrawer.open(),this.noctuaSearchService.onCamsChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{this.cams=e}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Yn(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngAfterViewInit(){this.noctuaSearchMenuService.resultsViewScrollbar=this.scrollbarRef}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}selectMiddlePanel(e){const i=this;switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case fa.cams:this.noctuaSearchMenuService.selectLeftPanel(Is.filter);break;case fa.camsReview:case fa.reviewChanges:i.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectLeftPanel(Is.artBasket)}}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e),this.noctuaSearchMenuService.selectMiddlePanel(fa.cams)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openBasketPanel(){this.openLeftDrawer(Is.artBasket),this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(fa.camsReview),this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0}toggleReviewMode(){this.noctuaSearchMenuService.reviewMode===hl.off?(this.noctuaSearchMenuService.reviewMode=hl.on,this.noctuaSearchMenuService.isReviewMode=!0):this.noctuaSearchMenuService.reviewMode===hl.on&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaSearchMenuService.reviewMode=hl.off,this.noctuaSearchMenuService.selectMiddlePanel(fa.cams),this.noctuaSearchMenuService.selectLeftPanel(Is.filter),this.noctuaSearchMenuService.isReviewMode=!1)}search(){this.noctuaSearchService.search(this.searchForm.value)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(ue(lu),ue(Zr),ue(y3t),ue(k1),ue(Co),ue(ul),ue(pl),ue(yr),ue(ld))},t.\u0275cmp=vn({type:t,selectors:[["noc-noctua-doctor"]],viewQuery:function(e,i){if(1&e&&(_o(w3t,7),_o(M3t,7),_o(s4,5)),2&e){let o;fi(o=gi())&&(i.leftDrawer=o.first),fi(o=gi())&&(i.rightDrawer=o.first),fi(o=gi())&&(i.scrollbarRef=o.first)}},decls:47,vars:58,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-button","","color","","fxLayout","row","fxLayoutAlign","start center","matTooltip","Filter",1,"noc-rounded-button","green-400-bg",3,"matTooltipPosition","matTooltipShowDelay"],[1,"noc-icon",3,"icon"],["fxFlex","",1,"noc-label"],["mat-button","","color","","fxLayout","row","fxLayoutAlign","start center","matTooltip","Board home",1,"",3,"ngClass","matTooltipPosition","matTooltipShowDelay"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[1,"noc-section-body","w-100-p",3,"perfectScrollbar"],["scrollbarRef",""],["fxLayout","column","fxLayoutAlign","center center",1,"header","accent","p-8","w-100-p"],[1,"noc-middle-panel","w-100-p"],[1,"w-100-p"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""]],template:function(e,i){1&e&&(H(0,"div",0)(1,"div",1)(2,"button",2),Qe(3,"fa-icon",3),H(4,"div",4),de(5," Create "),G()(),H(6,"button",5),Qe(7,"fa-icon",3),H(8,"div",4),de(9," Home "),G()(),H(10,"button",5),Qe(11,"fa-icon",3),H(12,"div",4),de(13," Obsolete Manager "),G()(),H(14,"button",5),Qe(15,"fa-icon",3),H(16,"div",4),de(17," My Terms "),G()(),H(18,"button",5),Qe(19,"fa-icon",3),H(20,"div",4),de(21," Checklist "),G()(),H(22,"button",5),Qe(23,"fa-icon",3),H(24,"div",4),de(25," Calendar "),G()(),H(26,"button",5),Qe(27,"fa-icon",3),H(28,"div",4),de(29," Chat "),G()()(),H(30,"mat-drawer-container",6)(31,"mat-drawer",7,8),Qe(33,"div",9),G(),H(34,"mat-drawer-content",10,11)(36,"div",12)(37,"h1"),de(38," WELCOME TO NOCTUA DOCTOR "),G(),H(39,"h3"),de(40," Notify "),G()(),Qe(41,"div",13),H(42,"div",14),Qe(43,"app-footer"),G()(),H(44,"mat-drawer",15,16),Qe(46,"div",9),G()()()),2&e&&(W(2),J("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(33,O3t)),W(3),J("ngClass",wo(34,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(36,c8)),W(3),J("ngClass",wo(37,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(39,c8)),W(3),J("ngClass",wo(40,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(42,c8)),W(3),J("ngClass",wo(43,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(45,c8)),W(3),J("ngClass",wo(46,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(48,c8)),W(3),J("ngClass",wo(49,s8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),W(1),J("icon",_i(51,c8)),W(3),J("hasBackdrop",!1),W(3),J("ngSwitch",i.noctuaSearchMenuService.selectedLeftPanel),W(1),J("perfectScrollbar",i.scrollbarConfig),W(3),J("@animate",wo(53,yse,_i(52,xse))),W(2),J("@animate",wo(56,yse,_i(55,xse))),W(7),J("ngSwitch",i.noctuaSearchMenuService.selectedRightPanel))},directives:[Oo,So,Fo,Tl,ps,ko,ds,ac,zf,Rf,bd,A0,s4,IN],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-comments-dialog[_ngcontent-%COMP%]{height:500px;min-height:500px;max-height:500px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;inset:0;z-index:1000}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:12px 8px;height:100%;min-height:100%;max-height:100%;width:200px;min-width:200px;max-width:200px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:8px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.btn-flat[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-welcome[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:10px;background-image:linear-gradient(to right,#00174f,rgba(0,23,79,.8),rgba(0,23,79,.5)),url(gene.373d39c394531926.jpeg);background-blend-mode:initial;background-size:cover;background-position:top;padding-top:50px!important;position:relative;flex:1 0 auto;height:280px;min-width:800px;max-height:280px;text-align:center;overflow:hidden}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%]{height:200px;min-width:600px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:40px;font-weight:300;letter-spacing:.01em;text-align:center;margin-top:0;margin-bottom:16px;color:#ffffffe6}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{max-width:80%;text-align:center;font-weight:300;letter-spacing:.03em;margin:0;color:#fff;line-height:1.5}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding-top:10px;max-width:80%;text-align:center;font-weight:300;font-size:12px;margin:0;color:#fffc}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .noc-login-button[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px;margin-top:20px;background-color:#52a16c;color:#eee}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 8px;color:#039be5;width:250px;font-weight:500;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:200px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button.noc-selected[_ngcontent-%COMP%]{background-color:#cdf8cd;box-shadow:10px 10px 40px #e3e3e3;color:#000}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%]{margin-bottom:5px;position:sticky;position:-webkit-sticky;top:0;z-index:1001;padding:0;height:100px;min-height:100px;max-height:100px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{display:block;height:5px;border-top:#ccc solid 1px;border-bottom:#ccc solid 1px;background-color:#ccc;padding:0}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line.noc-visited[_ngcontent-%COMP%]{border-top:#768bb7 solid 1px;border-bottom:#768bb7 solid 1px;background-color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:180px;min-width:180px;max-width:180px;line-height:12px!important;border:#bbb solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-12px;border-radius:7px;width:70px;height:15px;color:#eee;background-color:#ff9800;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;color:#aaa}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#bbb}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%]{border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{border:#355190 solid 1px;border-bottom:#355190 solid 5px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-icon-separator[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{min-height:500px;border-bottom:200px}[_nghost-%COMP%] .noc-table-container[_ngcontent-%COMP%]{min-height:500px}'],data:{animation:sc}}),t})()}];let wse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ht({type:t}),t.\u0275inj=Qt({imports:[[D1,va,xd.forChild(S3t),Uf,$p,$_,nv,M4,MO]]}),t})();function Mse(t,n,e,i,o,r,a){try{var l=t[r](a),u=l.value}catch(f){return void e(f)}l.done?n(u):Promise.resolve(u).then(i,o)}const l8=(t,n)=>{for(let e in n)t[e]=n[e];return t},Yr=(t,n)=>Array.from(t.querySelectorAll(n)),kF=(t,n,e)=>{e?t.classList.add(n):t.classList.remove(n)},d8=t=>{if("string"==typeof t){if("null"===t)return null;if("true"===t)return!0;if("false"===t)return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},L4=(t,n)=>{t.style.transform=n},AP=(t,n)=>{let e=t.matches||t.matchesSelector||t.msMatchesSelector;return!(!e||!e.call(t,n))},Rd=(t,n)=>{if("function"==typeof t.closest)return t.closest(n);for(;t;){if(AP(t,n))return t;t=t.parentNode}return null},T3t=(t,n,e,i="")=>{let o=t.querySelectorAll("."+e);for(let a=0;a{let n=document.createElement("style");return n.type="text/css",t&&t.length>0&&(n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))),document.head.appendChild(n),n},Ose=()=>{let t={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,n=>{t[n.split("=").shift()]=n.split("=").pop()});for(let n in t)t[n]=d8(unescape(t[n]));return void 0!==t.dependencies&&delete t.dependencies,t},E3t=(t,n=0)=>{if(t){let e,i=t.style.height;return t.style.height="0px",t.parentNode.style.height="auto",e=n-t.parentNode.offsetHeight,t.style.height=i+"px",t.parentNode.style.removeProperty("height"),e}return n},A3t={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},LP=navigator.userAgent,u8=/(iphone|ipod|ipad|android)/gi.test(LP)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;/chrome/i.test(LP)&&/edge/i.test(LP);const Sse=/android/gi.test(LP);var Pse={};Object.defineProperty(Pse,"__esModule",{value:!0});var Tse=Object.assign||function(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof Kt?pn(n(document.querySelectorAll(Kt)),kn):pn([Kt],kn)[0]}}("undefined"==typeof window?null:window);class D3t{constructor(n){this.Reveal=n,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(n){let e=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof e&&(e=n.hasAttribute("data-preload")),e}load(n,e={}){n.style.display=this.Reveal.getConfig().display,Yr(n,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(o=>{("IFRAME"!==o.tagName||this.shouldPreload(o))&&(o.setAttribute("src",o.getAttribute("data-src")),o.setAttribute("data-lazy-loaded",""),o.removeAttribute("data-src"))}),Yr(n,"video, audio").forEach(o=>{let r=0;Yr(o,"source[data-src]").forEach(a=>{a.setAttribute("src",a.getAttribute("data-src")),a.removeAttribute("data-src"),a.setAttribute("data-lazy-loaded",""),r+=1}),u8&&"VIDEO"===o.tagName&&o.setAttribute("playsinline",""),r>0&&o.load()});let i=n.slideBackgroundElement;if(i){i.style.display="block";let o=n.slideBackgroundContentElement,r=n.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");let l=n.getAttribute("data-background-image"),u=n.getAttribute("data-background-video"),f=n.hasAttribute("data-background-video-loop"),M=n.hasAttribute("data-background-video-muted");if(l)o.style.backgroundImage=/^data:/.test(l.trim())?`url(${l.trim()})`:l.split(",").map(T=>`url(${((U="")=>encodeURI(U).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,ie=>`%${ie.charCodeAt(0).toString(16).toUpperCase()}`))(decodeURI(T.trim()))})`).join(",");else if(u&&!this.Reveal.isSpeakerNotes()){let T=document.createElement("video");f&&T.setAttribute("loop",""),M&&(T.muted=!0),u8&&(T.muted=!0,T.setAttribute("playsinline","")),u.split(",").forEach(U=>{let ie=((se="")=>A3t[se.split(".").pop()])(U);T.innerHTML+=ie?``:``}),o.appendChild(T)}else if(r&&!0!==e.excludeIframes){let T=document.createElement("iframe");T.setAttribute("allowfullscreen",""),T.setAttribute("mozallowfullscreen",""),T.setAttribute("webkitallowfullscreen",""),T.setAttribute("allow","autoplay"),T.setAttribute("data-src",r),T.style.width="100%",T.style.height="100%",T.style.maxHeight="100%",T.style.maxWidth="100%",o.appendChild(T)}}let a=o.querySelector("iframe[data-src]");a&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(r)&&a.getAttribute("src")!==r&&a.setAttribute("src",r)}this.layout(n)}layout(n){Array.from(n.querySelectorAll(".r-fit-text")).forEach(e=>{L3t(e,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})})}unload(n){n.style.display="none";let e=this.Reveal.getSlideBackground(n);e&&(e.style.display="none",Yr(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),Yr(n,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),Yr(n,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let n=(e,i,o)=>{Yr(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(r=>{let a=r.getAttribute(e);a&&-1===a.indexOf(o)&&r.setAttribute(e,a+(/\?/.test(a)?"&":"?")+o)})};n("src","youtube.com/embed/","enablejsapi=1"),n("data-src","youtube.com/embed/","enablejsapi=1"),n("src","player.vimeo.com/","api=1"),n("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(n){n&&!this.Reveal.isSpeakerNotes()&&(Yr(n,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),Yr(n,"video, audio").forEach(e=>{if(Rd(e,".fragment")&&!Rd(e,".fragment.visible"))return;let i=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof i&&(i=e.hasAttribute("data-autoplay")||!!Rd(e,".slide-background")),i&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(u8){let o=e.play();o&&"function"==typeof o.catch&&!1===e.controls&&o.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}),Yr(n,"iframe[src]").forEach(e=>{Rd(e,".fragment")&&!Rd(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),Yr(n,"iframe[data-src]").forEach(e=>{Rd(e,".fragment")&&!Rd(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(n){let e=!!Rd(n.target,"html"),i=!!Rd(n.target,".present");e&&i&&(n.target.currentTime=0,n.target.play()),n.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(n){let e=n.target;if(e&&e.contentWindow){let i=!!Rd(n.target,"html"),o=!!Rd(n.target,".present");if(i&&o){let r=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof r&&(r=e.hasAttribute("data-autoplay")||!!Rd(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&r?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&r?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(n,e={}){e=l8({unloadIframes:!0},e),n&&n.parentNode&&(Yr(n,"video, audio").forEach(i=>{i.hasAttribute("data-ignore")||"function"!=typeof i.pause||(i.setAttribute("data-paused-by-reveal",""),i.pause())}),Yr(n,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.startEmbeddedIframe)}),Yr(n,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&"function"==typeof i.contentWindow.postMessage&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),Yr(n,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&"function"==typeof i.contentWindow.postMessage&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===e.unloadIframes&&Yr(n,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}}class k3t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(n,e){let i="none";n.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===n.showSlideNumber||"speaker"===n.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(n=this.Reveal.getCurrentSlide()){let e,i=this.Reveal.getConfig(),o="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(n);else{"string"==typeof i.slideNumber&&(o=i.slideNumber),/c/.test(o)||1!==this.Reveal.getHorizontalSlides().length||(o="c");let a=n&&"uncounted"===n.dataset.visibility?0:1;switch(e=[],o){case"c":e.push(this.Reveal.getSlidePastCount(n)+a);break;case"c/t":e.push(this.Reveal.getSlidePastCount(n)+a,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(n);e.push(l.h+a);let u="h/v"===o?"/":".";this.Reveal.isVerticalSlide(n)&&e.push(u,l.v+1)}}let r="#"+this.Reveal.location.getHash(n);return this.formatNumber(e[0],e[1],e[2],r)}formatNumber(n,e,i,o="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i)?`
    \n\t\t\t\t\t${n}\n\t\t\t\t\t`:`\n\t\t\t\t\t${n}\n\t\t\t\t\t${e}\n\t\t\t\t\t${i}\n\t\t\t\t\t`}destroy(){this.element.remove()}}class I3t{constructor(n){this.Reveal=n,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;const n=this.jumpInput.value.trim("");let e=this.Reveal.location.getIndicesFromHash(n,{oneBasedIndex:!0});return!e&&/\S+/i.test(n)&&n.length>1&&(e=this.search(n)),e&&""!==n?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(n){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),n)}search(n){const e=new RegExp("\\b"+n.trim()+"\\b","i"),i=this.Reveal.getSlides().find(o=>e.test(o.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(n){13===n.keyCode?this.confirm():27===n.keyCode&&(this.cancel(),n.stopImmediatePropagation())}onInput(n){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}}const NF=t=>{let n=t.match(/^#([0-9a-f]{3})$/i);if(n&&n[1])return n=n[1],{r:17*parseInt(n.charAt(0),16),g:17*parseInt(n.charAt(1),16),b:17*parseInt(n.charAt(2),16)};let e=t.match(/^#([0-9a-f]{6})$/i);if(e&&e[1])return e=e[1],{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)};let i=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};let o=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return o?{r:parseInt(o[1],10),g:parseInt(o[2],10),b:parseInt(o[3],10),a:parseFloat(o[4])}:null};class N3t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(n=>{let e=this.createBackground(n,this.element);Yr(n,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(n,e){let i=document.createElement("div");i.className="slide-background "+n.className.replace(/present|past|future/,"");let o=document.createElement("div");return o.className="slide-background-content",i.appendChild(o),e.appendChild(i),n.slideBackgroundElement=i,n.slideBackgroundContentElement=o,this.sync(n),i}sync(n){const e=n.slideBackgroundElement,i=n.slideBackgroundContentElement,o={background:n.getAttribute("data-background"),backgroundSize:n.getAttribute("data-background-size"),backgroundImage:n.getAttribute("data-background-image"),backgroundVideo:n.getAttribute("data-background-video"),backgroundIframe:n.getAttribute("data-background-iframe"),backgroundColor:n.getAttribute("data-background-color"),backgroundGradient:n.getAttribute("data-background-gradient"),backgroundRepeat:n.getAttribute("data-background-repeat"),backgroundPosition:n.getAttribute("data-background-position"),backgroundTransition:n.getAttribute("data-background-transition"),backgroundOpacity:n.getAttribute("data-background-opacity")},r=n.hasAttribute("data-preload");n.classList.remove("has-dark-background"),n.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",o.background&&(/^(http|file|\/\/)/gi.test(o.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(o.background)?n.setAttribute("data-background-image",o.background):e.style.background=o.background),(o.background||o.backgroundColor||o.backgroundGradient||o.backgroundImage||o.backgroundVideo||o.backgroundIframe)&&e.setAttribute("data-background-hash",o.background+o.backgroundSize+o.backgroundImage+o.backgroundVideo+o.backgroundIframe+o.backgroundColor+o.backgroundGradient+o.backgroundRepeat+o.backgroundPosition+o.backgroundTransition+o.backgroundOpacity),o.backgroundSize&&e.setAttribute("data-background-size",o.backgroundSize),o.backgroundColor&&(e.style.backgroundColor=o.backgroundColor),o.backgroundGradient&&(e.style.backgroundImage=o.backgroundGradient),o.backgroundTransition&&e.setAttribute("data-background-transition",o.backgroundTransition),r&&e.setAttribute("data-preload",""),o.backgroundSize&&(i.style.backgroundSize=o.backgroundSize),o.backgroundRepeat&&(i.style.backgroundRepeat=o.backgroundRepeat),o.backgroundPosition&&(i.style.backgroundPosition=o.backgroundPosition),o.backgroundOpacity&&(i.style.opacity=o.backgroundOpacity);let a=o.backgroundColor;if(!a||!NF(a)){let u=window.getComputedStyle(e);u&&u.backgroundColor&&(a=u.backgroundColor)}if(a){const u=NF(a);u&&0!==u.a&&("string"==typeof(l=a)&&(l=NF(l)),n.classList.add((l?(299*l.r+587*l.g+114*l.b)/1e3:null)<128?"has-dark-background":"has-light-background"))}var l}update(n=!1){let e=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),o=null,r=this.Reveal.getConfig().rtl?"future":"past",a=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((l,u)=>{l.classList.remove("past","present","future"),ui.h?l.classList.add(a):(l.classList.add("present"),o=l),(n||u===i.h)&&Yr(l,".slide-background").forEach((f,M)=>{f.classList.remove("past","present","future"),Mi.v?f.classList.add("future"):(f.classList.add("present"),u===i.h&&(o=f))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),o){this.Reveal.slideContent.startEmbeddedContent(o);let l=o.querySelector(".slide-background-content");if(l){let M=l.style.backgroundImage||"";/\.gif/i.test(M)&&(l.style.backgroundImage="",window.getComputedStyle(l),l.style.backgroundImage=M)}let u=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,f=o.getAttribute("data-background-hash");f&&f===u&&o!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=o}e&&["has-light-background","has-dark-background"].forEach(l=>{e.classList.contains(l)?this.Reveal.getRevealElement().classList.add(l):this.Reveal.getRevealElement().classList.remove(l)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){let n=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e,i,o=this.Reveal.getHorizontalSlides(),r=this.Reveal.getVerticalSlides(),a=this.element.style.backgroundSize.split(" ");1===a.length?e=i=parseInt(a[0],10):(e=parseInt(a[0],10),i=parseInt(a[1],10));let l,u,f=this.element.offsetWidth,M=o.length;l="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:M>1?(e-f)/(M-1):0,u=l*n.h*-1;let T,U,ie=this.element.offsetHeight,se=r.length;T="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-ie)/(se-1),U=se>0?T*n.v:0,this.element.style.backgroundPosition=u+"px "+-U+"px"}}destroy(){this.element.remove()}}const Um=".slides section",jm=".slides>section",Ese=".slides>section.present>section",R3t=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Ase=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;let Lse=0;class z3t{constructor(n){this.Reveal=n}run(n,e){this.reset();let i=this.Reveal.getSlides(),o=i.indexOf(e),r=i.indexOf(n);if(n.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&n.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(o>r?e:n).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||IF();let a=this.getAutoAnimateOptions(e);n.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",a.slideDirection=o>r?"forward":"backward";let l="none"===n.style.display;l&&(n.style.display=this.Reveal.getConfig().display);let u=this.getAutoAnimatableElements(n,e).map(f=>this.autoAnimateElements(f.from,f.to,f.options||{},a,Lse++));if(l&&(n.style.display="none"),"false"!==e.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){let f=.8*a.duration,M=.2*a.duration;this.getUnmatchedAutoAnimateElements(e).forEach(T=>{let U=this.getAutoAnimateOptions(T,a),ie="unmatched";U.duration===a.duration&&U.delay===a.delay||(ie="unmatched-"+Lse++,u.push(`[data-auto-animate="running"] [data-auto-animate-target="${ie}"] { transition: opacity ${U.duration}s ease ${U.delay}s; }`)),T.dataset.autoAnimateTarget=ie},this),u.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${f}s ease ${M}s; }`)}this.autoAnimateStyleSheet.innerHTML=u.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet),e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:n,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){Yr(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(n=>{n.dataset.autoAnimate=""}),Yr(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(n=>{delete n.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(n,e,i,o,r){n.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=r;let a=this.getAutoAnimateOptions(e,o);void 0!==i.delay&&(a.delay=i.delay),void 0!==i.duration&&(a.duration=i.duration),void 0!==i.easing&&(a.easing=i.easing);let l=this.getAutoAnimatableProperties("from",n,i),u=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&(delete u.styles.opacity,n.classList.contains("fragment"))&&(n.className.match(Ase)||[""])[0]===(e.className.match(Ase)||[""])[0]&&"forward"===o.slideDirection&&e.classList.add("visible","disabled"),!1!==i.translate||!1!==i.scale){let T=this.Reveal.getScale(),U={x:(l.x-u.x)/T,y:(l.y-u.y)/T,scaleX:l.width/u.width,scaleY:l.height/u.height};U.x=Math.round(1e3*U.x)/1e3,U.y=Math.round(1e3*U.y)/1e3,U.scaleX=Math.round(1e3*U.scaleX)/1e3,U.scaleX=Math.round(1e3*U.scaleX)/1e3;let ie=!1!==i.translate&&(0!==U.x||0!==U.y),se=!1!==i.scale&&(0!==U.scaleX||0!==U.scaleY);if(ie||se){let Me=[];ie&&Me.push(`translate(${U.x}px, ${U.y}px)`),se&&Me.push(`scale(${U.scaleX}, ${U.scaleY})`),l.styles.transform=Me.join(" "),l.styles["transform-origin"]="top left",u.styles.transform="none"}}for(let T in u.styles){const U=u.styles[T],ie=l.styles[T];U===ie?delete u.styles[T]:(!0===U.explicitValue&&(u.styles[T]=U.value),!0===ie.explicitValue&&(l.styles[T]=ie.value))}let f="",M=Object.keys(u.styles);return M.length>0&&(l.styles.transition="none",u.styles.transition=`all ${a.duration}s ${a.easing} ${a.delay}s`,u.styles["transition-property"]=M.join(", "),u.styles["will-change"]=M.join(", "),f='[data-auto-animate-target="'+r+'"] {'+Object.keys(l.styles).map(T=>T+": "+l.styles[T]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+r+'"] {'+Object.keys(u.styles).map(T=>T+": "+u.styles[T]+" !important;").join("")+"}"),f}getAutoAnimateOptions(n,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=l8(i,e),n.parentNode){let o=Rd(n.parentNode,"[data-auto-animate-target]");o&&(i=this.getAutoAnimateOptions(o,i))}return n.dataset.autoAnimateEasing&&(i.easing=n.dataset.autoAnimateEasing),n.dataset.autoAnimateDuration&&(i.duration=parseFloat(n.dataset.autoAnimateDuration)),n.dataset.autoAnimateDelay&&(i.delay=parseFloat(n.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(n,e,i){let o=this.Reveal.getConfig(),r={styles:[]};if(!1!==i.translate||!1!==i.scale){let l;if("function"==typeof i.measure)l=i.measure(e);else if(o.center)l=e.getBoundingClientRect();else{let u=this.Reveal.getScale();l={x:e.offsetLeft*u,y:e.offsetTop*u,width:e.offsetWidth*u,height:e.offsetHeight*u}}r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height}const a=getComputedStyle(e);return(i.styles||o.autoAnimateStyles).forEach(l=>{let u;"string"==typeof l&&(l={property:l}),void 0!==l.from&&"from"===n?u={value:l.from,explicitValue:!0}:void 0!==l.to&&"to"===n?u={value:l.to,explicitValue:!0}:("line-height"===l.property&&(u=parseFloat(a["line-height"])/parseFloat(a["font-size"])),isNaN(u)&&(u=a[l.property])),""!==u&&(r.styles[l.property]=u)}),r}getAutoAnimatableElements(n,e){let i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,n,e),o=[];return i.filter((r,a)=>{if(-1===o.indexOf(r.to))return o.push(r.to),!0})}getAutoAnimatePairs(n,e){let i=[];const o="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,n,e,"[data-id]",r=>r.nodeName+":::"+r.getAttribute("data-id")),this.findAutoAnimateMatches(i,n,e,o,r=>r.nodeName+":::"+r.innerText),this.findAutoAnimateMatches(i,n,e,"img, video, iframe",r=>r.nodeName+":::"+(r.getAttribute("src")||r.getAttribute("data-src"))),this.findAutoAnimateMatches(i,n,e,"pre",r=>r.nodeName+":::"+r.innerText),i.forEach(r=>{AP(r.from,o)?r.options={scale:!1}:AP(r.from,"pre")&&(r.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,r.from,r.to,".hljs .hljs-ln-code",a=>a.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,r.from,r.to,".hljs .hljs-ln-numbers[data-line-number]",a=>a.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(n){const e=this.Reveal.getScale();return{x:Math.round(n.offsetLeft*e*100)/100,y:Math.round(n.offsetTop*e*100)/100,width:Math.round(n.offsetWidth*e*100)/100,height:Math.round(n.offsetHeight*e*100)/100}}findAutoAnimateMatches(n,e,i,o,r,a){let l={},u={};[].slice.call(e.querySelectorAll(o)).forEach((f,M)=>{const T=r(f);"string"==typeof T&&T.length&&(l[T]=l[T]||[],l[T].push(f))}),[].slice.call(i.querySelectorAll(o)).forEach((f,M)=>{const T=r(f);let U;if(u[T]=u[T]||[],u[T].push(f),l[T]){const ie=u[T].length-1,se=l[T].length-1;l[T][ie]?(U=l[T][ie],l[T][ie]=null):l[T][se]&&(U=l[T][se],l[T][se]=null)}U&&n.push({from:U,to:f,options:a})})}getUnmatchedAutoAnimateElements(n){return[].slice.call(n.children).reduce((e,i)=>{const o=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||o||e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}}class F3t{constructor(n){this.Reveal=n}configure(n,e){!1===n.fragments?this.disable():!1===e.fragments&&this.enable()}disable(){Yr(this.Reveal.getSlidesElement(),".fragment").forEach(n=>{n.classList.add("visible"),n.classList.remove("current-fragment")})}enable(){Yr(this.Reveal.getSlidesElement(),".fragment").forEach(n=>{n.classList.remove("visible"),n.classList.remove("current-fragment")})}availableRoutes(){let n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments){let e=n.querySelectorAll(".fragment:not(.disabled)"),i=n.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(n,e=!1){n=Array.from(n);let i=[],o=[],r=[];n.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let u=parseInt(l.getAttribute("data-fragment-index"),10);i[u]||(i[u]=[]),i[u].push(l)}else o.push([l])}),i=i.concat(o);let a=0;return i.forEach(l=>{l.forEach(u=>{r.push(u),u.setAttribute("data-fragment-index",a)}),a++}),!0===e?i:r}sortAll(){this.Reveal.getHorizontalSlides().forEach(n=>{let e=Yr(n,"section");e.forEach((i,o)=>{this.sort(i.querySelectorAll(".fragment"))},this),0===e.length&&this.sort(n.querySelectorAll(".fragment"))})}update(n,e){let i={shown:[],hidden:[]},o=this.Reveal.getCurrentSlide();if(o&&this.Reveal.getConfig().fragments&&(e=e||this.sort(o.querySelectorAll(".fragment"))).length){let r=0;if("number"!=typeof n){let a=this.sort(o.querySelectorAll(".fragment.visible")).pop();a&&(n=parseInt(a.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((a,l)=>{if(a.hasAttribute("data-fragment-index")&&(l=parseInt(a.getAttribute("data-fragment-index"),10)),r=Math.max(r,l),l<=n){let u=a.classList.contains("visible");a.classList.add("visible"),a.classList.remove("current-fragment"),l===n&&(this.Reveal.announceStatus(this.Reveal.getStatusText(a)),a.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(a)),u||(i.shown.push(a),this.Reveal.dispatchEvent({target:a,type:"visible",bubbles:!1}))}else{let u=a.classList.contains("visible");a.classList.remove("visible"),a.classList.remove("current-fragment"),u&&(this.Reveal.slideContent.stopEmbeddedContent(a),i.hidden.push(a),this.Reveal.dispatchEvent({target:a,type:"hidden",bubbles:!1}))}}),n="number"==typeof n?n:-1,n=Math.max(Math.min(n,r),-1),o.setAttribute("data-fragment",n)}return i}sync(n=this.Reveal.getCurrentSlide()){return this.sort(n.querySelectorAll(".fragment"))}goto(n,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let o=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(o.length){if("number"!=typeof n){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();n=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}let r=this.update(n+=e,o);return r.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:r.hidden[0],fragments:r.hidden}}),r.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:r.shown[0],fragments:r.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!r.shown.length&&!r.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class H3t{constructor(n){this.Reveal=n,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),Yr(this.Reveal.getRevealElement(),Um).forEach(o=>{o.classList.contains("stack")||o.addEventListener("click",this.onSlideClicked,!0)});const n=70,e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+n,this.overviewSlideHeight=e.height+n,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((n,e)=>{n.setAttribute("data-index-h",e),L4(n,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),n.classList.contains("stack")&&Yr(n,"section").forEach((i,o)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",o),L4(i,"translate3d(0, "+o*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((n,e)=>{L4(n,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),Yr(n,".slide-background").forEach((i,o)=>{L4(i,"translate3d(0, "+o*this.overviewSlideHeight+"px, 0)")})})}update(){const n=Math.min(window.innerWidth,window.innerHeight),e=Math.max(n/5,150)/n,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),Yr(this.Reveal.getRevealElement(),Um).forEach(e=>{L4(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),Yr(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{L4(e,"")}),this.Reveal.transformSlides({overview:""});const n=this.Reveal.getIndices();this.Reveal.slide(n.h,n.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:n.h,indexv:n.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(n){"boolean"==typeof n?n?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(n){if(this.isActive()){n.preventDefault();let e=n.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),o=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,o)}}}}class V3t{constructor(n){this.Reveal=n,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(n,e){"linear"===n.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(n,e){"object"==typeof n&&n.keyCode?this.bindings[n.keyCode]={callback:e,key:n.key,description:n.description}:this.bindings[n]={callback:e,key:null,description:null}}removeKeyBinding(n){delete this.bindings[n]}triggerKey(n){this.onDocumentKeyDown({keyCode:n})}registerKeyboardShortcut(n,e){this.shortcuts[n]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(n){n.shiftKey&&63===n.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(n){let e=this.Reveal.getConfig();if("function"==typeof e.keyboardCondition&&!1===e.keyboardCondition(n)||"focused"===e.keyboardCondition&&!this.Reveal.isFocused())return!0;let i=n.keyCode,o=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(n);let r=document.activeElement&&!0===document.activeElement.isContentEditable,a=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),u=!(-1!==[32,37,38,39,40,78,80].indexOf(n.keyCode)&&n.shiftKey||n.altKey)&&(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey);if(r||a||l||u)return;let f,M=[66,86,190,191];if("object"==typeof e.keyboard)for(f in e.keyboard)"togglePause"===e.keyboard[f]&&M.push(parseInt(f,10));if(this.Reveal.isPaused()&&-1===M.indexOf(i))return!1;let T="linear"===e.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),U=!1;if("object"==typeof e.keyboard)for(f in e.keyboard)if(parseInt(f,10)===i){let ie=e.keyboard[f];"function"==typeof ie?ie.apply(null,[n]):"string"==typeof ie&&"function"==typeof this.Reveal[ie]&&this.Reveal[ie].call(),U=!0}if(!1===U)for(f in this.bindings)if(parseInt(f,10)===i){let ie=this.bindings[f].callback;"function"==typeof ie?ie.apply(null,[n]):"string"==typeof ie&&"function"==typeof this.Reveal[ie]&&this.Reveal[ie].call(),U=!0}!1===U&&(U=!0,80===i||33===i?this.Reveal.prev({skipFragments:n.altKey}):78===i||34===i?this.Reveal.next({skipFragments:n.altKey}):72===i||37===i?n.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&T?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.left({skipFragments:n.altKey}):76===i||39===i?n.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&T?this.Reveal.next({skipFragments:n.altKey}):this.Reveal.right({skipFragments:n.altKey}):75===i||38===i?n.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&T?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.up({skipFragments:n.altKey}):74===i||40===i?n.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&T?this.Reveal.next({skipFragments:n.altKey}):this.Reveal.down({skipFragments:n.altKey}):36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),n.shiftKey?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.next({skipFragments:n.altKey})):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(ie=>{let se=(ie=ie||document.documentElement).requestFullscreen||ie.webkitRequestFullscreen||ie.webkitRequestFullScreen||ie.mozRequestFullScreen||ie.msRequestFullscreen;se&&se.apply(ie)})(e.embedded?this.Reveal.getViewportElement():document.documentElement):65===i?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(o):71===i?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():U=!1),U?n.preventDefault&&n.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),n.preventDefault&&n.preventDefault()),this.Reveal.cueAutoSlide()}}class B3t{constructor(n){var i;(i="MAX_REPLACE_STATE_FREQUENCY")in this?Object.defineProperty(this,i,{value:1e3,enumerable:!0,configurable:!0,writable:!0}):this[i]=1e3,this.Reveal=n,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(n=window.location.hash,e={}){let i=n.replace(/^#\/?/,""),o=i.split("/");if(/^[0-9]*$/.test(o[0])||!i.length){const r=this.Reveal.getConfig();let a,l=r.hashOneBasedIndex||e.oneBasedIndex?1:0,u=parseInt(o[0],10)-l||0,f=parseInt(o[1],10)-l||0;return r.fragmentInURL&&(a=parseInt(o[2],10),isNaN(a)&&(a=void 0)),{h:u,v:f,f:a}}{let r,a;/\/[-\d]+$/g.test(i)&&(a=parseInt(i.split("/").pop(),10),a=isNaN(a)?void 0:a,i=i.split("/").shift());try{r=document.getElementById(decodeURIComponent(i)).closest(".slides>section, .slides>section>section")}catch(l){}if(r)return hV(ap({},this.Reveal.getIndices(r)),{f:a})}return null}readURL(){const n=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?e.h===n.h&&e.v===n.v&&void 0===e.f||this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(n.h||0,n.v||0)}writeURL(n){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"number"==typeof n)this.writeURLTimeout=setTimeout(this.writeURL,n);else if(i){let o=this.getHash();e.history?window.location.hash=o:e.hash&&this.debouncedReplaceState("/"===o?window.location.pathname+window.location.search:"#"+o)}}replaceState(n){window.history.replaceState(null,null,n),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(n){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(n):this.replaceStateTimeout=setTimeout(()=>this.replaceState(n),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(n){let e="/",i=n||this.Reveal.getCurrentSlide(),o=i?i.getAttribute("id"):null;o&&(o=encodeURIComponent(o));let r=this.Reveal.getIndices(n);if(this.Reveal.getConfig().fragmentInURL||(r.f=void 0),"string"==typeof o&&o.length)e="/"+o,r.f>=0&&(e+="/"+r.f);else{let a=this.Reveal.getConfig().hashOneBasedIndex?1:0;(r.h>0||r.v>0||r.f>=0)&&(e+=r.h+a),(r.v>0||r.f>=0)&&(e+="/"+(r.v+a)),r.f>=0&&(e+="/"+r.f)}return e}onWindowHashChange(n){this.readURL()}}class G3t{constructor(n){this.Reveal=n,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const n=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`\n\t\t\t\n\t\t\t\n\t\t\t`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=Yr(e,".navigate-left"),this.controlsRight=Yr(e,".navigate-right"),this.controlsUp=Yr(e,".navigate-up"),this.controlsDown=Yr(e,".navigate-down"),this.controlsPrev=Yr(e,".navigate-prev"),this.controlsNext=Yr(e,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(n,e){this.element.style.display=n.controls?"block":"none",this.element.setAttribute("data-controls-layout",n.controlsLayout),this.element.setAttribute("data-controls-back-arrows",n.controlsBackArrows)}bind(){let n=["touchstart","click"];Sse&&(n=["touchstart"]),n.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1))})}unbind(){["touchstart","click"].forEach(n=>{this.controlsLeft.forEach(e=>e.removeEventListener(n,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(n,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(n,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(n,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(n,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(n,this.onNavigateNextClicked,!1))})}update(){let n=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),n.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(n.left||n.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(n.right||n.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(e)?(i.prev&&this.controlsUp.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(o=>{o.classList.add("fragmented","enabled"),o.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&n.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&n.left&&0===i.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&n.right&&0===i.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(n){n.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(n){n.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class Y3t{constructor(n){this.Reveal=n,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(n,e){this.element.style.display=n.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let n=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(n=0),this.bar.style.transform="scaleX("+n+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(n){this.Reveal.onUserInput(n),n.preventDefault();let e=this.Reveal.getSlides(),i=e.length,o=Math.floor(n.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(o=i-o);let r=this.Reveal.getIndices(e[o]);this.Reveal.slide(r.h,r.v)}destroy(){this.element.remove()}}class U3t{constructor(n){this.Reveal=n,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(n,e){n.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),n.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(n){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(n){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=n.detail||-n.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}}const Dse=(t,n)=>{const e=document.createElement("script");e.type="text/javascript",e.async=!1,e.defer=!1,e.src=t,"function"==typeof n&&(e.onload=e.onreadystatechange=o=>{("load"===o.type||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=e.onerror=null,n())},e.onerror=o=>{e.onload=e.onreadystatechange=e.onerror=null,n(new Error("Failed loading script: "+e.src+"\n"+o))});const i=document.querySelector("head");i.insertBefore(e,i.lastChild)};class j3t{constructor(n){this.Reveal=n,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(n,e){return this.state="loading",n.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let o=[],r=0;if(e.forEach(a=>{a.condition&&!a.condition()||(a.async?this.asyncDependencies.push(a):o.push(a))}),o.length){r=o.length;const a=l=>{l&&"function"==typeof l.callback&&l.callback(),0==--r&&this.initPlugins().then(i)};o.forEach(l=>{"string"==typeof l.id?(this.registerPlugin(l),a(l)):"string"==typeof l.src?Dse(l.src,()=>a(l)):(console.warn("Unrecognized plugin format",l),a())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(n=>{let e=Object.values(this.registeredPlugins),i=e.length;if(0===i)this.loadAsync().then(n);else{let o,r=()=>{0==--i?this.loadAsync().then(n):o()},a=0;o=()=>{let l=e[a++];if("function"==typeof l.init){let u=l.init(this.Reveal);u&&"function"==typeof u.then?u.then(r):r()}else r()},o()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(n=>{Dse(n.src,n.callback)}),Promise.resolve()}registerPlugin(n){2===arguments.length&&"string"==typeof arguments[0]?(n=arguments[1]).id=arguments[0]:"function"==typeof n&&(n=n());let e=n.id;"string"!=typeof e?console.warn("Unrecognized plugin format; can't find plugin.id",n):void 0===this.registeredPlugins[e]?(this.registeredPlugins[e]=n,"loaded"===this.state&&"function"==typeof n.init&&n.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered')}hasPlugin(n){return!!this.registeredPlugins[n]}getPlugin(n){return this.registeredPlugins[n]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(n=>{"function"==typeof n.destroy&&n.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}}class W3t{constructor(n){this.Reveal=n}setupPDF(){var n=this;return function P3t(t){return function(){var n=this,e=arguments;return new Promise(function(i,o){var r=t.apply(n,e);function a(u){Mse(r,i,o,a,l,"next",u)}function l(u){Mse(r,i,o,a,l,"throw",u)}a(void 0)})}}(function*(){const e=n.Reveal.getConfig(),i=Yr(n.Reveal.getRevealElement(),Um),o=e.slideNumber&&/all|print/i.test(e.showSlideNumber),r=n.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),a=Math.floor(r.width*(1+e.margin)),l=Math.floor(r.height*(1+e.margin)),u=r.width,f=r.height;yield new Promise(requestAnimationFrame),IF("@page{size:"+a+"px "+l+"px; margin: 0px;}"),IF(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+u+"px; max-height:"+f+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=a+"px",document.body.style.height=l+"px";const M=document.querySelector(".reveal-viewport");let T;if(M){const we=window.getComputedStyle(M);we&&we.background&&(T=we.background)}yield new Promise(requestAnimationFrame),n.Reveal.layoutSlideContents(u,f),yield new Promise(requestAnimationFrame);const U=i.map(we=>we.scrollHeight),ie=[],se=i[0].parentNode;let Me=1;i.forEach(function(we,He){if(!1===we.classList.contains("stack")){let Be=(a-u)/2,me=(l-f)/2;const ze=U[He];let qe=Math.max(Math.ceil(ze/l),1);qe=Math.min(qe,e.pdfMaxPagesPerSlide),(1===qe&&e.center||we.classList.contains("center"))&&(me=Math.max((l-ze)/2,0));const rt=document.createElement("div");if(ie.push(rt),rt.className="pdf-page",rt.style.height=(l+e.pdfPageHeightOffset)*qe+"px",T&&(rt.style.background=T),rt.appendChild(we),we.style.left=Be+"px",we.style.top=me+"px",we.style.width=u+"px",this.Reveal.slideContent.layout(we),we.slideBackgroundElement&&rt.insertBefore(we.slideBackgroundElement,we),e.showNotes){const xt=this.Reveal.getSlideNotes(we);if(xt){const jt="string"==typeof e.showNotes?e.showNotes:"inline",an=document.createElement("div");an.classList.add("speaker-notes"),an.classList.add("speaker-notes-pdf"),an.setAttribute("data-layout",jt),an.innerHTML=xt,"separate-page"===jt?ie.push(an):(an.style.left="8px",an.style.bottom="8px",an.style.width=a-16+"px",rt.appendChild(an))}}if(o){const xt=document.createElement("div");xt.classList.add("slide-number"),xt.classList.add("slide-number-pdf"),xt.innerHTML=Me++,rt.appendChild(xt)}if(e.pdfSeparateFragments){const xt=this.Reveal.fragments.sort(rt.querySelectorAll(".fragment"),!0);let Ut;xt.forEach(function(jt,an){Ut&&Ut.forEach(function(yn){yn.classList.remove("current-fragment")}),jt.forEach(function(yn){yn.classList.add("visible","current-fragment")},this);const pn=rt.cloneNode(!0);if(o){const yn=an+1;pn.querySelector(".slide-number-pdf").innerHTML+="."+yn}ie.push(pn),Ut=jt},this),xt.forEach(function(jt){jt.forEach(function(an){an.classList.remove("visible","current-fragment")})})}else Yr(rt,".fragment:not(.fade-out)").forEach(function(xt){xt.classList.add("visible")})}},n),yield new Promise(requestAnimationFrame),ie.forEach(we=>se.appendChild(we)),n.Reveal.slideContent.layout(n.Reveal.getSlidesElement()),n.Reveal.dispatchEvent({type:"pdf-ready"})})()}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class q3t{constructor(n){this.Reveal=n,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let n=this.Reveal.getRevealElement();"onpointerdown"in window?(n.addEventListener("pointerdown",this.onPointerDown,!1),n.addEventListener("pointermove",this.onPointerMove,!1),n.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(n.addEventListener("MSPointerDown",this.onPointerDown,!1),n.addEventListener("MSPointerMove",this.onPointerMove,!1),n.addEventListener("MSPointerUp",this.onPointerUp,!1)):(n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let n=this.Reveal.getRevealElement();n.removeEventListener("pointerdown",this.onPointerDown,!1),n.removeEventListener("pointermove",this.onPointerMove,!1),n.removeEventListener("pointerup",this.onPointerUp,!1),n.removeEventListener("MSPointerDown",this.onPointerDown,!1),n.removeEventListener("MSPointerMove",this.onPointerMove,!1),n.removeEventListener("MSPointerUp",this.onPointerUp,!1),n.removeEventListener("touchstart",this.onTouchStart,!1),n.removeEventListener("touchmove",this.onTouchMove,!1),n.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(n){if(AP(n,"video, audio"))return!0;for(;n&&"function"==typeof n.hasAttribute;){if(n.hasAttribute("data-prevent-swipe"))return!0;n=n.parentNode}return!1}onTouchStart(n){if(this.isSwipePrevented(n.target))return!0;this.touchStartX=n.touches[0].clientX,this.touchStartY=n.touches[0].clientY,this.touchStartCount=n.touches.length}onTouchMove(n){if(this.isSwipePrevented(n.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)Sse&&n.preventDefault();else{this.Reveal.onUserInput(n);let i=n.touches[0].clientX,o=n.touches[0].clientY;if(1===n.touches.length&&2!==this.touchStartCount){let r=this.Reveal.availableRoutes({includeFragments:!0}),a=i-this.touchStartX,l=o-this.touchStartY;a>40&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,"linear"===e.navigationMode?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,"linear"===e.navigationMode?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>40&&r.up?(this.touchCaptured=!0,"linear"===e.navigationMode?this.Reveal.prev():this.Reveal.up()):l<-40&&r.down&&(this.touchCaptured=!0,"linear"===e.navigationMode?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&n.preventDefault():n.preventDefault()}}}onTouchEnd(n){this.touchCaptured=!1}onPointerDown(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchStart(n))}onPointerMove(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchMove(n))}onPointerUp(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchEnd(n))}}const RF="focus";class $3t{constructor(n){this.Reveal=n,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(n,e){n.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==RF&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=RF}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return this.state===RF}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(n){this.focus()}onDocumentPointerDown(n){let e=Rd(n.target,".reveal");e&&e===this.Reveal.getRevealElement()||this.blur()}}class X3t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(n,e){n.showNotes&&this.element.setAttribute("data-layout","string"==typeof n.showNotes?n.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(n=this.Reveal.getCurrentSlide()){if(n.hasAttribute("data-notes"))return n.getAttribute("data-notes");let e=n.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join("\n"):null}destroy(){this.element.remove()}}class Q3t{constructor(n,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=n,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(n){const e=this.playing;this.playing=n,!e&&this.playing?this.animate():this.render()}animate(){const n=this.progress;this.progress=this.progressCheck(),n>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let n=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,o=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);const a=-Math.PI/2+n*(2*Math.PI),l=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,o,e+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,o,e,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,o,e,l,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,o-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(n,e){this.canvas.addEventListener(n,e,!1)}off(n,e){this.canvas.removeEventListener(n,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var Z3t={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,dependencies:[],plugins:[]};function Nse(t,n){arguments.length<2&&(n=arguments[0],t=document.querySelector(".reveal"));const e={};let i,o,r,a,l,u={},f=!1,M={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},T=[],U=1,ie={layout:"",overview:""},se={},Me="idle",we=0,He=0,Be=-1,me=!1,ze=new D3t(e),qe=new k3t(e),rt=new I3t(e),xt=new z3t(e),Ut=new N3t(e),jt=new F3t(e),an=new H3t(e),pn=new V3t(e),yn=new B3t(e),Kt=new G3t(e),kn=new Y3t(e),ri=new U3t(e),Rn=new j3t(e),ni=new W3t(e),Jn=new $3t(e),Oi=new q3t(e),qn=new X3t(e);function Wi(Tn){if(!t)throw'Unable to find presentation root (
    ).';if(se.wrapper=t,se.slides=t.querySelector(".slides"),!se.slides)throw'Unable to find slides container (
    ).';return u=ap(ap(ap(ap(ap({},Z3t),u),n),Tn),Ose()),Ai(),window.addEventListener("load",z4,!1),Rn.load(u.plugins,u.dependencies).then(Bi),new Promise(ai=>e.on("ready",ai))}function Ai(){!0===u.embedded?se.viewport=Rd(t,".reveal-viewport")||t:(se.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),se.viewport.classList.add("reveal-viewport")}function Bi(){f=!0,lo(),nr(),Ii(),jn(),yi(),cJt(),Vn(),yn.readURL(),Ut.update(!0),setTimeout(()=>{se.slides.classList.remove("no-transition"),se.wrapper.classList.add("ready"),Ec({type:"ready",data:{indexh:i,indexv:o,currentSlide:a}})},1),ni.isPrintingPDF()&&(Zo(),"complete"===document.readyState?ni.setupPDF():window.addEventListener("load",()=>{ni.setupPDF()}))}function lo(){u.showHiddenSlides||Yr(se.wrapper,'section[data-visibility="hidden"]').forEach(Tn=>{Tn.parentNode.removeChild(Tn)})}function nr(){se.slides.classList.add("no-transition"),u8?se.wrapper.classList.add("no-hover"):se.wrapper.classList.remove("no-hover"),Ut.render(),qe.render(),rt.render(),Kt.render(),kn.render(),qn.render(),se.pauseOverlay=T3t(se.wrapper,"div","pause-overlay",u.controls?'':null),se.statusElement=Nr(),se.wrapper.setAttribute("role","application")}function Nr(){let Tn=se.wrapper.querySelector(".aria-status");return Tn||(Tn=document.createElement("div"),Tn.style.position="absolute",Tn.style.height="1px",Tn.style.width="1px",Tn.style.overflow="hidden",Tn.style.clip="rect( 1px, 1px, 1px, 1px )",Tn.classList.add("aria-status"),Tn.setAttribute("aria-live","polite"),Tn.setAttribute("aria-atomic","true"),se.wrapper.appendChild(Tn)),Tn}function ro(Tn){se.statusElement.textContent=Tn}function ki(Tn){let ai="";if(3===Tn.nodeType)ai+=Tn.textContent;else if(1===Tn.nodeType){let uo=Tn.getAttribute("aria-hidden"),to="none"===window.getComputedStyle(Tn).display;"true"===uo||to||Array.from(Tn.childNodes).forEach(Wo=>{ai+=ki(Wo)})}return ai=ai.trim(),""===ai?"":ai+" "}function jn(){setInterval(()=>{0===se.wrapper.scrollTop&&0===se.wrapper.scrollLeft||(se.wrapper.scrollTop=0,se.wrapper.scrollLeft=0)},1e3)}function yi(){document.addEventListener("fullscreenchange",CT),document.addEventListener("webkitfullscreenchange",CT)}function Ii(){u.postMessage&&window.addEventListener("message",Ffe,!1)}function Vn(Tn){const ai=ap({},u);if("object"==typeof Tn&&l8(u,Tn),!1===e.isReady())return;const uo=se.wrapper.querySelectorAll(Um).length;se.wrapper.classList.remove(ai.transition),se.wrapper.classList.add(u.transition),se.wrapper.setAttribute("data-transition-speed",u.transitionSpeed),se.wrapper.setAttribute("data-background-transition",u.backgroundTransition),se.viewport.style.setProperty("--slide-width",u.width+"px"),se.viewport.style.setProperty("--slide-height",u.height+"px"),u.shuffle&&rV(),kF(se.wrapper,"embedded",u.embedded),kF(se.wrapper,"rtl",u.rtl),kF(se.wrapper,"center",u.center),!1===u.pause&&H4(),u.previewLinks?(dh(),Ac("[data-preview-link=false]")):(Ac(),dh("[data-preview-link]:not([data-preview-link=false])")),xt.reset(),l&&(l.destroy(),l=null),uo>1&&u.autoSlide&&u.autoSlideStoppable&&(l=new Q3t(se.wrapper,()=>Math.min(Math.max((Date.now()-Be)/we,0),1)),l.on("click",gJt),me=!1),"default"!==u.navigationMode?se.wrapper.setAttribute("data-navigation-mode",u.navigationMode):se.wrapper.removeAttribute("data-navigation-mode"),qn.configure(u,ai),Jn.configure(u,ai),ri.configure(u,ai),Kt.configure(u,ai),kn.configure(u,ai),pn.configure(u,ai),jt.configure(u,ai),qe.configure(u,ai),Ofe()}function Ei(){window.addEventListener("resize",Bfe,!1),u.touch&&Oi.bind(),u.keyboard&&pn.bind(),u.progress&&kn.bind(),u.respondToHashChanges&&yn.bind(),Kt.bind(),Jn.bind(),se.slides.addEventListener("click",Vfe,!1),se.slides.addEventListener("transitionend",Hfe,!1),se.pauseOverlay.addEventListener("click",H4,!1),u.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Gfe,!1)}function Zo(){Oi.unbind(),Jn.unbind(),pn.unbind(),Kt.unbind(),kn.unbind(),yn.unbind(),window.removeEventListener("resize",Bfe,!1),se.slides.removeEventListener("click",Vfe,!1),se.slides.removeEventListener("transitionend",Hfe,!1),se.pauseOverlay.removeEventListener("click",H4,!1)}function Sa(){Zo(),fT(),Ac(),qn.destroy(),Jn.destroy(),Rn.destroy(),ri.destroy(),Kt.destroy(),kn.destroy(),Ut.destroy(),qe.destroy(),rt.destroy(),document.removeEventListener("fullscreenchange",CT),document.removeEventListener("webkitfullscreenchange",CT),document.removeEventListener("visibilitychange",Gfe,!1),window.removeEventListener("message",Ffe,!1),window.removeEventListener("load",z4,!1),se.pauseOverlay&&se.pauseOverlay.remove(),se.statusElement&&se.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),se.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),se.wrapper.removeAttribute("data-transition-speed"),se.wrapper.removeAttribute("data-background-transition"),se.viewport.classList.remove("reveal-viewport"),se.viewport.style.removeProperty("--slide-width"),se.viewport.style.removeProperty("--slide-height"),se.slides.style.removeProperty("width"),se.slides.style.removeProperty("height"),se.slides.style.removeProperty("zoom"),se.slides.style.removeProperty("left"),se.slides.style.removeProperty("top"),se.slides.style.removeProperty("bottom"),se.slides.style.removeProperty("right"),se.slides.style.removeProperty("transform"),Array.from(se.wrapper.querySelectorAll(Um)).forEach(Tn=>{Tn.style.removeProperty("display"),Tn.style.removeProperty("top"),Tn.removeAttribute("hidden"),Tn.removeAttribute("aria-hidden")})}function $a(Tn,ai,uo){t.addEventListener(Tn,ai,uo)}function Cr(Tn,ai,uo){t.removeEventListener(Tn,ai,uo)}function gs(Tn){"string"==typeof Tn.layout&&(ie.layout=Tn.layout),"string"==typeof Tn.overview&&(ie.overview=Tn.overview),L4(se.slides,ie.layout?ie.layout+" "+ie.overview:ie.overview)}function Ec({target:Tn=se.wrapper,type:ai,data:uo,bubbles:to=!0}){let Wo=document.createEvent("HTMLEvents",1,2);return Wo.initEvent(ai,to,!0),l8(Wo,uo),Tn.dispatchEvent(Wo),Tn===se.wrapper&&Nl(ai),Wo}function Nl(Tn,ai){if(u.postMessageEvents&&window.parent!==window.self){let uo={namespace:"reveal",eventName:Tn,state:Rfe()};l8(uo,ai),window.parent.postMessage(JSON.stringify(uo),"*")}}function dh(Tn="a"){Array.from(se.wrapper.querySelectorAll(Tn)).forEach(ai=>{/^(http|www)/gi.test(ai.getAttribute("href"))&&ai.addEventListener("click",Yfe,!1)})}function Ac(Tn="a"){Array.from(se.wrapper.querySelectorAll(Tn)).forEach(ai=>{/^(http|www)/gi.test(ai.getAttribute("href"))&&ai.removeEventListener("click",Yfe,!1)})}function Js(Tn){o0(),se.overlay=document.createElement("div"),se.overlay.classList.add("overlay"),se.overlay.classList.add("overlay-preview"),se.wrapper.appendChild(se.overlay),se.overlay.innerHTML=`
    \n\t\t\t\t\n\t\t\t\t\n\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site's policy (x-frame-options).\n\t\t\t\t\n\t\t\t
    `,se.overlay.querySelector("iframe").addEventListener("load",ai=>{se.overlay.classList.add("loaded")},!1),se.overlay.querySelector(".close").addEventListener("click",ai=>{o0(),ai.preventDefault()},!1),se.overlay.querySelector(".external").addEventListener("click",ai=>{o0()},!1)}function H3(Tn){"boolean"==typeof Tn?Tn?R4():o0():se.overlay?o0():R4()}function R4(){if(u.help){o0(),se.overlay=document.createElement("div"),se.overlay.classList.add("overlay"),se.overlay.classList.add("overlay-help"),se.wrapper.appendChild(se.overlay);let Tn='

    Keyboard Shortcuts


    ',ai=pn.getShortcuts(),uo=pn.getBindings();Tn+="";for(let to in ai)Tn+=``;for(let to in uo)uo[to].key&&uo[to].description&&(Tn+=``);Tn+="
    KEYACTION
    ${to}${ai[to]}
    ${uo[to].key}${uo[to].description}
    ",se.overlay.innerHTML=`\n\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t
    ${Tn}
    \n\t\t\t\t
    \n\t\t\t`,se.overlay.querySelector(".close").addEventListener("click",to=>{o0(),to.preventDefault()},!1)}}function o0(){return!!se.overlay&&(se.overlay.parentNode.removeChild(se.overlay),se.overlay=null,!0)}function z4(){if(se.wrapper&&!ni.isPrintingPDF()){if(!u.disableLayout){u8&&!u.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const Tn=uT(),ai=U;dT(u.width,u.height),se.slides.style.width=Tn.width+"px",se.slides.style.height=Tn.height+"px",U=Math.min(Tn.presentationWidth/Tn.width,Tn.presentationHeight/Tn.height),U=Math.max(U,u.minScale),U=Math.min(U,u.maxScale),1===U?(se.slides.style.zoom="",se.slides.style.left="",se.slides.style.top="",se.slides.style.bottom="",se.slides.style.right="",gs({layout:""})):(se.slides.style.zoom="",se.slides.style.left="50%",se.slides.style.top="50%",se.slides.style.bottom="auto",se.slides.style.right="auto",gs({layout:"translate(-50%, -50%) scale("+U+")"}));const uo=Array.from(se.wrapper.querySelectorAll(Um));for(let to=0,Wo=uo.length;to .stretch, section > .r-stretch").forEach(uo=>{let to=E3t(uo,ai);if(/(img|video)/gi.test(uo.nodeName)){const Wo=uo.naturalWidth||uo.videoWidth,Ds=uo.naturalHeight||uo.videoHeight,o1=Math.min(Tn/Wo,to/Ds);uo.style.width=Wo*o1+"px",uo.style.height=Ds*o1+"px"}else uo.style.width=Tn+"px",uo.style.height=to+"px"})}function uT(Tn,ai){let uo=u.width,to=u.height;u.disableLayout&&(uo=se.slides.offsetWidth,to=se.slides.offsetHeight);const Wo={width:uo,height:to,presentationWidth:Tn||se.wrapper.offsetWidth,presentationHeight:ai||se.wrapper.offsetHeight};return Wo.presentationWidth-=Wo.presentationWidth*u.margin,Wo.presentationHeight-=Wo.presentationHeight*u.margin,"string"==typeof Wo.width&&/%$/.test(Wo.width)&&(Wo.width=parseInt(Wo.width,10)/100*Wo.presentationWidth),"string"==typeof Wo.height&&/%$/.test(Wo.height)&&(Wo.height=parseInt(Wo.height,10)/100*Wo.presentationHeight),Wo}function hT(Tn,ai){"object"==typeof Tn&&"function"==typeof Tn.setAttribute&&Tn.setAttribute("data-previous-indexv",ai||0)}function pT(Tn){if("object"==typeof Tn&&"function"==typeof Tn.setAttribute&&Tn.classList.contains("stack")){const ai=Tn.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(Tn.getAttribute(ai)||0,10)}return 0}function F4(Tn=a){return Tn&&Tn.parentNode&&!!Tn.parentNode.nodeName.match(/section/i)}function hb(){return!(!a||!F4(a)||a.nextElementSibling)}function pb(){return 0===i&&0===o}function m8(){return!(!a||a.nextElementSibling||F4(a)&&a.parentNode.nextElementSibling)}function V3(){if(u.pause){const Tn=se.wrapper.classList.contains("paused");fT(),se.wrapper.classList.add("paused"),!1===Tn&&Ec({type:"paused"})}}function H4(){const Tn=se.wrapper.classList.contains("paused");se.wrapper.classList.remove("paused"),_8(),Tn&&Ec({type:"resumed"})}function fb(Tn){"boolean"==typeof Tn?Tn?V3():H4():V4()?H4():V3()}function V4(){return se.wrapper.classList.contains("paused")}function oV(Tn){"boolean"==typeof Tn?Tn?rt.show():rt.hide():rt.isVisible()?rt.hide():rt.show()}function ip(Tn){"boolean"==typeof Tn?Tn?mT():gT():me?mT():gT()}function aJt(){return!(!we||me)}function op(Tn,ai,uo,to){if(Ec({type:"beforeslidechange",data:{indexh:void 0===Tn?i:Tn,indexv:void 0===ai?o:ai,origin:to}}).defaultPrevented)return;r=a;const Wo=se.wrapper.querySelectorAll(jm);if(0===Wo.length)return;void 0!==ai||an.isActive()||(ai=pT(Wo[Tn])),r&&r.parentNode&&r.parentNode.classList.contains("stack")&&hT(r.parentNode,o);const Ds=T.concat();T.length=0;let o1=i||0,uh=o||0;i=Sfe(jm,void 0===Tn?i:Tn),o=Sfe(Ese,void 0===ai?o:ai);let G3=i!==o1||o!==uh;G3||(r=null);let Xm=Wo[i];a=Xm.querySelectorAll("section")[o]||Xm;let Rl=!1;G3&&r&&a&&!an.isActive()&&(r.hasAttribute("data-auto-animate")&&a.hasAttribute("data-auto-animate")&&r.getAttribute("data-auto-animate-id")===a.getAttribute("data-auto-animate-id")&&!(i>o1||o>uh?a:r).hasAttribute("data-auto-animate-restart")&&(Rl=!0,se.slides.classList.add("disable-slide-transitions")),Me="running"),aV(),z4(),an.isActive()&&an.update(),void 0!==uo&&jt.goto(uo),r&&r!==a&&(r.classList.remove("present"),r.setAttribute("aria-hidden","true"),pb()&&setTimeout(()=>{dJt().forEach(rp=>{hT(rp,0)})},0));e:for(let rp=0,mJt=T.length;rp{ro(ki(a))}),kn.update(),Kt.update(),qn.update(),Ut.update(),Ut.updateParallax(),qe.update(),jt.update(),yn.writeURL(),_8(),Rl&&(setTimeout(()=>{se.slides.classList.remove("disable-slide-transitions")},0),u.autoAnimate&&xt.run(r,a))}function Ofe(){Zo(),Ei(),z4(),we=u.autoSlide,_8(),Ut.create(),yn.writeURL(),!0===u.sortFragmentsOnSync&&jt.sortAll(),Kt.update(),kn.update(),aV(),qn.update(),qn.updateVisibility(),Ut.update(!0),qe.update(),ze.formatEmbeddedContent(),!1===u.autoPlayMedia?ze.stopEmbeddedContent(a,{unloadIframes:!1}):ze.startEmbeddedContent(a),an.isActive()&&an.layout()}function sJt(Tn=a){Ut.sync(Tn),jt.sync(Tn),ze.load(Tn),Ut.update(),qn.update()}function cJt(){B4().forEach(Tn=>{Yr(Tn,"section").forEach((ai,uo)=>{uo>0&&(ai.classList.remove("present"),ai.classList.remove("past"),ai.classList.add("future"),ai.setAttribute("aria-hidden","true"))})})}function rV(Tn=B4()){Tn.forEach((ai,uo)=>{let to=Tn[Math.floor(Math.random()*Tn.length)];to.parentNode===ai.parentNode&&ai.parentNode.insertBefore(ai,to);let Wo=ai.querySelectorAll("section");Wo.length&&rV(Wo)})}function Sfe(Tn,ai){let uo=Yr(se.wrapper,Tn),to=uo.length,Wo=ni.isPrintingPDF(),Ds=!1,o1=!1;if(to){u.loop&&(ai>=to&&(Ds=!0),(ai%=to)<0&&(ai=to+ai,o1=!0)),ai=Math.max(Math.min(ai,to-1),0);for(let Ou=0;Ouai?(Rl.classList.add(rp?"past":"future"),u.fragments&&Tfe(Rl)):Ou===ai&&u.fragments&&(Ds?Tfe(Rl):o1&&Pfe(Rl))}let uh=uo[ai],G3=uh.classList.contains("present");uh.classList.add("present"),uh.removeAttribute("hidden"),uh.removeAttribute("aria-hidden"),G3||Ec({target:uh,type:"visible",bubbles:!1});let Xm=uh.getAttribute("data-state");Xm&&(T=T.concat(Xm.split(" ")))}else ai=0;return ai}function Pfe(Tn){Yr(Tn,".fragment").forEach(ai=>{ai.classList.add("visible"),ai.classList.remove("current-fragment")})}function Tfe(Tn){Yr(Tn,".fragment.visible").forEach(ai=>{ai.classList.remove("visible","current-fragment")})}function aV(){let Tn,ai,uo=B4(),to=uo.length;if(to&&void 0!==i){let Wo=an.isActive()?10:u.viewDistance;u8&&(Wo=an.isActive()?6:u.mobileViewDistance),ni.isPrintingPDF()&&(Wo=Number.MAX_VALUE);for(let Ds=0;Ds0,right:i0,down:o1&&(to.left=!0,to.right=!0),uo.length>1&&(to.up=!0,to.down=!0)),ai.length>1&&"linear"===u.navigationMode&&(to.right=to.right||to.down,to.left=to.left||to.up),!0===Tn){let Wo=jt.availableRoutes();to.left=to.left||Wo.prev,to.up=to.up||Wo.prev,to.down=to.down||Wo.next,to.right=to.right||Wo.next}if(u.rtl){let Wo=to.left;to.left=to.right,to.right=Wo}return to}function Efe(Tn=a){let ai=B4(),uo=0;e:for(let to=0;to0){let to=.9;ai+=a.querySelectorAll(".fragment.visible").length/uo.length*to}}return Math.min(ai/(Tn-1),1)}function Afe(Tn){let ai,uo=i,to=o;if(Tn){let Wo=F4(Tn),Ds=Wo?Tn.parentNode:Tn,o1=B4();uo=Math.max(o1.indexOf(Ds),0),to=void 0,Wo&&(to=Math.max(Yr(Tn.parentNode,"section").indexOf(Tn),0))}if(!Tn&&a&&a.querySelectorAll(".fragment").length>0){let Wo=a.querySelector(".current-fragment");ai=Wo&&Wo.hasAttribute("data-fragment-index")?parseInt(Wo.getAttribute("data-fragment-index"),10):a.querySelectorAll(".fragment.visible").length-1}return{h:uo,v:to,f:ai}}function sV(){return Yr(se.wrapper,Um+':not(.stack):not([data-visibility="uncounted"])')}function B4(){return Yr(se.wrapper,jm)}function Lfe(){return Yr(se.wrapper,".slides>section>section")}function dJt(){return Yr(se.wrapper,jm+".stack")}function Dfe(){return B4().length>1}function kfe(){return Lfe().length>1}function uJt(){return sV().map(Tn=>{let ai={};for(let uo=0;uo{Wo.hasAttribute("data-autoplay")&&we&&1e3*Wo.duration/Wo.playbackRate>we&&(we=1e3*Wo.duration/Wo.playbackRate+1e3)})),!we||me||V4()||an.isActive()||m8()&&!jt.availableRoutes().next&&!0!==u.loop||(He=setTimeout(()=>{"function"==typeof u.autoSlideMethod?u.autoSlideMethod():uV(),_8()},we),Be=Date.now()),l&&l.setPlaying(-1!==He)}}function fT(){clearTimeout(He),He=-1}function gT(){we&&!me&&(me=!0,Ec({type:"autoslidepaused"}),clearTimeout(He),l&&l.setPlaying(!1))}function mT(){we&&me&&(me=!1,Ec({type:"autoslideresumed"}),_8())}function _T({skipFragments:Tn=!1}={}){M.hasNavigatedHorizontally=!0,u.rtl?(an.isActive()||Tn||!1===jt.next())&&B3().left&&op(i+1,"grid"===u.navigationMode?o:void 0):(an.isActive()||Tn||!1===jt.prev())&&B3().left&&op(i-1,"grid"===u.navigationMode?o:void 0)}function cV({skipFragments:Tn=!1}={}){M.hasNavigatedHorizontally=!0,u.rtl?(an.isActive()||Tn||!1===jt.prev())&&B3().right&&op(i-1,"grid"===u.navigationMode?o:void 0):(an.isActive()||Tn||!1===jt.next())&&B3().right&&op(i+1,"grid"===u.navigationMode?o:void 0)}function lV({skipFragments:Tn=!1}={}){(an.isActive()||Tn||!1===jt.prev())&&B3().up&&op(i,o-1)}function dV({skipFragments:Tn=!1}={}){M.hasNavigatedVertically=!0,(an.isActive()||Tn||!1===jt.next())&&B3().down&&op(i,o+1)}function zfe({skipFragments:Tn=!1}={}){if(Tn||!1===jt.prev())if(B3().up)lV({skipFragments:Tn});else{let ai;if(ai=u.rtl?Yr(se.wrapper,jm+".future").pop():Yr(se.wrapper,jm+".past").pop(),ai&&ai.classList.contains("stack")){let uo=ai.querySelectorAll("section").length-1||void 0;op(i-1,uo)}else _T({skipFragments:Tn})}}function uV({skipFragments:Tn=!1}={}){if(M.hasNavigatedHorizontally=!0,M.hasNavigatedVertically=!0,Tn||!1===jt.next()){let ai=B3();ai.down&&ai.right&&u.loop&&hb()&&(ai.down=!1),ai.down?dV({skipFragments:Tn}):u.rtl?_T({skipFragments:Tn}):cV({skipFragments:Tn})}}function fJt(Tn){u.autoSlideStoppable&&gT()}function Ffe(Tn){let ai=Tn.data;if("string"==typeof ai&&"{"===ai.charAt(0)&&"}"===ai.charAt(ai.length-1)&&(ai=JSON.parse(ai),ai.method&&"function"==typeof e[ai.method]))if(!1===R3t.test(ai.method)){const uo=e[ai.method].apply(e,ai.args);Nl("callback",{method:ai.method,result:uo})}else console.warn('reveal.js: "'+ai.method+'" is is blacklisted from the postMessage API')}function Hfe(Tn){"running"===Me&&/section/gi.test(Tn.target.nodeName)&&(Me="idle",Ec({type:"slidetransitionend",data:{indexh:i,indexv:o,previousSlide:r,currentSlide:a}}))}function Vfe(Tn){const ai=Rd(Tn.target,'a[href^="#"]');if(ai){const uo=ai.getAttribute("href"),to=yn.getIndicesFromHash(uo);to&&(e.slide(to.h,to.v,to.f),Tn.preventDefault())}}function Bfe(Tn){z4()}function Gfe(Tn){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function CT(Tn){(document.fullscreenElement||document.webkitFullscreenElement)===se.wrapper&&(Tn.stopImmediatePropagation(),setTimeout(()=>{e.layout(),e.focus.focus()},1))}function Yfe(Tn){if(Tn.currentTarget&&Tn.currentTarget.hasAttribute("href")){let ai=Tn.currentTarget.getAttribute("href");ai&&(Js(ai),Tn.preventDefault())}}function gJt(Tn){m8()&&!1===u.loop?(op(0,0),mT()):me?mT():gT()}const Ufe={VERSION:"4.6.0",initialize:Wi,configure:Vn,destroy:Sa,sync:Ofe,syncSlide:sJt,syncFragments:jt.sync.bind(jt),slide:op,left:_T,right:cV,up:lV,down:dV,prev:zfe,next:uV,navigateLeft:_T,navigateRight:cV,navigateUp:lV,navigateDown:dV,navigatePrev:zfe,navigateNext:uV,navigateFragment:jt.goto.bind(jt),prevFragment:jt.prev.bind(jt),nextFragment:jt.next.bind(jt),on:$a,off:Cr,addEventListener:$a,removeEventListener:Cr,layout:z4,shuffle:rV,availableRoutes:B3,availableFragments:jt.availableRoutes.bind(jt),toggleHelp:H3,toggleOverview:an.toggle.bind(an),togglePause:fb,toggleAutoSlide:ip,toggleJumpToSlide:oV,isFirstSlide:pb,isLastSlide:m8,isLastVerticalSlide:hb,isVerticalSlide:F4,isPaused:V4,isAutoSliding:aJt,isSpeakerNotes:qn.isSpeakerNotesWindow.bind(qn),isOverview:an.isActive.bind(an),isFocused:Jn.isFocused.bind(Jn),isPrintingPDF:ni.isPrintingPDF.bind(ni),isReady:()=>f,loadSlide:ze.load.bind(ze),unloadSlide:ze.unload.bind(ze),startEmbeddedContent:()=>ze.startEmbeddedContent(a),stopEmbeddedContent:()=>ze.stopEmbeddedContent(a,{unloadIframes:!1}),showPreview:Js,hidePreview:o0,addEventListeners:Ei,removeEventListeners:Zo,dispatchEvent:Ec,getState:Rfe,setState:pJt,getProgress:lJt,getIndices:Afe,getSlidesAttributes:uJt,getSlidePastCount:Efe,getTotalSlides:Ife,getSlide:Nfe,getPreviousSlide:()=>r,getCurrentSlide:()=>a,getSlideBackground:hJt,getSlideNotes:qn.getSlideNotes.bind(qn),getSlides:sV,getHorizontalSlides:B4,getVerticalSlides:Lfe,hasHorizontalSlides:Dfe,hasVerticalSlides:kfe,hasNavigatedHorizontally:()=>M.hasNavigatedHorizontally,hasNavigatedVertically:()=>M.hasNavigatedVertically,addKeyBinding:pn.addKeyBinding.bind(pn),removeKeyBinding:pn.removeKeyBinding.bind(pn),triggerKey:pn.triggerKey.bind(pn),registerKeyboardShortcut:pn.registerKeyboardShortcut.bind(pn),getComputedSlideSize:uT,getScale:()=>U,getConfig:()=>u,getQueryHash:Ose,getSlidePath:yn.getHash.bind(yn),getRevealElement:()=>t,getSlidesElement:()=>se.slides,getViewportElement:()=>se.viewport,getBackgroundsElement:()=>Ut.element,registerPlugin:Rn.registerPlugin.bind(Rn),hasPlugin:Rn.hasPlugin.bind(Rn),getPlugin:Rn.getPlugin.bind(Rn),getPlugins:Rn.getRegisteredPlugins.bind(Rn)};return l8(e,hV(ap({},Ufe),{announceStatus:ro,getStatusText:ki,print:ni,focus:Jn,progress:kn,controls:Kt,location:yn,overview:an,fragments:jt,slideContent:ze,slideNumber:qe,onUserInput:fJt,closeOverlay:o0,updateSlidesVisibility:aV,layoutSlideContents:dT,transformSlides:gs,cueAutoSlide:_8,cancelAutoSlide:fT})),Ufe}let D4=Nse,Rse=[];D4.initialize=t=>(Object.assign(D4,new Nse(document.querySelector(".reveal"),t)),Rse.map(n=>n(D4)),D4.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{D4[t]=(...n)=>{Rse.push(e=>e[t].call(null,...n))}}),D4.isReady=()=>!1,D4.VERSION="4.6.0";const K3t=D4;let h8={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const eft=/[&<>"']/,tft=/[&<>"']/g,nft=/[<>"']|&(?!#?\w+;)/,ift=/[<>"']|&(?!#?\w+;)/g,oft={"&":"&","<":"<",">":">",'"':""","'":"'"},zse=t=>oft[t];function V1(t,n){if(n){if(eft.test(t))return t.replace(tft,zse)}else if(nft.test(t))return t.replace(ift,zse);return t}const rft=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Fse(t){return t.replace(rft,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const aft=/(^|[^\[])\^/g;function lc(t,n){t=t.source||t,n=n||"";const e={replace:(i,o)=>(o=(o=o.source||o).replace(aft,"$1"),t=t.replace(i,o),e),getRegex:()=>new RegExp(t,n)};return e}const sft=/[^\w:]/g,cft=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Hse(t,n,e){if(t){let i;try{i=decodeURIComponent(Fse(e)).replace(sft,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}n&&!cft.test(e)&&(e=function(i,o){DP[" "+i]||(DP[" "+i]=lft.test(i)?i+"/":IP(i,"/",!0));const r=-1===(i=DP[" "+i]).indexOf(":");return"//"===o.substring(0,2)?r?o:i.replace(dft,"$1")+o:"/"===o.charAt(0)?r?o:i.replace(uft,"$1")+o:i+o}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(i){return null}return e}const DP={},lft=/^[^:]+:\/*[^/]*$/,dft=/^([^:]+:)[\s\S]*$/,uft=/^([^:]+:\/*[^/]*)[\s\S]*$/,kP={exec:function(){}};function t0(t){let n,e,i=1;for(;i{let l=!1,u=r;for(;--u>=0&&"\\"===a[u];)l=!l;return l?"|":" |"}).split(/ \|/);let i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>n)e.splice(n);else for(;e.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function Yse(t,n,e,i){const o=n.href,r=n.title?V1(n.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const l={type:"link",raw:e,href:o,title:r,text:a,tokens:i.inlineTokens(a,[])};return i.state.inLink=!1,l}return{type:"image",raw:e,href:o,title:r,text:V1(a)}}class zF{constructor(n){this.options=n||h8}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:IP(i,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const i=e[0],o=function(r,a){const l=r.match(/^(\s+)(?:```)/);if(null===l)return a;const u=l[1];return a.split("\n").map(f=>{const M=f.match(/^\s+/);if(null===M)return f;const[T]=M;return T.length>=u.length?f.slice(u.length):f}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let i=e[2].trim();if(/#$/.test(i)){const r=IP(i,"#");this.options.pedantic?i=r.trim():r&&!/ $/.test(r)||(i=r.trim())}const o={type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const i=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(n){let e=this.rules.block.list.exec(n);if(e){let i,o,r,a,l,u,f,M,T,U,ie,se,Me=e[1].trim();const we=Me.length>1,He={type:"list",raw:"",ordered:we,start:we?+Me.slice(0,-1):"",loose:!1,items:[]};Me=we?`\\d{1,9}\\${Me.slice(-1)}`:`\\${Me}`,this.options.pedantic&&(Me=we?Me:"[*+-]");const Be=new RegExp(`^( {0,3}${Me})((?: [^\\n]*)?(?:\\n|$))`);for(;n&&(se=!1,e=Be.exec(n))&&!this.rules.block.hr.test(n);){if(i=e[0],n=n.substring(i.length),M=e[2].split("\n",1)[0],T=n.split("\n",1)[0],this.options.pedantic?(a=2,ie=M.trimLeft()):(a=e[2].search(/[^ ]/),a=a>4?1:a,ie=M.slice(a),a+=e[1].length),u=!1,!M&&/^ *$/.test(T)&&(i+=T+"\n",n=n.substring(T.length+1),se=!0),!se){const ze=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;n&&(U=n.split("\n",1)[0],M=U,this.options.pedantic&&(M=M.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!ze.test(M));){if(M.search(/[^ ]/)>=a||!M.trim())ie+="\n"+M.slice(a);else{if(u)break;ie+="\n"+M}u||M.trim()||(u=!0),i+=U+"\n",n=n.substring(U.length+1)}}He.loose||(f?He.loose=!0:/\n *\n *$/.test(i)&&(f=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(ie),o&&(r="[ ] "!==o[0],ie=ie.replace(/^\[[ xX]\] +/,""))),He.items.push({type:"list_item",raw:i,task:!!o,checked:r,loose:!1,text:ie}),He.raw+=i}He.items[He.items.length-1].raw=i.trimRight(),He.items[He.items.length-1].text=ie.trimRight(),He.raw=He.raw.trimRight();const me=He.items.length;for(l=0;l"space"===rt.type),qe=ze.every(rt=>{const xt=rt.raw.split("");let Ut=0;for(const jt of xt)if("\n"===jt&&(Ut+=1),Ut>1)return!0;return!1});!He.loose&&ze.length&&qe&&(He.loose=!0,He.items[l].loose=!0)}return He}}html(n){const e=this.rules.block.html.exec(n);if(e){const i={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(e[0]):V1(e[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(n){const e=this.rules.block.def.exec(n);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}table(n){const e=this.rules.block.table.exec(n);if(e){const i={type:"table",header:Vse(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let o,r,a,l,u=i.align.length;for(o=0;o({text:f}));for(u=i.header.length,r=0;r/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:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):V1(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const a=IP(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{const a=function(l,u){if(-1===l.indexOf(u[1]))return-1;const f=l.length;let M=0,T=0;for(;T-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],r="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a&&(o=a[1],r=a[3])}else r=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(i)?o.slice(1):o.slice(1,-1)),Yse(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){let o=(i[2]||i[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o||!o.href){const r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return Yse(i,o,i[0],this.lexer)}}emStrong(n,e,i=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&i.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===i||this.rules.inline.punctuation.exec(i))){const a=o[0].length-1;let l,u,f=a,M=0;const T="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(T.lastIndex=0,e=e.slice(-1*n.length+a);null!=(o=T.exec(e));){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(u=l.length,o[3]||o[4]){f+=u;continue}if((o[5]||o[6])&&a%3&&!((a+u)%3)){M+=u;continue}if(f-=u,f>0)continue;if(u=Math.min(u,u+f+M),Math.min(a,u)%2){const ie=n.slice(1,a+o.index+u);return{type:"em",raw:n.slice(0,a+o.index+u+1),text:ie,tokens:this.lexer.inlineTokens(ie,[])}}const U=n.slice(2,a+o.index+u-1);return{type:"strong",raw:n.slice(0,a+o.index+u+1),text:U,tokens:this.lexer.inlineTokens(U,[])}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let i=e[2].replace(/\n/g," ");const o=/[^ ]/.test(i),r=/^ /.test(i)&&/ $/.test(i);return o&&r&&(i=i.substring(1,i.length-1)),i=V1(i,!0),{type:"codespan",raw:e[0],text:i}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(n,e){const i=this.rules.inline.autolink.exec(n);if(i){let o,r;return"@"===i[2]?(o=V1(this.options.mangle?e(i[1]):i[1]),r="mailto:"+o):(o=V1(i[1]),r=o),{type:"link",raw:i[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let i;if(i=this.rules.inline.url.exec(n)){let o,r;if("@"===i[2])o=V1(this.options.mangle?e(i[0]):i[0]),r="mailto:"+o;else{let a;do{a=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(a!==i[0]);o=V1(i[0]),r="www."===i[1]?"http://"+o:o}return{type:"link",raw:i[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const i=this.rules.inline.text.exec(n);if(i){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):V1(i[0]):i[0]:V1(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:o}}}}const jr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:kP,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};jr.def=lc(jr.def).replace("label",jr._label).replace("title",jr._title).getRegex(),jr.bullet=/(?:[*+-]|\d{1,9}[.)])/,jr.listItemStart=lc(/^( *)(bull) */).replace("bull",jr.bullet).getRegex(),jr.list=lc(jr.list).replace(/bull/g,jr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+jr.def.source+")").getRegex(),jr._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",jr._comment=/|$)/,jr.html=lc(jr.html,"i").replace("comment",jr._comment).replace("tag",jr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jr.paragraph=lc(jr._paragraph).replace("hr",jr.hr).replace("heading"," {0,3}#{1,6} ").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",jr._tag).getRegex(),jr.blockquote=lc(jr.blockquote).replace("paragraph",jr.paragraph).getRegex(),jr.normal=t0({},jr),jr.gfm=t0({},jr.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),jr.gfm.table=lc(jr.gfm.table).replace("hr",jr.hr).replace("heading"," {0,3}#{1,6} ").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",jr._tag).getRegex(),jr.gfm.paragraph=lc(jr._paragraph).replace("hr",jr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",jr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",jr._tag).getRegex(),jr.pedantic=t0({},jr.normal,{html:lc("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",jr._comment).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:kP,paragraph:lc(jr.normal._paragraph).replace("hr",jr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",jr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Qo={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:kP,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:kP,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(e="x"+e.toString(16)),i+="&#"+e+";";return i}Qo._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Qo.punctuation=lc(Qo.punctuation).replace(/punctuation/g,Qo._punctuation).getRegex(),Qo.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Qo.escapedEmSt=/\\\*|\\_/g,Qo._comment=lc(jr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Qo.emStrong.lDelim=lc(Qo.emStrong.lDelim).replace(/punct/g,Qo._punctuation).getRegex(),Qo.emStrong.rDelimAst=lc(Qo.emStrong.rDelimAst,"g").replace(/punct/g,Qo._punctuation).getRegex(),Qo.emStrong.rDelimUnd=lc(Qo.emStrong.rDelimUnd,"g").replace(/punct/g,Qo._punctuation).getRegex(),Qo._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Qo._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Qo._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])?)+(?![-_])/,Qo.autolink=lc(Qo.autolink).replace("scheme",Qo._scheme).replace("email",Qo._email).getRegex(),Qo._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Qo.tag=lc(Qo.tag).replace("comment",Qo._comment).replace("attribute",Qo._attribute).getRegex(),Qo._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qo._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Qo._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qo.link=lc(Qo.link).replace("label",Qo._label).replace("href",Qo._href).replace("title",Qo._title).getRegex(),Qo.reflink=lc(Qo.reflink).replace("label",Qo._label).replace("ref",jr._label).getRegex(),Qo.nolink=lc(Qo.nolink).replace("ref",jr._label).getRegex(),Qo.reflinkSearch=lc(Qo.reflinkSearch,"g").replace("reflink",Qo.reflink).replace("nolink",Qo.nolink).getRegex(),Qo.normal=t0({},Qo),Qo.pedantic=t0({},Qo.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:lc(/^!?\[(label)\]\((.*?)\)/).replace("label",Qo._label).getRegex(),reflink:lc(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qo._label).getRegex()}),Qo.gfm=t0({},Qo.normal,{escape:lc(Qo.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\!!(i=l.call({lexer:this},n,e))&&(n=n.substring(i.raw.length),e.push(i),!0))))if(i=this.tokenizer.space(n))n=n.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);else if(i=this.tokenizer.code(n))n=n.substring(i.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(i):(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(i=this.tokenizer.fences(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.heading(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.hr(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.blockquote(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.list(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.html(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.def(n))n=n.substring(i.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(o.raw+="\n"+i.raw,o.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(i=this.tokenizer.table(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.lheading(n))n=n.substring(i.raw.length),e.push(i);else{if(r=n,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const u=n.slice(1);let f;this.options.extensions.startBlock.forEach(function(M){f=M.call({lexer:this},u),"number"==typeof f&&f>=0&&(l=Math.min(l,f))}),l<1/0&&l>=0&&(r=n.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(r)))o=e[e.length-1],a&&"paragraph"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(i),a=r.length!==n.length,n=n.substring(i.raw.length);else if(i=this.tokenizer.text(n))n=n.substring(i.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(i);else if(n){const l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}return this.state.top=!0,e}inline(n,e){this.inlineQueue.push({src:n,tokens:e})}inlineTokens(n,e=[]){let i,o,r,a,l,u,f=n;if(this.tokens.links){const M=Object.keys(this.tokens.links);if(M.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(f));)M.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(f=f.slice(0,a.index)+"["+Gse("a",a[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(f));)f=f.slice(0,a.index)+"["+Gse("a",a[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(f));)f=f.slice(0,a.index)+"++"+f.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;n;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(M=>!!(i=M.call({lexer:this},n,e))&&(n=n.substring(i.raw.length),e.push(i),!0))))if(i=this.tokenizer.escape(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.tag(n))n=n.substring(i.raw.length),o=e[e.length-1],o&&"text"===i.type&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):e.push(i);else if(i=this.tokenizer.link(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.reflink(n,this.tokens.links))n=n.substring(i.raw.length),o=e[e.length-1],o&&"text"===i.type&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):e.push(i);else if(i=this.tokenizer.emStrong(n,f,u))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.codespan(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.br(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.del(n))n=n.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.autolink(n,Use))n=n.substring(i.raw.length),e.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(n,Use))){if(r=n,this.options.extensions&&this.options.extensions.startInline){let M=1/0;const T=n.slice(1);let U;this.options.extensions.startInline.forEach(function(ie){U=ie.call({lexer:this},T),"number"==typeof U&&U>=0&&(M=Math.min(M,U))}),M<1/0&&M>=0&&(r=n.substring(0,M+1))}if(i=this.tokenizer.inlineText(r,hft))n=n.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(u=i.raw.slice(-1)),l=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):e.push(i);else if(n){const M="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(M);break}throw new Error(M)}}else n=n.substring(i.raw.length),e.push(i);return e}}class FF{constructor(n){this.options=n||h8}code(n,e,i){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const r=this.options.highlight(n,o);null!=r&&r!==n&&(i=!0,n=r)}return n=n.replace(/\n$/,"")+"\n",o?'
    '+(i?n:V1(n,!0))+"
    \n":"
    "+(i?n:V1(n,!0))+"
    \n"}blockquote(n){return"
    \n"+n+"
    \n"}html(n){return n}heading(n,e,i,o){return this.options.headerIds?"'+n+"\n":""+n+"\n"}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(n,e,i){const o=e?"ol":"ul";return"<"+o+(e&&1!==i?' start="'+i+'"':"")+">\n"+n+"\n"}listitem(n){return"
  • "+n+"
  • \n"}checkbox(n){return" "}paragraph(n){return"

    "+n+"

    \n"}table(n,e){return e&&(e=""+e+""),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return"\n"+n+"\n"}tablecell(n,e){const i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+n+"\n"}strong(n){return""+n+""}em(n){return""+n+""}codespan(n){return""+n+""}br(){return this.options.xhtml?"
    ":"
    "}del(n){return""+n+""}link(n,e,i){if(null===(n=Hse(this.options.sanitize,this.options.baseUrl,n)))return i;let o='",o}image(n,e,i){if(null===(n=Hse(this.options.sanitize,this.options.baseUrl,n)))return i;let o=''+i+'":">",o}text(n){return n}}class jse{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,i){return""+i}image(n,e,i){return""+i}br(){return""}}class Wse{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let i=n,o=0;if(this.seen.hasOwnProperty(i)){o=this.seen[n];do{o++,i=n+"-"+o}while(this.seen.hasOwnProperty(i))}return e||(this.seen[n]=o,this.seen[i]=0),i}slug(n,e={}){const i=this.serialize(n);return this.getNextSafeSlug(i,e.dryrun)}}class I4{constructor(n){this.options=n||h8,this.options.renderer=this.options.renderer||new FF,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new jse,this.slugger=new Wse}static parse(n,e){return new I4(e).parse(n)}static parseInline(n,e){return new I4(e).parseInline(n)}parse(n,e=!0){let i,o,r,a,l,u,f,M,T,U,ie,se,Me,we,He,Be,me,ze,qe,rt="";const xt=n.length;for(i=0;i0&&"paragraph"===He.tokens[0].type?(He.tokens[0].text=ze+" "+He.tokens[0].text,He.tokens[0].tokens&&He.tokens[0].tokens.length>0&&"text"===He.tokens[0].tokens[0].type&&(He.tokens[0].tokens[0].text=ze+" "+He.tokens[0].tokens[0].text)):He.tokens.unshift({type:"text",text:ze}):we+=ze),we+=this.parse(He.tokens,Me),T+=this.renderer.listitem(we,me,Be);rt+=this.renderer.list(T,ie,se);continue;case"html":rt+=this.renderer.html(U.text);continue;case"paragraph":rt+=this.renderer.paragraph(this.parseInline(U.tokens));continue;case"text":for(T=U.tokens?this.parseInline(U.tokens):U.text;i+1{i(l.text,l.lang,function(u,f){if(u)return r(u);null!=f&&f!==l.text&&(l.text=f,l.escaped=!0),a--,0===a&&r()})},0))}),void(0===a&&r())}try{const i=k4.lex(t,n);return n.walkTokens&&la.walkTokens(i,n.walkTokens),I4.parse(i,n)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n.silent)return"

    An error occurred:

    "+V1(i.message+"",!0)+"
    ";throw i}}la.options=la.setOptions=function(t){return t0(la.defaults,t),h8=la.defaults,la},la.getDefaults=function J3t(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},la.defaults=h8,la.use=function(...t){const n=t0({},...t),e=la.defaults.extensions||{renderers:{},childTokens:{}};let i;t.forEach(o=>{if(o.extensions&&(i=!0,o.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){const a=e.renderers?e.renderers[r.name]:null;e.renderers[r.name]=a?function(...l){let u=r.renderer.apply(this,l);return!1===u&&(u=a.apply(this,l)),u}:r.renderer}if(r.tokenizer){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");e[r.level]?e[r.level].unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&("block"===r.level?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:"inline"===r.level&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}r.childTokens&&(e.childTokens[r.name]=r.childTokens)})),o.renderer){const r=la.defaults.renderer||new FF;for(const a in o.renderer){const l=r[a];r[a]=(...u)=>{let f=o.renderer[a].apply(r,u);return!1===f&&(f=l.apply(r,u)),f}}n.renderer=r}if(o.tokenizer){const r=la.defaults.tokenizer||new zF;for(const a in o.tokenizer){const l=r[a];r[a]=(...u)=>{let f=o.tokenizer[a].apply(r,u);return!1===f&&(f=l.apply(r,u)),f}}n.tokenizer=r}if(o.walkTokens){const r=la.defaults.walkTokens;n.walkTokens=function(a){o.walkTokens.call(this,a),r&&r.call(this,a)}}i&&(n.extensions=e),la.setOptions(n)})},la.walkTokens=function(t,n){for(const e of t)switch(n.call(la,e),e.type){case"table":for(const i of e.header)la.walkTokens(i.tokens,n);for(const i of e.rows)for(const o of i)la.walkTokens(o.tokens,n);break;case"list":la.walkTokens(e.items,n);break;default:la.defaults.extensions&&la.defaults.extensions.childTokens&&la.defaults.extensions.childTokens[e.type]?la.defaults.extensions.childTokens[e.type].forEach(function(i){la.walkTokens(e[i],n)}):e.tokens&&la.walkTokens(e.tokens,n)}},la.parseInline=function(t,n){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");Bse(n=t0({},la.defaults,n||{}));try{const e=k4.lexInline(t,n);return n.walkTokens&&la.walkTokens(e,n.walkTokens),I4.parseInline(e,n)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",n.silent)return"

    An error occurred:

    "+V1(e.message+"",!0)+"
    ";throw e}},la.Parser=I4,la.parser=I4.parse,la.Renderer=FF,la.TextRenderer=jse,la.Lexer=k4,la.lexer=k4.lex,la.Tokenizer=zF,la.Slugger=Wse,la.parse=la;const qse="__SCRIPT_END__",NP=/\[\s*((\d*):)?\s*([\s\d,|-]*)\]/,pft={"&":"&","<":"<",">":">",'"':""","'":"'"},fft=()=>{let t;function n(M){let T=(M.querySelector("[data-template]")||M.querySelector("script")||M).textContent;T=T.replace(new RegExp(qse,"g"),"<\/script>");const U=T.match(/^\n?(\s*)/)[1].length,ie=T.match(/^\n?(\t*)/)[1].length;return ie>0?T=T.replace(new RegExp("\\n?\\t{"+ie+"}(.*)","g"),function(se,Me){return"\n"+Me}):U>1&&(T=T.replace(new RegExp("\\n? {"+U+"}(.*)","g"),function(se,Me){return"\n"+Me})),T}function e(M){const T=M.attributes,U=[];for(let ie=0,se=T.length;ie'+la(U[1].trim())+""),'